From 1054095bdf4d5a989ed1267051cc6fd6eefc2fcd Mon Sep 17 00:00:00 2001 From: Nathaniel Graff Date: Tue, 21 May 2019 10:41:22 -0700 Subject: Update DTS fixup for riscv,pmpregions property Signed-off-by: Nathaniel Graff --- scripts/fixup-dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.1-18-gbd029