video: tegra: cardhu: Default bpp from hardware
authorChristopher Freeman <cfreeman@nvidia.com>
Fri, 24 Aug 2012 21:04:29 +0000 (14:04 -0700)
committerSimone Willett <swillett@nvidia.com>
Wed, 29 Aug 2012 01:52:35 +0000 (18:52 -0700)
commit2b7077e02ee6cd9d8326cb0ef2cb6a721bfc01a6
tree2acc9f5a0cc9649d74f99d25781d957cfd0fc406
parent6bc9afa39a1d2a0b2c909fb019ca49d848d96d63
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>
arch/arm/mach-tegra/Kconfig
arch/arm/mach-tegra/board-cardhu-panel.c
drivers/video/tegra/dc/dc.c