1 Jun 2004 04:44
question on amd flash driver of redboot
kneep <caozhiyuan <at> hotmail.com>
2004-06-01 02:44:12 GMT
2004-06-01 02:44:12 GMT
Dear All, Hello. I have a question on flash_am28xxxxx.inl for redboot. I am confused by the macro CYGNUM_FLASH_16AS8. It seems that if the flash works in word mode and I want to operate it as byte, I should NOT define the macro. My situation is as following: My flash chip is AM29LV320D. The BYTE pin is pull up to logic 1, so it can only work in word mode. In word mode A20:A0 of the flash chip are used as address pins while A20:A-1 in byte mode. A20:A0 are respectively connected to the EBI address pins of CPU EBI_A21:EBI_A1. In this situation, should I define the macro CYGNUM_FLASH_16AS8? I think I should. Here is the code: #ifndef CYGNUM_FLASH_16AS8 #define _16AS8 0 #else #define _16AS8 CYGNUM_FLASH_16AS8 #endif #if (_16AS8 == 0) # define FLASH_Setup_Addr1 (0x555) # define FLASH_Setup_Addr2 (0x2AA) ...... #else # define FLASH_Setup_Addr1 (0xAAA) # define FLASH_Setup_Addr2 (0x555) ...... If I want to write a command to the chip address 0x555(A20:A0), I would tell CPU to write the command to 0xAAA(EBI_A21:EBI_A0). Because(Continue reading)
RSS Feed