[U-Boot] [PATCH v2 11/17] SPEAr : Configuring FSMC driver for NAND interface

Vipin KUMAR vipin.kumar at st.com
Tue May 4 10:48:20 CEST 2010


>> -extern int spear_nand_init(struct nand_chip *nand);
>> -#endif
>> diff --git a/board/spear/spear300/spear300.c
>> b/board/spear/spear300/spear300.c
>> index cd24247..bb98161 100644
>> --- a/board/spear/spear300/spear300.c
>> +++ b/board/spear/spear300/spear300.c
>> @@ -25,10 +25,10 @@
>>  #include <netdev.h>
>>  #include <nand.h>
>>  #include <asm/io.h>
>> +#include <linux/mtd/fsmc_nand.h>
>>  #include <asm/arch/hardware.h>
>>  #include <asm/arch/spr_defs.h>
>>  #include <asm/arch/spr_misc.h>
>> -#include <asm/arch/spr_nand.h>
>>  
>>  int board_init(void)
>>  {
>> @@ -52,7 +52,7 @@ int board_nand_init(struct nand_chip *nand)
>>          ((readl(&misc_regs_p->auto_cfg_reg) & MISC_SOCCFGMSK) ==
>>           MISC_SOCCFG31)) {
>>  
>> -        return spear_nand_init(nand);
>> +        return fsmc_nand_init(nand);
> 
> Can make this conditionally compiled with CONFIG_NAND_FSMC
> 
OK. Please find these changes in v3

Regards
Vipin


More information about the U-Boot mailing list