* [PATCH] sh: Add platform-specific constants for SH7709
@ 2008-11-23 14:27 Steve Glendinning
2008-11-25 12:26 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Steve Glendinning @ 2008-11-23 14:27 UTC (permalink / raw)
To: linux-sh
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>
---
arch/sh/include/cpu-sh3/cpu/gpio.h | 14 ++++++++++++++
arch/sh/include/mach-se/mach/se.h | 18 ++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/arch/sh/include/cpu-sh3/cpu/gpio.h b/arch/sh/include/cpu-sh3/cpu/gpio.h
index 4e53eb3..9a22b88 100644
--- a/arch/sh/include/cpu-sh3/cpu/gpio.h
+++ b/arch/sh/include/cpu-sh3/cpu/gpio.h
@@ -62,6 +62,20 @@
#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
diff --git a/arch/sh/include/mach-se/mach/se.h b/arch/sh/include/mach-se/mach/se.h
index eb23000..14be91c 100644
--- a/arch/sh/include/mach-se/mach/se.h
+++ b/arch/sh/include/mach-se/mach/se.h
@@ -68,6 +68,24 @@
#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
--
1.5.6.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sh: Add platform-specific constants for SH7709
2008-11-23 14:27 [PATCH] sh: Add platform-specific constants for SH7709 Steve Glendinning
@ 2008-11-25 12:26 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2008-11-25 12:26 UTC (permalink / raw)
To: linux-sh
On Sun, Nov 23, 2008 at 02:27:21PM +0000, Steve Glendinning wrote:
> 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>
On Sun, Nov 23, 2008 at 02:27:22PM +0000, Steve Glendinning wrote:
> sh7709 hardware manual says DMAOR is 16 bits long on this platform.
>
> Tested and working with a modified smsc911x ethernet driver (sh-dma
> support patch for this driver is coming soon).
>
> Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
On Sun, Nov 23, 2008 at 03:00:31PM +0000, Steve Glendinning wrote:
> The SH7709 datasheet defines bit 5 as set for burst mode, clear for
> cycle-steal mode.
>
> Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
These are all applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-25 12:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-23 14:27 [PATCH] sh: Add platform-specific constants for SH7709 Steve Glendinning
2008-11-25 12:26 ` Paul Mundt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).