2 * linux/arch/arm/mach-omap2/io.c
4 * OMAP2 I/O mapping code
6 * Copyright (C) 2005 Nokia Corporation
7 * Author: Juha Yrjölä <juha.yrjola@nokia.com>
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.
14 #include <linux/config.h>
15 #include <linux/module.h>
16 #include <linux/kernel.h>
17 #include <linux/init.h>
22 #include <asm/mach/map.h>
24 #include <asm/arch/mux.h>
25 #include <asm/arch/omapfb.h>
27 extern void omap_sram_init(void);
28 extern int omap2_clk_init(void);
29 extern void omap2_check_revision(void);
32 * The machine specific code may provide the extra mapping besides the
33 * default mapping provided here.
35 static struct map_desc omap2_io_desc
[] __initdata
= {
37 .virtual = L3_24XX_VIRT
,
38 .pfn
= __phys_to_pfn(L3_24XX_PHYS
),
39 .length
= L3_24XX_SIZE
,
43 .virtual = L4_24XX_VIRT
,
44 .pfn
= __phys_to_pfn(L4_24XX_PHYS
),
45 .length
= L4_24XX_SIZE
,
50 void __init
omap2_map_common_io(void)
52 iotable_init(omap2_io_desc
, ARRAY_SIZE(omap2_io_desc
));
54 /* Normally devicemaps_init() would flush caches and tlb after
55 * mdesc->map_io(), but we must also do it here because of the CPU
56 * revision check below.
58 local_flush_tlb_all();
61 omap2_check_revision();
66 void __init
omap2_init_common_hw(void)