imx27lite: update with gpio api change (v4)

Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
trem 2012-08-25 05:30:34 +00:00 committed by Albert ARIBAUD
parent e71c39def6
commit 953884c382
2 changed files with 7 additions and 3 deletions

View file

@ -23,12 +23,12 @@
#include <common.h> #include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/imx-regs.h> #include <asm/arch/imx-regs.h>
#include <asm/gpio.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
int board_init(void) int board_init(void)
{ {
struct gpio_regs *regs = (struct gpio_regs *)IMX_GPIO_BASE;
#if defined(CONFIG_SYS_NAND_LARGEPAGE) #if defined(CONFIG_SYS_NAND_LARGEPAGE)
struct system_control_regs *sc_regs = struct system_control_regs *sc_regs =
(struct system_control_regs *)IMX_SYSTEM_CTL_BASE; (struct system_control_regs *)IMX_SYSTEM_CTL_BASE;
@ -43,8 +43,7 @@ int board_init(void)
#ifdef CONFIG_FEC_MXC #ifdef CONFIG_FEC_MXC
mx27_fec_init_pins(); mx27_fec_init_pins();
imx_gpio_mode((GPIO_PORTC | GPIO_OUT | GPIO_PUEN | GPIO_GPIO | 31)); imx_gpio_mode((GPIO_PORTC | GPIO_OUT | GPIO_PUEN | GPIO_GPIO | 31));
writel(readl(&regs->port[PORTC].dr) | (1 << 31), gpio_set_value(GPIO_PORTC | 31, 1);
&regs->port[PORTC].dr);
#endif #endif
#ifdef CONFIG_MXC_MMC #ifdef CONFIG_MXC_MMC
#if defined(CONFIG_MAGNESIUM) #if defined(CONFIG_MAGNESIUM)

View file

@ -160,6 +160,11 @@
#define CONFIG_MXC_MMC #define CONFIG_MXC_MMC
#define CONFIG_DOS_PARTITION #define CONFIG_DOS_PARTITION
/*
* GPIO
*/
#define CONFIG_MXC_GPIO
/* /*
* MTD partitions * MTD partitions
*/ */