mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-02 23:44:15 +01:00
ipq807x: Fixed the i2c register and data
Change-Id: Ib0f63da02d80430893a34b4f45a303c6cb307558 Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
This commit is contained in:
parent
d6bee58b4f
commit
3e1a092e67
1 changed files with 1 additions and 2 deletions
|
|
@ -548,8 +548,7 @@ int create_data_byte(uint16_t *data, uchar *buffer, int len)
|
|||
if (len == 0) {
|
||||
return idx;
|
||||
} else {
|
||||
*data = (*data << 8);
|
||||
*data |= QUP_I2C_DATA(buffer[idx]);
|
||||
*data |= (QUP_I2C_DATA(buffer[idx]) << 8);
|
||||
idx++;
|
||||
len--;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue