video: tegra: cardhu: Default bpp from hardware
authorChristopher Freeman <cfreeman@nvidia.com>
Fri, 24 Aug 2012 21:04:29 +0000 (14:04 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 08:26:00 +0000 (01:26 -0700)
commitf1e323cc287dc13a033f73cf90d55bf0a3dd3d58
treeec5165c00f6dede43ae08106ec84a3c1975a9eed
parentaafbfaf6dd9d5444550b7f3cd1d24e37d1c645c0
video: tegra: cardhu: Default bpp from hardware

This patch adds:

1. A kernel config option that hints to DC driver
to use the current value of the color depth
register as the default for initializing the FB
driver.

2. Checks to see if DC is enabled before reading
off the color depth register in tegra_dc_probe.

Change-Id: I852cc1328fcf42f33052f46b86d753e691744329
Signed-off-by: Christopher Freeman <cfreeman@nvidia.com>
Reviewed-on: http://git-master/r/127297
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
drivers/video/tegra/dc/dc.c