summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrem <tremyfr@yahoo.fr>2012-08-25 05:30:34 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-09-01 14:58:29 +0200
commit953884c382112d37b3fb98bb937d7e613bad85d5 (patch)
treedd0e78cae8d435e2e9b067ae73f26c7750aa52db
parente71c39def6a00ba3dee9a554ea85a8a5bd3dd300 (diff)
downloadu-boot-imx-953884c382112d37b3fb98bb937d7e613bad85d5.zip
u-boot-imx-953884c382112d37b3fb98bb937d7e613bad85d5.tar.gz
u-boot-imx-953884c382112d37b3fb98bb937d7e613bad85d5.tar.bz2
imx27lite: update with gpio api change (v4)
Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr> Acked-by: Stefano Babic <sbabic@denx.de>
-rw-r--r--board/logicpd/imx27lite/imx27lite.c5
-rw-r--r--include/configs/imx27lite-common.h5
2 files changed, 7 insertions, 3 deletions
diff --git a/board/logicpd/imx27lite/imx27lite.c b/board/logicpd/imx27lite/imx27lite.c
index 8a5015c..b38e5ab 100644
--- a/board/logicpd/imx27lite/imx27lite.c
+++ b/board/logicpd/imx27lite/imx27lite.c
@@ -23,12 +23,12 @@
#include <common.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
+#include <asm/gpio.h>
DECLARE_GLOBAL_DATA_PTR;
int board_init(void)
{
- struct gpio_regs *regs = (struct gpio_regs *)IMX_GPIO_BASE;
#if defined(CONFIG_SYS_NAND_LARGEPAGE)
struct system_control_regs *sc_regs =
(struct system_control_regs *)IMX_SYSTEM_CTL_BASE;
@@ -43,8 +43,7 @@ int board_init(void)
#ifdef CONFIG_FEC_MXC
mx27_fec_init_pins();
imx_gpio_mode((GPIO_PORTC | GPIO_OUT | GPIO_PUEN | GPIO_GPIO | 31));
- writel(readl(&regs->port[PORTC].dr) | (1 << 31),
- &regs->port[PORTC].dr);
+ gpio_set_value(GPIO_PORTC | 31, 1);
#endif
#ifdef CONFIG_MXC_MMC
#if defined(CONFIG_MAGNESIUM)
diff --git a/include/configs/imx27lite-common.h b/include/configs/imx27lite-common.h
index b3f382c..a2853a7 100644
--- a/include/configs/imx27lite-common.h
+++ b/include/configs/imx27lite-common.h
@@ -161,6 +161,11 @@
#define CONFIG_DOS_PARTITION
/*
+ * GPIO
+ */
+#define CONFIG_MXC_GPIO
+
+/*
* MTD partitions
*/
#define CONFIG_CMD_MTDPARTS