]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
OMAPDSS: LCD Panel: Retain GPMC-FPDLINK GPIO to high in panel probe
authorSubramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Tue, 5 Nov 2013 21:06:09 +0000 (16:06 -0500)
committerDandawate Saket <dsaket@ti.com>
Wed, 6 Nov 2013 22:04:39 +0000 (14:04 -0800)
The gpio pin used in this panel via a pcf gpio expander
is used to select between GPMC and VOUT3.

GPIO PIN SELECTION
-------------------------
HIGH GPMC INTERFACE
LOW VOUT3

Since the default setting should select GPMC, set the
GPIO to be in default value (HIGH).

It is required to have GPMC selected since ROM code hangs
after soft reset. Currently we have the GPIO pulled low causing
the softreset to fail due to hang.

To temporary overcome this issue when FPDLINK panel is not
connected we keep the GPIO as HIGH.

WHEN FPDLINK IS CONNECTED WE ARE EXPECTING THE SOFTRESET TO HANG

Change-Id: I9a121e328206e4d6b94f4302f3537696afe1a1eb
Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Signed-off-by: Dandawate Saket <dsaket@ti.com>
drivers/video/omap2/displays/panel-lg101.c

index 86147f3ef39dedc6c4a7eef7480b798a52c0698a..3c0775e5f70ff79c0e42ed0f5af9c4665b35bac4 100644 (file)
@@ -300,7 +300,7 @@ static int lg101_probe(struct omap_dss_device *dssdev)
        else
                return -EINVAL;
 
-       r = gpio_request_one(ddata->p_gpio, GPIOF_OUT_INIT_LOW, "vid3_sel");
+       r = gpio_request_one(ddata->p_gpio, GPIOF_OUT_INIT_HIGH, "vid3_sel");
        if (r)
                return r;