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.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index 803bc6edfca..523f608eb8c 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
@@ -443,7 +443,7 @@ static struct platform_device usb1_host_device = {
443 .resource = usb1_host_resources, 443 .resource = usb1_host_resources,
444}; 444};
445 445
446const static struct fb_videomode ap4evb_lcdc_modes[] = { 446static const struct fb_videomode ap4evb_lcdc_modes[] = {
447 { 447 {
448#ifdef CONFIG_AP4EVB_QHD 448#ifdef CONFIG_AP4EVB_QHD
449 .name = "R63302(QHD)", 449 .name = "R63302(QHD)",
@@ -957,19 +957,16 @@ static struct resource csi2_resources[] = {
957 }, 957 },
958}; 958};
959 959
960static struct platform_device csi2_device = { 960static struct sh_mobile_ceu_companion csi2 = {
961 .name = "sh-mobile-csi2", 961 .id = 0,
962 .id = 0,
963 .num_resources = ARRAY_SIZE(csi2_resources), 962 .num_resources = ARRAY_SIZE(csi2_resources),
964 .resource = csi2_resources, 963 .resource = csi2_resources,
965 .dev = { 964 .platform_data = &csi2_info,
966 .platform_data = &csi2_info,
967 },
968}; 965};
969 966
970static struct sh_mobile_ceu_info sh_mobile_ceu_info = { 967static struct sh_mobile_ceu_info sh_mobile_ceu_info = {
971 .flags = SH_CEU_FLAG_USE_8BIT_BUS, 968 .flags = SH_CEU_FLAG_USE_8BIT_BUS,
972 .csi2_dev = &csi2_device.dev, 969 .csi2 = &csi2,
973}; 970};
974 971
975static struct resource ceu_resources[] = { 972static struct resource ceu_resources[] = {
@@ -1013,7 +1010,6 @@ static struct platform_device *ap4evb_devices[] __initdata = {
1013 &lcdc1_device, 1010 &lcdc1_device,
1014 &lcdc_device, 1011 &lcdc_device,
1015 &hdmi_device, 1012 &hdmi_device,
1016 &csi2_device,
1017 &ceu_device, 1013 &ceu_device,
1018 &ap4evb_camera, 1014 &ap4evb_camera,
1019 &meram_device, 1015 &meram_device,
@@ -1408,9 +1404,15 @@ static void __init ap4evb_init(void)
1408 1404
1409 platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices)); 1405 platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices));
1410 1406
1407 sh7372_add_device_to_domain(&sh7372_a4lc, &lcdc1_device);
1408 sh7372_add_device_to_domain(&sh7372_a4lc, &lcdc_device);
1409 sh7372_add_device_to_domain(&sh7372_a4mp, &fsi_device);
1410
1411 hdmi_init_pm_clock(); 1411 hdmi_init_pm_clock();
1412 fsi_init_pm_clock(); 1412 fsi_init_pm_clock();
1413 sh7372_pm_init(); 1413 sh7372_pm_init();
1414 pm_clk_add(&fsi_device.dev, "spu2");
1415 pm_clk_add(&lcdc1_device.dev, "hdmi");
1414} 1416}
1415 1417
1416static void __init ap4evb_timer_init(void) 1418static void __init ap4evb_timer_init(void)