diff options
author | Syed Mohammed Khasim <x0khasim@ti.com> | 2006-12-06 20:14:05 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2007-09-20 12:59:20 -0400 |
commit | 72d0f1c3cdc7c456e1e357359ec6f566d0a5f264 (patch) | |
tree | 1cebb2edf9fa1be79d991e7a61fa196d284d9a17 /arch/arm/mach-omap2/io.c | |
parent | f604931238dff7b44ef52ac2ad1f557e45b25b38 (diff) |
ARM: OMAP: Add minimal OMAP2430 support
This patch adds minimal OMAP2430 support to get the kernel booting on 2430SDP.
Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
-rw-r--r-- | arch/arm/mach-omap2/io.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index a57a4295ce23..5a4091f582ed 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -5,6 +5,7 @@ | |||
5 | * | 5 | * |
6 | * Copyright (C) 2005 Nokia Corporation | 6 | * Copyright (C) 2005 Nokia Corporation |
7 | * Author: Juha Yrjölä <juha.yrjola@nokia.com> | 7 | * Author: Juha Yrjölä <juha.yrjola@nokia.com> |
8 | * Updated map desc to add 2430 support : <x0khasim@ti.com> | ||
8 | * | 9 | * |
9 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License version 2 as | 11 | * it under the terms of the GNU General Public License version 2 as |
@@ -41,6 +42,20 @@ static struct map_desc omap2_io_desc[] __initdata = { | |||
41 | .length = L3_24XX_SIZE, | 42 | .length = L3_24XX_SIZE, |
42 | .type = MT_DEVICE | 43 | .type = MT_DEVICE |
43 | }, | 44 | }, |
45 | #ifdef CONFIG_ARCH_OMAP2430 | ||
46 | { | ||
47 | .virtual = L4_WK_243X_VIRT, | ||
48 | .pfn = __phys_to_pfn(L4_WK_243X_PHYS), | ||
49 | .length = L4_WK_243X_SIZE, | ||
50 | .type = MT_DEVICE | ||
51 | }, | ||
52 | { | ||
53 | .virtual = OMAP243X_GPMC_VIRT, | ||
54 | .pfn = __phys_to_pfn(OMAP243X_GPMC_PHYS), | ||
55 | .length = OMAP243X_GPMC_SIZE, | ||
56 | .type = MT_DEVICE | ||
57 | }, | ||
58 | #endif | ||
44 | { | 59 | { |
45 | .virtual = DSP_MEM_24XX_VIRT, | 60 | .virtual = DSP_MEM_24XX_VIRT, |
46 | .pfn = __phys_to_pfn(DSP_MEM_24XX_PHYS), | 61 | .pfn = __phys_to_pfn(DSP_MEM_24XX_PHYS), |
@@ -81,6 +96,11 @@ void __init omap2_init_common_hw(void) | |||
81 | { | 96 | { |
82 | omap2_mux_init(); | 97 | omap2_mux_init(); |
83 | omap2_clk_init(); | 98 | omap2_clk_init(); |
99 | /* | ||
100 | * Need to Fix this for 2430 | ||
101 | */ | ||
102 | #ifndef CONFIG_ARCH_OMAP2430 | ||
84 | omap2_init_memory(); | 103 | omap2_init_memory(); |
104 | #endif | ||
85 | gpmc_init(); | 105 | gpmc_init(); |
86 | } | 106 | } |