From: Priyanka Jain Date: Mon, 4 Feb 2019 06:32:36 +0000 (+0000) Subject: board/lx2160a: Add init_func_vid() definition X-Git-Tag: v2019.04-rc3~14^2~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=edc975b8aa33f8afafd45f14b4e00afa3cc0f72b;p=oweals%2Fu-boot.git board/lx2160a: Add init_func_vid() definition Add init_func_vid() which calls adjust_vdd() This ensures adjust_vdd() is called via init_sequence_f[] Signed-off-by: Priyanka Jain Reviewed-by: Prabhakar Kushwaha --- diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c index aa474d986e..bda7ccce07 100644 --- a/board/freescale/lx2160a/lx2160a.c +++ b/board/freescale/lx2160a/lx2160a.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ /* - * Copyright 2018 NXP + * Copyright 2018-2019 NXP */ #include @@ -111,6 +111,13 @@ int i2c_multiplexer_select_vid_channel(u8 channel) return select_i2c_ch_pca9547(channel); } +int init_func_vid(void) +{ + if (adjust_vdd(0) < 0) + printf("core voltage not adjusted\n"); + + return 0; +} #endif int checkboard(void)