* 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
* Re: Patch to fix dsp mapping for 2430.
2007-05-07 20:50 Patch to fix dsp mapping for 2430 Woodruff, Richard
@ 2007-05-08 0:14 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2007-05-08 0:14 UTC (permalink / raw)
To: Woodruff, Richard; +Cc: linux-omap-open-source
* Woodruff, Richard <r-woodruff2@ti.com> [070507 13:55]:
> 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)
Thanks, pushing today.
Tony
^ permalink raw reply [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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.