From: makarand.karvekar Date: Tue, 2 Nov 2010 16:45:27 +0000 (-0500) Subject: [ARM] tegra: stingray: lock gen_i2c for AUO display X-Git-Tag: firefly_0821_release~9834^2~366 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=907504b0d30a509e62a7df4dddd875604adcf0d1;p=firefly-linux-kernel-4.4.55.git [ARM] tegra: stingray: lock gen_i2c for AUO display AUO display is holding i2c lines at lower voltage for few milliseconds. Change-Id: I432e5f70d4158a393b9b19336aab3d2a3f9b4cb8 Signed-off-by: makarand.karvekar --- diff --git a/arch/arm/mach-tegra/board-stingray-panel.c b/arch/arm/mach-tegra/board-stingray-panel.c index 06b37941f5cb..a7168efa314d 100644 --- a/arch/arm/mach-tegra/board-stingray-panel.c +++ b/arch/arm/mach-tegra/board-stingray-panel.c @@ -148,13 +148,16 @@ __setup("lcd_manfid=", board_lcd_manfid_init); static int stingray_panel_enable(void) { struct i2c_adapter *adapter = NULL; - if (!strncmp(lcd_manfid, "SHP", 3) && (adapter = i2c_get_adapter(0))) - i2c_lock_adapter(adapter); + + if (!strncmp(lcd_manfid, "SHP", 3) || !strncmp(lcd_manfid, "AUO", 3)) { + adapter = i2c_get_adapter(0); + if (adapter) + i2c_lock_adapter(adapter); + } gpio_set_value(STINGRAY_LVDS_SHDN_B, 1); - if (adapter) - { + if (adapter) { msleep(200); i2c_unlock_adapter(adapter); i2c_put_adapter(adapter);