summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2020-03-31 11:47:13 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2020-04-03 08:21:28 +0200
commit04402b776a58e2ca901f0c55cfb7d409c88b8c5e (patch)
tree8d9f034b0983fa5e09c913e697fd178c52759abf /arch
parent30b21c251ca98697469494885469339ecf264a1e (diff)
downloadbarebox-04402b776a58e2ca901f0c55cfb7d409c88b8c5e.tar.gz
barebox-04402b776a58e2ca901f0c55cfb7d409c88b8c5e.tar.xz
ARM: zii-imx8mq-dev: Register SD card slot with BBU
Register SD card slot with BBU. This is really useful for development since this allows to update the bootloader on SD card without having to take it out of the device. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boards/zii-imx8mq-dev/board.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/boards/zii-imx8mq-dev/board.c b/arch/arm/boards/zii-imx8mq-dev/board.c
index 285e889fe2..cfe879c201 100644
--- a/arch/arm/boards/zii-imx8mq-dev/board.c
+++ b/arch/arm/boards/zii-imx8mq-dev/board.c
@@ -33,6 +33,7 @@ static int zii_imx8mq_dev_init(void)
imx8mq_bbu_internal_mmcboot_register_handler("eMMC", "/dev/mmc0",
BBU_HANDLER_FLAG_DEFAULT);
+ imx8mq_bbu_internal_mmc_register_handler("SD", "/dev/mmc1", 0);
if (bootsource_get_instance() == 0)
of_device_enable_path("/chosen/environment-emmc");