]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
added dirich5d, mt
authorMichael Traxler <M.Traxler@gsi.de>
Thu, 30 Nov 2023 01:32:14 +0000 (02:32 +0100)
committerMichael Traxler <M.Traxler@gsi.de>
Thu, 30 Nov 2023 01:32:14 +0000 (02:32 +0100)
libtrbnet/trbflash.c

index 94a585bdabaf4f722ac255238aee71ad0476742a..cdef3f4d1cdb1932676183e5d4f634425fc15cd3 100644 (file)
@@ -95,14 +95,14 @@ typedef enum
     FLASH_TRB3SC = 21,
     FLASH_DIRICH = 22,
     FLASH_DIRICH_CONCENTRATOR = 23,
-    FLASH_TRB5SC = 24,
-    
-    FLASH_MDCOEP = 25,
-    FLASH_MDCTDC = 26,
-    FLASH_FARICH = 27,
-    FLASH_DIRICH5S = 28,
-    FLASH_TOMCAT = 29,
-    FLASH_FARICH_CONCENTRATOR = 30
+    FLASH_FARICH_CONCENTRATOR = 24,
+    FLASH_TRB5SC = 25,
+    FLASH_MDCOEP = 26,
+    FLASH_MDCTDC = 27,
+    FLASH_FARICH = 28,
+    FLASH_DIRICH5S = 29,
+    FLASH_TOMCAT = 30,
+    FLASH_DIRICH5D = 31,
   } FlashType;
 
 static const char FlashTypeStr[][32] = {
@@ -137,6 +137,7 @@ static const char FlashTypeStr[][32] = {
   "Farich",
   "Dirich5s",
   "TOMcat"
+  "Dirich5d",
 };
 
 typedef struct {
@@ -391,6 +392,13 @@ static int setFlashParam(FlashParam* flashParam, uint16_t hardwareId)
     flashParam->numPages = 32768;
     break;    
 
+  case 0x9a80:
+    flashParam->flashType = FLASH_DIRICH5D;
+    flashParam->manId = 0x1728c2;
+    strcpy(flashParam->allowedStringId[0], "dirich5d");
+    flashParam->numPages = 32768;
+    break;    
+
    case 0x9b00:
     flashParam->flashType = FLASH_FARICH;
     flashParam->manId = 0x1728c2;