Wolfgang Denk wrote:
> Tried fixing NAND support for the at91rm9200dk board; untested.
> Disabled NAND support in the csb637 board config file.
>   
Has anyone tested this? Is NAND working with AT91RM9200DK?

I'm currently trying to get it working with U-Boot-1.3.4 but with no
success. I did notice this strange setting in:
board/atmel/at91rm9200dk/at91rm9200dk.c

    115         /* enable the SMOE line PC0=SMCE, A21=CLE, A22=ALE */
    116         *AT91C_PIOC_ASR = AT91C_PC0_BFCK | AT91C_PC1_BFRDY_SMOE |
    117                 AT91C_PC3_BFBAA_SMWE;
    118         *AT91C_PIOC_PDR = AT91C_PC0_BFCK | AT91C_PC1_BFRDY_SMOE |
    119                 AT91C_PC3_BFBAA_SMWE;

AFAIK, PC0 (SMCS/SMCE) is supposed to be a GPIO and not a peripheral
because it is controlled manually.

If you look in include/configs/at91rm9200dk.h you will see that PC0 is
controlled via a macro.

    136 #define NAND_DISABLE_CE(nand) do { *AT91C_PIOC_SODR =
AT91C_PIO_PC0;} while(0)
    137 #define NAND_ENABLE_CE(nand) do { *AT91C_PIOC_CODR =
AT91C_PIO_PC0;} while(0)


Has anyone ever used the NAND/Smartmedia on a DK with U-Boot?

Aras

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to