From d983b7a167c07d4d5ae1fd856274d54b4599ae03 Mon Sep 17 00:00:00 2001 From: Rui Silva Date: Wed, 9 Oct 2019 12:54:30 +0100 Subject: [PATCH] corstone700: fdts: using DDR memory and XIP rootfs This patch allows to use DDR address in memory node because on FPGA we typically use DDR instead of shared RAM. This patch also modifies the kernel arguments to allow the rootfs to be mounted from a direct mapping of the QSPI NOR flash using the physmap driver in the kernel. This allows to support CRAMFS XIP. Change-Id: I4e2bc6a1f48449c7f60e00f5f1a698df8cb2ba89 Signed-off-by: Vishnu Banavath Signed-off-by: Abdellatif El Khlifi --- fdts/corstone700.dts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fdts/corstone700.dts b/fdts/corstone700.dts index 8c3bd0c05..c13d3b23e 100644 --- a/fdts/corstone700.dts +++ b/fdts/corstone700.dts @@ -14,9 +14,10 @@ #size-cells = <1>; chosen { - bootargs = "console=ttyAMA0 root=/dev/vda2 rw loglevel=9"; - linux,initrd-start = <0x02a00000>; - linux,initrd-end = <0x04000000>; + bootargs = "console=ttyAMA0 \ + root=mtd:physmap-flash.0 \ + ro \ + loglevel=9"; }; cpus { @@ -32,9 +33,9 @@ }; - memory@2000000 { + memory@80000000 { device_type = "memory"; - reg = <0x02000000 0x02000000>; + reg = <0x80000000 0x80000000>; }; gic: interrupt-controller@1c000000 {