Skip to contentSkip to conversation

ARM: mach-shmobile: sh7372 D4 support

PATCH New Magnus Damm 1 participant 1 message Jul 7, 2011

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 1/5 ARM: mach-shmobile: sh7372 D4 support

From: Magnus Damm <[email protected]>

Add support for the sh7372 D4 power domain. This power domain contains the Coresight-ETM hardware block.

---

 arch/arm/mach-shmobile/include/mach/sh7372.h |    1 +
 arch/arm/mach-shmobile/pm-sh7372.c           |    4 ++++
 arch/arm/mach-shmobile/setup-sh7372.c        |    1 +
 3 files changed, 6 insertions(+)
arch/arm/mach-shmobile/include/mach/sh7372.h +1 -0
@@ -486,6 +486,7 @@ static inline struct sh7372_pm_domain *t
 #ifdef CONFIG_PM
 extern struct sh7372_pm_domain sh7372_a4lc;
 extern struct sh7372_pm_domain sh7372_a4mp;
+extern struct sh7372_pm_domain sh7372_d4;
 extern struct sh7372_pm_domain sh7372_a3rv;
 extern struct sh7372_pm_domain sh7372_a3ri;
 extern struct sh7372_pm_domain sh7372_a3sg;
arch/arm/mach-shmobile/pm-sh7372.c +4 -0
@@ -129,6 +129,10 @@ struct sh7372_pm_domain sh7372_a4mp = {
 	.bit_shift = 2,
 };
 
+struct sh7372_pm_domain sh7372_d4 = {
+	.bit_shift = 3,
+};
+
 struct sh7372_pm_domain sh7372_a3rv = {
 	.bit_shift = 6,
 };
arch/arm/mach-shmobile/setup-sh7372.c +1 -0
@@ -843,6 +843,7 @@ void __init sh7372_add_standard_devices(
 {
 	sh7372_init_pm_domain(&sh7372_a4lc);
 	sh7372_init_pm_domain(&sh7372_a4mp);
+	sh7372_init_pm_domain(&sh7372_d4);
 	sh7372_init_pm_domain(&sh7372_a3rv);
 	sh7372_init_pm_domain(&sh7372_a3ri);
 	sh7372_init_pm_domain(&sh7372_a3sg);