Skip to contentSkip to conversation

OMAP4 do not set TPS62361_REG_ADDR_SET0

PATCH Superseded Jan Weitzel 3 participants 4 messages Jun 12, 2013 – Jun 23, 2013

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

PATCH 1/1 OMAP4 do not set TPS62361_REG_ADDR_SET0

Don't set SET0 voltage, because it acts as boot voltage for OPP boot. Take care that the kernel doesn't drive vset gpio to low. This may happen while reseting the gpio module at initialization, look for HWMOD_INIT_NO_RESET.

---
 arch/arm/mach-omap/omap4_generic.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
arch/arm/mach-omap/omap4_generic.c +2 -3
index 7200393..bf1f1a7 100644
@@ -586,11 +586,10 @@ noinline int omap4460_scale_vcores(unsigned vsel0_pin, unsigned volt_mv)
 	writel(0x6026, OMAP44XX_PRM_VC_CFG_I2C_CLK);
 
 	/* TPS - supplies vdd_mpu on 4460
-	 * Setup SET1 and SET0 with right values so that kernel
-	 * can use either of them based on its needs.
+	 * Setup SET1 and don't touch SET0 it acts as boot voltage
+	 * source after reset.
 	 */
 
-	omap4_do_scale_tps62361(TPS62361_REG_ADDR_SET0, volt_mv);
 	omap4_do_scale_tps62361(TPS62361_REG_ADDR_SET1, volt_mv);
 
 	/*
Signature · 7 lines
1.7.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Reviewed-by on v1 1/1
#1 lore raw
Quoted 29 lines · Jan Weitzel

Don't set SET0 voltage, because it acts as boot voltage for OPP boot. Take care that the kernel doesn't drive vset gpio to low. This may happen while reseting the gpio module at initialization, look for HWMOD_INIT_NO_RESET.

---
 arch/arm/mach-omap/omap4_generic.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
arch/arm/mach-omap/omap4_generic.c +2 -4
index 7200393..bf1f1a7 100644
@@ -586,11 +586,10 @@ noinline int omap4460_scale_vcores(unsigned vsel0_pin, unsigned volt_mv)
        writel(0x6026, OMAP44XX_PRM_VC_CFG_I2C_CLK);
 
        /* TPS - supplies vdd_mpu on 4460
-        * Setup SET1 and SET0 with right values so that kernel
-        * can use either of them based on its needs.
+        * Setup SET1 and don't touch SET0 it acts as boot voltage
+        * source after reset.
         */
 
-       omap4_do_scale_tps62361(TPS62361_REG_ADDR_SET0, volt_mv);
        omap4_do_scale_tps62361(TPS62361_REG_ADDR_SET1, volt_mv);
 
        /*
--
Quoted 1 line

1.7.0.4

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#2 lore raw

PATCH v2 1/1 OMAP4 do not set TPS62361_REG_ADDR_SET0

Don't set SET0 voltage, because it acts as boot voltage for OPP boot. Take care that the kernel doesn't drive vset gpio to low. This may happen while reseting the gpio module at initialization, look for HWMOD_INIT_NO_RESET.

---
on top of 88796b1
v2: add Reviewed-by

 arch/arm/mach-omap/omap4_generic.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
arch/arm/mach-omap/omap4_generic.c +2 -3
index 7200393..bf1f1a7 100644
@@ -586,11 +586,10 @@ noinline int omap4460_scale_vcores(unsigned vsel0_pin, unsigned volt_mv)
 	writel(0x6026, OMAP44XX_PRM_VC_CFG_I2C_CLK);
 
 	/* TPS - supplies vdd_mpu on 4460
-	 * Setup SET1 and SET0 with right values so that kernel
-	 * can use either of them based on its needs.
+	 * Setup SET1 and don't touch SET0 it acts as boot voltage
+	 * source after reset.
 	 */
 
-	omap4_do_scale_tps62361(TPS62361_REG_ADDR_SET0, volt_mv);
 	omap4_do_scale_tps62361(TPS62361_REG_ADDR_SET1, volt_mv);
 
 	/*
Signature · 7 lines
1.7.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#3 lore raw
Quoted 7 lines · Jan Weitzel

Don't set SET0 voltage, because it acts as boot voltage for OPP boot. Take care that the kernel doesn't drive vset gpio to low. This may happen while reseting the gpio module at initialization, look for HWMOD_INIT_NO_RESET.

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox