Skip to content

Commit

Permalink
feat: add u740 dtb/its
Browse files Browse the repository at this point in the history
  • Loading branch information
Godones committed Jul 28, 2023
1 parent 3c889bd commit 0dbb5b0
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions kernel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ buddy_system_allocator = { version = "0.9.0", optional = true }
default = ["talloc"]
vf2 = []
cv1811h = []
sifive = []
slab = []
talloc = ["talc"]
buddy = ["buddy_system_allocator"]
3 changes: 3 additions & 0 deletions kernel/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ pub const CLOCK_FREQ: usize = 12500000;
#[cfg(feature = "vf2")]
pub const CLOCK_FREQ: usize = 4000000;

#[cfg(feature = "sifive")]
pub const CLOCK_FREQ: usize = 100_0000;

#[cfg(feature = "cv1811h")]
pub const CLOCK_FREQ: usize = 0x17d7840;

Expand Down
39 changes: 39 additions & 0 deletions tools/fu740.its
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* U-Boot uImage source file for "maturin-FU740"
*/

/dts-v1/;

/ {
description = "U-Boot uImage source file for maturin-FU740";
#address-cells = <1>;

images {
kernel {
description = "Linux kernel for maturin-FU740";
data = /incbin/("../alien.bin");
type = "kernel";
arch = "riscv";
os = "linux";
compression = "none";
load = <0x80200000>;
entry = <0x80200000>;
};
fdt {
description = "Flattened Device Tree blob for FU740";
data = /incbin/("./hifive-unmatched-a00.dtb");
type = "flat_dt";
arch = "riscv";
compression = "none";
};
};

configurations {
default = "conf";
conf {
description = "Boot Linux kernel with FDT blob";
kernel = "kernel";
fdt = "fdt";
};
};
};
Binary file added tools/hifive-unmatched-a00.dtb
Binary file not shown.

0 comments on commit 0dbb5b0

Please sign in to comment.