mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add compatibility for APS6064L SRAM parts
This commit is contained in:
parent
5a32e47d38
commit
1087405eb9
2 changed files with 5 additions and 4 deletions
|
|
@ -34,7 +34,7 @@ pub const BAOCHIP_1X_UF2_FAMILY: u32 = 0xa7d7_6373;
|
|||
// mfg ID 0b ==> XT25Q64FWOIGT cost down option (8MiB)
|
||||
pub const SPI_FLASH_IDS: [u32; 3] = [0x1820c2, 0x3825c2, 0x17600b];
|
||||
// KGD 5D, mfg ID 9D; remainder of bits are part of the EID
|
||||
pub const RAM_IDS: [u32; 2] = [0x5D9D, 0x559d];
|
||||
pub const RAM_IDS: [u32; 3] = [0x5D9D, 0x559d, 0x5D0D];
|
||||
|
||||
/// system preemption interval
|
||||
pub const SYSTEM_TICK_INTERVAL_MS: u32 = 10;
|
||||
|
|
|
|||
|
|
@ -118,16 +118,17 @@ impl SwapHal {
|
|||
|
||||
// re-check the ID to confirm we entered QPI mode correctly
|
||||
let flash_id = flash_spim.mem_read_id_flash();
|
||||
let ram_id = ram_spim.mem_read_id_ram();
|
||||
// QPI RAM ID is not allowed on APMemory devices, so this is removed for compatibility
|
||||
// let ram_id = ram_spim.mem_read_id_ram();
|
||||
crate::println!("QPI flash ID: {:x}", flash_id);
|
||||
crate::println!("QPI ram ID: {:x}", ram_id);
|
||||
// crate::println!("QPI ram ID: {:x}", ram_id);
|
||||
assert!(
|
||||
SPI_FLASH_IDS.contains(&(flash_id & 0xFF_FF_FF)),
|
||||
"flash_id {:#x} not recognized",
|
||||
flash_id
|
||||
);
|
||||
// KGD 5D, mfg ID 9D; remainder of bits are part of the EID
|
||||
assert!(RAM_IDS.contains(&(ram_id & 0xFF_FF)), "ram_id {:#x} not recognized", ram_id);
|
||||
// assert!(RAM_IDS.contains(&(ram_id & 0xFF_FF)), "ram_id {:#x} not recognized", ram_id);
|
||||
|
||||
// allocate the buf
|
||||
let mut buf = RawPage { data: [0u8; 4096] };
|
||||
|
|
|
|||
Loading…
Reference in a new issue