video: tegra: fb: Add interface to nvdps.
authorKevin Huang <kevinh@nvidia.com>
Tue, 10 Apr 2012 01:03:51 +0000 (18:03 -0700)
committerSimone Willett <swillett@nvidia.com>
Wed, 11 Apr 2012 22:01:37 +0000 (15:01 -0700)
commit1827824d541eef3899122e9040e0662042d935d1
treea2e2e69a5475cea3e28edbb6affe1261510da0f1
parent57b208f723b88520608beb37104acf7e264581b3
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