uboot-envtools: filogic: add support for BananaPi R4

Add environment settings for the BananaPi BPI-R4 router board which
can boot from (and store its bootloader environment on) micro SD card,
SPI-NAND and eMMC.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2023-11-27 04:01:33 +00:00
parent 13ddc65b2c
commit 1192554d56
2 changed files with 25 additions and 0 deletions

View File

@ -52,6 +52,19 @@ bananapi,bpi-r3)
;;
esac
;;
bananapi,bpi-r4)
. /lib/upgrade/platform.sh
bootdev="$(platform_get_bootdev)"
case "$bootdev" in
ubi*)
ubootenv_add_ubi_default
;;
mmc*)
ubootenv_add_mmc_default "${bootdev%%p[0-9]*}"
;;
esac
;;
cmcc,rax3000m)
case "$(cmdline_get_var root)" in
/dev/mmc*)

View File

@ -386,6 +386,18 @@
status = "okay";
};
&uart1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart1_2_lite_pins>;
};
&uart2 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart2_3_pins>;
};
&watchdog {
status = "okay";
};