Add Shanling M0 Pro to jztool

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 7fdba685244a07c32757c14bad58d92c48bdd2e7
Author: Alexander Polakov <[email protected]>
Date:   Tue Feb 17 23:39:47 2026 +0400

    Add Shanling M0 Pro to jztool
    
    Register the M0 Pro as an X1000 device in jztool for USB boot loading.
    Uses Shanling USB IDs (0x0525/0xa4a5) for mass storage identification.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    Change-Id: I5ab71d6e7dcce925a2c91c2779964b4302ef777e

diff --git a/utils/jztool/include/jztool.h b/utils/jztool/include/jztool.h
index 9d3c08c5bc..934a339af2 100644
--- a/utils/jztool/include/jztool.h
+++ b/utils/jztool/include/jztool.h
@@ -82,6 +82,7 @@ enum jz_device_type {
     JZ_DEVICE_FIIOM3K,
     JZ_DEVICE_SHANLINGQ1,
     JZ_DEVICE_EROSQ,
+    JZ_DEVICE_SHANLINGM0PRO,
     JZ_NUM_DEVICES,
 };
 
diff --git a/utils/jztool/jztool.c b/utils/jztool/jztool.c
index dcd78137b3..db6ddc92e8 100644
--- a/utils/jztool/jztool.c
+++ b/utils/jztool/jztool.c
@@ -203,6 +203,7 @@ int main(int argc, char** argv)
     case JZ_DEVICE_FIIOM3K:
     case JZ_DEVICE_SHANLINGQ1:
     case JZ_DEVICE_EROSQ:
+    case JZ_DEVICE_SHANLINGM0PRO:
         return cmdline_x1000(argc, argv);
 
     default:
diff --git a/utils/jztool/src/device_info.c b/utils/jztool/src/device_info.c
index cc431959ca..39a0408af8 100644
--- a/utils/jztool/src/device_info.c
+++ b/utils/jztool/src/device_info.c
@@ -50,6 +50,15 @@ static const jz_device_info infotable[JZ_NUM_DEVICES] = {
         .vendor_id = 0xc502,
         .product_id = 0x0023,
     },
+    [JZ_DEVICE_SHANLINGM0PRO] = {
+        .name = "shanlingm0pro",
+        .file_ext = "m0pro",
+        .description = "Shanling M0 Pro",
+        .device_type = JZ_DEVICE_SHANLINGM0PRO,
+        .cpu_type = JZ_CPU_X1000,
+        .vendor_id = 0x0525,
+        .product_id = 0xa4a5,
+    },
 };
 
 static const jz_cpu_info cputable[JZ_NUM_CPUS] = {
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.