aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-shmobile/board-armadillo800eva.c8
-rw-r--r--arch/arm/mach-shmobile/board-mackerel.c2
-rw-r--r--arch/arm/mach-shmobile/pm-r8a7740.c10
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7740.c26
-rw-r--r--arch/arm/mach-shmobile/setup-sh7372.c2
5 files changed, 27 insertions, 21 deletions
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c
index 6dbaad611a92..e70983534403 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva.c
@@ -1231,6 +1231,10 @@ clock_error:
1231#define GPIO_PORT8CR IOMEM(0xe6050008) 1231#define GPIO_PORT8CR IOMEM(0xe6050008)
1232static void __init eva_init(void) 1232static void __init eva_init(void)
1233{ 1233{
1234 static struct pm_domain_device domain_devices[] __initdata = {
1235 { "A4LC", &lcdc0_device },
1236 { "A4LC", &hdmi_lcdc_device },
1237 };
1234 struct platform_device *usb = NULL; 1238 struct platform_device *usb = NULL;
1235 1239
1236 regulator_register_always_on(0, "fixed-3.3V", fixed3v3_power_consumers, 1240 regulator_register_always_on(0, "fixed-3.3V", fixed3v3_power_consumers,
@@ -1316,8 +1320,8 @@ static void __init eva_init(void)
1316 platform_add_devices(eva_devices, 1320 platform_add_devices(eva_devices,
1317 ARRAY_SIZE(eva_devices)); 1321 ARRAY_SIZE(eva_devices));
1318 1322
1319 rmobile_add_device_to_domain("A4LC", &lcdc0_device); 1323 rmobile_add_devices_to_domains(domain_devices,
1320 rmobile_add_device_to_domain("A4LC", &hdmi_lcdc_device); 1324 ARRAY_SIZE(domain_devices));
1321 if (usb) 1325 if (usb)
1322 rmobile_add_device_to_domain("A3SP", usb); 1326 rmobile_add_device_to_domain("A3SP", usb);
1323 1327
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c
index 79f448e93abb..d47b2623267b 100644
--- a/arch/arm/mach-shmobile/board-mackerel.c
+++ b/arch/arm/mach-shmobile/board-mackerel.c
@@ -1420,7 +1420,7 @@ static const struct pinctrl_map mackerel_pinctrl_map[] = {
1420#define USCCR1 IOMEM(0xE6058144) 1420#define USCCR1 IOMEM(0xE6058144)
1421static void __init mackerel_init(void) 1421static void __init mackerel_init(void)
1422{ 1422{
1423 struct pm_domain_device domain_devices[] = { 1423 static struct pm_domain_device domain_devices[] __initdata = {
1424 { "A4LC", &lcdc_device, }, 1424 { "A4LC", &lcdc_device, },
1425 { "A4LC", &hdmi_lcdc_device, }, 1425 { "A4LC", &hdmi_lcdc_device, },
1426 { "A4LC", &meram_device, }, 1426 { "A4LC", &meram_device, },
diff --git a/arch/arm/mach-shmobile/pm-r8a7740.c b/arch/arm/mach-shmobile/pm-r8a7740.c
index a0d44d537fa0..3d507149a6c4 100644
--- a/arch/arm/mach-shmobile/pm-r8a7740.c
+++ b/arch/arm/mach-shmobile/pm-r8a7740.c
@@ -34,23 +34,21 @@ static int r8a7740_pd_a3sp_suspend(void)
34 34
35static struct rmobile_pm_domain r8a7740_pm_domains[] = { 35static struct rmobile_pm_domain r8a7740_pm_domains[] = {
36 { 36 {
37 .genpd.name = "A4LC",
38 .bit_shift = 1,
39 }, {
37 .genpd.name = "A4S", 40 .genpd.name = "A4S",
38 .bit_shift = 10, 41 .bit_shift = 10,
39 .gov = &pm_domain_always_on_gov, 42 .gov = &pm_domain_always_on_gov,
40 .no_debug = true, 43 .no_debug = true,
41 .suspend = r8a7740_pd_a4s_suspend, 44 .suspend = r8a7740_pd_a4s_suspend,
42 }, 45 }, {
43 {
44 .genpd.name = "A3SP", 46 .genpd.name = "A3SP",
45 .bit_shift = 11, 47 .bit_shift = 11,
46 .gov = &pm_domain_always_on_gov, 48 .gov = &pm_domain_always_on_gov,
47 .no_debug = true, 49 .no_debug = true,
48 .suspend = r8a7740_pd_a3sp_suspend, 50 .suspend = r8a7740_pd_a3sp_suspend,
49 }, 51 },
50 {
51 .genpd.name = "A4LC",
52 .bit_shift = 1,
53 },
54}; 52};
55 53
56void __init r8a7740_init_pm_domains(void) 54void __init r8a7740_init_pm_domains(void)
diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c
index 3d5eacaba3e6..30df532fcaa0 100644
--- a/arch/arm/mach-shmobile/setup-r8a7740.c
+++ b/arch/arm/mach-shmobile/setup-r8a7740.c
@@ -747,6 +747,19 @@ static void r8a7740_i2c_workaround(struct platform_device *pdev)
747 747
748void __init r8a7740_add_standard_devices(void) 748void __init r8a7740_add_standard_devices(void)
749{ 749{
750 static struct pm_domain_device domain_devices[] __initdata = {
751 { "A3SP", &scif0_device },
752 { "A3SP", &scif1_device },
753 { "A3SP", &scif2_device },
754 { "A3SP", &scif3_device },
755 { "A3SP", &scif4_device },
756 { "A3SP", &scif5_device },
757 { "A3SP", &scif6_device },
758 { "A3SP", &scif7_device },
759 { "A3SP", &scif8_device },
760 { "A3SP", &i2c1_device },
761 };
762
750 /* I2C work-around */ 763 /* I2C work-around */
751 r8a7740_i2c_workaround(&i2c0_device); 764 r8a7740_i2c_workaround(&i2c0_device);
752 r8a7740_i2c_workaround(&i2c1_device); 765 r8a7740_i2c_workaround(&i2c1_device);
@@ -762,17 +775,8 @@ void __init r8a7740_add_standard_devices(void)
762 ARRAY_SIZE(r8a7740_late_devices)); 775 ARRAY_SIZE(r8a7740_late_devices));
763 776
764 /* add devices to PM domain */ 777 /* add devices to PM domain */
765 778 rmobile_add_devices_to_domains(domain_devices,
766 rmobile_add_device_to_domain("A3SP", &scif0_device); 779 ARRAY_SIZE(domain_devices));
767 rmobile_add_device_to_domain("A3SP", &scif1_device);
768 rmobile_add_device_to_domain("A3SP", &scif2_device);
769 rmobile_add_device_to_domain("A3SP", &scif3_device);
770 rmobile_add_device_to_domain("A3SP", &scif4_device);
771 rmobile_add_device_to_domain("A3SP", &scif5_device);
772 rmobile_add_device_to_domain("A3SP", &scif6_device);
773 rmobile_add_device_to_domain("A3SP", &scif7_device);
774 rmobile_add_device_to_domain("A3SP", &scif8_device);
775 rmobile_add_device_to_domain("A3SP", &i2c1_device);
776} 780}
777 781
778void __init r8a7740_add_early_devices(void) 782void __init r8a7740_add_early_devices(void)
diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c
index 9cdfcdfd38fc..a04fa5fd00fd 100644
--- a/arch/arm/mach-shmobile/setup-sh7372.c
+++ b/arch/arm/mach-shmobile/setup-sh7372.c
@@ -927,7 +927,7 @@ static struct platform_device *sh7372_late_devices[] __initdata = {
927 927
928void __init sh7372_add_standard_devices(void) 928void __init sh7372_add_standard_devices(void)
929{ 929{
930 struct pm_domain_device domain_devices[] = { 930 static struct pm_domain_device domain_devices[] __initdata = {
931 { "A3RV", &vpu_device, }, 931 { "A3RV", &vpu_device, },
932 { "A4MP", &spu0_device, }, 932 { "A4MP", &spu0_device, },
933 { "A4MP", &spu1_device, }, 933 { "A4MP", &spu1_device, },