at91sam9/at91cap: move nand drivers to drivers/mtd/nand
[platform/kernel/u-boot.git] / board / afeb9260 / afeb9260.c
index ba60861..024db2b 100644 (file)
@@ -72,10 +72,10 @@ static void afeb9260_nand_hw_init(void)
        at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_PIOC);
 
        /* Configure RDY/BSY */
-       at91_set_gpio_input(AT91_PIN_PC13, 1);
+       at91_set_gpio_input(CONFIG_SYS_NAND_READY_PIN, 1);
 
        /* Enable NandFlash */
-       at91_set_gpio_output(AT91_PIN_PC14, 1);
+       at91_set_gpio_output(CONFIG_SYS_NAND_ENABLE_PIN, 1);
 }
 
 #ifdef CONFIG_MACB