Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> --- arch/arm/boards/zii-vf610-dev/board.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boards/zii-vf610-dev/board.c b/arch/arm/boards/zii-vf610-dev/board.c index 6fd49df54..c90644b04 100644 --- a/arch/arm/boards/zii-vf610-dev/board.c +++ b/arch/arm/boards/zii-vf610-dev/board.c @@ -20,6 +20,7 @@ #include <linux/clk.h> #include <dt-bindings/clock/vf610-clock.h> #include <envfs.h> +#include <mach/bbu.h> static int expose_signals(const struct gpio *signals, @@ -147,3 +148,20 @@ static int zii_vf610_dev_set_hostname(void) return 0; } late_initcall(zii_vf610_dev_set_hostname); + +static int zii_vf610_spu3_register_bbu(void) +{ + int ret; + if (!of_machine_is_compatible("zii,vf610spu3-a")) + return 0; + + ret = vf610_bbu_internal_mmc_register_handler("eMMC", "/dev/disk0", + BBU_HANDLER_FLAG_DEFAULT); + if (ret) { + pr_err("Failed to register eMMC BBU handler\n"); + return ret; + } + + return 0; +} +late_initcall(zii_vf610_spu3_register_bbu); \ No newline at end of file -- 2.17.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox