]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: mkimage_fit_atf: introduce BL33_BASE_ADDR
authorPeng Fan <peng.fan@nxp.com>
Fri, 21 Dec 2018 06:21:29 +0000 (06:21 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 28 Jan 2019 19:35:47 +0000 (20:35 +0100)
Introduce BL33_BASE_ADDR, then we could reuse this script for i.MX8QXP.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/mkimage_fit_atf.sh

index 77f7143263fd8b42e5052927fe972225d043bf94..38c9858e849f3f87b3f33598e5c4c98cc8252fef 100755 (executable)
@@ -9,6 +9,7 @@
 [ -z "$BL31" ] && BL31="bl31.bin"
 [ -z "$TEE_LOAD_ADDR" ] && TEE_LOAD_ADDR="0xfe000000"
 [ -z "$ATF_LOAD_ADDR" ] && ATF_LOAD_ADDR="0x00910000"
+[ -z "$BL33_LOAD_ADDR" ] && BL33_LOAD_ADDR="0x40200000"
 
 if [ ! -f $BL31 ]; then
        echo "ERROR: BL31 file $BL31 NOT found" >&2
@@ -58,7 +59,7 @@ cat << __HEADER_EOF
                        type = "standalone";
                        arch = "arm64";
                        compression = "none";
-                       load = <0x40200000>;
+                       load = <$BL33_LOAD_ADDR>;
                };
                atf@1 {
                        description = "ARM Trusted Firmware";