[U-Boot-Users] help reqd for flash

Wolfgang Denk wd at denx.de
Thu Jan 12 10:36:22 CET 2006

In message <OF57FEB91D.12CE4C4C-ON652570F4.00302D1B-652570F4.00319385 at tcs.com> you wrote:
> I am having some doubts regarding the flashes.
> I am having two types of flash. One flash is of ST make (M29W040B)  having 
> two chips of 512kbit size (total size is 1MB). The total sector in each 
> chip is 8.
> and another flash used for storing code.
> This is of AMD make (AM29LV160B).It is also of two chips with 2MBit and 
> total is 4MB size.The total sector is 35.
> Now my question is how to define these things in myboard.h file.
> ie 
> #define CFG_MAX_FLASH_BANKS   //what values i have to put for these 

Since you say you have two banks of flash this should be 2.

> #define CFG_MAX_FLASH_SECT    // what values i have to put for these 

What is the maximum of 8 and 35?

> #define CFG_FLASH_SIZE          //what values i have to put for these 

Nothing. Remove this definition. Only some broken ports use it. It is
not needed, and not useful. On contrary, it's crap.

> 2. I came to know from datasheet of AMD that it is CFI complaint but i did 
> get any info regarding ST make . Can anybody tell is this flash is cfi 
> complaint or not. 

Come on. Just read the chip's manual.

Best regards,

Wolfgang Denk

Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Sometimes a feeling is all we humans have to go on.
	-- Kirk, "A Taste of Armageddon", stardate 3193.9

More information about the U-Boot mailing list