summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/stm32mp157c-dk2/board.c
blob: 46366031218d90d44ba87f08bf53db671ea23e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <init.h>
#include <mach/bbu.h>

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);

	barebox_set_model("STM32MP157C-DK2");

	return 0;
}
postcore_initcall(dk2_postcore_init);