aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBuddy Liong2017-03-22 15:54:51 -0500
committerPraneeth Bajjuri2017-04-13 15:36:00 -0500
commitfa859312224e04f73b0fe8e38012aa266319c769 (patch)
tree3ae251bb984d35fdfbb44ff16a135402894b60b9
parent845e1f195b0506a893416fd9e6e4302508ab7b4f (diff)
downloadu-boot-6AM.1.3-j6e-rvc-video-earlyboot.tar.gz
u-boot-6AM.1.3-j6e-rvc-video-earlyboot.tar.xz
u-boot-6AM.1.3-j6e-rvc-video-earlyboot.zip
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.c8
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)
701 i2c_read(0x27, 0, 0, data, 2); 701 i2c_read(0x27, 0, 0, data, 2);
702 debug("Read data 0x%02x 0x%02x\n", data[0], data[1]); 702 debug("Read data 0x%02x 0x%02x\n", data[0], data[1]);
703 703
704 data[0] = 0;
705 data[1] = 0;
706 i2c_read(0x21, 0, 0, data, 2);
707 debug("Read data 0x%02x 0x%02x\n", data[0], data[1]);
708
709 data[0] = data[0] & (unsigned char)(~0x81);
710 data[0] = data[0] | (unsigned char)(0x80);
711 i2c_write(0x21, 0, 0, data, 2);
704} 712}
705 713
706void spl_setup_display(void) 714void spl_setup_display(void)