]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: at91/avr32/atmel_lcdfb: add platform device-id table
authorJohan Hovold <jhovold@gmail.com>
Thu, 7 Feb 2013 15:31:58 +0000 (16:31 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 13 Mar 2013 10:05:12 +0000 (11:05 +0100)
commitbbd44f6bd9d1aa735b180b29b5719d63a8e87b55
treed2d6b87a1104b5a931ea95a7f0c7c9341ad6f079
parent934a50bd089789d1ed74f0bef4988a97bd590afe
ARM: at91/avr32/atmel_lcdfb: add platform device-id table

Add platform device-id table in order to identify the controller and
determine its configuration.

The currently used configuration parameters are:

have_alt_pixclock
 - SOC uses an alternate pixel-clock calculation formula (at91sam9g45
   non-ES)

have_hozval
 - SOC has a HOZVAL field in LCDFRMCFG which is used to determine the
   linesize for STN displays (at91sam9261, at921sam9g10 and at32ap)

have_intensity_bit
 - SOC uses IBGR:555 rather than BGR:565 16-bit pixel layout
   (at91sam9261, at91sam9263 and at91sam9rl)

This allows us to remove all the remaining uses of cpu_is macros from
the driver.

Tested on at91sam9263 and at91sam9g45, compile-tested for other
AT91-SOCs, and untested for AVR32.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/at91sam9261.c
arch/arm/mach-at91/at91sam9261_devices.c
arch/arm/mach-at91/at91sam9263.c
arch/arm/mach-at91/at91sam9263_devices.c
arch/arm/mach-at91/at91sam9g45.c
arch/arm/mach-at91/at91sam9g45_devices.c
arch/arm/mach-at91/at91sam9rl.c
arch/arm/mach-at91/at91sam9rl_devices.c
arch/avr32/mach-at32ap/at32ap700x.c
drivers/video/atmel_lcdfb.c
include/video/atmel_lcdc.h