Skip to contentSkip to conversation

How to add new flash support in Uboot code

U-Boot-Users harsh poshtiwala 3 participants 3 messages May 1, 2007 – May 2, 2007

lore
Share & tools
lore
#0 lore raw

Hi ,

We are to use 512 MB Spansion NOR flash (Uniform Sector) on ARM926-EJS processor..

Part number S29GL512P

http://www.spansion.com/products/S29GL512P.html

I have checked uboot source code(1.1.6) it doesn't support this part.

How can i make uboot functional for this part ?

Do i need to modify any code in uboot ? if yes where should i make those changes ?

I would appreciate your pointers on this

Signature · 2 lines
Thanks & Regards
Harsh
#1 lore raw
Quoted 5 lines · harsh poshtiwala

Hi ,

We are to use 512 MB Spansion NOR flash (Uniform Sector) on ARM926-EJS processor..

Quoted 7 lines

Part number S29GL512P

http://www.spansion.com/products/S29GL512P.html

I have checked uboot source code(1.1.6) it doesn't support this part.

How can i make uboot functional for this part ?

Use the CFI flash support. We use the following for S29GL128N in our board config file.
you might have to tweak the values, but it should 'just work'.

/*
* Flash Controller settings
*/
#define CFG_FLASH_CFI 1
#define CFG_FLASH_CFI_DRIVER 1
#define CFG_FLASH_CFI_AMD_RESET

#define CFG_FLASH_USE_BUFFER_WRITE      1
#define CFG_ENV_SECT_SIZE               0x00020000
#define CFG_MAX_FLASH_BANKS             1
#define CFG_MAX_FLASH_SECT              256
#define CFG_FLASH_BASE                  0x10000000
Signature · 2 lines
Hardware, n.:
        The parts of a computer system that can be kicked.
#2 lore raw
In reply to harsh poshtiwala
Quoted 11 lines · harsh poshtiwala

Hi ,

We are to use 512 MB Spansion NOR flash (Uniform Sector) on ARM926-EJS processor..

Part number S29GL512P

http://www.spansion.com/products/S29GL512P.html

I have checked uboot source code(1.1.6) it doesn't support this part.

Quoted 8 lines

How can i make uboot functional for this part ?

Do i need to modify any code in uboot ? if yes where should i make those changes ?

I would appreciate your pointers on this

For CFI compatible chips please use the CFI driver. There is no need to add individual flash chips to the list.

Tolunay