diff options
author | Rajesh Bhagat <rajesh.bhagat@nxp.com> | 2017-09-01 03:39:37 (GMT) |
---|---|---|
committer | Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> | 2017-09-04 07:05:45 (GMT) |
commit | ce8e497bbdeed32a8357b7ac475b22df2654e1a6 (patch) | |
tree | 89d0c6e0a4c4dba01efdd2b26fedffeea2fd7c63 /board/freescale/common | |
parent | 374af01f7a1753fb2bb4e0b4fded8dbc5d8e9ef2 (diff) | |
download | u-boot-ce8e497bbdeed32a8357b7ac475b22df2654e1a6.tar.xz |
ls1088a: Correct the channel number for LTC3882 voltage regulator
Corrects the channel number passed in i2c write operation for
LTC3882 voltage regulator.
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com>
Diffstat (limited to 'board/freescale/common')
-rw-r--r-- | board/freescale/common/vid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/freescale/common/vid.c b/board/freescale/common/vid.c index dcff1d1..24bdb66 100644 --- a/board/freescale/common/vid.c +++ b/board/freescale/common/vid.c @@ -176,10 +176,11 @@ static int read_voltage_from_IR(int i2caddress) static int read_voltage_from_LTC(int i2caddress) { int ret, vcode = 0; + u8 chan = PWM_CHANNEL0; /* select the PAGE 0 using PMBus commands PAGE for VDD*/ ret = i2c_write(I2C_VOL_MONITOR_ADDR, - PMBUS_CMD_PAGE, 1, PWM_CHANNEL0, 1); + PMBUS_CMD_PAGE, 1, &chan, 1); if (ret) { printf("VID: failed to select VDD Page 0\n"); return ret; |