summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-kai-panel.c
AgeCommit message (Collapse)Author
2012-06-25arm: tegra: kai: Fix panel power on/off sequenceKen Chang
Panel power on/off sequence should meet the panel spec as below. power on: 1. EN_VDD_PNL 2. PCLK 3. LVDS_EN 4. LCD_BL_PWN power off: 1. LCD_BL_PWN 2. LVDS_EN 3. PCLK 4. EN_VDD_PNL Pixel clock on/off is controlled by dc driver, we need to separate the setting of panel enable/disable into two parts. The first, i.e., before pclk on/off, is done in kai_panel_enable()/kai_panel_prepoweroff(). And the second part, i.e., after pclk on/off, is done in kai_panel_postpoweron()/kai_panel_disable(). bug 976081 Signed-off-by: Ken Chang <kenc@nvidia.com> Reviewed-on: http://git-master/r/102555 Reviewed-by: Artiste Hsu <chhsu@nvidia.com> Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com> (cherry picked from commit 8149532e20729c359eb1680297f19a8f46343054) Change-Id: Ifc0d60c2caabf60f4186179e64756a4caabf9af6 Reviewed-on: http://git-master/r/110297 Tested-by: Ken Chang <kenc@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Artiste Hsu <chhsu@nvidia.com> Reviewed-by: Jon Mayo <jmayo@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-06-01ARM: tegra: kai: Remove tegra_gpio_enable/disableAshwini Ghuge
Removing tegra_gpio_enable and disable calls from board files as they are supported thorugh set direction calls in the driver Bug 984439 Change-Id: I4ec51c8eb68c373b7cec6903bf52539cd520b227 Reviewed-on: http://git-master/r/102813 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-04-05ARM: tegra: kai: Update measured backlight outputDaniel Solomon
Update measured backlight output for correct linearization. Bug 962780 Change-Id: Ic35b159a0b951eafff7890e7a7487f3c94b468e8 Signed-off-by: Daniel Solomon <daniels@nvidia.com> Reviewed-on: http://git-master/r/93744 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Hu He <hhe@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@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-29arm: tegra: kai: change cpu governor in early suspendKerwin Wan
Change-Id: If351e3401ce85495c78a16f7aa6eaf69d2fba0bf Signed-off-by: Hao Tang <htang@nvidia.com> Reviewed-on: http://git-master/r/85624 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-02-29arm: tegra: kai: Fix the judgement of board fab for KAIKerwin Wan
Change-Id: Id27c7e7a1894e0ce1f97fa5dab2d437814cca5ed Signed-off-by: Kerwin Wan <kerwinw@nvidia.com> Reviewed-on: http://git-master/r/84704 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@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-17arm: tegra: kai: Fix build error without TEGRA_NVMAPHiroshi DOYU
Fix build error without TEGRA_NVMAP Change-Id: Idbee58471766ab7b6e2a89bc9e994c30b362dd1a Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/79897 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-02-16arm: tegra: kai: Specify PLLD2 as backup clock sourceJohnny Qiu
Since not all possible PLLP output rates (216MHz, 408MHz or 204MHz) can provide accurate enough pixel clock rate for kai panel, use PLLD2 as backup clock source. Bug 928260 Change-Id: I2f268a1551611a9170e86cbdc44a5302edabc9f0 Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Signed-off-by: Hao Tang <htang@nvidia.com> Reviewed-on: http://git-master/r/83738 Reviewed-by: Liangchuan Mi <lmi@nvidia.com> Tested-by: Liangchuan Mi <lmi@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-02-09arm: tegra: kai: Panel fixes for A01 board.Rakesh Iyer
Modify panel GPIO for A01 board. Signed-off-by: Rakesh Iyer <riyer@nvidia.com> Reviewed-on: http://git-master/r/77610 (cherry picked from commit 4b45da8a3f35b81772d328d860bff20fe8a46927) Change-Id: I13c1bc000eb9642d0d44d787f6c4db08be5c42a7 Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/79991 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-01-30arm: tegra: kai: create board filesJohnny Qiu
Create initial board files and config files for Kai. Reviewed-on: http://git-master/r/74441 Change-Id: I4b07607da85fe4bcb00e5fce2ddbc2a83471b1de Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77296 Reviewed-by: Automatic_Commit_Validation_User