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 <noreply@anthropic.com>
Change-Id: I5ab71d6e7dcce925a2c91c2779964b4302ef777e
This commit is contained in:
Alexander Polakov 2026-02-17 23:39:47 +04:00
parent 3d37de4d01
commit 7fdba68524
3 changed files with 11 additions and 0 deletions

View file

@ -82,6 +82,7 @@ enum jz_device_type {
JZ_DEVICE_FIIOM3K, JZ_DEVICE_FIIOM3K,
JZ_DEVICE_SHANLINGQ1, JZ_DEVICE_SHANLINGQ1,
JZ_DEVICE_EROSQ, JZ_DEVICE_EROSQ,
JZ_DEVICE_SHANLINGM0PRO,
JZ_NUM_DEVICES, JZ_NUM_DEVICES,
}; };

View file

@ -203,6 +203,7 @@ int main(int argc, char** argv)
case JZ_DEVICE_FIIOM3K: case JZ_DEVICE_FIIOM3K:
case JZ_DEVICE_SHANLINGQ1: case JZ_DEVICE_SHANLINGQ1:
case JZ_DEVICE_EROSQ: case JZ_DEVICE_EROSQ:
case JZ_DEVICE_SHANLINGM0PRO:
return cmdline_x1000(argc, argv); return cmdline_x1000(argc, argv);
default: default:

View file

@ -50,6 +50,15 @@ static const jz_device_info infotable[JZ_NUM_DEVICES] = {
.vendor_id = 0xc502, .vendor_id = 0xc502,
.product_id = 0x0023, .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] = { static const jz_cpu_info cputable[JZ_NUM_CPUS] = {