diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2012-09-17 14:25:47 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-09-17 14:25:47 -0400 |
commit | cf899680feb87af09ea18eea87aa03ea56afd9ba (patch) | |
tree | 8e61cfc66e74b21928cfd8d69584d3324e7c31c2 /arch/arm/mach-shmobile/board-mackerel.c | |
parent | d6a56ae7ac6121ef99500b3380e98f83a3d9e102 (diff) | |
parent | caaca999d335872a53b3fff8fa5af2de794d16a1 (diff) |
Merge branch 'pm-shmobile'
* pm-shmobile:
ARM: shmobile: Add A4S cpuidle state on sh7372
ARM: shmobile: Make sh7372 cpuidle handling more straightforward
ARM: shmobile: Move definition of shmobile_init_late() to header
ARM: shmobile: Remove the console check from sh7372_enter_suspend()
ARM: shmobile: Rework adding devices to PM domains on AP4EVB
ARM: shmobile: Rework adding devices to PM domains on Mackerel
ARM: shmobile: Specify device latencies for Mackerel devices directly
ARM: shmobile: Specify device latencies for SH7372 devices directly
ARM: shmobile: Allow device latencies to be specified directly
ARM: shmobile: Set PM domain on/off latencies directly
ARM: shmobile: Make rmobile_init_pm_domain() static
ARM: shmobile: Move r8a7779's PM domain objects to a table
ARM: shmobile: Move r8a7740's PM domain objects to a table
ARM: shmobile: Move sh7372's PM domain objects to a table
ARM: shmobile: Do not access sh7372 A4S domain internals directly
ARM: shmobile: Add routine for automatic PM domains initialization
ARM: shmobile: Use domain names when adding subdomains to power domains
ARM: shmobile: Drop r8a7779_add_device_to_domain()
ARM: shmobile: Use names of power domains for adding devices to them
Diffstat (limited to 'arch/arm/mach-shmobile/board-mackerel.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index c129542f6aed..c76776a3e70d 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -1410,6 +1410,22 @@ static struct i2c_board_info i2c1_devices[] = { | |||
1410 | #define USCCR1 0xE6058144 | 1410 | #define USCCR1 0xE6058144 |
1411 | static void __init mackerel_init(void) | 1411 | static void __init mackerel_init(void) |
1412 | { | 1412 | { |
1413 | struct pm_domain_device domain_devices[] = { | ||
1414 | { "A4LC", &lcdc_device, }, | ||
1415 | { "A4LC", &hdmi_lcdc_device, }, | ||
1416 | { "A4LC", &meram_device, }, | ||
1417 | { "A4MP", &fsi_device, }, | ||
1418 | { "A3SP", &usbhs0_device, }, | ||
1419 | { "A3SP", &usbhs1_device, }, | ||
1420 | { "A3SP", &nand_flash_device, }, | ||
1421 | { "A3SP", &sh_mmcif_device, }, | ||
1422 | { "A3SP", &sdhi0_device, }, | ||
1423 | #if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE) | ||
1424 | { "A3SP", &sdhi1_device, }, | ||
1425 | #endif | ||
1426 | { "A3SP", &sdhi2_device, }, | ||
1427 | { "A4R", &ceu_device, }, | ||
1428 | }; | ||
1413 | u32 srcr4; | 1429 | u32 srcr4; |
1414 | struct clk *clk; | 1430 | struct clk *clk; |
1415 | 1431 | ||
@@ -1624,20 +1640,8 @@ static void __init mackerel_init(void) | |||
1624 | 1640 | ||
1625 | platform_add_devices(mackerel_devices, ARRAY_SIZE(mackerel_devices)); | 1641 | platform_add_devices(mackerel_devices, ARRAY_SIZE(mackerel_devices)); |
1626 | 1642 | ||
1627 | rmobile_add_device_to_domain(&sh7372_pd_a4lc, &lcdc_device); | 1643 | rmobile_add_devices_to_domains(domain_devices, |
1628 | rmobile_add_device_to_domain(&sh7372_pd_a4lc, &hdmi_lcdc_device); | 1644 | ARRAY_SIZE(domain_devices)); |
1629 | rmobile_add_device_to_domain(&sh7372_pd_a4lc, &meram_device); | ||
1630 | rmobile_add_device_to_domain(&sh7372_pd_a4mp, &fsi_device); | ||
1631 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &usbhs0_device); | ||
1632 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &usbhs1_device); | ||
1633 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &nand_flash_device); | ||
1634 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &sh_mmcif_device); | ||
1635 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &sdhi0_device); | ||
1636 | #if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE) | ||
1637 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &sdhi1_device); | ||
1638 | #endif | ||
1639 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &sdhi2_device); | ||
1640 | rmobile_add_device_to_domain(&sh7372_pd_a4r, &ceu_device); | ||
1641 | 1645 | ||
1642 | hdmi_init_pm_clock(); | 1646 | hdmi_init_pm_clock(); |
1643 | sh7372_pm_init(); | 1647 | sh7372_pm_init(); |
@@ -1651,6 +1655,6 @@ MACHINE_START(MACKEREL, "mackerel") | |||
1651 | .init_irq = sh7372_init_irq, | 1655 | .init_irq = sh7372_init_irq, |
1652 | .handle_irq = shmobile_handle_irq_intc, | 1656 | .handle_irq = shmobile_handle_irq_intc, |
1653 | .init_machine = mackerel_init, | 1657 | .init_machine = mackerel_init, |
1654 | .init_late = shmobile_init_late, | 1658 | .init_late = sh7372_pm_init_late, |
1655 | .timer = &shmobile_timer, | 1659 | .timer = &shmobile_timer, |
1656 | MACHINE_END | 1660 | MACHINE_END |