diff options
author | Benoit Parrot <bparrot@ti.com> | 2013-06-19 02:18:31 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-06-20 08:08:01 +0400 |
commit | dc28aa072f502433b6adc5c9ae8f56955c07580a (patch) | |
tree | 1ad878f61cc05cd5005be10573e9024d6753b82a /drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | |
parent | d6f76f3707b809c1a7f7b7a931f6e7aaa861e0e2 (diff) | |
download | linux-dc28aa072f502433b6adc5c9ae8f56955c07580a.tar.xz |
gpu:drm:tilcdc: get preferred_bpp value from DT
The preferred_bpp value in currently hard-coded to 16.
This causes color corruption on the am335x-evm lcd panel which
requires 32 bpp instead. This changes attempts to use the configured
bpp value from the DT or built-in panel-info struct.
Signed-off-by: Benoit Parrot <bparrot@ti.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/tilcdc/tilcdc_tfp410.c')
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c index a36788fbcd98..925c7cddeff9 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c @@ -354,6 +354,8 @@ static int tfp410_probe(struct platform_device *pdev) goto fail; } + mod->preferred_bpp = dvi_info.bpp; + i2c_node = of_find_node_by_phandle(i2c_phandle); if (!i2c_node) { dev_err(&pdev->dev, "could not get i2c bus node\n"); |