From 2b7077e02ee6cd9d8326cb0ef2cb6a721bfc01a6 Mon Sep 17 00:00:00 2001 From: Christopher Freeman Date: Fri, 24 Aug 2012 14:04:29 -0700 Subject: 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 Reviewed-on: http://git-master/r/127297 Reviewed-by: Simone Willett Tested-by: Simone Willett --- arch/arm/mach-tegra/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'arch/arm/mach-tegra/Kconfig') diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index e90ff587cc44..b9627372564f 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig @@ -578,3 +578,12 @@ config TEGRA_SKIN_THROTTLE Enable throttling to control the temperature of the skin/case of the device. endif + +config TEGRA_DC_USE_HW_BPP + bool "Default Bits Per Pixel value from tegra DC hardware" + depends on TEGRA_DC + default n + help + Programs platform data to inform DC driver to use current + hardware value for bits per pixel setting. Useful for + preserving and displaying framebuffer content from bootloader. -- cgit v1.2.3