[U-Boot-Users] help reqd for flash

Hi all, 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 defined variables #define CFG_MAX_FLASH_SECT // what values i have to put for these defined variable #define CFG_FLASH_SIZE //what values i have to put for these defined variable #define CFG_FLASH_ERASE_TOUT 8000 /* Timeout for Flash Erase (in ms) */ #define CFG_FLASH_WRITE_TOUT 5 /* Timeout for Flash Write (in ms) */ #define CFG_FLASH_LOCK_TOUT 5 /* Timeout for Flash Set Lock Bit (in ms) */ #define CFG_FLASH_UNLOCK_TOUT 10000 /* Timeout for Flash Clear Lock Bits (in ms) */ #define CFG_FLASH_PROTECTION
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. Please help me in this regard. Thanks in advance. Prabha J. Tata Consultancy Services Limited Mailto: prabha.j@tcs.com Website: http://www.tcs.com
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you

In message OF57FEB91D.12CE4C4C-ON652570F4.00302D1B-652570F4.00319385@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.
- 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

Hi Mr Denk, I searched in the web and came to know that M29W040B is not CFI complaint. Now my question is one flash is CFI complaint ie AM29LV160 and other is not. In this case is it possible to use CFI driver. Thanks in advance Best Regards
Prabha J. Tata Consultancy Services Limited Mailto: prabha.j@tcs.com Website: http://www.tcs.com
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you

In message OF72587CB0.47B77E3D-ON652570F4.0045505B-652570F4.00459564@tcs.com you wrote:
I searched in the web and came to know that M29W040B is not CFI complaint. Now my question is one flash is CFI complaint ie AM29LV160 and other is not. In this case is it possible to use CFI driver.
Ummm... isn;t this obvious? Yes, you can use it - but only for the CFI compliant flash device.
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the infor mation contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attach ments. Thank you --=_alternative 00459548652570F4_= Content-Type: text/html; charset="US-ASCII"
THIS IS A WARNING: Please stop ignoring my requests. Make sure not to include that nonsense trailer which *forbids* to send such a message to a public mailing list, and make sure not to post HTML here.
I will not accept this.
Wolfgang Denk
participants (2)
-
prabha.j@tcs.com
-
Wolfgang Denk