blob: 8f3f2045d74d3323d4ab9650a66c51010bb8e291 [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
Tom Rinidec7ea02024-05-20 13:35:03 -06006#include <log.h>
Neil Armstrong48112632023-02-10 11:25:07 +01007#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}