1 /* arch/arm/mach-rk29/io.c
3 * Copyright (C) 2010 ROCKCHIP, Inc.
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
16 #include <linux/kernel.h>
17 #include <linux/init.h>
21 #include <mach/rk29_iomap.h>
22 #include <asm/mach/map.h>
23 #include <mach/board.h>
25 #define RK29_DEVICE(name) { \
26 .virtual = (unsigned long) RK29_##name##_BASE, \
27 .pfn = __phys_to_pfn(RK29_##name##_PHYS), \
28 .length = RK29_##name##_SIZE, \
29 .type = MT_DEVICE_NONSHARED, \
32 static struct map_desc rk29_io_desc[] __initdata = {
60 #ifdef CONFIG_DDR_RECONFIG
71 extern void rk29_boot_mode_init_by_register(void);
72 void __init rk29_map_common_io(void)
74 iotable_init(rk29_io_desc, ARRAY_SIZE(rk29_io_desc));
75 rk29_boot_mode_init_by_register();