video: tegra: fb: Add interface to nvdps.
authorKevin Huang <kevinh@nvidia.com>
Tue, 10 Apr 2012 01:03:51 +0000 (18:03 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 05:09:45 +0000 (10:09 +0530)
commit8b9b28a7d38fcc25194a4281fc261b34e2a94cf4
tree71c849ace0654214f644d4c2ab8bd303234815f4
parent1a1882e7ceeefe8dbe16adca9894cc5d28ca8a9d
video: tegra: fb: Add interface to nvdps.

Provide /sys/class/graphics/fb0/device/nvdps to change video mode
on-the-fly without resetting window layout like fb_set_var(). This
allows flicker free changes in refresh rate.

nvdps sysfs file takes an integer, and selects the closest matching mode
with the same or higher refresh rate. Reading the file displays the
current refresh rate.

Bug 560152

Change-Id: Id5c1eafaf338b99fa9742202b38ccbfc238b77d5
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/95473
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
arch/arm/mach-tegra/include/mach/fb.h
drivers/video/tegra/dc/dc_sysfs.c
drivers/video/tegra/fb.c