diff options
author | Stelian Pop <stelian@popies.net> | 2008-03-26 20:52:32 +0100 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-04-01 01:45:50 +0200 |
commit | 983c1db04c1dd0f92e02f06d29f0c65a3d9a2687 (patch) | |
tree | 59c4e30276a49cf468cdea9a9ef2b6258238acb6 /board/atmel/at91cap9adk/nand.c | |
parent | 177e8a5ac81bbc531a1d54abdb47f2860266c3aa (diff) | |
download | u-boot-imx-983c1db04c1dd0f92e02f06d29f0c65a3d9a2687.zip u-boot-imx-983c1db04c1dd0f92e02f06d29f0c65a3d9a2687.tar.gz u-boot-imx-983c1db04c1dd0f92e02f06d29f0c65a3d9a2687.tar.bz2 |
Port AT91CAP9 to the new headers
Adapt the existing AT91CAP9 code to the new headers and APIs.
Signed-off-by: Stelian Pop <stelian@popies.net>
Diffstat (limited to 'board/atmel/at91cap9adk/nand.c')
-rw-r--r-- | board/atmel/at91cap9adk/nand.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/board/atmel/at91cap9adk/nand.c b/board/atmel/at91cap9adk/nand.c index 2f02126..1277973 100644 --- a/board/atmel/at91cap9adk/nand.c +++ b/board/atmel/at91cap9adk/nand.c @@ -25,7 +25,9 @@ */ #include <common.h> -#include <asm/arch/hardware.h> +#include <asm/arch/at91cap9.h> +#include <asm/arch/gpio.h> +#include <asm/arch/at91_pio.h> #ifdef CONFIG_CMD_NAND @@ -51,10 +53,10 @@ static void at91cap9adk_nand_hwcontrol(struct mtd_info *mtd, int cmd) IO_ADDR_W |= MASK_ALE; break; case NAND_CTL_CLRNCE: - AT91C_BASE_PIOD->PIO_SODR = AT91C_PIO_PD15; + at91_set_gpio_value(AT91_PIN_PD15, 1); break; case NAND_CTL_SETNCE: - AT91C_BASE_PIOD->PIO_CODR = AT91C_PIO_PD15; + at91_set_gpio_value(AT91_PIN_PD15, 0); break; } this->IO_ADDR_W = (void *) IO_ADDR_W; |