mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
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:
parent
13ddc65b2c
commit
1192554d56
@ -52,6 +52,19 @@ bananapi,bpi-r3)
|
|||||||
;;
|
;;
|
||||||
esac
|
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)
|
cmcc,rax3000m)
|
||||||
case "$(cmdline_get_var root)" in
|
case "$(cmdline_get_var root)" in
|
||||||
/dev/mmc*)
|
/dev/mmc*)
|
||||||
|
@ -386,6 +386,18 @@
|
|||||||
status = "okay";
|
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 {
|
&watchdog {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user