public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* Patch to fix dsp mapping for 2430.
@ 2007-05-07 20:50 Woodruff, Richard
  2007-05-08  0:14 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Woodruff, Richard @ 2007-05-07 20:50 UTC (permalink / raw)
  To: linux-omap-open-source

This patch fixes the DSP mapping for 2430.

Signed-off-by: Richard Woodruff <r-woodruff2@ti.com>
---

diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 871fde3..3ce0bc9 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -80,12 +80,14 @@ static struct map_desc omap2_io_desc[] __initdata =
{
 		.length		= DSP_MEM_24XX_SIZE,
 		.type		= MT_DEVICE
 	},
+#ifdef CONFIG_ARCH_OMAP2420
 	{
 		.virtual	= DSP_IPI_24XX_VIRT,
 		.pfn		= __phys_to_pfn(DSP_IPI_24XX_PHYS),
 		.length		= DSP_IPI_24XX_SIZE,
 		.type		= MT_DEVICE
 	},
+#endif
 	{
 		.virtual	= DSP_MMU_24XX_VIRT,
 		.pfn		= __phys_to_pfn(DSP_MMU_24XX_PHYS),
diff --git a/include/asm-arm/arch-omap/omap24xx.h
b/include/asm-arm/arch-omap/omap24xx.h
index 66592c8..2f806b3 100644
--- a/include/asm-arm/arch-omap/omap24xx.h
+++ b/include/asm-arm/arch-omap/omap24xx.h
@@ -34,10 +34,18 @@
 #endif
 
 /* DSP SS */
+#ifdef CONFIG_ARCH_OMAP2420
 #define OMAP24XX_DSP_BASE	0x58000000
 #define OMAP24XX_DSP_MEM_BASE	(OMAP24XX_DSP_BASE + 0x0)
 #define OMAP24XX_DSP_IPI_BASE	(OMAP24XX_DSP_BASE + 0x1000000)
 #define OMAP24XX_DSP_MMU_BASE	(OMAP24XX_DSP_BASE + 0x2000000)
+#endif
+
+#ifdef CONFIG_ARCH_OMAP2430
+#define OMAP24XX_DSP_BASE	0x5C000000
+#define OMAP24XX_DSP_MEM_BASE	(OMAP24XX_DSP_BASE + 0x0)
+#define OMAP24XX_DSP_MMU_BASE	(OMAP24XX_DSP_BASE + 0x1000000)
+#endif
 
 /* Mailbox */
 #define OMAP24XX_MAILBOX_BASE	(L4_24XX_BASE + 0x94000)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-08  0:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-07 20:50 Patch to fix dsp mapping for 2430 Woodruff, Richard
2007-05-08  0:14 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox