Skip to content

Commit

Permalink
VF2: dump DTIM, apply erratum
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Maslowski <info@orangecms.org>
  • Loading branch information
orangecms committed Jan 26, 2024
1 parent 58417a2 commit 30ee2fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/mainboard/starfive/visionfive2/bt0/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,10 @@ fn main() {
}

if true {
const DTIM_BASE: usize = 0x0110_1000;
// Erratum: The manual says that the range is 0x0110_1000:0x0110_1fff,
// but also that the size is 8k. From the mask ROM, it is clear that
// 0x0110_0000 is the correct start address.
const DTIM_BASE: usize = 0x0110_0000;
const DTIM_SIZE: usize = 8 * 1024;
dump_block(DTIM_BASE, DTIM_SIZE, 0x20);
}
Expand Down
2 changes: 1 addition & 1 deletion xtask/src/starfive/visionfive2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use layoutflash::areas::{create_areas, Area};
use super::visionfive2_hdr::spl_create_hdr;

const HEADER_SIZE: usize = 0x400;
const SRAM_SIZE: usize = 0x5_3000;
const SRAM_SIZE: usize = 0x1_3000;

const ARCH: &str = "riscv64";
const TARGET: &str = "riscv64imac-unknown-none-elf";
Expand Down

0 comments on commit 30ee2fc

Please sign in to comment.