]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/atmel/at91sam9261ek/at91sam9261ek.c
at91sam9/at91cap: move nand drivers to drivers/mtd/nand
[karo-tx-uboot.git] / board / atmel / at91sam9261ek / at91sam9261ek.c
index d8f006c54a9e8ed5065ba5d60993eeda75999e40..bae4092bb6d332ca1afab913e5213fa3a819d2bd 100644 (file)
@@ -76,10 +76,10 @@ static void at91sam9261ek_nand_hw_init(void)
        at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9261_ID_PIOC);
 
        /* Configure RDY/BSY */
-       at91_set_gpio_input(AT91_PIN_PC15, 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);
 
        at91_set_A_periph(AT91_PIN_PC0, 0);     /* NANDOE */
        at91_set_A_periph(AT91_PIN_PC1, 0);     /* NANDWE */