]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: Add platform-specific constants for SH7709
authorSteve Glendinning <steve.glendinning@smsc.com>
Sun, 23 Nov 2008 14:27:21 +0000 (14:27 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 22 Dec 2008 09:42:54 +0000 (18:42 +0900)
I'm using these constants in support of an in-house development board,
and thought they may be useful to other users of SH7709.

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/cpu-sh3/cpu/gpio.h
arch/sh/include/mach-se/mach/se.h

index 4e53eb314b8fc9b9b4c6584fda2f290c9353dc56..9a22b882f3dc27392beaf0983ca32befccb3443d 100644 (file)
 #define PORT_PSELC     0xA4050128UL
 #define PORT_PSELD     0xA405012AUL
 
+#elif defined(CONFIG_CPU_SUBTYPE_SH7709)
+
+/* Control registers */
+#define PORT_PACR       0xa4000100UL
+#define PORT_PBCR       0xa4000102UL
+#define PORT_PCCR       0xa4000104UL
+#define PORT_PFCR       0xa400010aUL
+
+/* Data registers */
+#define PORT_PADR       0xa4000120UL
+#define PORT_PBDR       0xa4000122UL
+#define PORT_PCDR       0xa4000124UL
+#define PORT_PFDR       0xa400012aUL
+
 #endif
 
 #endif
index eb23000e1bbee1526410891891423fa3919fa259..14be91c5a2f0f7f1c062d6afbe8aac38cf1ea953 100644 (file)
 #define BCR_ILCRF      (PA_BCR + 10)
 #define BCR_ILCRG      (PA_BCR + 12)
 
+#if defined(CONFIG_CPU_SUBTYPE_SH7709)
+#define INTC_IRR0       0xa4000004UL
+#define INTC_IRR1       0xa4000006UL
+#define INTC_IRR2       0xa4000008UL
+
+#define INTC_ICR0       0xfffffee0UL
+#define INTC_ICR1       0xa4000010UL
+#define INTC_ICR2       0xa4000012UL
+#define INTC_INTER      0xa4000014UL
+
+#define INTC_IPRC       0xa4000016UL
+#define INTC_IPRD       0xa4000018UL
+#define INTC_IPRE       0xa400001aUL
+
+#define IRQ0_IRQ        32
+#define IRQ1_IRQ        33
+#endif
+
 #if defined(CONFIG_CPU_SUBTYPE_SH7705)
 #define IRQ_STNIC      12
 #define IRQ_CFCARD     14