summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-whistler-panel.c
AgeCommit message (Collapse)Author
2012-07-06ARM: tegra: whistler: get rid of gpio enable/disable callsSanjay Singh Rawat
Gpio direction setting and freeing functions will do the needful now. Bug 984440 Change-Id: I32b1b0d67d2ebe1aa8b766b633fe675543714812 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/104938 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2012-07-03video: backlight: use gpio request and free apis for backlight pinSanjay Singh Rawat
- Gpio freeing function does disabling job. - If backlight pin is an sfio, we have to claim the gpio. So that we can use the gpio api's to configure it as sfio. bug 984440 bug 858120 Change-Id: I583bf4a486d2d9a6d9b78ee459b1962379eafd3b Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/109564 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-06-19arm: tegra: Fix cpu governor change issuePuneet Saxena
It fixes the issue where cpu governor change was inconsistent across platforms. In T2x, AUTO HOTPLUG is disabled therefore we need to store/restore gov for all online cpus across LP0 cycle. In T3x, AUTO HOTPLUG is enabled therefore storing/restoring gov for Cpu0 across LP0 cycle. Cpu0 remains online in suspend and resume. bug 991081 Change-Id: I167654aa21e4832b3fdc40e3d388a4d3f984632b Signed-off-by: Puneet Saxena <puneets@nvidia.com> Reviewed-on: http://git-master/r/105404 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-06-14video: tegra: host: Register devices in SoC filesTerje Bergstrom
Move the device structures to the driver source code files. Register all nvhost_device's in one loop which is called from board file. host1x driver code is moved to live under host1x, too. This causes a need to add host to include path of tegradc and nvavp. Bug 982965 Change-Id: If99cf9d1ef6bc24663ee8294c19370429ed04ca7 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/104076 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-05-21arm: tegra: governor: change governor using cpufreq interfacePuneet Saxena
Older code sets "conservative" governor in early-suspend using sysfs entries.This implementation changes governor in early-suspend using cpufreq interfaces. bug 871958 Change-Id: I721afb6184982a063dc5f330da31f8fb88481cfd Signed-off-by: Puneet Saxena <puneets@nvidia.com> Reviewed-on: http://git-master/r/100849 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-05-18arm: tegra: Use nvmap.h include file from kernel/includeKrishna Reddy
Use nvmap.h include file from kernel/include instead of mach-tegra/include. Bug 854182 Change-Id: Ic82b35d6c2e1c49461575a7bbbfd28ee43921466 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/102723 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Jon Mayo <jmayo@nvidia.com>
2012-03-06video: tegra: host: register nvhost master device in board-xxx-panel.cMayuresh Kulkarni
- the suspend order of devices is governed by the order in which devices are registered - this commit ensures that nvhost master is registered before any of the graphics devices - previously this was done in rootfs_init call which is later than arch_init calls of board-xxx-panel.c - this caused tegra-dc device to be registered *before* nvhost master device. as a result it was suspended *later* than nvhost master device. this is a clear violation of dependency rule for nvhost. this caused suspend-resume to fail for L4T - this worked on android as it has CONFIG early suspend enabled while it failed for L4T which doesn't have CONFIG early suspend enabled Bug 947617 Change-Id: I6cd405f3ba23d004e7659140019f5130e6c25159 Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-on: http://git-master/r/87756 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
2012-02-28video: tegra: host: Merge tegra_grhost and host1x devicesMayuresh Kulkarni
- tegra_grhost is a platform device that represents host1x - nvhost has device host1x which represents the same hardware - merge these two device structs - as the new struct is a nvhost_device, platform_driver is also converted into a nvhost_driver - register nvhost device before other graphics devices. this ensures that nvhost_probe() is called as soon as nvhost_driver is registered with the core. - this also ensures that nvmap is probed first, followed by nvhost, followed by tegra-dc and nvavp (if they are enabled). Change-Id: Ic420a6516a9cb20d6f481692a4db10fa6053dd90 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-on: http://git-master/r/82631 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-02-22ARM: tegra: whistler: HDMI audio while screen is blankBharat Nihalani
continue to play HDMI audio past earlysuspend (when internal screen is powered down). this is accomplished by using FB_BLANK_NORMAL on HDMI display in earlysuspend instead of FB_BLANK_POWERDOWN. Bug 934699 Original change done for other boards by Jon Mayo <jmayo@nvidia.com> Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-on: http://git-master/r/83104 (cherry picked from commit 00f2c63b39c4b41dc07c0fb3d9b2bfde81e84936) Change-Id: Ia773235a4e5e57d3caa17f78a51df3c2be7e6d9d Reviewed-on: http://git-master/r/84889 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-01-30arm: tegra: modify governor parameter set functionWen Yi
Use the parameter name and value to set to the conservative governor. Also defined the value of freq_step to be 3 and set it during early suspension. Bug 922351 Reviewed-on: http://git-master/r/73841 Change-Id: Ieefa487f8b255d4bf242a7d98b07dc3758a70e86 Signed-off-by: Wen Yi <wyi@nvidia.com> Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77743 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-12-28arm: tegra: Create nvmap dev based on config flag.Krishna Reddy
Create nvmap dev and related resources only when CONFIG_TEGRA_NVMAP is defined. Change-Id: Iee9e43de79767353a750f73cddd6550a74315cff Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/70699 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
2011-11-30ARM: tegra: early switch to default governorSachin Nikam
In <board>_panel_late_resume() first switch to default governor before fb_blank(). Bug 843845 Original-Change-Id: Ic6e3bc1da10631fc8a4525e57039c94ee552f7d2 Signed-off-by: Sachin Nikam <snikam@nvidia.com> Reviewed-on: http://git-master/r/39193 Reviewed-by: Manoj Gangwal <mgangwal@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R8339db8cd0669a0ae84fea09a3e5bb74a361e52a
2011-11-30arm: tegra: add hdmi to earlysuspendGaurav Sarode
use FB_BLANK_POWERDOWN on hdmi device in earlysuspend to cause tegra_dc_disable. This change applies to enterprise,whistler and ventana. Fixes bug 835171 Original-Change-Id: I792ab60344667acbdfcbd65a2ba697c2e7b59a78 Reviewed-on: http://git-master/r/35854 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com> Rebase-Id: Re7370f7899d4ab85f1813aa9a1ace3a46a390f65
2011-11-30arm: tegra: set cpufreq governor parameterWen Yi
The new parameters help cpu frequency stay in low level clock as much as possible. This helps reduce power consumption when display is off. BUG 817727 Original-Change-Id: I030319d78e793a0372008a5c0640dce3720a47d8 Reviewed-on: http://git-master/r/35266 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com> Rebase-Id: R3f23d70511bdef66d451307288e5d81f2e7611a3
2011-11-30ARM: tegra: common: dynamic cpufreq governorBharat Nihalani
To improve the power consumption situation for MP3 playback the scaling governor is set to conservative when display is turned off and the default governor is saved. The governor is restored when display is turned on. Bug 817727 Original work done by "Wen Yi <wyi@nvidia.com>" Original-Change-Id: I43ffb0d508cc6d0a80eeeffcbab77526b644c437 Reviewed-on: http://git-master/r/32194 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com> Rebase-Id: R0fe8b1a81147abdcc8bffd83705131221b9d3cb2
2011-11-30arm: tegra: whistler/ventana: dynamic cpufreq governorWen Yi
To improve the power consumption situation for MP3 playback the scaling governor is set to conservative when display is turned off and the default governor is saved. The governor is restored when display is turned on. Bug 817727 Original-Change-Id: I8693b5ae4c83d00895f2fae3db9397dd894de722 Reviewed-on: http://git-master/r/28270 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R57555b3494b891d6e6afdcb389089560ba8b2fb8
2011-11-30ARM: tegra: whistler: blank display at early suspensionWen Yi
When early suspension is triggered, blank display and when later_resume is triggered, un-blank display. Bug 803498 Original-Change-Id: I2c2a18fbc0074215cf2adf668097d32fa3dbd566 Reviewed-on: http://git-master/r/23719 Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R56dbb4570837ea34306a3fd536ee1d7498a80cb3
2011-11-30arm: tegra: whistler: Add LCD physical sizeJoshua Cha
To get correct xdpi/ydpi information in android framework, we should add LCD physical size information in mm unit to dc out structure. Bug 903247 Change-Id: I497256a423c78f976b4e0bfdda94422cf900286a Reviewed-on: http://git-master/r/66023 Tested-by: Joshua Cha <joshuac@nvidia.com> Reviewed-by: Joshua Cha <joshuac@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Re22637cdb581d7cc9abdb6f1ce1c5969e8b8c240
2011-11-30arm: tegra: Make kernel buildable without nvhostTerje Bergstrom
Cuts dependencies to nvhost by adding a Kconfig dependency from DC to GRHOST and from HD Audio to DC. Configure out calls to nvhost in board panel files if GRHOST is not present. Bug 870898 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Change-Id: If7830528e321e951bcadc2a10515e6cab58a6cdf Reviewed-on: http://git-master/r/56370 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Antti Miettinen <amiettinen@nvidia.com> Tested-by: Antti Miettinen <amiettinen@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Chris Dragan <kdragan@nvidia.com> Rebase-Id: R16d9286d67235b0697c914476e7d6462eec7f3ac
2011-11-30arm: tegra: whistler: remove SFIO setting for PWM signalJoseph Lehrer
bug 858120 Original-Change-Id: Ia2ea872870f4d043907214ff829a5c0ee6d3e308 Reviewed-on: http://git-master/r/46855 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rb76da1f9ff81f23f2a290637c96c019540f02b82
2011-11-30nvhost: Move include files to kernel/includeTerje Bergstrom
To prepare for kernel modularization, nvhost include files need to be moved from mach-tegra/include to kernel/include. At the same time user space specific part is split into nvhost_ioctl.h. Bug 854182 Original-Change-Id: I3694a40d786028733310ecf5b59341282af571be Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/43211 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rc4fadf65d59ddfb5bb924e7adfccd39e86a0b2c7
2011-11-30arm: tegra: adding max_pixclock to board-xxx-panel.cDonghan Ryu
setting max_pixclock for cardhu, enterprise, ventana and enterprise to 148.5Mhz Original-Change-Id: Ia734bdb9817913183bbf721bf3c14573c9a75888 Reviewed-on: http://git-master/r/35254 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rad2bb72f869ade2720ed313599fb882c571e80da
2011-11-30arm: tegra: cardhu: Fix the issue of boot screen corruption.Kevin Huang
- The issue is due to the corruption of bootloader fb during kernel initialization. This change reserves the bootloader fb and then frees it until bootloader fb is copied to fb for Cardhu, Ventana, Whistler, Enterprise and Aruba. - Change color depth of Cardhu and Harmony to 32-bit. Bug 828271 Bug 832016 Original-Change-Id: I05ef5930ee68dcbd672a5cb59b4568a2c88a2e55 Reviewed-on: http://git-master/r/34966 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rb3c9280ea4643ccee661d37d24fb540319470bf7
2011-11-30ARM: tegra: whistler: Use common IRAM carveoutScott Williams
Change-Id: I17abffdfc338d5e8a6e678fa38605b1aeee651fa Signed-off-by: Scott Williams <scwilliams@nvidia.com> DW: Split into logical changes Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Rebase-Id: R56b6dbaecbd330a0f547375c4680dee6217f04c3
2011-11-30arm: tegra: whistler: backlight supportJoseph Lehrer
bug 773671 Original-Change-Id: I4e2898b17e47b186cd7ffa64d79d38f69bcce269 Reviewed-on: http://git-master/r/19601 Tested-by: Joseph Lehrer <jlehrer@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com> Rebase-Id: R605e62fef6564bae2955d54714a914d25f01ca94
2011-11-30[ARM] tegra: whistler: hdmi supportSachin Nikam
Registering second display controller for hdmi. And HDMI hotplug detection gpio. Original-Change-Id: I8428044f034698b4158f8aabc8ab39aba9cf5f2d Reviewed-on: http://git-master/r/15233 Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Tested-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R9ec5401e1675f9b56ed6ffbf5ccc1a7814bd5f3a
2011-11-30Initial whistler backlight supportTom Cherry
Original-Change-Id: I6ec5ec582470feb389a988ae6b48f08b04fc6402 Reviewed-on: http://git-master/r/12349 Tested-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R830e8b7be3a97869bdba9fe43fd1db0950c52f2a
2011-11-30tegra: whistler: memblock_reserveTom Cherry
use memblock_reserve fb functions for fb memory reservation Cherry-picked from http://git-master/r/#change,11090 Original-Change-Id: I71c47dfb381eb070c87b94620989ff99b053df30 Reviewed-on: http://git-master/r/12348 Tested-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R77e20833f546484ef5780d1f46bac282b4cdf451
2011-11-30Initial whistler panel supportTom Cherry
Original-Change-Id: I39d19f408d8ecfff67b132a5d22884c541dd54cd Reviewed-on: http://git-master/r/12347 Tested-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R0a0c5e6fe56f339b867c5ed809b4cc2a0cbea0a8
2011-11-30Initial Whistler support in K36Tom Cherry
Original-Change-Id: I6fce3852aa1e5063c45caa72c53d6f095db969b7 Reviewed-on: http://git-master/r/11640 Tested-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Rb8c00a412d29ee52d6ad680af817dd1cd99fc727