]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
add MDC Designs to trbflash
authorJan Michel <j.michel@gsi.de>
Sun, 1 Nov 2020 14:10:29 +0000 (15:10 +0100)
committerJan Michel <j.michel@gsi.de>
Sun, 1 Nov 2020 14:10:40 +0000 (15:10 +0100)
libtrbnet/trbflash.c

index 9b7697a874a1f918c590f7c13db0d0c8301e4935..8c2e839ebbece09df2a5f7bb5a1c2756817a28a0 100644 (file)
@@ -95,8 +95,10 @@ typedef enum
     FLASH_TRB3SC = 21,
     FLASH_DIRICH = 22,
     FLASH_DIRICH_CONCENTRATOR = 23,
-    FLASH_TRB5SC = 24
+    FLASH_TRB5SC = 24,
     
+    FLASH_MDCOEP = 25,
+    FLASH_MDCTDC = 26
   } FlashType;
 
 static const char FlashTypeStr[][32] = {
@@ -124,7 +126,9 @@ static const char FlashTypeStr[][32] = {
   "TRB3sc",
   "Dirich",
   "DirichConcentrator",
-  "Trb5sc"
+  "Trb5sc",
+  "MDC OEP",
+  "MDC TDC"
 };
 
 typedef struct {
@@ -377,7 +381,21 @@ static int setFlashParam(FlashParam* flashParam, uint16_t hardwareId)
     strcpy(flashParam->allowedStringId[0], "trb5sc");
     flashParam->numPages = 32768;
     break;    
-  
+
+  case 0xa610:
+    flashParam->flashType = FLASH_MDCOEP;
+    flashParam->manId = 0x1523c2;
+    strcpy(flashParam->allowedStringId[0], "mdcoep");
+    flashParam->numPages = 16384;
+    break;        
+
+  case 0xa700:
+    flashParam->flashType = FLASH_MDCTDC;
+    flashParam->manId = 0x1523c2;
+    strcpy(flashParam->allowedStringId[0], "mdctdc");
+    flashParam->numPages = 16384;
+    break;    
+    
   default:
     return -1;
   }