FLASH_SHOWER_ADDON_V2_FPGA3 = 10,
FLASH_CTS_FPGA1 = 11,
- FLASH_CTS_FPGA2 = 12
+ FLASH_CTS_FPGA2 = 12,
+ FLASH_PEXOR = 13
} FlashType;
static const char FlashTypeStr[16][32] = {
"SHOWER_ADDON_V2_FPGA2",
"SHOWER_ADDON_V2_FPGA3",
"CTS_FPGA1",
- "CTS_FPGA2"
+ "CTS_FPGA2",
+ "PEXOR"
};
static FlashType flashType = FLASH_INVALID;
static uint32_t manId = 0;
-static const char trbflash_version[] = "$Revision: 2.29 $";
+static const char trbflash_version[] = "$Revision: 2.30 $";
static uint32_t mdcFlashSelect = 1;
fType = FLASH_CTS_FPGA2;
break;
+ case 0x7300:
+ fType = FLASH_PEXOR;
+ break;
+
default:
/* Error: Unknown FlashType */
fprintf(logFile, "Error > initTransfer: "
return -1;
}
}
-
+ fprintf(stderr, "manId is: 0x%x\n", manId);
/* Set NUM_PAGES */
switch (manId) {
}
fprintf(stdout, "Block: 0 1 2 3 4 5 6 7 8 9 A B C D E F");
fflush(stdout);
-
+
errorCtr = 0;
if ((mode != PMODE_VERIFY) && (manId == 0x1520c2)) {
}
fprintf(stdout, ".\b");
fflush(stdout);
-
+
if (!(bytesWritten > 0) && (writeInfoPage == 0)) {
fprintf(stdout, ". ");
fflush(stdout);
case FLASH_CTS_FPGA2:
strId = "cts_fpga2";
break;
-
+ case FLASH_PEXOR:
+ strId = "pexor";
+ break;
default:
abort();
break;
{
unsigned int i;
char userInfoStr[256] = "";
-
trb_debug = 0;
logFile = stderr;
mdcFlashSelect = 1;