Thread (1 message) 1 message, 1 author, 2011-05-31
DORMANTno replies REVIEWED: 3 (3M)

1 review trailer.

[PATCH 3/4] ARM: ep93xx: add model detection for ts-7300 and ts-7400 boards

From: H Hartley Sweeten <hidden>
Date: 2011-05-31 16:55:31

On Sunday, May 29, 2011 3:36 AM, Petr ?tetiar wrote:
quoted hunk
Subject: [PATCH 3/4] ARM: ep93xx: add model detection for ts-7300 and ts-7400 boards

Cc: Ryan Mallon <redacted>
Cc: Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Petr ?tetiar <redacted>
---
 arch/arm/mach-ep93xx/include/mach/ts72xx.h |   12 ++++++++++++
 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 0eabec6..ee7f875 100644
--- a/arch/arm/mach-ep93xx/include/mach/ts72xx.h
+++ b/arch/arm/mach-ep93xx/include/mach/ts72xx.h
@@ -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) &
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help