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>
;;
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*)
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";
};