diff options
author | Rajesh Bhagat <rajesh.bhagat@nxp.com> | 2018-01-17 16:13:02 +0530 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2018-01-23 11:19:25 -0800 |
commit | 3607570b11838efee524ad76ccae207afd92fe5a (patch) | |
tree | c3da66f0509c1eb5992d14f72e443b605e4e8108 | |
parent | c535ad4e91662e4be41d216251739aef84108757 (diff) | |
download | u-boot-3607570b11838efee524ad76ccae207afd92fe5a.tar.gz u-boot-3607570b11838efee524ad76ccae207afd92fe5a.tar.xz u-boot-3607570b11838efee524ad76ccae207afd92fe5a.zip |
board: common: vid: Add board specific vdd adjust API
Adds a board specific API namely board_adjust_vdd which
is required to define the board VDD adjust settings.
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
-rw-r--r-- | board/freescale/common/vid.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/board/freescale/common/vid.c b/board/freescale/common/vid.c index bf63ce007a..89904c199c 100644 --- a/board/freescale/common/vid.c +++ b/board/freescale/common/vid.c @@ -34,6 +34,14 @@ int __weak board_vdd_drop_compensation(void) } /* + * Board specific settings for specific voltage value + */ +int __weak board_adjust_vdd(int vdd) +{ + return 0; +} + +/* * Get the i2c address configuration for the IR regulator chip * * There are some variance in the RDB HW regarding the I2C address configuration @@ -470,6 +478,11 @@ int adjust_vdd(ulong vdd_override) vdd_last = set_voltage(i2caddress, vdd_current); } + if (board_adjust_vdd(vdd_target) < 0) { + ret = -1; + goto exit; + } + if (vdd_last > 0) printf("VID: Core voltage after adjustment is at %d mV\n", vdd_last); |