]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Tue, 12 Jun 2012 08:13:31 +0000 (08:13 +0000)
committerhadeshyp <hadeshyp>
Tue, 12 Jun 2012 08:13:31 +0000 (08:13 +0000)
libtrbnet/trbflash.c

index ed5f3e80ee6aa4136d93dc63845a223d71b3b64e..85bd0f8034335a752579670dd0c83a048fcfa491 100644 (file)
@@ -82,7 +82,9 @@ typedef enum
     FLASH_TRB3_FPGA_1 = 15,
     FLASH_TRB3_FPGA_2 = 16,
     FLASH_TRB3_FPGA_3 = 17,
-    FLASH_TRB3_FPGA_4 = 18
+    FLASH_TRB3_FPGA_4 = 18,
+    
+    CBM_RICH_1 = 19
   } FlashType;
 
 static const char FlashTypeStr[][32] = {
@@ -104,7 +106,8 @@ static const char FlashTypeStr[][32] = {
   "TRB3 FPGA 1",
   "TRB3 FPGA 2",
   "TRB3 FPGA 3",
-  "TRB3 FPGA 4"
+  "TRB3 FPGA 4",
+  "CBM RICH V1"
 };
 
 typedef struct {
@@ -117,7 +120,7 @@ typedef struct {
 } FlashParam;
 
 static FlashParam flashParamRef;
-static const char trbflash_version[] = "$Revision: 2.38 $";
+static const char trbflash_version[] = "$Revision: 2.39 $";
 
 static uint32_t mdcFlashSelect = 1;
 
@@ -304,7 +307,14 @@ static int setFlashParam(FlashParam* flashParam, uint16_t hardwareId)
     strcpy(flashParam->allowedStringId[4], "trb3_fpga4");
     flashParam->numPages = 32768;
     break;
+
+  case 0x9200:
+    flashParam->flashType = CBM_RICH_1;
+    flashParam->manId = 0x1720c2;
+    strcpy(flashParam->allowedStringId[0], "cbmrich");
+    flashParam->numPages = 32768;
+    break;    
+    
   default:
     return -1;
   }