Skip to content

Commit

Permalink
ARM: shmobile: Rework adding devices to PM domains on AP4EVB
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Magnus Damm <[email protected]>
  • Loading branch information
rjwysocki committed Sep 3, 2012
1 parent ac18e02 commit 201dbd8
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions arch/arm/mach-shmobile/board-ap4evb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,15 @@ static struct i2c_board_info i2c1_devices[] = {
#define USCCR1 0xE6058144
static void __init ap4evb_init(void)
{
struct pm_domain_device domain_devices[] = {
{ "A4LC", &lcdc1_device, },
{ "A4LC", &lcdc_device, },
{ "A4MP", &fsi_device, },
{ "A3SP", &sh_mmcif_device, },
{ "A3SP", &sdhi0_device, },
{ "A3SP", &sdhi1_device, },
{ "A4R", &ceu_device, },
};
u32 srcr4;
struct clk *clk;

Expand Down Expand Up @@ -1461,14 +1470,8 @@ static void __init ap4evb_init(void)

platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices));

rmobile_add_device_to_domain("A4LC", &lcdc1_device);
rmobile_add_device_to_domain("A4LC", &lcdc_device);
rmobile_add_device_to_domain("A4MP", &fsi_device);

rmobile_add_device_to_domain("A3SP", &sh_mmcif_device);
rmobile_add_device_to_domain("A3SP", &sdhi0_device);
rmobile_add_device_to_domain("A3SP", &sdhi1_device);
rmobile_add_device_to_domain("A4R", &ceu_device);
rmobile_add_devices_to_domains(domain_devices,
ARRAY_SIZE(domain_devices));

hdmi_init_pm_clock();
fsi_init_pm_clock();
Expand Down

0 comments on commit 201dbd8

Please sign in to comment.