[U-Boot-Users] [PATCH] support MXIC NOR flash part on AMCC 440EP bamboo eval board

My AMCC "bamboo" 440EP eval board arrived stuffed with a MXIC flash part instead of the AMD part called for on the schematic. This part was not recognized by u-boot. The following trivial patch gets it working.
Kevin
Index: board/amcc/common/flash.c =================================================================== --- board/amcc/common/flash.c (revision 1) +++ board/amcc/common/flash.c (working copy) @@ -76,6 +76,9 @@ case FLASH_MAN_SST: printf("SST "); break; + case FLASH_MAN_MX: + printf("MXIC "); + break; default: printf("Unknown Vendor "); break; @@ -648,6 +651,9 @@ case (CFG_FLASH_WORD_SIZE) STM_MANUFACT: info->flash_id = FLASH_MAN_STM; break; + case (CFG_FLASH_WORD_SIZE) MX_MANUFACT: + info->flash_id = FLASH_MAN_MX; + break; default: info->flash_id = FLASH_UNKNOWN; info->sector_count = 0; @@ -665,6 +671,11 @@ info->flash_id += FLASH_AM320T; info->sector_count = 71; info->size = 0x00400000; break; /* => 4 MB */ + + case (CFG_FLASH_WORD_SIZE)MX_ID_LV320T: + info->flash_id += FLASH_AM320T; /* compatible with AMD part. */ + info->sector_count = 67; + info->size = 0x00400000; break; /* => 4 MB */
case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320B: info->flash_id += FLASH_AM320B;
participants (1)
-
Kevin Vigor