diff options
author | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-05-21 10:41:22 -0700 |
---|---|---|
committer | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-05-21 10:41:22 -0700 |
commit | 1054095bdf4d5a989ed1267051cc6fd6eefc2fcd (patch) | |
tree | 9e57e7b0b72097cf95e7c97a6664fd391d776230 | |
parent | 9946f2062837098088e4c9701614a2eeffaa921b (diff) |
Update DTS fixup for riscv,pmpregions property
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
-rwxr-xr-x | scripts/fixup-dts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/fixup-dts b/scripts/fixup-dts index 005c5de..278b835 100755 --- a/scripts/fixup-dts +++ b/scripts/fixup-dts @@ -43,7 +43,7 @@ if [ `grep -c 'riscv,pmp' ${dts}` -eq 0 ]; then $TARGET != "coreip-e20-rtl" -a \ $TARGET != "coreip-e20-arty" ]; then - ${SED} -i 's/ranges;/ranges;\n\t\tpmp: pmp@0 {\n\t\t\tcompatible = "riscv,pmp";\n\t\t\tregions = <1>;\n\t\t};/' ${dts} + ${SED} -i '/riscv,isa/a riscv,pmpregions = <1>;' ${dts} echo -e "$0: \tAdded pmp@0" fi |