Skip to contentSkip to conversation

OMAP3 Beagle Pin Mux initialization glitch fix

PATCH Superseded Joel A Fernandes 2 participants 2 messages Aug 11, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP3 Beagle Pin Mux initialization glitch fix

From: Bob Feretich <[email protected]>

From: Bob Feretich <[email protected]>

The below patch reverses the order of two segments in the board file. Output pins need to have their values initialized, before they are exposed to the logic outside the chip.

Previous discussions:
http://lists.denx.de/pipermail/u-boot/2011-March/088115.html

---
 board/ti/beagle/beagle.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
board/ti/beagle/beagle.c +6 -6
index ab50514..15d061a 100644
@@ -301,17 +301,17 @@ int misc_init_r(void)
 	twl4030_power_init();
 	twl4030_led_init(TWL4030_LED_LEDEN_LEDAON | TWL4030_LED_LEDEN_LEDBON);
 
-	/* Configure GPIOs to output */
-	writel(~(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1), &gpio6_base->oe);
-	writel(~(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 |
-		GPIO15 | GPIO14 | GPIO13 | GPIO12), &gpio5_base->oe);
-
-	/* Set GPIOs */
+	/* Set GPIO states before they are made outputs */
 	writel(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1,
 		&gpio6_base->setdataout);
 	writel(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 |
 		GPIO15 | GPIO14 | GPIO13 | GPIO12, &gpio5_base->setdataout);
 
+	/* Configure GPIOs to output */
+	writel(~(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1), &gpio6_base->oe);
+	writel(~(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 |
+		GPIO15 | GPIO14 | GPIO13 | GPIO12), &gpio5_base->oe);
+
 	dieid_num_r();
 
 	return 0;
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 OMAP3 Beagle Pin Mux initialization glitch fix

Quoted 8 lines · Joel A Fernandes

From: Bob Feretich <[email protected]>

From: Bob Feretich <[email protected]>

The below patch reverses the order of two segments in the board file. Output pins need to have their values initialized, before they are exposed to the logic outside the chip.

Quoted 5 lines

Previous discussions:
http://lists.denx.de/pipermail/u-boot/2011-March/088115.html

+ Sandeep and Khasim

Quoted 40 lines

---
?board/ti/beagle/beagle.c | ? 12 ++++++------
?1 files changed, 6 insertions(+), 6 deletions(-)

board/ti/beagle/beagle.c +1 -6
index ab50514..15d061a 100644
@@ -301,17 +301,17 @@ int misc_init_r(void)
 ? ? ? ?twl4030_power_init();
 ? ? ? ?twl4030_led_init(TWL4030_LED_LEDEN_LEDAON | TWL4030_LED_LEDEN_LEDBON);
 
- ? ? ? /* Configure GPIOs to output */
- ? ? ? writel(~(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1), &gpio6_base->oe);
- ? ? ? writel(~(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 |
- ? ? ? ? ? ? ? GPIO15 | GPIO14 | GPIO13 | GPIO12), &gpio5_base->oe);
-
- ? ? ? /* Set GPIOs */
+ ? ? ? /* Set GPIO states before they are made outputs */
 ? ? ? ?writel(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1,
 ? ? ? ? ? ? ? ?&gpio6_base->setdataout);

? ? ? ?writel(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 | ? ? ? ? ? ? ? ?GPIO15 | GPIO14 | GPIO13 | GPIO12, &gpio5_base->setdataout);

+ ? ? ? /* Configure GPIOs to output */

+ ? ? ? writel(~(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1), &gpio6_base->oe);
+ ? ? ? writel(~(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 |

+ ? ? ? ? ? ? ? GPIO15 | GPIO14 | GPIO13 | GPIO12), &gpio5_base->oe); +
? ? ? ?dieid_num_r();

? ? ? ?return 0;
--
1.7.1

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot