Standardboot allows setting bootdevices and bootmeths in devicetree.
This is already implemented for imx8mp-libra board.

Signed-off-by: Benjamin Hahn <[email protected]>
---
 arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi  | 16 ++++++++++++++++
 arch/arm/dts/imx8mm-phygate-tauri-l-u-boot.dtsi     | 16 ++++++++++++++++
 arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi | 20 ++++++++++++++++++++
 board/phytec/phycore_imx8mp/phycore_imx8mp.env      |  6 ------
 4 files changed, 52 insertions(+), 6 deletions(-)

diff --git a/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi 
b/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi
index 512dbc9ee86a..143ce6a6d77c 100644
--- a/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi
+++ b/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi
@@ -12,6 +12,22 @@
                wdt = <&wdog1>;
                bootph-pre-ram;
        };
+
+       bootstd {
+               bootph-verify;
+               compatible = "u-boot,boot-std";
+
+               filename-prefixes = "/", "/boot/";
+               bootdev-order = "mmc2", "mmc1", "ethernet";
+
+               rauc {
+                       compatible = "u-boot,distro-rauc";
+               };
+
+               script {
+                       compatible = "u-boot,script";
+               };
+       };
 };
 
 &pinctrl_i2c1 {
diff --git a/arch/arm/dts/imx8mm-phygate-tauri-l-u-boot.dtsi 
b/arch/arm/dts/imx8mm-phygate-tauri-l-u-boot.dtsi
index f59f119374f7..26361780c01a 100644
--- a/arch/arm/dts/imx8mm-phygate-tauri-l-u-boot.dtsi
+++ b/arch/arm/dts/imx8mm-phygate-tauri-l-u-boot.dtsi
@@ -11,6 +11,22 @@
                wdt = <&wdog1>;
                bootph-pre-ram;
        };
+
+       bootstd {
+               bootph-verify;
+               compatible = "u-boot,boot-std";
+
+               filename-prefixes = "/", "/boot/";
+               bootdev-order = "mmc2", "mmc1", "ethernet";
+
+               rauc {
+                       compatible = "u-boot,distro-rauc";
+               };
+
+               script {
+                       compatible = "u-boot,script";
+               };
+       };
 };
 
 &pinctrl_uart3 {
diff --git a/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi 
b/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi
index b4efff27a70b..4804a204e922 100644
--- a/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi
+++ b/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi
@@ -12,6 +12,26 @@
                wdt = <&wdog1>;
                bootph-pre-ram;
        };
+
+       bootstd {
+               bootph-verify;
+               compatible = "u-boot,boot-std";
+
+               filename-prefixes = "/", "/boot/";
+               bootdev-order = "mmc2", "mmc1", "ethernet";
+
+               efi {
+                       compatible = "u-boot,distro-efi";
+               };
+
+               rauc {
+                       compatible = "u-boot,distro-rauc";
+               };
+
+               script {
+                       compatible = "u-boot,script";
+               };
+       };
 };
 
 &reg_usdhc2_vmmc {
diff --git a/board/phytec/phycore_imx8mp/phycore_imx8mp.env 
b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
index 1ebd9f06a0c4..f825c7bc61ff 100644
--- a/board/phytec/phycore_imx8mp/phycore_imx8mp.env
+++ b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
@@ -3,12 +3,6 @@ bootcmd=
                fastboot 0;
        fi;
        bootflow scan -lb;
-#ifdef CONFIG_BOOTMETH_RAUC
-bootmeths=rauc script efi
-#else
-bootmeths=script efi
-#endif
-boot_targets=mmc2 mmc1 usb ethernet
 boot_script_dhcp=net_boot_fit.scr.uimg
 console=ttymxc0,115200
 dofastboot=0

-- 
2.43.0

Reply via email to