[openwrt/openwrt] mpc85xx: reserve upper 1MB of RAM for WS-AP3825i

LEDE Commits lede-commits at lists.infradead.org
Sat Apr 8 05:47:23 PDT 2023


blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/1d4d21481fcd75a07be081ddb4044ee5ae457b93

commit 1d4d21481fcd75a07be081ddb4044ee5ae457b93
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Sun Apr 2 17:52:16 2023 +0200

    mpc85xx: reserve upper 1MB of RAM for WS-AP3825i
    
    The bootpage for the second core is placed by U-Boot in the upper 128k
    of syste-memory.
    
    This could either be a reserved-area or deducted from the total
    system-memory. As only the latter is parsed by the bootwrapper, reduce
    the available system memory for linux in order to preserve the bootpage
    from being overwritten.
    
    Signed-off-by: David Bauer <mail at david-bauer.net>
---
 target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts
index c07167b40f..a347900e5d 100644
--- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts
+++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts
@@ -301,7 +301,8 @@
 	};
 
 	memory {
-		reg = <0x0 0x0 0x0 0x10000000>;
+		/* Reserve upper MB for second-core-bootpage */
+		reg = <0x0 0x0 0x0 0xff00000>;
 	};
 
 	soc at ffe00000 {




More information about the lede-commits mailing list