xilinx: Remove scriptaddr from config files and move it to DT
authorMichal Simek <michal.simek@amd.com>
Thu, 3 Aug 2023 12:51:53 +0000 (14:51 +0200)
committerMichal Simek <michal.simek@amd.com>
Thu, 21 Sep 2023 11:20:10 +0000 (13:20 +0200)
Define bootscript address in RAM via DT property and remove it from config
file. Adding default value to common DTSI. Platform DT description can
remove this property or rewrite it.

In Zynq case scriptaddr property was defined twice for no reason.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/d36ffeb00ed8f0ca4bb67d4983d1852d01ade637.1691067102.git.michal.simek@amd.com
arch/arm/dts/xilinx-versal-net-virt.dts
arch/arm/dts/xilinx-versal-virt.dts
arch/arm/dts/zynq-7000.dtsi
arch/arm/dts/zynqmp.dtsi
include/configs/xilinx_versal.h
include/configs/xilinx_versal_net.h
include/configs/xilinx_zynqmp.h
include/configs/zynq-common.h

index c99257c..f5eca84 100644 (file)
@@ -8,4 +8,10 @@
 /dts-v1/;
 
 / {
+       options {
+               u-boot {
+                       compatible = "u-boot,config";
+                       bootscr-address = /bits/ 64 <0x20000000>;
+               };
+       };
 };
index 733e532..3ea3cb1 100644 (file)
@@ -8,4 +8,10 @@
 /dts-v1/;
 
 / {
+       options {
+               u-boot {
+                       compatible = "u-boot,config";
+                       bootscr-address = /bits/ 64 <0x20000000>;
+               };
+       };
 };
index 8c6eafe..fb61fe9 100644 (file)
        #size-cells = <1>;
        compatible = "xlnx,zynq-7000";
 
+       options {
+               u-boot {
+                       compatible = "u-boot,config";
+                       bootscr-address = /bits/ 64 <0x3000000>;
+               };
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
index 1632be8..355f360 100644 (file)
        #address-cells = <2>;
        #size-cells = <2>;
 
+       options {
+               u-boot {
+                       compatible = "u-boot,config";
+                       bootscr-address = /bits/ 64 <0x20000000>;
+               };
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
index a403999..98792ab 100644 (file)
@@ -40,7 +40,6 @@
        "kernel_size_r=0x10000000\0" \
        "kernel_comp_addr_r=0x30000000\0" \
        "kernel_comp_size=0x3C00000\0" \
-       "scriptaddr=0x20000000\0" \
        "ramdisk_addr_r=0x02100000\0" \
        "script_size_f=0x80000\0"
 
index 613cce4..e17b440 100644 (file)
@@ -54,7 +54,6 @@
        "kernel_size_r=0x10000000\0" \
        "kernel_comp_addr_r=0x30000000\0" \
        "kernel_comp_size=0x3C00000\0" \
-       "scriptaddr=0x20000000\0" \
        "ramdisk_addr_r=0x02100000\0" \
        "script_size_f=0x80000\0"
 
index 74264b7..51f0a42 100644 (file)
@@ -57,7 +57,6 @@
        "kernel_size_r=0x10000000\0" \
        "kernel_comp_addr_r=0x30000000\0" \
        "kernel_comp_size=0x3C00000\0" \
-       "scriptaddr=0x20000000\0" \
        "ramdisk_addr_r=0x02100000\0" \
        "script_size_f=0x80000\0" \
        "stdin=serial\0" \
index e372e90..553bb1b 100644 (file)
 /* Default environment */
 #ifndef CFG_EXTRA_ENV_SETTINGS
 #define CFG_EXTRA_ENV_SETTINGS \
-       "scriptaddr=0x20000\0"  \
        "script_size_f=0x40000\0"       \
        "fdt_addr_r=0x1f00000\0"        \
        "pxefile_addr_r=0x2000000\0"    \
        "kernel_addr_r=0x2000000\0"     \
-       "scriptaddr=0x3000000\0"        \
        "ramdisk_addr_r=0x3100000\0"    \
        BOOTENV
 #endif