io.c (33c9907535cef6cb5de1269540c04664c393d09c) | io.c (72d0f1c3cdc7c456e1e357359ec6f566d0a5f264) |
---|---|
1/* 2 * linux/arch/arm/mach-omap2/io.c 3 * 4 * OMAP2 I/O mapping code 5 * 6 * Copyright (C) 2005 Nokia Corporation 7 * Author: Juha Yrj�l� <juha.yrjola@nokia.com> | 1/* 2 * linux/arch/arm/mach-omap2/io.c 3 * 4 * OMAP2 I/O mapping code 5 * 6 * Copyright (C) 2005 Nokia Corporation 7 * Author: Juha Yrj�l� <juha.yrjola@nokia.com> |
8 * Updated map desc to add 2430 support : <x0khasim@ti.com> |
|
8 * 9 * 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 * published by the Free Software Foundation. 12 */ 13 14#include <linux/module.h> 15#include <linux/kernel.h> --- 20 unchanged lines hidden (view full) --- 36 */ 37static struct map_desc omap2_io_desc[] __initdata = { 38 { 39 .virtual = L3_24XX_VIRT, 40 .pfn = __phys_to_pfn(L3_24XX_PHYS), 41 .length = L3_24XX_SIZE, 42 .type = MT_DEVICE 43 }, | 9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License version 2 as 12 * published by the Free Software Foundation. 13 */ 14 15#include <linux/module.h> 16#include <linux/kernel.h> --- 20 unchanged lines hidden (view full) --- 37 */ 38static struct map_desc omap2_io_desc[] __initdata = { 39 { 40 .virtual = L3_24XX_VIRT, 41 .pfn = __phys_to_pfn(L3_24XX_PHYS), 42 .length = L3_24XX_SIZE, 43 .type = MT_DEVICE 44 }, |
45#ifdef CONFIG_ARCH_OMAP2430 |
|
44 { | 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 59 { |
|
45 .virtual = DSP_MEM_24XX_VIRT, 46 .pfn = __phys_to_pfn(DSP_MEM_24XX_PHYS), 47 .length = DSP_MEM_24XX_SIZE, 48 .type = MT_DEVICE 49 }, 50 { 51 .virtual = DSP_IPI_24XX_VIRT, 52 .pfn = __phys_to_pfn(DSP_IPI_24XX_PHYS), --- 23 unchanged lines hidden (view full) --- 76 omap_sram_init(); 77 omapfb_reserve_sdram(); 78} 79 80void __init omap2_init_common_hw(void) 81{ 82 omap2_mux_init(); 83 omap2_clk_init(); | 60 .virtual = DSP_MEM_24XX_VIRT, 61 .pfn = __phys_to_pfn(DSP_MEM_24XX_PHYS), 62 .length = DSP_MEM_24XX_SIZE, 63 .type = MT_DEVICE 64 }, 65 { 66 .virtual = DSP_IPI_24XX_VIRT, 67 .pfn = __phys_to_pfn(DSP_IPI_24XX_PHYS), --- 23 unchanged lines hidden (view full) --- 91 omap_sram_init(); 92 omapfb_reserve_sdram(); 93} 94 95void __init omap2_init_common_hw(void) 96{ 97 omap2_mux_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(); 86} | 105 gpmc_init(); 106} |