diff options
author | Magnus Damm <damm@opensource.se> | 2011-07-01 16:15:01 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-07-02 08:29:58 -0400 |
commit | c47586b6d36ef2d5d7dc39afc44b75e31bc1a671 (patch) | |
tree | 718186022a47b7f9ca51f0d4db8583e074be15e8 | |
parent | 082517aa21c60c06bd2a4c287aab5e1b3d8c7c22 (diff) |
ARM: mach-shmobile: sh7372 A3SG support
Add support for the sh7372 A3SG power domain. This domain contains
the SGX hardware block, but there is no open source driver available.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/sh7372.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/pm-sh7372.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-sh7372.c | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/sh7372.h b/arch/arm/mach-shmobile/include/mach/sh7372.h index b99f3d6f844c..1aed9da92918 100644 --- a/arch/arm/mach-shmobile/include/mach/sh7372.h +++ b/arch/arm/mach-shmobile/include/mach/sh7372.h | |||
@@ -487,6 +487,7 @@ static inline struct sh7372_pm_domain *to_sh7372_pd(struct generic_pm_domain *d) | |||
487 | extern struct sh7372_pm_domain sh7372_a4lc; | 487 | extern struct sh7372_pm_domain sh7372_a4lc; |
488 | extern struct sh7372_pm_domain sh7372_a3rv; | 488 | extern struct sh7372_pm_domain sh7372_a3rv; |
489 | extern struct sh7372_pm_domain sh7372_a3ri; | 489 | extern struct sh7372_pm_domain sh7372_a3ri; |
490 | extern struct sh7372_pm_domain sh7372_a3sg; | ||
490 | 491 | ||
491 | extern void sh7372_init_pm_domain(struct sh7372_pm_domain *sh7372_pd); | 492 | extern void sh7372_init_pm_domain(struct sh7372_pm_domain *sh7372_pd); |
492 | extern void sh7372_add_device_to_domain(struct sh7372_pm_domain *sh7372_pd, | 493 | extern void sh7372_add_device_to_domain(struct sh7372_pm_domain *sh7372_pd, |
diff --git a/arch/arm/mach-shmobile/pm-sh7372.c b/arch/arm/mach-shmobile/pm-sh7372.c index 48c3b91c640b..474a15a29dec 100644 --- a/arch/arm/mach-shmobile/pm-sh7372.c +++ b/arch/arm/mach-shmobile/pm-sh7372.c | |||
@@ -133,6 +133,10 @@ struct sh7372_pm_domain sh7372_a3ri = { | |||
133 | .bit_shift = 8, | 133 | .bit_shift = 8, |
134 | }; | 134 | }; |
135 | 135 | ||
136 | struct sh7372_pm_domain sh7372_a3sg = { | ||
137 | .bit_shift = 13, | ||
138 | }; | ||
139 | |||
136 | #endif /* CONFIG_PM */ | 140 | #endif /* CONFIG_PM */ |
137 | 141 | ||
138 | static void sh7372_enter_core_standby(void) | 142 | static void sh7372_enter_core_standby(void) |
diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c index d55833326c36..b219ceaf85bf 100644 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c | |||
@@ -844,6 +844,7 @@ void __init sh7372_add_standard_devices(void) | |||
844 | sh7372_init_pm_domain(&sh7372_a4lc); | 844 | sh7372_init_pm_domain(&sh7372_a4lc); |
845 | sh7372_init_pm_domain(&sh7372_a3rv); | 845 | sh7372_init_pm_domain(&sh7372_a3rv); |
846 | sh7372_init_pm_domain(&sh7372_a3ri); | 846 | sh7372_init_pm_domain(&sh7372_a3ri); |
847 | sh7372_init_pm_domain(&sh7372_a3sg); | ||
847 | 848 | ||
848 | platform_add_devices(sh7372_early_devices, | 849 | platform_add_devices(sh7372_early_devices, |
849 | ARRAY_SIZE(sh7372_early_devices)); | 850 | ARRAY_SIZE(sh7372_early_devices)); |