diff options
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 16 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-armadillo800eva.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 24 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/pm-rmobile.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/pm-rmobile.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7740.c | 20 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-sh7372.c | 48 |
7 files changed, 61 insertions, 61 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index f172ca85905c..b85957ad948b 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
@@ -1461,14 +1461,14 @@ static void __init ap4evb_init(void) | |||
1461 | 1461 | ||
1462 | platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices)); | 1462 | platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices)); |
1463 | 1463 | ||
1464 | rmobile_add_device_to_domain(&sh7372_pd_a4lc, &lcdc1_device); | 1464 | rmobile_add_device_to_domain("A4LC", &lcdc1_device); |
1465 | rmobile_add_device_to_domain(&sh7372_pd_a4lc, &lcdc_device); | 1465 | rmobile_add_device_to_domain("A4LC", &lcdc_device); |
1466 | rmobile_add_device_to_domain(&sh7372_pd_a4mp, &fsi_device); | 1466 | rmobile_add_device_to_domain("A4MP", &fsi_device); |
1467 | 1467 | ||
1468 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &sh_mmcif_device); | 1468 | rmobile_add_device_to_domain("A3SP", &sh_mmcif_device); |
1469 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &sdhi0_device); | 1469 | rmobile_add_device_to_domain("A3SP", &sdhi0_device); |
1470 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &sdhi1_device); | 1470 | rmobile_add_device_to_domain("A3SP", &sdhi1_device); |
1471 | rmobile_add_device_to_domain(&sh7372_pd_a4r, &ceu_device); | 1471 | rmobile_add_device_to_domain("A4R", &ceu_device); |
1472 | 1472 | ||
1473 | hdmi_init_pm_clock(); | 1473 | hdmi_init_pm_clock(); |
1474 | fsi_init_pm_clock(); | 1474 | fsi_init_pm_clock(); |
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index cf10f92856dc..28e6e1d0d511 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c | |||
@@ -1181,10 +1181,10 @@ static void __init eva_init(void) | |||
1181 | 1181 | ||
1182 | eva_clock_init(); | 1182 | eva_clock_init(); |
1183 | 1183 | ||
1184 | rmobile_add_device_to_domain(&r8a7740_pd_a4lc, &lcdc0_device); | 1184 | rmobile_add_device_to_domain("A4LC", &lcdc0_device); |
1185 | rmobile_add_device_to_domain(&r8a7740_pd_a4lc, &hdmi_lcdc_device); | 1185 | rmobile_add_device_to_domain("A4LC", &hdmi_lcdc_device); |
1186 | if (usb) | 1186 | if (usb) |
1187 | rmobile_add_device_to_domain(&r8a7740_pd_a3sp, usb); | 1187 | rmobile_add_device_to_domain("A3SP", usb); |
1188 | } | 1188 | } |
1189 | 1189 | ||
1190 | static void __init eva_earlytimer_init(void) | 1190 | static void __init eva_earlytimer_init(void) |
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 7ea2b31e3199..954b02e3bb18 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -1623,20 +1623,20 @@ static void __init mackerel_init(void) | |||
1623 | 1623 | ||
1624 | platform_add_devices(mackerel_devices, ARRAY_SIZE(mackerel_devices)); | 1624 | platform_add_devices(mackerel_devices, ARRAY_SIZE(mackerel_devices)); |
1625 | 1625 | ||
1626 | rmobile_add_device_to_domain(&sh7372_pd_a4lc, &lcdc_device); | 1626 | rmobile_add_device_to_domain("A4LC", &lcdc_device); |
1627 | rmobile_add_device_to_domain(&sh7372_pd_a4lc, &hdmi_lcdc_device); | 1627 | rmobile_add_device_to_domain("A4LC", &hdmi_lcdc_device); |
1628 | rmobile_add_device_to_domain(&sh7372_pd_a4lc, &meram_device); | 1628 | rmobile_add_device_to_domain("A4LC", &meram_device); |
1629 | rmobile_add_device_to_domain(&sh7372_pd_a4mp, &fsi_device); | 1629 | rmobile_add_device_to_domain("A4MP", &fsi_device); |
1630 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &usbhs0_device); | 1630 | rmobile_add_device_to_domain("A3SP", &usbhs0_device); |
1631 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &usbhs1_device); | 1631 | rmobile_add_device_to_domain("A3SP", &usbhs1_device); |
1632 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &nand_flash_device); | 1632 | rmobile_add_device_to_domain("A3SP", &nand_flash_device); |
1633 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &sh_mmcif_device); | 1633 | rmobile_add_device_to_domain("A3SP", &sh_mmcif_device); |
1634 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &sdhi0_device); | 1634 | rmobile_add_device_to_domain("A3SP", &sdhi0_device); |
1635 | #if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE) | 1635 | #if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE) |
1636 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &sdhi1_device); | 1636 | rmobile_add_device_to_domain("A3SP", &sdhi1_device); |
1637 | #endif | 1637 | #endif |
1638 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &sdhi2_device); | 1638 | rmobile_add_device_to_domain("A3SP", &sdhi2_device); |
1639 | rmobile_add_device_to_domain(&sh7372_pd_a4r, &ceu_device); | 1639 | rmobile_add_device_to_domain("A4R", &ceu_device); |
1640 | 1640 | ||
1641 | hdmi_init_pm_clock(); | 1641 | hdmi_init_pm_clock(); |
1642 | sh7372_pm_init(); | 1642 | sh7372_pm_init(); |
diff --git a/arch/arm/mach-shmobile/include/mach/pm-rmobile.h b/arch/arm/mach-shmobile/include/mach/pm-rmobile.h index 5a402840fe28..0c25fc982686 100644 --- a/arch/arm/mach-shmobile/include/mach/pm-rmobile.h +++ b/arch/arm/mach-shmobile/include/mach/pm-rmobile.h | |||
@@ -31,13 +31,13 @@ struct rmobile_pm_domain *to_rmobile_pd(struct generic_pm_domain *d) | |||
31 | 31 | ||
32 | #ifdef CONFIG_PM | 32 | #ifdef CONFIG_PM |
33 | extern void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd); | 33 | extern void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd); |
34 | extern void rmobile_add_device_to_domain(struct rmobile_pm_domain *rmobile_pd, | 34 | extern void rmobile_add_device_to_domain(const char *domain_name, |
35 | struct platform_device *pdev); | 35 | struct platform_device *pdev); |
36 | extern void rmobile_pm_add_subdomain(struct rmobile_pm_domain *rmobile_pd, | 36 | extern void rmobile_pm_add_subdomain(struct rmobile_pm_domain *rmobile_pd, |
37 | struct rmobile_pm_domain *rmobile_sd); | 37 | struct rmobile_pm_domain *rmobile_sd); |
38 | #else | 38 | #else |
39 | #define rmobile_init_pm_domain(pd) do { } while (0) | 39 | #define rmobile_init_pm_domain(pd) do { } while (0) |
40 | #define rmobile_add_device_to_domain(pd, pdev) do { } while (0) | 40 | #define rmobile_add_device_to_domain(name, pdev) do { } while (0) |
41 | #define rmobile_pm_add_subdomain(pd, sd) do { } while (0) | 41 | #define rmobile_pm_add_subdomain(pd, sd) do { } while (0) |
42 | #endif /* CONFIG_PM */ | 42 | #endif /* CONFIG_PM */ |
43 | 43 | ||
diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index a8562540f1d6..c94056d6a029 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c | |||
@@ -149,12 +149,12 @@ void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) | |||
149 | __rmobile_pd_power_up(rmobile_pd, false); | 149 | __rmobile_pd_power_up(rmobile_pd, false); |
150 | } | 150 | } |
151 | 151 | ||
152 | void rmobile_add_device_to_domain(struct rmobile_pm_domain *rmobile_pd, | 152 | void rmobile_add_device_to_domain(const char *domain_name, |
153 | struct platform_device *pdev) | 153 | struct platform_device *pdev) |
154 | { | 154 | { |
155 | struct device *dev = &pdev->dev; | 155 | struct device *dev = &pdev->dev; |
156 | 156 | ||
157 | pm_genpd_add_device(&rmobile_pd->genpd, dev); | 157 | pm_genpd_name_add_device(domain_name, dev); |
158 | if (pm_clk_no_clocks(dev)) | 158 | if (pm_clk_no_clocks(dev)) |
159 | pm_clk_add(dev, NULL); | 159 | pm_clk_add(dev, NULL); |
160 | } | 160 | } |
diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c index 78948a9dba0e..db7af5685540 100644 --- a/arch/arm/mach-shmobile/setup-r8a7740.c +++ b/arch/arm/mach-shmobile/setup-r8a7740.c | |||
@@ -688,16 +688,16 @@ void __init r8a7740_add_standard_devices(void) | |||
688 | 688 | ||
689 | /* add devices to PM domain */ | 689 | /* add devices to PM domain */ |
690 | 690 | ||
691 | rmobile_add_device_to_domain(&r8a7740_pd_a3sp, &scif0_device); | 691 | rmobile_add_device_to_domain("A3SP", &scif0_device); |
692 | rmobile_add_device_to_domain(&r8a7740_pd_a3sp, &scif1_device); | 692 | rmobile_add_device_to_domain("A3SP", &scif1_device); |
693 | rmobile_add_device_to_domain(&r8a7740_pd_a3sp, &scif2_device); | 693 | rmobile_add_device_to_domain("A3SP", &scif2_device); |
694 | rmobile_add_device_to_domain(&r8a7740_pd_a3sp, &scif3_device); | 694 | rmobile_add_device_to_domain("A3SP", &scif3_device); |
695 | rmobile_add_device_to_domain(&r8a7740_pd_a3sp, &scif4_device); | 695 | rmobile_add_device_to_domain("A3SP", &scif4_device); |
696 | rmobile_add_device_to_domain(&r8a7740_pd_a3sp, &scif5_device); | 696 | rmobile_add_device_to_domain("A3SP", &scif5_device); |
697 | rmobile_add_device_to_domain(&r8a7740_pd_a3sp, &scif6_device); | 697 | rmobile_add_device_to_domain("A3SP", &scif6_device); |
698 | rmobile_add_device_to_domain(&r8a7740_pd_a3sp, &scif7_device); | 698 | rmobile_add_device_to_domain("A3SP", &scif7_device); |
699 | rmobile_add_device_to_domain(&r8a7740_pd_a3sp, &scifb_device); | 699 | rmobile_add_device_to_domain("A3SP", &scifb_device); |
700 | rmobile_add_device_to_domain(&r8a7740_pd_a3sp, &i2c1_device); | 700 | rmobile_add_device_to_domain("A3SP", &i2c1_device); |
701 | } | 701 | } |
702 | 702 | ||
703 | static void __init r8a7740_earlytimer_init(void) | 703 | static void __init r8a7740_earlytimer_init(void) |
diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c index 838a87be1d5c..95f06c8fb855 100644 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c | |||
@@ -1023,30 +1023,30 @@ void __init sh7372_add_standard_devices(void) | |||
1023 | platform_add_devices(sh7372_late_devices, | 1023 | platform_add_devices(sh7372_late_devices, |
1024 | ARRAY_SIZE(sh7372_late_devices)); | 1024 | ARRAY_SIZE(sh7372_late_devices)); |
1025 | 1025 | ||
1026 | rmobile_add_device_to_domain(&sh7372_pd_a3rv, &vpu_device); | 1026 | rmobile_add_device_to_domain("A3RV", &vpu_device); |
1027 | rmobile_add_device_to_domain(&sh7372_pd_a4mp, &spu0_device); | 1027 | rmobile_add_device_to_domain("A4MP", &spu0_device); |
1028 | rmobile_add_device_to_domain(&sh7372_pd_a4mp, &spu1_device); | 1028 | rmobile_add_device_to_domain("A4MP", &spu1_device); |
1029 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &scif0_device); | 1029 | rmobile_add_device_to_domain("A3SP", &scif0_device); |
1030 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &scif1_device); | 1030 | rmobile_add_device_to_domain("A3SP", &scif1_device); |
1031 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &scif2_device); | 1031 | rmobile_add_device_to_domain("A3SP", &scif2_device); |
1032 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &scif3_device); | 1032 | rmobile_add_device_to_domain("A3SP", &scif3_device); |
1033 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &scif4_device); | 1033 | rmobile_add_device_to_domain("A3SP", &scif4_device); |
1034 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &scif5_device); | 1034 | rmobile_add_device_to_domain("A3SP", &scif5_device); |
1035 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &scif6_device); | 1035 | rmobile_add_device_to_domain("A3SP", &scif6_device); |
1036 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &iic1_device); | 1036 | rmobile_add_device_to_domain("A3SP", &iic1_device); |
1037 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &dma0_device); | 1037 | rmobile_add_device_to_domain("A3SP", &dma0_device); |
1038 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &dma1_device); | 1038 | rmobile_add_device_to_domain("A3SP", &dma1_device); |
1039 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &dma2_device); | 1039 | rmobile_add_device_to_domain("A3SP", &dma2_device); |
1040 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &usb_dma0_device); | 1040 | rmobile_add_device_to_domain("A3SP", &usb_dma0_device); |
1041 | rmobile_add_device_to_domain(&sh7372_pd_a3sp, &usb_dma1_device); | 1041 | rmobile_add_device_to_domain("A3SP", &usb_dma1_device); |
1042 | rmobile_add_device_to_domain(&sh7372_pd_a4r, &iic0_device); | 1042 | rmobile_add_device_to_domain("A4R", &iic0_device); |
1043 | rmobile_add_device_to_domain(&sh7372_pd_a4r, &veu0_device); | 1043 | rmobile_add_device_to_domain("A4R", &veu0_device); |
1044 | rmobile_add_device_to_domain(&sh7372_pd_a4r, &veu1_device); | 1044 | rmobile_add_device_to_domain("A4R", &veu1_device); |
1045 | rmobile_add_device_to_domain(&sh7372_pd_a4r, &veu2_device); | 1045 | rmobile_add_device_to_domain("A4R", &veu2_device); |
1046 | rmobile_add_device_to_domain(&sh7372_pd_a4r, &veu3_device); | 1046 | rmobile_add_device_to_domain("A4R", &veu3_device); |
1047 | rmobile_add_device_to_domain(&sh7372_pd_a4r, &jpu_device); | 1047 | rmobile_add_device_to_domain("A4R", &jpu_device); |
1048 | rmobile_add_device_to_domain(&sh7372_pd_a4r, &tmu00_device); | 1048 | rmobile_add_device_to_domain("A4R", &tmu00_device); |
1049 | rmobile_add_device_to_domain(&sh7372_pd_a4r, &tmu01_device); | 1049 | rmobile_add_device_to_domain("A4R", &tmu01_device); |
1050 | } | 1050 | } |
1051 | 1051 | ||
1052 | static void __init sh7372_earlytimer_init(void) | 1052 | static void __init sh7372_earlytimer_init(void) |