add support for more flash memory types

This commit is contained in:
bunnie 2026-01-24 23:48:57 +08:00
parent b6e85f551d
commit 42a55cc238

View file

@ -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];