diff mbox

[U-Boot,2/2] omap4_panda: Build in cmd_gpio support on panda

Message ID 1317933903-16982-2-git-send-email-joe.hershberger@ni.com
State Superseded
Headers show

Commit Message

Joe Hershberger Oct. 6, 2011, 8:45 p.m. UTC
Enable the gpio command

Configure the pads to allow access to the button on GPIO_121 and the 2 LEDS on GPIO_7 and GPIO_8

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
---
 board/ti/panda/panda_mux_data.h |    3 +++
 include/configs/omap4_panda.h   |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/board/ti/panda/panda_mux_data.h b/board/ti/panda/panda_mux_data.h
index 63448b6..d630c71 100644
--- a/board/ti/panda/panda_mux_data.h
+++ b/board/ti/panda/panda_mux_data.h
@@ -222,6 +222,9 @@  const struct pad_conf_entry wkup_padconf_array_non_essential[] = {
 	{PAD1_SYS_PWRON_RESET, (M3)},		/* gpio_wk29 */
 	{PAD0_SYS_BOOT6, (IEN | M3)},		/* gpio_wk9 */
 	{PAD1_SYS_BOOT7, (IEN | M3)},		/* gpio_wk10 */
+	{PAD1_FREF_CLK3_REQ, (M3)},		/* gpio_wk30 */
+	{PAD1_FREF_CLK4_REQ, (IEN | M3)},	/* gpio_wk7 */
+	{PAD0_FREF_CLK4_OUT, (IEN | M3)},	/* gpio_wk8 */
 };
 
 #endif /* _PANDA_MUX_DATA_H_ */
diff --git a/include/configs/omap4_panda.h b/include/configs/omap4_panda.h
index 67da70e..b88e5ad 100644
--- a/include/configs/omap4_panda.h
+++ b/include/configs/omap4_panda.h
@@ -35,6 +35,9 @@ 
 
 #include <configs/omap4_common.h>
 
+/* GPIO */
+#define CONFIG_CMD_GPIO 1
+
 /* ENV related config options */
 #define CONFIG_ENV_IS_NOWHERE