This is an automated email from Gerrit.

"Jack Doan <g...@jackdoan.com>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/7580

-- gerrit

commit df3d3ba884db327a2d306a24bc3ef818a9407be1
Author: Jack Doan <g...@jackdoan.com>
Date:   Tue Apr 4 12:22:14 2023 -0500

    flash/nor/at91samd: add PIC32CM support
    
    Add new device IDs
    
    Signed-off-by: Jack Doan <g...@jackdoan.com>
    Change-Id: I48e928dcf5d60625e9cea6d133973b198b5be353

diff --git a/src/flash/nor/at91samd.c b/src/flash/nor/at91samd.c
index 416f077783..af70df5e15 100644
--- a/src/flash/nor/at91samd.c
+++ b/src/flash/nor/at91samd.c
@@ -70,6 +70,7 @@
 #define SAMD_SERIES_10         0x02
 #define SAMD_SERIES_11         0x03
 #define SAMD_SERIES_09         0x04
+#define SAME_SERIES_PIC32CM            0x07
 
 /* Device ID macros */
 #define SAMD_GET_PROCESSOR(id) (id >> 28)
@@ -300,6 +301,14 @@ static const struct samd_part samc21_parts[] = {
        { 0x21, "SAMC21N17A", 128, 16 },
 };
 
+/* Known PIC32CM parts. */
+static const struct samd_part pic32cm_parts[] = {
+    { 0x00, "PIC32CM1216MC00032", 128, 16 },
+    { 0x01, "PIC32CM6408MC00032", 64, 8 },
+    { 0x06, "PIC32CM1216MC00048", 128, 16 },
+    { 0x07, "PIC32CM6408MC00048", 64, 8 },
+};
+
 /* Each family of parts contains a parts table in the DEVSEL field of DID.  The
  * processor ID, family ID, and series ID are used to determine which exact
  * family this is and then we can use the corresponding table. */
@@ -341,6 +350,9 @@ static const struct samd_family samd_families[] = {
        { SAMD_PROCESSOR_M0, SAMD_FAMILY_C, SAMD_SERIES_21,
                samc21_parts, ARRAY_SIZE(samc21_parts),
                (uint64_t)0xFFFF03FFFC01FF77 },
+    { SAMD_PROCESSOR_M0, SAMD_FAMILY_C, SAME_SERIES_PIC32CM,
+        pic32cm_parts, ARRAY_SIZE(pic32cm_parts),
+        (uint64_t)0xFFFF03FFFC01FF77 },
 };
 
 struct samd_info {

-- 

Reply via email to