diff options
author | Buddy Liong <a0270631@ti.com> | 2017-03-22 15:54:51 -0500 |
---|---|---|
committer | Praneeth Bajjuri <praneeth@ti.com> | 2017-04-13 15:36:00 -0500 |
commit | fa859312224e04f73b0fe8e38012aa266319c769 (patch) | |
tree | 3ae251bb984d35fdfbb44ff16a135402894b60b9 | |
parent | 845e1f195b0506a893416fd9e6e4302508ab7b4f (diff) | |
download | jacinto6evm-6AM.1.3-j6e-rvc-video-earlyboot.tar.gz |
RVC: Configure PCF8575@0x21 on I2C16AM.1.3-j6e-rvc-video-earlyboot
Signed-off-by: Buddy Liong <a0270631@ti.com>
-rw-r--r-- | board/ti/dra7xx/lateattach.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/ti/dra7xx/lateattach.c b/board/ti/dra7xx/lateattach.c index 23aa2b434b..0ce5168cfb 100644 --- a/board/ti/dra7xx/lateattach.c +++ b/board/ti/dra7xx/lateattach.c @@ -701,6 +701,14 @@ void setup_lcd_i2c(void) i2c_read(0x27, 0, 0, data, 2); debug("Read data 0x%02x 0x%02x\n", data[0], data[1]); + data[0] = 0; + data[1] = 0; + i2c_read(0x21, 0, 0, data, 2); + debug("Read data 0x%02x 0x%02x\n", data[0], data[1]); + + data[0] = data[0] & (unsigned char)(~0x81); + data[0] = data[0] | (unsigned char)(0x80); + i2c_write(0x21, 0, 0, data, 2); } void spl_setup_display(void) |