From 30b21c251ca98697469494885469339ecf264a1e Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 31 Mar 2020 11:47:12 -0700 Subject: ARM: zii-vf610-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 Signed-off-by: Sascha Hauer --- arch/arm/boards/zii-vf610-dev/board.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arch') diff --git a/arch/arm/boards/zii-vf610-dev/board.c b/arch/arm/boards/zii-vf610-dev/board.c index 6b80ec4282..35fc9e4040 100644 --- a/arch/arm/boards/zii-vf610-dev/board.c +++ b/arch/arm/boards/zii-vf610-dev/board.c @@ -162,6 +162,14 @@ static int zii_vf610_dev_register_bbu(void) return ret; } + ret = vf610_bbu_internal_mmc_register_handler("SD", + "/dev/mmc1", + 0); + if (ret) { + pr_err("Failed to register SD BBU handler\n"); + return ret; + } + return 0; } late_initcall(zii_vf610_dev_register_bbu); -- cgit v1.2.3