]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: dts: rk3399-puma: put environment (in MMC/SD configurations) before SPL
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 19 Jul 2017 12:32:22 +0000 (14:32 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Thu, 27 Jul 2017 12:59:02 +0000 (14:59 +0200)
As our SPL stage can grow quite large (80KB+ are not unusual) on the
RK3399-Q7, the default setting for the environment location (in
include/configs/rockchip-common.h) can overlap our SPL.

This change finally makes use of the 'u-boot,mmc-env-offset' DTS
property to override the environment location and put it at 16KB into
the device, which is right before the SPL (located at 32KB).

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/dts/rk3399-puma.dtsi

index 1aad6c508e41f5b25898a2452068f4b3c4d1aa72..04918861f408f8b2a9b9019794d5e714f80cd1c2 100644 (file)
@@ -12,7 +12,8 @@
        compatible = "tsd,rk3399-q7", "tsd,puma", "rockchip,rk3399";
 
        config {
-               u-boot,spl-payload-offset = <0x40000>; /* 256kbyte */
+               u-boot,spl-payload-offset = <0x40000>; /* @ 256KB */
+               u-boot,mmc-env-offset = <0x4000>;      /* @  16KB */
                u-boot,boot-led = "module_led";
        };