arm: mxs: Add LCDIF clock configuration function
authorMarek Vasut <marex@denx.de>
Sun, 28 Apr 2013 09:20:01 +0000 (09:20 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 6 May 2013 15:40:22 +0000 (17:40 +0200)
commit7411cdf0e20f3e7028a3ba5be956875b32933cad
tree8802de56a267783978d26923a6127c0d853eea67
parent68088ceed7eb059d1aa50ffe7c372cf8b058797e
arm: mxs: Add LCDIF clock configuration function

This function turns on the LCDIF clock and configures it's frequency. The
dividers settings are calculated within the function and the current
implementation should be fast and accurate.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/arm926ejs/mxs/clock.c
arch/arm/include/asm/arch-mxs/clock.h