From: hadeshyp Date: Tue, 12 Jun 2012 08:13:31 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v6.0~43 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=20cb521d82b00a7e9835bd6da1c7a36751327228;p=trbnettools.git *** empty log message *** --- diff --git a/libtrbnet/trbflash.c b/libtrbnet/trbflash.c index ed5f3e8..85bd0f8 100644 --- a/libtrbnet/trbflash.c +++ b/libtrbnet/trbflash.c @@ -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; }