From 953884c382112d37b3fb98bb937d7e613bad85d5 Mon Sep 17 00:00:00 2001 From: trem Date: Sat, 25 Aug 2012 05:30:34 +0000 Subject: imx27lite: update with gpio api change (v4) Signed-off-by: Philippe Reynes Acked-by: Stefano Babic --- board/logicpd/imx27lite/imx27lite.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'board/logicpd') diff --git a/board/logicpd/imx27lite/imx27lite.c b/board/logicpd/imx27lite/imx27lite.c index 8a5015c51c..b38e5ab935 100644 --- a/board/logicpd/imx27lite/imx27lite.c +++ b/board/logicpd/imx27lite/imx27lite.c @@ -23,12 +23,12 @@ #include #include #include +#include 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(®s->port[PORTC].dr) | (1 << 31), - ®s->port[PORTC].dr); + gpio_set_value(GPIO_PORTC | 31, 1); #endif #ifdef CONFIG_MXC_MMC #if defined(CONFIG_MAGNESIUM) -- cgit v1.2.3