video: imxfb: Add DT default contrast control register property.
authorDenis Carikli <denis@eukrea.com>
Fri, 14 Mar 2014 10:55:52 +0000 (11:55 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 17 Mar 2014 10:26:28 +0000 (12:26 +0200)
Signed-off-by: Denis Carikli <denis@eukrea.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Documentation/devicetree/bindings/video/fsl,imx-fb.txt
drivers/video/imxfb.c

index e6b1ee9b8e2e7fbf27dbd5d95cd7071a67f3c949..0329f60d431e10ce5feb14878d654649d9767543 100644 (file)
@@ -18,6 +18,9 @@ Optional properties:
 - lcd-supply: Regulator for LCD supply voltage.
 - fsl,dmacr: DMA Control Register value. This is optional. By default, the
        register is not modified as recommended by the datasheet.
+- fsl,lpccr: Contrast Control Register value. This property provides the
+       default value for the contrast control register.
+       If that property is ommited, the register is zeroed.
 - fsl,lscr1: LCDC Sharp Configuration Register value.
 
 Example:
index 086e0243123277de1febddcffba73fb556e49bcc..f6e621684953c9b6c3b9fed324694b3632684b8f 100644 (file)
@@ -670,6 +670,9 @@ static int imxfb_init_fbinfo(struct platform_device *pdev)
                fbi->cmap_static = of_property_read_bool(np, "cmap-static");
 
                fbi->lscr1 = IMXFB_LSCR1_DEFAULT;
+
+               of_property_read_u32(np, "fsl,lpccr", &fbi->pwmr);
+
                of_property_read_u32(np, "fsl,lscr1", &fbi->lscr1);
 
                of_property_read_u32(np, "fsl,dmacr", &fbi->dmacr);