aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2011-06-17 06:09:07 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-08-15 06:58:59 -0400
commit2a004c686e7997ddb795dbce10b263e241f9bdaf (patch)
tree05fcf8086a9f5165087f6abfb91aaca2093ffd27 /arch/arm
parente426f8e39bb612bfdd38fa7a75d10ba95787d1af (diff)
ARM: 6965/1: ep93xx: add model detection for ts-7300 and ts-7400 boards
Cc: Ryan Mallon <ryan@bluewatersys.com> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Petr Štetiar <ynezz@true.cz> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-ep93xx/include/mach/ts72xx.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-ep93xx/include/mach/ts72xx.h b/arch/arm/mach-ep93xx/include/mach/ts72xx.h
index 0eabec62cd9d..ee7f87589efa 100644
--- a/arch/arm/mach-ep93xx/include/mach/ts72xx.h
+++ b/arch/arm/mach-ep93xx/include/mach/ts72xx.h
@@ -20,6 +20,8 @@
20#define TS72XX_MODEL_TS7200 0x00 20#define TS72XX_MODEL_TS7200 0x00
21#define TS72XX_MODEL_TS7250 0x01 21#define TS72XX_MODEL_TS7250 0x01
22#define TS72XX_MODEL_TS7260 0x02 22#define TS72XX_MODEL_TS7260 0x02
23#define TS72XX_MODEL_TS7300 0x03
24#define TS72XX_MODEL_TS7400 0x04
23 25
24 26
25#define TS72XX_OPTIONS_PHYS_BASE 0x22400000 27#define TS72XX_OPTIONS_PHYS_BASE 0x22400000
@@ -66,6 +68,16 @@ static inline int board_is_ts7260(void)
66 return __raw_readb(TS72XX_MODEL_VIRT_BASE) == TS72XX_MODEL_TS7260; 68 return __raw_readb(TS72XX_MODEL_VIRT_BASE) == TS72XX_MODEL_TS7260;
67} 69}
68 70
71static inline int board_is_ts7300(void)
72{
73 return __raw_readb(TS72XX_MODEL_VIRT_BASE) == TS72XX_MODEL_TS7300;
74}
75
76static inline int board_is_ts7400(void)
77{
78 return __raw_readb(TS72XX_MODEL_VIRT_BASE) == TS72XX_MODEL_TS7400;
79}
80
69static inline int is_max197_installed(void) 81static inline int is_max197_installed(void)
70{ 82{
71 return !!(__raw_readb(TS72XX_OPTIONS_VIRT_BASE) & 83 return !!(__raw_readb(TS72XX_OPTIONS_VIRT_BASE) &