summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tilcdc/tilcdc_drv.h
diff options
context:
space:
mode:
authorBenoit Parrot <bparrot@ti.com>2013-06-18 17:18:31 -0500
committerDave Airlie <airlied@redhat.com>2013-06-20 14:08:01 +1000
commitdc28aa072f502433b6adc5c9ae8f56955c07580a (patch)
tree1ad878f61cc05cd5005be10573e9024d6753b82a /drivers/gpu/drm/tilcdc/tilcdc_drv.h
parentd6f76f3707b809c1a7f7b7a931f6e7aaa861e0e2 (diff)
downloadlinux-dc28aa072f502433b6adc5c9ae8f56955c07580a.tar.gz
linux-dc28aa072f502433b6adc5c9ae8f56955c07580a.tar.bz2
linux-dc28aa072f502433b6adc5c9ae8f56955c07580a.zip
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_drv.h')
-rw-r--r--drivers/gpu/drm/tilcdc/tilcdc_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.h b/drivers/gpu/drm/tilcdc/tilcdc_drv.h
index 8242b5a4307b..090684341fdb 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_drv.h
+++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.h
@@ -89,6 +89,7 @@ struct tilcdc_module {
const char *name;
struct list_head list;
const struct tilcdc_module_ops *funcs;
+ unsigned int preferred_bpp;
};
void tilcdc_module_init(struct tilcdc_module *mod, const char *name,