diff options
Diffstat (limited to 'arch/arm/mach-shmobile/board-mackerel.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 44 |
1 files changed, 6 insertions, 38 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index a2813247b455..55da7a115912 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -57,8 +57,6 @@ | |||
57 | #include <mach/sh7372.h> | 57 | #include <mach/sh7372.h> |
58 | 58 | ||
59 | #include <asm/mach/arch.h> | 59 | #include <asm/mach/arch.h> |
60 | #include <asm/mach/time.h> | ||
61 | #include <asm/mach/map.h> | ||
62 | #include <asm/mach-types.h> | 60 | #include <asm/mach-types.h> |
63 | 61 | ||
64 | /* | 62 | /* |
@@ -1337,27 +1335,6 @@ static struct i2c_board_info i2c1_devices[] = { | |||
1337 | }, | 1335 | }, |
1338 | }; | 1336 | }; |
1339 | 1337 | ||
1340 | static struct map_desc mackerel_io_desc[] __initdata = { | ||
1341 | /* create a 1:1 entity map for 0xe6xxxxxx | ||
1342 | * used by CPGA, INTC and PFC. | ||
1343 | */ | ||
1344 | { | ||
1345 | .virtual = 0xe6000000, | ||
1346 | .pfn = __phys_to_pfn(0xe6000000), | ||
1347 | .length = 256 << 20, | ||
1348 | .type = MT_DEVICE_NONSHARED | ||
1349 | }, | ||
1350 | }; | ||
1351 | |||
1352 | static void __init mackerel_map_io(void) | ||
1353 | { | ||
1354 | iotable_init(mackerel_io_desc, ARRAY_SIZE(mackerel_io_desc)); | ||
1355 | |||
1356 | /* setup early devices and console here as well */ | ||
1357 | sh7372_add_early_devices(); | ||
1358 | shmobile_setup_console(); | ||
1359 | } | ||
1360 | |||
1361 | #define GPIO_PORT9CR 0xE6051009 | 1338 | #define GPIO_PORT9CR 0xE6051009 |
1362 | #define GPIO_PORT10CR 0xE605100A | 1339 | #define GPIO_PORT10CR 0xE605100A |
1363 | #define GPIO_PORT167CR 0xE60520A7 | 1340 | #define GPIO_PORT167CR 0xE60520A7 |
@@ -1370,6 +1347,9 @@ static void __init mackerel_init(void) | |||
1370 | struct clk *clk; | 1347 | struct clk *clk; |
1371 | int ret; | 1348 | int ret; |
1372 | 1349 | ||
1350 | /* External clock source */ | ||
1351 | clk_set_rate(&sh7372_dv_clki_clk, 27000000); | ||
1352 | |||
1373 | sh7372_pinmux_init(); | 1353 | sh7372_pinmux_init(); |
1374 | 1354 | ||
1375 | /* enable SCIFA0 */ | 1355 | /* enable SCIFA0 */ |
@@ -1573,23 +1553,11 @@ static void __init mackerel_init(void) | |||
1573 | pm_clk_add(&hdmi_lcdc_device.dev, "hdmi"); | 1553 | pm_clk_add(&hdmi_lcdc_device.dev, "hdmi"); |
1574 | } | 1554 | } |
1575 | 1555 | ||
1576 | static void __init mackerel_timer_init(void) | ||
1577 | { | ||
1578 | sh7372_clock_init(); | ||
1579 | shmobile_timer.init(); | ||
1580 | |||
1581 | /* External clock source */ | ||
1582 | clk_set_rate(&sh7372_dv_clki_clk, 27000000); | ||
1583 | } | ||
1584 | |||
1585 | static struct sys_timer mackerel_timer = { | ||
1586 | .init = mackerel_timer_init, | ||
1587 | }; | ||
1588 | |||
1589 | MACHINE_START(MACKEREL, "mackerel") | 1556 | MACHINE_START(MACKEREL, "mackerel") |
1590 | .map_io = mackerel_map_io, | 1557 | .map_io = sh7372_map_io, |
1558 | .init_early = sh7372_add_early_devices, | ||
1591 | .init_irq = sh7372_init_irq, | 1559 | .init_irq = sh7372_init_irq, |
1592 | .handle_irq = shmobile_handle_irq_intc, | 1560 | .handle_irq = shmobile_handle_irq_intc, |
1593 | .init_machine = mackerel_init, | 1561 | .init_machine = mackerel_init, |
1594 | .timer = &mackerel_timer, | 1562 | .timer = &shmobile_timer, |
1595 | MACHINE_END | 1563 | MACHINE_END |