aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2012-08-15 14:56:41 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2012-09-03 19:45:00 -0400
commit201dbd8110164d817e73c5602dd4d358d7fc535a (patch)
treedbab9992736b5e8aa60773c4e40f4be7a8146ffd /arch/arm
parentac18e02dc022a5413219f41d000bc637c7c5d957 (diff)
ARM: shmobile: Rework adding devices to PM domains on AP4EVB
Use the function rmobile_add_devices_to_domains() introduced previously for adding devices to PM domains during the AP4EVB initialization instead of a series of rmobile_add_device_to_domain*() calls. This also causes the default device PM QoS latencies to be used on that board in analogy with Mackerel. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Magnus Damm <damm@opensource.se>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-shmobile/board-ap4evb.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index b85957ad948b..5168a0338cf4 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
@@ -1229,6 +1229,15 @@ static struct i2c_board_info i2c1_devices[] = {
1229#define USCCR1 0xE6058144 1229#define USCCR1 0xE6058144
1230static void __init ap4evb_init(void) 1230static void __init ap4evb_init(void)
1231{ 1231{
1232 struct pm_domain_device domain_devices[] = {
1233 { "A4LC", &lcdc1_device, },
1234 { "A4LC", &lcdc_device, },
1235 { "A4MP", &fsi_device, },
1236 { "A3SP", &sh_mmcif_device, },
1237 { "A3SP", &sdhi0_device, },
1238 { "A3SP", &sdhi1_device, },
1239 { "A4R", &ceu_device, },
1240 };
1232 u32 srcr4; 1241 u32 srcr4;
1233 struct clk *clk; 1242 struct clk *clk;
1234 1243
@@ -1461,14 +1470,8 @@ static void __init ap4evb_init(void)
1461 1470
1462 platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices)); 1471 platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices));
1463 1472
1464 rmobile_add_device_to_domain("A4LC", &lcdc1_device); 1473 rmobile_add_devices_to_domains(domain_devices,
1465 rmobile_add_device_to_domain("A4LC", &lcdc_device); 1474 ARRAY_SIZE(domain_devices));
1466 rmobile_add_device_to_domain("A4MP", &fsi_device);
1467
1468 rmobile_add_device_to_domain("A3SP", &sh_mmcif_device);
1469 rmobile_add_device_to_domain("A3SP", &sdhi0_device);
1470 rmobile_add_device_to_domain("A3SP", &sdhi1_device);
1471 rmobile_add_device_to_domain("A4R", &ceu_device);
1472 1475
1473 hdmi_init_pm_clock(); 1476 hdmi_init_pm_clock();
1474 fsi_init_pm_clock(); 1477 fsi_init_pm_clock();