[ARM] Allow Versatile to be built for AB and PB
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Mon, 10 Jul 2006 15:33:54 +0000 (16:33 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 11 Jul 2006 20:10:42 +0000 (21:10 +0100)
commitdc5bc8f1e96c32f28bddf32a14ef9251fb3071d0
treeb470bc2c690ee2d62e2aee5849d5732d6d812033
parent20c4f88b7e4c2cd73bd4276417a9a0d4d22b0d66
[ARM] Allow Versatile to be built for AB and PB

If a configuration was chosen to support both the Versatile
AB and PB boards, the result would write to registers not
available on the PB version of the board.  Resolve this by
using machine_is_xxx().

Also, for the CLCD, despite how the code looks, both the AB
and PB access the same location to control the clock rate -
it's just called something different between the two board
versions.  Invent our own name for this location and use it
unconditionally.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-versatile/core.c
include/asm-arm/arch-versatile/platform.h