blob: bbd23e20fcdd1cd7439a3492fd4434088b1d61ed [file] [log] [blame]
Neil Armstrong48112632023-02-10 11:25:07 +01001// 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
10int mmc_get_env_dev(void)
11{
12 if (meson_get_boot_device() == BOOT_DEVICE_EMMC)
13 return 1;
14 return 0;
15}
16
17int board_init(void)
18{
19 regulators_enable_boot_on(_DEBUG);
20
21 return 0;
22}