mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add new flash IDs to swap routine as well
This commit is contained in:
parent
cb466c24a3
commit
19741d3615
1 changed files with 4 additions and 2 deletions
|
|
@ -235,7 +235,8 @@ impl SwapHal {
|
|||
crate::println!("flash ID: {:x}", flash_id);
|
||||
crate::println!("ram ID: {:x}", ram_id);
|
||||
// density 18, memory type 20, mfg ID C2 ==> MX25L128833F
|
||||
assert!(flash_id & 0xFF_FF_FF == 0x1820C2);
|
||||
// density 38, memory type 25, mfg ID C2 ==> MX25U12832F
|
||||
assert!(flash_id & 0xFF_FF_FF == 0x1820C2 || flash_id & 0xFF_FF_FF == 0x38_25_C2);
|
||||
// KGD 5D, mfg ID 9D; remainder of bits are part of the EID
|
||||
assert!(ram_id & 0xFF_FF == 0x5D9D);
|
||||
|
||||
|
|
@ -260,7 +261,8 @@ impl SwapHal {
|
|||
crate::println!("QPI flash ID: {:x}", flash_id);
|
||||
crate::println!("QPI ram ID: {:x}", ram_id);
|
||||
// density 18, memory type 20, mfg ID C2 ==> MX25L128833F
|
||||
assert!(flash_id & 0xFF_FF_FF == 0x1820C2);
|
||||
// density 38, memory type 25, mfg ID C2 ==> MX25U12832F
|
||||
assert!(flash_id & 0xFF_FF_FF == 0x1820C2 || flash_id & 0xFF_FF_FF == 0x38_25_C2);
|
||||
// KGD 5D, mfg ID 9D; remainder of bits are part of the EID
|
||||
assert!(ram_id & 0xFF_FF == 0x5D9D);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue