From 42a55cc238459852e48f6019907bfb3b2f857f57 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 24 Jan 2026 23:48:57 +0800 Subject: [PATCH] add support for more flash memory types --- libs/bao1x-api/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/bao1x-api/src/lib.rs b/libs/bao1x-api/src/lib.rs index 2a970dfce..f3d199bc7 100644 --- a/libs/bao1x-api/src/lib.rs +++ b/libs/bao1x-api/src/lib.rs @@ -32,7 +32,8 @@ pub const BAOCHIP_1X_UF2_FAMILY: u32 = 0xa7d7_6373; // density 18, memory type 20, mfg ID C2 ==> MX25L128833F // density 38, memory type 25, mfg ID C2 ==> MX25U12832F // mfg ID 0b ==> XT25Q64FWOIGT cost down option (8MiB) -pub const SPI_FLASH_IDS: [u32; 3] = [0x1820c2, 0x3825c2, 0x17600b]; +// mfg ID ba ==> ZD25Q64B super-cost down option (8MiB) +pub const SPI_FLASH_IDS: [u32; 4] = [0x1820c2, 0x3825c2, 0x17600b, 0x1732ba]; // KGD 5D, mfg ID 9D; remainder of bits are part of the EID pub const RAM_IDS: [u32; 3] = [0x5D9D, 0x559d, 0x5D0D];