summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRajesh Bhagat <rajesh.bhagat@nxp.com>2017-11-30 06:30:56 (GMT)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>2018-01-18 05:29:08 (GMT)
commit318f7c42b008784d8368848268e377b76dd8fbcc (patch)
tree4868c3259642f70e966c13517e2de675353b323d /common
parentd0d1638952c85878c40b6cbb10adccb316d818ac (diff)
downloadu-boot-318f7c42b008784d8368848268e377b76dd8fbcc.tar.xz
common: board_f: vid: Add VID specific API to adjust core voltage
Adds a VID specific API in init_sequence_f and spl code flow namely init_func_vid which is required to adjust core voltage. VID specific code is required in spl, hence moving flag CONFIG_VID out of spl flags. Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com> Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com> Signed-off-by: Pankit Garg <pankit.garg@nxp.com>
Diffstat (limited to 'common')
-rw-r--r--common/board_f.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 9220815..c62e778 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -201,6 +201,13 @@ static int init_func_i2c(void)
}
#endif
+#if defined(CONFIG_VID)
+__weak int init_func_vid(void)
+{
+ return 0;
+}
+#endif
+
#if defined(CONFIG_HARD_SPI)
static int init_func_spi(void)
{
@@ -815,6 +822,9 @@ static const init_fnc_t init_sequence_f[] = {
#if defined(CONFIG_SYS_I2C)
init_func_i2c,
#endif
+#if defined(CONFIG_VID) && !defined(CONFIG_SPL)
+ init_func_vid,
+#endif
#if defined(CONFIG_HARD_SPI)
init_func_spi,
#endif