video/atmel_lcdfb: add support for AT91SAM9x5

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
video/atmel_lcdfb: The output bpp should not change according to memory bpp

The 9x5-ek using 24 bits output for its connection to LCD screen.
The output bpp can now be configurated in board file.

XXX: these are two different changes?

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
video: atmelfb: initially split atmelfb into a driver and library part

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>

Conflicts:
	drivers/video/Makefile
	drivers/video/atmel_lcdfb.c
video: atmelfb: refactor core setup

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
video: atmelfb: refactor start/stop

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
video: atmelfb: refactor isr

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
video: atmelfb: refactor backlight routines

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
video: atmelfb: refactor dma_update

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
video: atmelfb: refactor LUT

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
video: atmelfb: refactor limit_screeninfo

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
arm: at91: refactor lcdc-includes

Among others the HEO-ISR bit is fixed.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>

Conflicts:
	arch/arm/mach-at91/at91sam9261_devices.c
	arch/arm/mach-at91/at91sam9263_devices.c
	arch/arm/mach-at91/at91sam9g45_devices.c
	arch/arm/mach-at91/at91sam9rl_devices.c
	arch/arm/mach-at91/include/mach/atmel_lcdc.h
video: atmel_hlcdfb: add new driver

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
WIP: add clut resource

Warning: will currently break old AT91-boards!

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
video: atmel_lcdfb: HLCD modifications

HAS TO BE REWORKED: break compatibility with previous LCD IP due to register
map changes

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
atmel_lcdfb: change pixel clock ratio calculation

DIV_ROUND_UP() was used to calculate the pixel clock divider
in atmel_hlcdfb_setup_core_base().
But this rounding was producing a bigger divider each time it was called.
We replace by DIV_ROUND_CLOSEST() to calculate it.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
video: atmel_lcdfb*: protect bl_power with CONFIG_BACKLIGHT_ATMEL_LCDC

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
video: atmel_lcdfb: adapt to all IP configurations

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
video: atmel_hlcdfb: add second overlay support

New LCD Controller can support a second overlay.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
video: atmel_hlcdfb: increase the base layer AHB burst length

Increase the base layer AHB burst length from 4 to 16.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
video: atmel_hlcdfb: don't read a write only register

Reading a write only register and using its value is useless.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>