diff options
| author | Andreas Bießmann <andreas.devel@googlemail.com> | 2013-11-29 12:13:45 +0100 | 
|---|---|---|
| committer | Andreas Bießmann <andreas.devel@googlemail.com> | 2013-12-09 13:21:45 +0100 | 
| commit | ac45bb1646e866b463405fade65bac4d877d4209 (patch) | |
| tree | 0d990e984cf01e48a1e95cfc7f6cf3eaf6a661a2 /board/esd/meesc/meesc.c | |
| parent | 934e3b5240ab655782b0844989db928265e6f5df (diff) | |
| download | olio-uboot-2014.01-ac45bb1646e866b463405fade65bac4d877d4209.tar.xz olio-uboot-2014.01-ac45bb1646e866b463405fade65bac4d877d4209.zip | |
at91: nand: switch atmel_nand to generic GPIO API
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Acked-by: Jens Scharsig (BuS Elektronik)<esw@bus-elektronik.de>
Tested-by: Jens Scharsig (BuS Elektronik)<esw@bus-elektronik.de>
Acked-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'board/esd/meesc/meesc.c')
| -rw-r--r-- | board/esd/meesc/meesc.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/board/esd/meesc/meesc.c b/board/esd/meesc/meesc.c index 9bf673908..c5994e0a4 100644 --- a/board/esd/meesc/meesc.c +++ b/board/esd/meesc/meesc.c @@ -12,6 +12,7 @@  #include <common.h>  #include <asm/io.h> +#include <asm/gpio.h>  #include <asm/arch/at91sam9_smc.h>  #include <asm/arch/at91_common.h>  #include <asm/arch/at91_pmc.h> @@ -74,10 +75,10 @@ static void meesc_nand_hw_init(void)  		&smc->cs[3].mode);  	/* Configure RDY/BSY */ -	at91_set_pio_input(CONFIG_SYS_NAND_READY_PIN, 1); +	gpio_direction_input(CONFIG_SYS_NAND_READY_PIN);  	/* Enable NandFlash */ -	at91_set_pio_output(CONFIG_SYS_NAND_ENABLE_PIN, 1); +	gpio_direction_output(CONFIG_SYS_NAND_ENABLE_PIN, 1);  }  #endif /* CONFIG_CMD_NAND */ |