]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
imx27lite: update with gpio api change (v4)
authortrem <tremyfr@yahoo.fr>
Sat, 25 Aug 2012 05:30:34 +0000 (05:30 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:29 +0000 (14:58 +0200)
Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
Acked-by: Stefano Babic <sbabic@denx.de>
board/logicpd/imx27lite/imx27lite.c
include/configs/imx27lite-common.h

index 8a5015c51cf46002046211455bb153c1b0eb46f4..b38e5ab935b976fdca4e97e86d5c03ee409d3795 100644 (file)
 #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)
index b3f382c59b9d3cb4210e556e214d7f6dbfa7ef07..a2853a7ef99e5892db05a643c896b0b1455cbd56 100644 (file)
 #define CONFIG_MXC_MMC
 #define CONFIG_DOS_PARTITION
 
+/*
+ * GPIO
+ */
+#define CONFIG_MXC_GPIO
+
 /*
  * MTD partitions
  */