gpu:drm:tilcdc: get preferred_bpp value from DT
authorBenoit Parrot <bparrot@ti.com>
Tue, 18 Jun 2013 22:18:31 +0000 (17:18 -0500)
committerDave Airlie <airlied@redhat.com>
Thu, 20 Jun 2013 04:08:01 +0000 (14:08 +1000)
commitdc28aa072f502433b6adc5c9ae8f56955c07580a
tree1ad878f61cc05cd5005be10573e9024d6753b82a
parentd6f76f3707b809c1a7f7b7a931f6e7aaa861e0e2
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>
drivers/gpu/drm/tilcdc/tilcdc_drv.c
drivers/gpu/drm/tilcdc/tilcdc_drv.h
drivers/gpu/drm/tilcdc/tilcdc_panel.c
drivers/gpu/drm/tilcdc/tilcdc_slave.c
drivers/gpu/drm/tilcdc/tilcdc_tfp410.c