* [PATCH 1/1] ARM: OMAP: 243x: Add mappings for SDRC and SMS
@ 2007-03-14 1:06 Kevin Hilman
2007-03-20 18:20 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Hilman @ 2007-03-14 1:06 UTC (permalink / raw)
To: linux-omap-open-source
Add mappings for SDRC ans SMS so that omap2_memory_init() works on the
2430. This also allows the mpurate= command-line option to work.
Signed-off-by: Kevin Hilman <khilman@mvista.com>
---
arch/arm/mach-omap2/io.c | 17 ++++++++++++-----
include/asm-arm/arch-omap/io.h | 7 +++++++
include/asm-arm/arch-omap/omap24xx.h | 3 ++-
3 files changed, 21 insertions(+), 6 deletions(-)
Index: dev/arch/arm/mach-omap2/io.c
===================================================================
--- dev.orig/arch/arm/mach-omap2/io.c
+++ dev/arch/arm/mach-omap2/io.c
@@ -61,6 +61,18 @@ static struct map_desc omap2_io_desc[] _
.length = OMAP243X_GPMC_SIZE,
.type = MT_DEVICE
},
+ {
+ .virtual = OMAP243X_SDRC_VIRT,
+ .pfn = __phys_to_pfn(OMAP243X_SDRC_PHYS),
+ .length = OMAP243X_SDRC_SIZE,
+ .type = MT_DEVICE
+ },
+ {
+ .virtual = OMAP243X_SMS_VIRT,
+ .pfn = __phys_to_pfn(OMAP243X_SMS_PHYS),
+ .length = OMAP243X_SMS_SIZE,
+ .type = MT_DEVICE
+ },
#endif
{
.virtual = DSP_MEM_24XX_VIRT,
@@ -102,11 +114,6 @@ void __init omap2_init_common_hw(void)
{
omap2_mux_init();
omap2_clk_init();
-/*
- * Need to Fix this for 2430
- */
-#ifndef CONFIG_ARCH_OMAP2430
omap2_init_memory();
-#endif
gpmc_init();
}
Index: dev/include/asm-arm/arch-omap/io.h
===================================================================
--- dev.orig/include/asm-arm/arch-omap/io.h
+++ dev/include/asm-arm/arch-omap/io.h
@@ -80,6 +80,13 @@
#define OMAP243X_GPMC_PHYS OMAP243X_GPMC_BASE /* 0x49000000 */
#define OMAP243X_GPMC_VIRT 0xFE000000
#define OMAP243X_GPMC_SIZE SZ_1M
+#define OMAP243X_SDRC_PHYS OMAP24XX_SDRC_BASE
+#define OMAP243X_SDRC_VIRT 0xFD000000
+#define OMAP243X_SDRC_SIZE SZ_1M
+#define OMAP243X_SMS_PHYS OMAP243X_SMS_BASE
+#define OMAP243X_SMS_VIRT 0xFC000000
+#define OMAP243X_SMS_SIZE SZ_1M
+
#endif
#define IO_OFFSET 0x90000000
Index: dev/include/asm-arm/arch-omap/omap24xx.h
===================================================================
--- dev.orig/include/asm-arm/arch-omap/omap24xx.h
+++ dev/include/asm-arm/arch-omap/omap24xx.h
@@ -27,8 +27,9 @@
#ifdef CONFIG_ARCH_OMAP2430
#define OMAP24XX_32KSYNCT_BASE (L4_WK_243X_BASE + 0x20000)
#define OMAP24XX_PRCM_BASE (L4_WK_243X_BASE + 0x6000)
-#define OMAP24XX_SDRC_BASE (0x6D000000)
#define OMAP242X_CONTROL_STATUS (L4_24XX_BASE + 0x2f8)
+#define OMAP243X_SMS_BASE 0x6C000000
+#define OMAP24XX_SDRC_BASE 0x6D000000
#define OMAP243X_GPMC_BASE 0x6E000000
#endif
--
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH 1/1] ARM: OMAP: 243x: Add mappings for SDRC and SMS
2007-03-14 1:06 [PATCH 1/1] ARM: OMAP: 243x: Add mappings for SDRC and SMS Kevin Hilman
@ 2007-03-20 18:20 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2007-03-20 18:20 UTC (permalink / raw)
To: Kevin Hilman; +Cc: linux-omap-open-source
* Kevin Hilman <khilman@mvista.com> [070313 21:12]:
> Add mappings for SDRC ans SMS so that omap2_memory_init() works on the
> 2430. This also allows the mpurate= command-line option to work.
> --- dev.orig/include/asm-arm/arch-omap/io.h
> +++ dev/include/asm-arm/arch-omap/io.h
> @@ -80,6 +80,13 @@
> #define OMAP243X_GPMC_PHYS OMAP243X_GPMC_BASE /* 0x49000000 */
> #define OMAP243X_GPMC_VIRT 0xFE000000
> #define OMAP243X_GPMC_SIZE SZ_1M
> +#define OMAP243X_SDRC_PHYS OMAP24XX_SDRC_BASE
> +#define OMAP243X_SDRC_VIRT 0xFD000000
> +#define OMAP243X_SDRC_SIZE SZ_1M
> +#define OMAP243X_SMS_PHYS OMAP243X_SMS_BASE
> +#define OMAP243X_SMS_VIRT 0xFC000000
> +#define OMAP243X_SMS_SIZE SZ_1M
> +
> #endif
>
Tabified these & pushing today.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-20 18:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-14 1:06 [PATCH 1/1] ARM: OMAP: 243x: Add mappings for SDRC and SMS Kevin Hilman
2007-03-20 18:20 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox