summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2012-08-19 21:33:50 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-09-01 14:58:27 +0200
commit5fecb36ca0c5642259227bba9aed94727e084c17 (patch)
treea32cab7f29101204db24d9c8f962a9a30071e8c3 /include/configs
parentc55068e5b86b2fac47a20d8d4ab2c877d9702bda (diff)
downloadu-boot-imx-5fecb36ca0c5642259227bba9aed94727e084c17.zip
u-boot-imx-5fecb36ca0c5642259227bba9aed94727e084c17.tar.gz
u-boot-imx-5fecb36ca0c5642259227bba9aed94727e084c17.tar.bz2
MX: Set a common gpio.h for all i.MX
Each i.MX has its own gpio.h, defining the same structure. The internal GPIO controller has the same layout (at least for the register used by u-boot) and can be shared. Signed-off-by: Stefano Babic <sbabic@denx.de> Tested-by: Matt Sealey <matt@genesi-usa.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/mx6qsabrelite.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h
index 8cd9a63..72d0154 100644
--- a/include/configs/mx6qsabrelite.h
+++ b/include/configs/mx6qsabrelite.h
@@ -31,6 +31,7 @@
#define CONFIG_MACH_TYPE 3769
#include <asm/arch/imx-regs.h>
+#include <asm/imx-common/gpio.h>
#define CONFIG_CMDLINE_TAG
#define CONFIG_SETUP_MEMORY_TAGS
@@ -53,7 +54,7 @@
#define CONFIG_SPI_FLASH_SST
#define CONFIG_MXC_SPI
#define CONFIG_SF_DEFAULT_BUS 0
-#define CONFIG_SF_DEFAULT_CS (0|(GPIO_NUMBER(3, 19)<<8))
+#define CONFIG_SF_DEFAULT_CS (0|(IMX_GPIO_NR(3, 19)<<8))
#define CONFIG_SF_DEFAULT_SPEED 25000000
#define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0)
#endif