aboutsummaryrefslogtreecommitdiff
path: root/board/amlogic/vim3/vim3.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/amlogic/vim3/vim3.c')
-rw-r--r--board/amlogic/vim3/vim3.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/amlogic/vim3/vim3.c b/board/amlogic/vim3/vim3.c
index a36df61583..824fff8262 100644
--- a/board/amlogic/vim3/vim3.c
+++ b/board/amlogic/vim3/vim3.c
@@ -10,11 +10,19 @@
#include <init.h>
#include <net.h>
#include <asm/io.h>
+#include <asm/arch/boot.h>
#include <asm/arch/eth.h>
#include <asm/arch/sm.h>
#include <i2c.h>
#include "khadas-mcu.h"
+int mmc_get_env_dev(void)
+{
+ if (meson_get_boot_device() == BOOT_DEVICE_EMMC)
+ return 2;
+ return 1;
+}
+
/*
* The VIM3 on-board MCU can mux the PCIe/USB3.0 shared differential
* lines using a FUSB340TMX USB 3.1 SuperSpeed Data Switch between