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.c58
1 files changed, 9 insertions, 49 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index aab0a349f759..4739f039650a 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/*
@@ -295,15 +293,6 @@ static struct resource sh_mmcif_resources[] = {
295 }, 293 },
296}; 294};
297 295
298static struct sh_mmcif_dma sh_mmcif_dma = {
299 .chan_priv_rx = {
300 .slave_id = SHDMA_SLAVE_MMCIF_RX,
301 },
302 .chan_priv_tx = {
303 .slave_id = SHDMA_SLAVE_MMCIF_TX,
304 },
305};
306
307static struct sh_mmcif_plat_data sh_mmcif_plat = { 296static struct sh_mmcif_plat_data sh_mmcif_plat = {
308 .sup_pclk = 0, 297 .sup_pclk = 0,
309 .ocr = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34, 298 .ocr = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34,
@@ -311,7 +300,8 @@ static struct sh_mmcif_plat_data sh_mmcif_plat = {
311 MMC_CAP_8_BIT_DATA | 300 MMC_CAP_8_BIT_DATA |
312 MMC_CAP_NEEDS_POLL, 301 MMC_CAP_NEEDS_POLL,
313 .get_cd = slot_cn7_get_cd, 302 .get_cd = slot_cn7_get_cd,
314 .dma = &sh_mmcif_dma, 303 .slave_id_tx = SHDMA_SLAVE_MMCIF_TX,
304 .slave_id_rx = SHDMA_SLAVE_MMCIF_RX,
315}; 305};
316 306
317static struct platform_device sh_mmcif_device = { 307static struct platform_device sh_mmcif_device = {
@@ -802,7 +792,7 @@ static struct fsi_ak4642_info fsi2_ak4643_info = {
802static struct platform_device fsi_ak4643_device = { 792static struct platform_device fsi_ak4643_device = {
803 .name = "fsi-ak4642-audio", 793 .name = "fsi-ak4642-audio",
804 .dev = { 794 .dev = {
805 .platform_data = &fsi_info, 795 .platform_data = &fsi2_ak4643_info,
806 }, 796 },
807}; 797};
808 798
@@ -1198,27 +1188,6 @@ static struct i2c_board_info i2c1_devices[] = {
1198 }, 1188 },
1199}; 1189};
1200 1190
1201static struct map_desc ap4evb_io_desc[] __initdata = {
1202 /* create a 1:1 entity map for 0xe6xxxxxx
1203 * used by CPGA, INTC and PFC.
1204 */
1205 {
1206 .virtual = 0xe6000000,
1207 .pfn = __phys_to_pfn(0xe6000000),
1208 .length = 256 << 20,
1209 .type = MT_DEVICE_NONSHARED
1210 },
1211};
1212
1213static void __init ap4evb_map_io(void)
1214{
1215 iotable_init(ap4evb_io_desc, ARRAY_SIZE(ap4evb_io_desc));
1216
1217 /* setup early devices and console here as well */
1218 sh7372_add_early_devices();
1219 shmobile_setup_console();
1220}
1221
1222#define GPIO_PORT9CR 0xE6051009 1191#define GPIO_PORT9CR 0xE6051009
1223#define GPIO_PORT10CR 0xE605100A 1192#define GPIO_PORT10CR 0xE605100A
1224#define USCCR1 0xE6058144 1193#define USCCR1 0xE6058144
@@ -1227,6 +1196,9 @@ static void __init ap4evb_init(void)
1227 u32 srcr4; 1196 u32 srcr4;
1228 struct clk *clk; 1197 struct clk *clk;
1229 1198
1199 /* External clock source */
1200 clk_set_rate(&sh7372_dv_clki_clk, 27000000);
1201
1230 sh7372_pinmux_init(); 1202 sh7372_pinmux_init();
1231 1203
1232 /* enable SCIFA0 */ 1204 /* enable SCIFA0 */
@@ -1463,23 +1435,11 @@ static void __init ap4evb_init(void)
1463 pm_clk_add(&lcdc1_device.dev, "hdmi"); 1435 pm_clk_add(&lcdc1_device.dev, "hdmi");
1464} 1436}
1465 1437
1466static void __init ap4evb_timer_init(void)
1467{
1468 sh7372_clock_init();
1469 shmobile_timer.init();
1470
1471 /* External clock source */
1472 clk_set_rate(&sh7372_dv_clki_clk, 27000000);
1473}
1474
1475static struct sys_timer ap4evb_timer = {
1476 .init = ap4evb_timer_init,
1477};
1478
1479MACHINE_START(AP4EVB, "ap4evb") 1438MACHINE_START(AP4EVB, "ap4evb")
1480 .map_io = ap4evb_map_io, 1439 .map_io = sh7372_map_io,
1440 .init_early = sh7372_add_early_devices,
1481 .init_irq = sh7372_init_irq, 1441 .init_irq = sh7372_init_irq,
1482 .handle_irq = shmobile_handle_irq_intc, 1442 .handle_irq = shmobile_handle_irq_intc,
1483 .init_machine = ap4evb_init, 1443 .init_machine = ap4evb_init,
1484 .timer = &ap4evb_timer, 1444 .timer = &shmobile_timer,
1485MACHINE_END 1445MACHINE_END