Jagan Teki | c0f218b | 2021-03-16 21:52:03 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause |
| 2 | /* |
| 3 | * Copyright (C) 2018, STMicroelectronics - All Rights Reserved |
| 4 | * Copyright (C) 2020 Engicam S.r.l. |
| 5 | * Copyright (C) 2020 Amarula Solutions(India) |
| 6 | */ |
| 7 | |
Tom Rini | abb9a04 | 2024-05-18 20:20:43 -0600 | [diff] [blame] | 8 | #include <common.h> |
Jagan Teki | c0f218b | 2021-03-16 21:52:03 +0530 | [diff] [blame] | 9 | |
| 10 | /* board early initialisation in board_f: need to use global variable */ |
| 11 | static u32 opp_voltage_mv __section(".data"); |
| 12 | |
| 13 | void board_vddcore_init(u32 voltage_mv) |
| 14 | { |
Simon Glass | e91ac4c | 2021-07-10 21:14:24 -0600 | [diff] [blame] | 15 | if (IS_ENABLED(CONFIG_PMIC_STPMIC1) && CONFIG_IS_ENABLED(POWER)) |
Jagan Teki | c0f218b | 2021-03-16 21:52:03 +0530 | [diff] [blame] | 16 | opp_voltage_mv = voltage_mv; |
| 17 | } |
| 18 | |
| 19 | int board_early_init_f(void) |
| 20 | { |
| 21 | return 0; |
| 22 | } |
| 23 | |