Video: ARM CLCD: Better fix for swapped IENB and CNTL registers
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 12 Feb 2010 14:32:01 +0000 (14:32 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 14 Mar 2010 19:42:44 +0000 (19:42 +0000)
commit3f17522ce461a31e7ced6311b28fcf5b8a763316
treef2fde33f7e2887ad99b7579c9c05a30a424a31f2
parent1027247f6eb727db6c600b9eb02796f0766ae704
Video: ARM CLCD: Better fix for swapped IENB and CNTL registers

On PL111, as found on Realview and other platforms, these registers are
always arranged as CNTL then IENB.  On PL110, these registers are IENB
then CNTL, except on Versatile platforms.

Re-arrange the handling of these register swaps so that PL111 always
gets it right without resorting to ifdefs, leaving the only case needing
special handling being PL110 on Versatile.

Fill out amba/clcd.h with the PL110/PL111 register definition
differences in case someone tries to use the PL110 specific definitions
on PL111.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/video/amba-clcd.c
include/linux/amba/clcd.h