From 2f3023fef4d38a4f97f76659f0a01199a94e38c5 Mon Sep 17 00:00:00 2001 From: Michael Traxler Date: Thu, 30 Nov 2023 02:32:14 +0100 Subject: [PATCH] added dirich5d, mt --- libtrbnet/trbflash.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/libtrbnet/trbflash.c b/libtrbnet/trbflash.c index 94a585b..cdef3f4 100644 --- a/libtrbnet/trbflash.c +++ b/libtrbnet/trbflash.c @@ -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; -- 2.43.0