summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/init/bootsource
diff options
context:
space:
mode:
authorStefan Riedmueller <s.riedmueller@phytec.de>2019-07-10 13:17:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-07-11 07:15:33 +0200
commitd868e618245decfcc089505964b9e77c0a89918f (patch)
treee91cfdd76e7ef578ef1e838a2e75984208ece4f3 /arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/init/bootsource
parenta48cbe615e0b3e580b5e2ebcce445c10d77fb0c5 (diff)
downloadbarebox-d868e618245decfcc089505964b9e77c0a89918f.tar.gz
barebox-d868e618245decfcc089505964b9e77c0a89918f.tar.xz
ARM: phytec-som-imx: imx6ul: Add eMMC support
Add initial support for phyCORE-i.MX 6UL/ULL with eMMC. Including board code and default environment. Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/init/bootsource')
-rw-r--r--arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/init/bootsource17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/init/bootsource b/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/init/bootsource
new file mode 100644
index 0000000000..beb7afe9c2
--- /dev/null
+++ b/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/init/bootsource
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+if [ -n "$nv.boot.default" ]; then
+ exit
+fi
+
+if [ $bootsource = mmc ]; then
+ if [ $bootsource_instance = 0 ]; then
+ global.boot.default="mmc emmc nand spi net"
+ elif [ $bootsource_instance = 1 ]; then
+ global.boot.default="emmc mmc nand spi net"
+ fi
+elif [ $bootsource = nand ]; then
+ global.boot.default="nand spi mmc net"
+elif [ $bootsource = net ]; then
+ global.boot.default="net nand spi mmc"
+fi