ARM: mach-shmobile: sh7372 A4LC support for AP4EVB
authorMagnus Damm <damm@opensource.se>
Fri, 1 Jul 2011 20:14:34 +0000 (22:14 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 2 Jul 2011 12:29:57 +0000 (14:29 +0200)
The AP4EVB board is also using a sh7372 SoC, so tie in
A4LC support on that board as well.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
arch/arm/mach-shmobile/board-ap4evb.c
arch/arm/mach-shmobile/board-mackerel.c
arch/arm/mach-shmobile/setup-sh7372.c

index 803bc6edfca477a6c67634f0ad9c435338b89502..a26f895cdc8938690d16d5f2a54d9c338589577d 100644 (file)
@@ -1408,6 +1408,9 @@ static void __init ap4evb_init(void)
 
        platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices));
 
+       sh7372_add_device_to_domain(&sh7372_a4lc, &lcdc1_device);
+       sh7372_add_device_to_domain(&sh7372_a4lc, &lcdc_device);
+
        hdmi_init_pm_clock();
        fsi_init_pm_clock();
        sh7372_pm_init();
index f93b1cb27fef619dbdb69c1730d59f0eda83bff4..cc1ccd899cde407977420a8bc287a49bef5fe9b9 100644 (file)
@@ -1582,7 +1582,6 @@ static void __init mackerel_init(void)
 
        platform_add_devices(mackerel_devices, ARRAY_SIZE(mackerel_devices));
 
-       sh7372_init_pm_domain(&sh7372_a4lc);
        sh7372_add_device_to_domain(&sh7372_a4lc, &lcdc_device);
        sh7372_add_device_to_domain(&sh7372_a4lc, &hdmi_lcdc_device);
 
index cd807eea69e2e720bf2554dfb6c7c233cab31958..ec1ae8cc9caa488cbe7da1a2c2afb2b456fb94e7 100644 (file)
@@ -841,6 +841,8 @@ static struct platform_device *sh7372_late_devices[] __initdata = {
 
 void __init sh7372_add_standard_devices(void)
 {
+       sh7372_init_pm_domain(&sh7372_a4lc);
+
        platform_add_devices(sh7372_early_devices,
                            ARRAY_SIZE(sh7372_early_devices));