Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
franzflasch committed Feb 21, 2024
1 parent b921774 commit 2fb6741
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions dts/riscv_em.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
model = "riscv-virtio,qemu";

chosen {
bootargs = "root=/dev/vda ro console=ttyS0";
stdout-path = "/uart@10000000";
bootargs = "root=/dev/vda ro console=ttySU0";
stdout-path = "/uart@3000000";
};

cpus {
Expand All @@ -21,7 +21,9 @@
compatible = "riscv";
riscv,isa = "rv64ima";
mmu-type = "none";
clock-frequency = <10000000>;
cpu0_intc: interrupt-controller {
#address-cells = <1>;
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
Expand Down Expand Up @@ -57,8 +59,8 @@
interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7>;
};

/* FIXME: This is probably not correct for now */
plic0: interrupt-controller@c000000 {
#address-cells = <2>;
#interrupt-cells = <1>;
interrupt-controller;
compatible = "riscv,plic0";
Expand Down
2 changes: 2 additions & 0 deletions dts/riscv_em32_linux.dts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
mmu-type = "riscv,sv32";
clock-frequency = <10000000>;
cpu0_intc: interrupt-controller {
#address-cells = <1>;
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
Expand Down Expand Up @@ -50,6 +51,7 @@

/* FIXME: This is probably not correct for now */
plic0: interrupt-controller@c000000 {
#address-cells = <2>;
#interrupt-cells = <1>;
interrupt-controller;
compatible = "riscv,plic0";
Expand Down
4 changes: 2 additions & 2 deletions firmware/sections.lds
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MEMORY
{
FLASH (rx) : ORIGIN = 0x80000000, LENGTH = 0x001000 /* entire flash, 4 MiB */
RAM (xrw) : ORIGIN = 0x80001000, LENGTH = 0x003000 /* 1 KB */
FLASH (rx) : ORIGIN = 0x80000000, LENGTH = 0x001000
RAM (xrw) : ORIGIN = 0x80001000, LENGTH = 0x003000
}

SECTIONS {
Expand Down

0 comments on commit 2fb6741

Please sign in to comment.