Neil Armstrong | 4811263 | 2023-02-10 11:25:07 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2023 Neil Armstrong <neil.armstrong@linaro.org> |
| 4 | */ |
| 5 | |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 6 | #include <log.h> |
Neil Armstrong | 4811263 | 2023-02-10 11:25:07 +0100 | [diff] [blame] | 7 | #include <asm/arch/boot.h> |
| 8 | #include <power/regulator.h> |
| 9 | |
| 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 | |
| 17 | int board_init(void) |
| 18 | { |
| 19 | regulators_enable_boot_on(_DEBUG); |
| 20 | |
| 21 | return 0; |
| 22 | } |