Commit 2a004c68 authored by Petr Štetiar's avatar Petr Štetiar Committed by Russell King

ARM: 6965/1: ep93xx: add model detection for ts-7300 and ts-7400 boards

Cc: Ryan Mallon <ryan@bluewatersys.com>
Acked-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent e426f8e3
......@@ -20,6 +20,8 @@
#define TS72XX_MODEL_TS7200 0x00
#define TS72XX_MODEL_TS7250 0x01
#define TS72XX_MODEL_TS7260 0x02
#define TS72XX_MODEL_TS7300 0x03
#define TS72XX_MODEL_TS7400 0x04
#define TS72XX_OPTIONS_PHYS_BASE 0x22400000
......@@ -66,6 +68,16 @@ static inline int board_is_ts7260(void)
return __raw_readb(TS72XX_MODEL_VIRT_BASE) == TS72XX_MODEL_TS7260;
}
static inline int board_is_ts7300(void)
{
return __raw_readb(TS72XX_MODEL_VIRT_BASE) == TS72XX_MODEL_TS7300;
}
static inline int board_is_ts7400(void)
{
return __raw_readb(TS72XX_MODEL_VIRT_BASE) == TS72XX_MODEL_TS7400;
}
static inline int is_max197_installed(void)
{
return !!(__raw_readb(TS72XX_OPTIONS_VIRT_BASE) &
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment