1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2023 Neil Armstrong <neil.armstrong@linaro.org>
4  */
5 
6 #include <common.h>
7 #include <asm/arch/boot.h>
8 #include <power/regulator.h>
9 
mmc_get_env_dev(void)10 int mmc_get_env_dev(void)
11 {
12 	if (meson_get_boot_device() == BOOT_DEVICE_EMMC)
13 		return 1;
14 	return 0;
15 }
16 
board_init(void)17 int board_init(void)
18 {
19 	regulators_enable_boot_on(_DEBUG);
20 
21 	return 0;
22 }
23