From 2bd766ec58cc7505ef95cf2dfea8cedc7f9d8ddd Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Sun, 1 Nov 2020 15:10:29 +0100 Subject: [PATCH] add MDC Designs to trbflash --- libtrbnet/trbflash.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/libtrbnet/trbflash.c b/libtrbnet/trbflash.c index 9b7697a..8c2e839 100644 --- a/libtrbnet/trbflash.c +++ b/libtrbnet/trbflash.c @@ -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; } -- 2.43.0