]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/BuS/vl_ma2sc/vl_ma2sc.c
kconfig: add board Kconfig and defconfig files
[karo-tx-uboot.git] / board / BuS / vl_ma2sc / vl_ma2sc.c
index 412ff3b482fd2f5497242b1989d0f320e7cc1781..da39c8625821965ec747bcb359890c487bcb020a 100644 (file)
@@ -8,8 +8,9 @@
 
 #include <config.h>
 #include <common.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/io.h>
+#include <asm/gpio.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/at91_matrix.h>
@@ -65,10 +66,10 @@ static void vl_ma2sc_nand_hw_init(void)
 
        /* Configure RDY/BSY */
 #ifdef CONFIG_SYS_NAND_READY_PIN
-       at91_set_pio_input(CONFIG_SYS_NAND_READY_PIN, 1);
+       gpio_direction_input(CONFIG_SYS_NAND_READY_PIN);
 #endif
        /* Enable NandFlash */
-       at91_set_pio_output(CONFIG_SYS_NAND_ENABLE_PIN, 1);
+       gpio_direction_output(CONFIG_SYS_NAND_ENABLE_PIN, 1);
 }
 #endif