diff mbox

[U-Boot,v2,5/9] arm: omap3: Fix omap3_overo SPL boot hangup

Message ID 1400706295-31871-6-git-send-email-ashcharles@gmail.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Ash Charles May 21, 2014, 9:04 p.m. UTC
Patch f33b9bd3
[arm: omap3: Enable clocks for peripherals only if they are used]
breaks SPL booting on Overo. Since some gpio inputs are
read to detect the board revision. But with this patch above, the
clocks to the GPIO subsystems are not enabled per default any more.
The GPIO banks need to be configured specifically now.

Signed-off-by: Ash Charles <ashcharles@gmail.com>
---
 include/configs/omap3_overo.h | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Tom Rini May 23, 2014, 11:51 p.m. UTC | #1
On Wed, May 21, 2014 at 02:04:51PM -0700, Ash Charles wrote:

> Patch f33b9bd3
> [arm: omap3: Enable clocks for peripherals only if they are used]
> breaks SPL booting on Overo. Since some gpio inputs are
> read to detect the board revision. But with this patch above, the
> clocks to the GPIO subsystems are not enabled per default any more.
> The GPIO banks need to be configured specifically now.
> 
> Signed-off-by: Ash Charles <ashcharles@gmail.com>

Applied to u-boot-ti/master, thanks!
diff mbox

Patch

diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h
index 706c8cc..1e4dfcf 100644
--- a/include/configs/omap3_overo.h
+++ b/include/configs/omap3_overo.h
@@ -80,6 +80,12 @@ 
 #define CONFIG_OMAP_HSMMC
 #define CONFIG_DOS_PARTITION
 
+#define CONFIG_OMAP3_GPIO_2	/* GPIO32..63 is in GPIO Bank 2 */
+#define CONFIG_OMAP3_GPIO_3	/* GPIO64..95 is in GPIO Bank 3 */
+#define CONFIG_OMAP3_GPIO_4	/* GPIO96..127 is in GPIO Bank 4 */
+#define CONFIG_OMAP3_GPIO_5	/* GPIO128..159 is in GPIO Bank 5 */
+#define CONFIG_OMAP3_GPIO_6	/* GPIO160..191 is in GPIO Bank 6 */
+
 /* commands to include */
 #include <config_cmd_default.h>