aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-ap4evb.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-shmobile/board-ap4evb.c')
-rw-r--r--arch/arm/mach-shmobile/board-ap4evb.c49
1 files changed, 6 insertions, 43 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index 6e3fab69a5a0..c92c00527123 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
@@ -61,8 +61,6 @@
61 61
62#include <asm/mach-types.h> 62#include <asm/mach-types.h>
63#include <asm/mach/arch.h> 63#include <asm/mach/arch.h>
64#include <asm/mach/map.h>
65#include <asm/mach/time.h>
66#include <asm/setup.h> 64#include <asm/setup.h>
67 65
68/* 66/*
@@ -1190,32 +1188,6 @@ static struct i2c_board_info i2c1_devices[] = {
1190 }, 1188 },
1191}; 1189};
1192 1190
1193static struct map_desc ap4evb_io_desc[] __initdata = {
1194 /* create a 1:1 entity map for 0xe6xxxxxx
1195 * used by CPGA, INTC and PFC.
1196 */
1197 {
1198 .virtual = 0xe6000000,
1199 .pfn = __phys_to_pfn(0xe6000000),
1200 .length = 256 << 20,
1201 .type = MT_DEVICE_NONSHARED
1202 },
1203};
1204
1205static void __init ap4evb_map_io(void)
1206{
1207 iotable_init(ap4evb_io_desc, ARRAY_SIZE(ap4evb_io_desc));
1208
1209 /*
1210 * DMA memory at 0xff200000 - 0xffdfffff. The default 2MB size isn't
1211 * enough to allocate the frame buffer memory.
1212 */
1213 init_consistent_dma_size(12 << 20);
1214
1215 /* setup early devices and console here as well */
1216 sh7372_add_early_devices();
1217 shmobile_setup_console();
1218}
1219 1191
1220#define GPIO_PORT9CR 0xE6051009 1192#define GPIO_PORT9CR 0xE6051009
1221#define GPIO_PORT10CR 0xE605100A 1193#define GPIO_PORT10CR 0xE605100A
@@ -1225,6 +1197,9 @@ static void __init ap4evb_init(void)
1225 u32 srcr4; 1197 u32 srcr4;
1226 struct clk *clk; 1198 struct clk *clk;
1227 1199
1200 /* External clock source */
1201 clk_set_rate(&sh7372_dv_clki_clk, 27000000);
1202
1228 sh7372_pinmux_init(); 1203 sh7372_pinmux_init();
1229 1204
1230 /* enable SCIFA0 */ 1205 /* enable SCIFA0 */
@@ -1461,23 +1436,11 @@ static void __init ap4evb_init(void)
1461 pm_clk_add(&lcdc1_device.dev, "hdmi"); 1436 pm_clk_add(&lcdc1_device.dev, "hdmi");
1462} 1437}
1463 1438
1464static void __init ap4evb_timer_init(void)
1465{
1466 sh7372_clock_init();
1467 shmobile_timer.init();
1468
1469 /* External clock source */
1470 clk_set_rate(&sh7372_dv_clki_clk, 27000000);
1471}
1472
1473static struct sys_timer ap4evb_timer = {
1474 .init = ap4evb_timer_init,
1475};
1476
1477MACHINE_START(AP4EVB, "ap4evb") 1439MACHINE_START(AP4EVB, "ap4evb")
1478 .map_io = ap4evb_map_io, 1440 .map_io = sh7372_map_io,
1441 .init_early = sh7372_add_early_devices,
1479 .init_irq = sh7372_init_irq, 1442 .init_irq = sh7372_init_irq,
1480 .handle_irq = shmobile_handle_irq_intc, 1443 .handle_irq = shmobile_handle_irq_intc,
1481 .init_machine = ap4evb_init, 1444 .init_machine = ap4evb_init,
1482 .timer = &ap4evb_timer, 1445 .timer = &shmobile_timer,
1483MACHINE_END 1446MACHINE_END