mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-30 08:07:59 +00:00

As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
22 lines
361 B
C
22 lines
361 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2023 Neil Armstrong <neil.armstrong@linaro.org>
|
|
*/
|
|
|
|
#include <log.h>
|
|
#include <asm/arch/boot.h>
|
|
#include <power/regulator.h>
|
|
|
|
int mmc_get_env_dev(void)
|
|
{
|
|
if (meson_get_boot_device() == BOOT_DEVICE_EMMC)
|
|
return 1;
|
|
return 0;
|
|
}
|
|
|
|
int board_init(void)
|
|
{
|
|
regulators_enable_boot_on(_DEBUG);
|
|
|
|
return 0;
|
|
}
|