board/lx2160a: Add init_func_vid() definition
authorPriyanka Jain <priyanka.jain@nxp.com>
Mon, 4 Feb 2019 06:32:36 +0000 (06:32 +0000)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Tue, 19 Feb 2019 04:56:44 +0000 (10:26 +0530)
Add init_func_vid() which calls adjust_vdd()
This ensures adjust_vdd() is called via
init_sequence_f[]

Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
board/freescale/lx2160a/lx2160a.c

index aa474d986ee93f88b3f5a816c936a5dda2b56536..bda7ccce077b6a5b282bfcc3cc188f47de68e7df 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * Copyright 2018 NXP
+ * Copyright 2018-2019 NXP
  */
 
 #include <common.h>
@@ -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)