summaryrefslogtreecommitdiff
path: root/board/amlogic/odroid-go-ultra/odroid-go-ultra.c
blob: bbd23e20fcdd1cd7439a3492fd4434088b1d61ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2023 Neil Armstrong <neil.armstrong@linaro.org>
 */

#include <common.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;
}