diff options
author | Zhang Jiejing <jiejing.zhang@freescale.com> | 2012-05-18 11:08:05 +0800 |
---|---|---|
committer | Zhang Jiejing <jiejing.zhang@freescale.com> | 2012-05-21 09:50:11 +0800 |
commit | 500e69df9073a8bc2773274c1139bb036b1a4195 (patch) | |
tree | 0aa8fd108e80d33af583382948c3a8fc774d3c92 /include/configs | |
parent | 9b6dfc4b6f0d30b7284511a962e64e83c426b854 (diff) | |
download | u-boot-imx-500e69df9073a8bc2773274c1139bb036b1a4195.zip u-boot-imx-500e69df9073a8bc2773274c1139bb036b1a4195.tar.gz u-boot-imx-500e69df9073a8bc2773274c1139bb036b1a4195.tar.bz2 |
ENGR00209899-1 mx6x: add generic gpio interface.
Add generic gpio interface in uboot.
Seems more and more gpio operation invoke in uboot,
without RAW register operation, we should
use generic gpio interface.
you should define the CONFIG_MXC_GPIO
use generic gpio interface:
gpio_request,
gpio_direction_output,
gpio_direction_input,
gpio_set_value,
gpio_get_value, etc.
Test on MX6Q, MX6DL.
Other MX6X should also define this config.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/mx6dl_arm2.h | 1 | ||||
-rw-r--r-- | include/configs/mx6dl_sabresd.h | 2 | ||||
-rw-r--r-- | include/configs/mx6dl_sabresd_mfg.h | 2 | ||||
-rw-r--r-- | include/configs/mx6q_sabrelite_android.h | 1 | ||||
-rw-r--r-- | include/configs/mx6q_sabresd.h | 1 | ||||
-rw-r--r-- | include/configs/mx6q_sabresd_mfg.h | 1 |
6 files changed, 7 insertions, 1 deletions
diff --git a/include/configs/mx6dl_arm2.h b/include/configs/mx6dl_arm2.h index 5c3ba3b..8b1d50c 100644 --- a/include/configs/mx6dl_arm2.h +++ b/include/configs/mx6dl_arm2.h @@ -55,6 +55,7 @@ #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_INITRD_TAG +#define CONFIG_MXC_GPIO /* * Size of malloc() pool */ diff --git a/include/configs/mx6dl_sabresd.h b/include/configs/mx6dl_sabresd.h index 3df2a34..5a9bde3 100644 --- a/include/configs/mx6dl_sabresd.h +++ b/include/configs/mx6dl_sabresd.h @@ -54,7 +54,7 @@ #define CONFIG_REVISION_TAG #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_INITRD_TAG - +#define CONFIG_MXC_GPIO /* * Size of malloc() pool */ diff --git a/include/configs/mx6dl_sabresd_mfg.h b/include/configs/mx6dl_sabresd_mfg.h index 094655b..11e7189 100644 --- a/include/configs/mx6dl_sabresd_mfg.h +++ b/include/configs/mx6dl_sabresd_mfg.h @@ -56,6 +56,8 @@ #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_INITRD_TAG +#define CONFIG_MXC_GPIO + /* * Size of malloc() pool */ diff --git a/include/configs/mx6q_sabrelite_android.h b/include/configs/mx6q_sabrelite_android.h index 4c76480..4aff72a 100644 --- a/include/configs/mx6q_sabrelite_android.h +++ b/include/configs/mx6q_sabrelite_android.h @@ -52,6 +52,7 @@ #define CONFIG_REVISION_TAG #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_INITRD_TAG +#define CONFIG_MXC_GPIO /* * Size of malloc() pool diff --git a/include/configs/mx6q_sabresd.h b/include/configs/mx6q_sabresd.h index a5d6363..fbf549a 100644 --- a/include/configs/mx6q_sabresd.h +++ b/include/configs/mx6q_sabresd.h @@ -52,6 +52,7 @@ #define CONFIG_REVISION_TAG #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_INITRD_TAG +#define CONFIG_MXC_GPIO /* * Size of malloc() pool diff --git a/include/configs/mx6q_sabresd_mfg.h b/include/configs/mx6q_sabresd_mfg.h index 16fc9e8..9c2572e 100644 --- a/include/configs/mx6q_sabresd_mfg.h +++ b/include/configs/mx6q_sabresd_mfg.h @@ -79,6 +79,7 @@ #include <config_cmd_default.h> +#define CONFIG_MXC_GPIO #define CONFIG_CMD_PING #define CONFIG_CMD_DHCP #define CONFIG_CMD_MII |