Commit cf071d2a authored by Denis Carikli's avatar Denis Carikli Committed by Tomi Valkeinen

video: imxfb: Add DT default contrast control register property.

Signed-off-by: default avatarDenis Carikli <denis@eukrea.com>
Acked-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: default avatarGrant Likely <grant.likely@linaro.org>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 7d3477d8
...@@ -18,6 +18,9 @@ Optional properties: ...@@ -18,6 +18,9 @@ Optional properties:
- lcd-supply: Regulator for LCD supply voltage. - lcd-supply: Regulator for LCD supply voltage.
- fsl,dmacr: DMA Control Register value. This is optional. By default, the - fsl,dmacr: DMA Control Register value. This is optional. By default, the
register is not modified as recommended by the datasheet. 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. - fsl,lscr1: LCDC Sharp Configuration Register value.
Example: Example:
......
...@@ -670,6 +670,9 @@ static int imxfb_init_fbinfo(struct platform_device *pdev) ...@@ -670,6 +670,9 @@ static int imxfb_init_fbinfo(struct platform_device *pdev)
fbi->cmap_static = of_property_read_bool(np, "cmap-static"); fbi->cmap_static = of_property_read_bool(np, "cmap-static");
fbi->lscr1 = IMXFB_LSCR1_DEFAULT; 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,lscr1", &fbi->lscr1);
of_property_read_u32(np, "fsl,dmacr", &fbi->dmacr); of_property_read_u32(np, "fsl,dmacr", &fbi->dmacr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment