aboutsummaryrefslogtreecommitdiff
path: root/include/asm-arm
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:09:35 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:09:35 +0000
commit9ce34393e79ed4820709868caa70cea488452421 (patch)
tree0c95ab011c93c8e1738e81d15b0ae38bfc1cd622 /include/asm-arm
parentf4302969ac96afa5c6fc8498905fc61ed2ff9924 (diff)
add-gta02-pcb-revision-detect.patch
Add function int gta02_get_pcb_revision(void) which returns state of GTA02 PCB revision pins. It is also called and logged during boot with KERN_INFO. The results look like: b9 b8 b2 b1 b0 GPD4 GPD3 GPD0 GPC15 GPC13 GTA02 A5 and before: 0x000 GTA02 A6 : 0x001 Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'include/asm-arm')
-rw-r--r--include/asm-arm/arch-s3c2410/gta02.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-arm/arch-s3c2410/gta02.h b/include/asm-arm/arch-s3c2410/gta02.h
index f686a7a20d3..791ea4fc4c3 100644
--- a/include/asm-arm/arch-s3c2410/gta02.h
+++ b/include/asm-arm/arch-s3c2410/gta02.h
@@ -97,4 +97,13 @@
#define GTA02v3_IRQ_nUSB_FLT IRQ_EINT18 /* v3 + v4 only */
#define GTA02v3_IRQ_nGSM_OC IRQ_EINT19 /* v3 + v4 only */
+/* returns 00 000 on GTA02 A5 and earlier, A6 returns 01 001 */
+#define GTA02_PCB_ID1_0 S3C2410_GPC13
+#define GTA02_PCB_ID1_1 S3C2410_GPC15
+#define GTA02_PCB_ID1_2 S3C2410_GPD0
+#define GTA02_PCB_ID2_0 S3C2410_GPD3
+#define GTA02_PCB_ID2_1 S3C2410_GPD4
+
+int gta02_get_pcb_revision(void);
+
#endif /* _GTA02_H */