lx2160a : Remove default VID setting
authorMeenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Wed, 26 Feb 2020 11:16:48 +0000 (16:46 +0530)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 30 Mar 2020 02:36:52 +0000 (08:06 +0530)
Set VID to 800 mV for Rev1 and set VID as per switch settings
for Rev2.

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/lx2160a/lx2160a.c
include/configs/lx2160aqds.h
include/configs/lx2160ardb.h

index 8e22689ec77bab6ce0387653f002036a56ef0545..971c76bf504cf522599d3857ac90ae8dcce9460c 100644 (file)
@@ -278,7 +278,14 @@ int i2c_multiplexer_select_vid_channel(u8 channel)
 
 int init_func_vid(void)
 {
-       if (adjust_vdd(0) < 0)
+       int set_vid;
+
+       if (IS_SVR_REV(get_svr(), 1, 0))
+               set_vid = adjust_vdd(800);
+       else
+               set_vid = adjust_vdd(0);
+
+       if (set_vid < 0)
                printf("core voltage not adjusted\n");
 
        return 0;
index e9e1770c9490add0ef3f22f6f3a9db4f73bde805..3dd071fa25aaafbf2d894ed8291aeb3e61cc4798 100644 (file)
@@ -121,7 +121,6 @@ u8 qixis_esdhc_detect_quirk(void);
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS              \
        EXTRA_ENV_SETTINGS                      \
-       "lx2160aqds_vdd_mv=800\0"               \
        "boot_scripts=lx2160aqds_boot.scr\0"    \
        "boot_script_hdr=hdr_lx2160aqds_bs.out\0"       \
        "BOARD=lx2160aqds\0"                    \
index 63d77c5fc4a39a95b6e05ef60b99e850e010f452..f54edf356a2271ac4b7fd4a12ed92d3caa22019b 100644 (file)
@@ -93,7 +93,6 @@
        EXTRA_ENV_SETTINGS                      \
        "boot_scripts=lx2160ardb_boot.scr\0"    \
        "boot_script_hdr=hdr_lx2160ardb_bs.out\0"       \
-       "lx2160ardb_vdd_mv=800\0"               \
        "BOARD=lx2160ardb\0"                    \
        "xspi_bootcmd=echo Trying load from flexspi..;"         \
                "sf probe 0:0 && sf read $load_addr "           \