mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
recognize 8MiB swap chip
This commit is contained in:
parent
38ad0363ce
commit
bceb08afb8
1 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ impl SwapHal {
|
||||||
// density 38, memory type 25, mfg ID C2 ==> MX25U12832F
|
// density 38, memory type 25, mfg ID C2 ==> MX25U12832F
|
||||||
assert!(flash_id & 0xFF_FF_FF == 0x1820C2 || flash_id & 0xFF_FF_FF == 0x38_25_C2);
|
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
|
// KGD 5D, mfg ID 9D; remainder of bits are part of the EID
|
||||||
assert!(ram_id & 0xFF_FF == 0x5D9D);
|
assert!((ram_id & 0xFF_FF == 0x5D9D) || (ram_id & 0xFF_FF == 0x559d));
|
||||||
|
|
||||||
// setup FLASH
|
// setup FLASH
|
||||||
// - QE enable
|
// - QE enable
|
||||||
|
|
@ -124,7 +124,7 @@ impl SwapHal {
|
||||||
// density 38, memory type 25, mfg ID C2 ==> MX25U12832F
|
// density 38, memory type 25, mfg ID C2 ==> MX25U12832F
|
||||||
assert!(flash_id & 0xFF_FF_FF == 0x1820C2 || flash_id & 0xFF_FF_FF == 0x38_25_C2);
|
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
|
// KGD 5D, mfg ID 9D; remainder of bits are part of the EID
|
||||||
assert!(ram_id & 0xFF_FF == 0x5D9D);
|
assert!((ram_id & 0xFF_FF == 0x5D9D) || (ram_id & 0xFF_FF == 0x559d));
|
||||||
|
|
||||||
// allocate the buf
|
// allocate the buf
|
||||||
let mut buf = RawPage { data: [0u8; 4096] };
|
let mut buf = RawPage { data: [0u8; 4096] };
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue