2 * Static mappings for Gemini
4 * Copyright (C) 2001-2006 Storlink, Corp.
5 * Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #include <linux/init.h>
15 #include <asm/mach/map.h>
17 #include <mach/hardware.h>
19 /* Page table mapping for I/O region */
20 static struct map_desc gemini_io_desc
[] __initdata
= {
22 .virtual = IO_ADDRESS(GEMINI_GLOBAL_BASE
),
23 .pfn
=__phys_to_pfn(GEMINI_GLOBAL_BASE
),
27 .virtual = IO_ADDRESS(GEMINI_UART_BASE
),
28 .pfn
= __phys_to_pfn(GEMINI_UART_BASE
),
32 .virtual = IO_ADDRESS(GEMINI_TIMER_BASE
),
33 .pfn
= __phys_to_pfn(GEMINI_TIMER_BASE
),
37 .virtual = IO_ADDRESS(GEMINI_INTERRUPT_BASE
),
38 .pfn
= __phys_to_pfn(GEMINI_INTERRUPT_BASE
),
42 .virtual = IO_ADDRESS(GEMINI_POWER_CTRL_BASE
),
43 .pfn
= __phys_to_pfn(GEMINI_POWER_CTRL_BASE
),
47 .virtual = IO_ADDRESS(GEMINI_GPIO_BASE(0)),
48 .pfn
= __phys_to_pfn(GEMINI_GPIO_BASE(0)),
52 .virtual = IO_ADDRESS(GEMINI_GPIO_BASE(1)),
53 .pfn
= __phys_to_pfn(GEMINI_GPIO_BASE(1)),
57 .virtual = IO_ADDRESS(GEMINI_GPIO_BASE(2)),
58 .pfn
= __phys_to_pfn(GEMINI_GPIO_BASE(2)),
62 .virtual = IO_ADDRESS(GEMINI_FLASH_CTRL_BASE
),
63 .pfn
= __phys_to_pfn(GEMINI_FLASH_CTRL_BASE
),
67 .virtual = IO_ADDRESS(GEMINI_DRAM_CTRL_BASE
),
68 .pfn
= __phys_to_pfn(GEMINI_DRAM_CTRL_BASE
),
72 .virtual = IO_ADDRESS(GEMINI_GENERAL_DMA_BASE
),
73 .pfn
= __phys_to_pfn(GEMINI_GENERAL_DMA_BASE
),
79 void __init
gemini_map_io(void)
81 iotable_init(gemini_io_desc
, ARRAY_SIZE(gemini_io_desc
));