diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-07 14:26:42 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-07 14:26:42 +0100 |
commit | cd8a909bb3e7af6d905e4b554b10a3bf9718f5c5 (patch) | |
tree | 9cc4ccf3fcd9c54d6290f56deeeb32ecf4841641 /arch/arm/boards | |
parent | 701a6ae36b6c818ff936952576d5e33ed710ddb5 (diff) | |
parent | 52cc061f50aa12adcef0a00c9a56eb7c60865a1c (diff) | |
download | barebox-cd8a909bb3e7af6d905e4b554b10a3bf9718f5c5.tar.gz barebox-cd8a909bb3e7af6d905e4b554b10a3bf9718f5c5.tar.xz |
Merge branch 'for-next/stm32'
Diffstat (limited to 'arch/arm/boards')
-rw-r--r-- | arch/arm/boards/stm32mp157c-dk2/board.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/boards/stm32mp157c-dk2/board.c b/arch/arm/boards/stm32mp157c-dk2/board.c index 9cb861af85..f15ae0b4af 100644 --- a/arch/arm/boards/stm32mp157c-dk2/board.c +++ b/arch/arm/boards/stm32mp157c-dk2/board.c @@ -4,6 +4,7 @@ #include <init.h> #include <asm/memory.h> #include <mach/stm32.h> +#include <mach/bbu.h> static int dk2_mem_init(void) { @@ -15,3 +16,15 @@ static int dk2_mem_init(void) return 0; } mem_initcall(dk2_mem_init); + +static int dk2_postcore_init(void) +{ + if (!of_machine_is_compatible("st,stm32mp157c-dk2")) + return 0; + + stm32mp_bbu_mmc_register_handler("sd", "/dev/mmc0.ssbl", + BBU_HANDLER_FLAG_DEFAULT); + + return 0; +} +postcore_initcall(dk2_postcore_init); |