Re: [U-Boot] [PATCH v2 2/2] omap4_panda: Build in cmd_gpio support on panda

2011-10-09 Thread Igor Grinberg
Hi Joe,

On 10/06/11 23:50, Joe Hershberger wrote:
 Enable the gpio command
 
 Signed-off-by: Joe Hershberger joe.hershber...@ni.com
 Cc: Joe Hershberger joe.hershber...@gmail.com
 Cc: Sandeep Paulraj s-paul...@ti.com
 ---
 Changes for v2:
   - Correct a bad merge... sorry.
 
  board/ti/panda/panda_mux_data.h |2 +-
  include/configs/omap4_panda.h   |3 +++
  2 files changed, 4 insertions(+), 1 deletions(-)
 
 diff --git a/board/ti/panda/panda_mux_data.h b/board/ti/panda/panda_mux_data.h
 index 63448b6..c692c7b 100644
 --- a/board/ti/panda/panda_mux_data.h
 +++ b/board/ti/panda/panda_mux_data.h
 @@ -212,7 +212,7 @@ const struct pad_conf_entry 
 wkup_padconf_array_non_essential[] = {
   {PAD0_FREF_SLICER_IN, (M0)},/* fref_slicer_in */
   {PAD1_FREF_CLK_IOREQ, (M0)},/* fref_clk_ioreq */
   {PAD0_FREF_CLK0_OUT, (M2)}, /* sys_drm_msecure */
 - {PAD1_FREF_CLK3_REQ, M7},   /* safe 
 mode */
 + {PAD1_FREF_CLK3_REQ, M7},   /* safe mode */
   {PAD0_FREF_CLK3_OUT, (M0)}, /* fref_clk3_out */
   {PAD1_FREF_CLK4_REQ, (PTU | M3)},   /* led status_1 */
   {PAD0_FREF_CLK4_OUT, (PTU | M3)},   /* led status_2 */
 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

Boolean defines should not have a value.


-- 
Regards,
Igor.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2011-10-06 Thread Joe Hershberger
Enable the gpio command

Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Cc: Joe Hershberger joe.hershber...@gmail.com
Cc: Sandeep Paulraj s-paul...@ti.com
---
Changes for v2:
  - Correct a bad merge... sorry.

 board/ti/panda/panda_mux_data.h |2 +-
 include/configs/omap4_panda.h   |3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/board/ti/panda/panda_mux_data.h b/board/ti/panda/panda_mux_data.h
index 63448b6..c692c7b 100644
--- a/board/ti/panda/panda_mux_data.h
+++ b/board/ti/panda/panda_mux_data.h
@@ -212,7 +212,7 @@ const struct pad_conf_entry 
wkup_padconf_array_non_essential[] = {
{PAD0_FREF_SLICER_IN, (M0)},/* fref_slicer_in */
{PAD1_FREF_CLK_IOREQ, (M0)},/* fref_clk_ioreq */
{PAD0_FREF_CLK0_OUT, (M2)}, /* sys_drm_msecure */
-   {PAD1_FREF_CLK3_REQ, M7},   /* safe 
mode */
+   {PAD1_FREF_CLK3_REQ, M7},   /* safe mode */
{PAD0_FREF_CLK3_OUT, (M0)}, /* fref_clk3_out */
{PAD1_FREF_CLK4_REQ, (PTU | M3)},   /* led status_1 */
{PAD0_FREF_CLK4_OUT, (PTU | M3)},   /* led status_2 */
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
 
-- 
1.6.0.2

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


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

2011-08-16 Thread Joe Hershberger
Enable the command and the shim driver
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.hershber...@ni.com
Cc: Joe Hershberger joe.hershber...@gmail.com
Cc: Sandeep Paulraj s-paul...@ti.com
---
Changes for v2:

 board/ti/panda/panda_mux_data.h |6 +++---
 include/configs/omap4_panda.h   |4 
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/board/ti/panda/panda_mux_data.h b/board/ti/panda/panda_mux_data.h
index 16cc0ad..4c9b57e 100644
--- a/board/ti/panda/panda_mux_data.h
+++ b/board/ti/panda/panda_mux_data.h
@@ -115,7 +115,7 @@ const struct pad_conf_entry 
core_padconf_array_non_essential[] = {
{ABE_CLKS, (PTD | IEN | OFF_EN | OFF_PD | OFF_IN | M0)},/* 
abe_clks */
{ABE_DMIC_CLK1, (M0)},  /* 
abe_dmic_clk1 */
{ABE_DMIC_DIN1, (IEN | M0)},/* 
abe_dmic_din1 */
-   {ABE_DMIC_DIN2, (IEN | M0)},/* 
abe_dmic_din2 */
+   {ABE_DMIC_DIN2, (PTU | IEN | M3)},  /* 
gpio_121 */
{ABE_DMIC_DIN3, (IEN | M0)},/* 
abe_dmic_din3 */
{UART2_CTS, (PTU | IEN | M0)},  /* 
uart2_cts */
{UART2_RTS, (M0)},  /* 
uart2_rts */
@@ -223,8 +223,8 @@ const struct pad_conf_entry 
wkup_padconf_array_non_essential[] = {
{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, (M3)}, /* gpio_wk7 */
-   {PAD0_FREF_CLK4_OUT, (M3)}, /* gpio_wk8 */
+   {PAD1_FREF_CLK4_REQ, (IEN | M3)},   /* gpio_wk7 */
+   {PAD0_FREF_CLK4_OUT, (IEN | M3)},   /* gpio_wk8 */
 };
 
 #endif /* _SDP4430_MUX_DATA_H */
diff --git a/include/configs/omap4_panda.h b/include/configs/omap4_panda.h
index e313231..f890fc6 100644
--- a/include/configs/omap4_panda.h
+++ b/include/configs/omap4_panda.h
@@ -120,6 +120,10 @@
 /* Flash */
 #define CONFIG_SYS_NO_FLASH1
 
+/* GPIO */
+#define CONFIG_OMAP_GPIO 1
+#define CONFIG_CMD_GPIO 1
+
 /* commands to include */
 #include config_cmd_default.h
 
-- 
1.6.0.2

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