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 | |
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')
-rw-r--r-- | board/freescale/common/vid.c | 3 | ||||
-rw-r--r-- | board/freescale/ls1088a/ls1088a.c | 3 |
2 files changed, 4 insertions, 2 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; diff --git a/board/freescale/ls1088a/ls1088a.c b/board/freescale/ls1088a/ls1088a.c index fbdc245..a2b9b68 100644 --- a/board/freescale/ls1088a/ls1088a.c +++ b/board/freescale/ls1088a/ls1088a.c @@ -316,10 +316,11 @@ int i2c_multiplexer_select_vid_channel(u8 channel) int get_serdes_volt(void) { int ret, vcode = 0; + u8 chan = PWM_CHANNEL0; /* Select the PAGE 0 using PMBus commands PAGE for VDD */ ret = i2c_write(I2C_SVDD_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; |