Skip to contentSkip to conversation

omap: 3630: introduce CHIP_GE_3630ES1_1

PATCH New Anand Gadiyar 1 participant 2 messages May 14, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 omap: 3630: introduce CHIP_GE_3630ES1_1

Introduce CHIP_GE_3630ES1_1 macro to cover 3630ES1.1 and later silicon reviesions. (Currently this is set to 3630 ES1.1 only).

This is needed for at least one feature that is broken in 3630ES1.0 but exists on older (3430 ES3.1) and newer revisions.

---
Okay with me to fold this into the patch [1] that adds 3630 silicon revision support.

[1] https://patchwork.kernel.org/patch/95684/

 arch/arm/plat-omap/include/plat/cpu.h |    1 +
 1 file changed, 1 insertion(+)
arch/arm/plat-omap/include/plat/cpu.h +1 -0
Index: linux-omap-2.6/arch/arm/plat-omap/include/plat/cpu.h
===================================================================
@@ -431,6 +431,7 @@ IS_OMAP_TYPE(3517, 0x3517)
 					 CHIP_IS_OMAP3630ES1)
 #define CHIP_GE_OMAP3430ES3_1		(CHIP_IS_OMAP3430ES3_1 | \
 					 CHIP_IS_OMAP3630ES1)
+#define CHIP_GE_OMAP3630ES1_1		(CHIP_IS_OMAP3630ES1_1)
 
 
 int omap_chip_is(struct omap_chip_id oci);
#1 lore raw

PATCH 2/2 omap: 3630: disable TLL SAR on 3630 ES1

USBTLL Save-and-Restore is broken in 3630 ES1.0. Having it enabled could result in incorrect register restores as the OMAP exits off-mode. This could potentially result in unexpected wakeup events.

This is fixed in ES1.1. So disable it for ES1.0s.

---
Not using the errata framework for this - but if it does get implemented, then this is a candidate to add to it.

 arch/arm/mach-omap2/powerdomains34xx.h |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/powerdomains34xx.h +4 -2
Index: linux-omap-2.6/arch/arm/mach-omap2/powerdomains34xx.h
===================================================================
@@ -80,7 +80,8 @@ static struct powerdomain core_3xxx_pre_
 	.prcm_offs	  = CORE_MOD,
 	.omap_chip	  = OMAP_CHIP_INIT(CHIP_IS_OMAP3430ES1 |
 					   CHIP_IS_OMAP3430ES2 |
-					   CHIP_IS_OMAP3430ES3_0),
+					   CHIP_IS_OMAP3430ES3_0 |
+					   CHIP_IS_OMAP3630ES1),
 	.pwrsts		  = PWRSTS_OFF_RET_ON,
 	.pwrsts_logic_ret = PWRSTS_OFF_RET,
 	.banks		  = 2,
@@ -97,7 +98,8 @@ static struct powerdomain core_3xxx_pre_
 static struct powerdomain core_3xxx_es3_1_pwrdm = {
 	.name		  = "core_pwrdm",
 	.prcm_offs	  = CORE_MOD,
-	.omap_chip	  = OMAP_CHIP_INIT(CHIP_GE_OMAP3430ES3_1),
+	.omap_chip	  = OMAP_CHIP_INIT(CHIP_IS_OMAP3430ES3_1 |
+					  CHIP_GE_OMAP3630ES1_1),
 	.pwrsts		  = PWRSTS_OFF_RET_ON,
 	.pwrsts_logic_ret = PWRSTS_OFF_RET,
 	.flags		  = PWRDM_HAS_HDWR_SAR, /* for USBTLL only */