summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)Author
2010-05-05tegra: Save CPU local timers as part of CPU contextScott Williams
Use the ARM-provided method for saving the Cortex-A9 local timers rather than saving them via other means. Change-Id: I28c2760ed2fd2ea3367a89e759a01c62e3ea1304 Reviewed-on: http://git-master/r/1302 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Tested-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com> Reviewed-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Tested-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com>
2010-05-05tegra ODM: Added CPU rail sequencer delay.Alex Frid
Added CPU rail power up sequencer delay on Whistler to make sure that core rail is powered On 1st on LP0 exit. Change-Id: I1156186048b80584f6409f3dfbbdb76fa8b80345 Reviewed-on: http://git-master/r/1304 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-04tegra kbc: Fixing android boot if key is kept press during boot.Laxman Dewangan
Following changes are done: - Created the new workqueue for the kbc scan process. On default workqueue, the msleep() was not causing the schedule() to booting process. - If there is no entry in fifo then wait for the next scan to complete before re-reading the number of entries in the fifo. if there is no entry then rep key released. - Fixed timing calculation and size of the event entry array. - Fixed the debaunce count calculation from debaunce time from odm. Tested on whistler, with normal boot as well as with continous key pressed d the entire boot time. Change-Id: I53b321ae6f5e1f425b51edcd63f7de4ae404e505 Reviewed-on: http://git-master/r/1238 Reviewed-by: Hu He <hhe@nvidia.com> Tested-by: Hu He <hhe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-04tegra: Clean up low-level power codeScott Williams
- Moved power header and partitioned in to SOC-specific and SOC-independent parts. - Eliminated assembly literals in favor of MOV32. - Fixed low-power state enumerators. - Cleaned up assembly statement whitespaces. Change-Id: Ie157f8840eb238f9bf5602c74a974e00408b8ddc Reviewed-on: http://git-master/r/1275 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Tested-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-04tegra lp0 : entry with sdBitan Biswas
Changed the SD wakeup polarity to AnyEdge from low Bug 676009 : [Harmony/LP0] Harmony exits LP0 immediately and hangs (if SD Card is mounted) Tested on : harmony. LP0 entry works with SD inserted after above changes. Change-Id: I337cd304610bb284e0f6bc16ec93e7135de19e09 Reviewed-on: http://git-master/r/1202 Reviewed-by: Deepesh Subhash Gujarathi (Engrg-Mobile) <dgujarathi@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-05-03tegra: Avoid the use of literals in assembly codeScott Williams
Literals can be problematic in certain types of code. Avoid them by taking advantage of ARMv7 architecture features. Change-Id: I0784a94e82b1bfcdefe857e65a22de68f2acf976 Reviewed-on: http://git-master/r/1255 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Tested-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-03tegra: Importing native pinmux driver.Laxman Dewangan
Implementing the native pinmux driver. Changing the nvrm pinmux to use the native pinmux driver. Remove the support for ap15 and ap16 pinmux. Remove the unused api for ap20. Tested on whistler, harmony. Change-Id: Ibb2f9eb363f495674f9f72dd89a09a659374eeb8 Reviewed-on: http://git-master/r/1128 Tested-by: Dara Ramesh <dramesh@nvidia.com> Reviewed-by: John Davis <jodavis@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-03tegra ODM: Added support for re-worked E1108 board.Alex Frid
Added support for re-worked E1108 board - (Fab 01, rev D). Change-Id: Ic109e57fbe0c868ad8e438db47b6b56df4dd5a42 Reviewed-on: http://git-master/r/1272 Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-02tegra odm: Enable USB-VBUS detection through pmu.Venkat Moganty
Enabled USB-VBUS detection through pmu on whistler for turning off USB power rail to reduce the USB power when there is no cable connection. Bug 667912: AVDD_USB_Power is consuming 3.82mW of power in OSIdle and ULP audio playback case. Tested on Android/whistler and USB power goes to 0mW. Change-Id: Ia4bdc327b6d1b86921c296cadc48c3a4a2c35e73 Reviewed-on: http://git-master/r/1245 Tested-by: Dara Ramesh <dramesh@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-05-02tegra pmu: Add USB-VBUS detection through pmu.Venkat Moganty
Added functionality to detect the VBUS and turn on/off the USB power rail. Bug 667912: AVDD_USB_Power is consuming 3.82mW of power in OSIdle and ULP audio playback case. Change-Id: Ia64e5a04eff16c1ebec2afe1c7bc1e8f72f9da30 Reviewed-on: http://git-master/r/1224 Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Tested-by: Dara Ramesh <dramesh@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-05-02tegra usb:Modifications to usb power up/down sequenceVenkat Moganty
Removed helper thread and replaced it with Worker Queues in udc and ehci drivers to handle usbphy power up/down sequence. Made changes to turn off usb power rail based on vbus detection mechanism is selected as PMU. Fixed usb host LP0 exit sequence. Bug 667912: AVDD_USB_Power is consuming 3.82mW of power in OSIdle and ULP audio playback case. Change-Id: I3a77d0ecb4f0b81dafe705100451c42641f0bfb9 Reviewed-on: http://git-master/r/1221 Tested-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Tested-by: Dara Ramesh <dramesh@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-04-29tegra accelerometer:Adding ODM Bosch accelerometer driver.vdumpa
Checking ODM Bosch accelerometer driver for BMA150 part. This is not a complete driver. The interrupts from BMA150 are not reliably received. The polling mode works fine. This driver need to be updated for changing config settings through sysfs interface. Change-Id: I1492c5661509ba23c3967ed3ea1908bfb4336948 Reviewed-on: http://git-master/r/1180 Reviewed-by: Gary King <gking@nvidia.com> Reviewed-by: Hoang Pham <hopham@nvidia.com> Tested-by: Hoang Pham <hopham@nvidia.com>
2010-04-29tegra dma: Correcting the typo error.Laxman Dewangan
Correcting the spelling error in enum definition TEGRA_DMA_REQ_ERROR_ABOTRED to TEGRA_DMA_REQ_ERROR_ABORTED. Tested on harmony. Change-Id: Ie28aea9f87c1a0a2d3f27ce6132fb3eb48eb59e6 Reviewed-on: http://git-master/r/1225 Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com> Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Tested-by: Ramachandrudu Kandhala <rkandhala@nvidia.com>
2010-04-29tegra : Increase DMA region size to 4M for Tegra platforms.Venkata(Muni) Anda
Default value of 2MB for DMA allocations is not large enough to cover all the DMA allocation use cases of Tegra drivers. 4MB is a safe and working value. Change-Id: I1f1e9db64ece21e9eef94c909a36cb1a2f50ed68 Reviewed-on: http://git-master/r/1247 Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com> Tested-by: Venkata (Muni) Anda <vanda@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-04-28tegra DFS Clients: Adding DFS tag names for bunch of DFS clients.shranjan
This change should help in finding which drivers are sending busy hints at run time. Bug 475616: All DFS clients should specify client tags while registering with DFS Change-Id: Ic46cebba485dfc1e1b546276658bbcf04fe25d6f Reviewed-on: http://git-master/r/1205 Reviewed-by: Sharad Ranjan <shranjan@nvidia.com> Tested-by: Sharad Ranjan <shranjan@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-04-28tegra harmony: remove the WAR added to turn on disaply after resumeMayuresh Kulkarni
When this code was written, we were not aware of how to turn on harmony's display using a single key press. Also, after resume if none of the wake-locks is acquired then system immediately goes to suspend. To avoid this, we added this WAR to acquire a timed wake lock of 10 sec. This gives the user a chance to either press a key/insert-remove usb cable/insert-remove SD card after which the display turns on. Now that we have the way to turn on display by any press, this WAR is not needed. Tested on android + harmony (A02, R04 EC firmware) for LP0 and LP1. For bug 680652 - [SW] Harmony specific suspend_ops implementation Change-Id: I26492f01ed8cf07c5cf448c0e1f67dc99251aaf4 Reviewed-on: http://git-master/r/1236 Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Tested-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-04-28tegra RM: Tuned DVFS NRT starvation and LC detection.Alex Frid
- Tuned CPU non real-time starvation (NRT) parameters to increase DVFS responsiveness: reduced boost degradation rate to 12%/sample (from 50%/sample); increased initial boost step to 10MHz. - Updated low corner (LC) detection: dropped activity margin from corner hit requirements; cut off NRT degradation tail (this should keep LP2 duty cycle unchanged despite NRT boost increase) Change-Id: I747e7342cb25d8d103577bd2ad01c92446340f42 Reviewed-on: http://git-master/r/1218 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Sharad Ranjan <shranjan@nvidia.com> Tested-by: Sharad Ranjan <shranjan@nvidia.com> Reviewed-by: Niranjan Wartikar <nwartikar@nvidia.com> Tested-by: Niranjan Wartikar <nwartikar@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-04-28tegra usb: Enable CONFIG_USB_SUSPENDyhsu
For Bug 679393 to enable selective suspend/resume of USB. Change-Id: I4013f9a3a3a7779f7537b75b419bdb81fcee3878 Reviewed-on: http://git-master/r/1231 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Tested-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-04-27tegra usb: fine tuning CPU clock boost freq for USB deviceAbhishek Aggarwal
The CPU clock was previously boosted to 300 MHz for USB device on cable connect for performance optimization. Following issues were noted with this setting: 1. it is above low limit (250MHz) used to turn off slave CPU. Hence it will never be turned off when cable is connected. 2. it is also above PLLP 216MHz output. Hence high power PLLX will be kept alive. Reducing the CPU boost frequency to 200 MHz to address the above issues with minimal impact on the performance. Bug 654486: [whistler/android] - Large difference in USB MSD perf with DFS OFF. Change-Id: Ia57db137b493dd8fe8436ede7942df0661dad67b Reviewed-on: http://git-master/r/1228 Tested-by: Abhishek Aggarwal <aaggarwal@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-04-27nvmap: Export NvRmMemPinMult and NvRmMemUnpinMultAndrew Howe
Change-Id: I883ea945f7bac85d6b02530246fc2e0f23937dbe Reviewed-on: http://git-master/r/1219 Reviewed-by: Antti Hatala <ahatala@nvidia.com> Tested-by: Antti Hatala <ahatala@nvidia.com>
2010-04-26tegra lid support : disabled temporarilyBitan Biswas
lid close code was partially checked in. This is causing the screen orientation to change. Disabling the lid support temporarily. Bug 679243 : Android Harmony LVDS rotated into portrait Bug 635301 : [Android\ Whistler \ Harmony] Power off/ Lid (close/open) Button support in Android Tested on : harmony boot orientation restored. Change-Id: I9a5807af5860d2d9c602e9cc3b5ea2216063fa5f Reviewed-on: http://git-master/r/1210 Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Tested-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-04-23[ARM] tegra: update defconfigs to match auto-generated valuesGary King
Change-Id: I274c8b80a5734e2b017e8fa9c85e994f435ed0ad Reviewed-on: http://git-master/r/1208 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-04-23[ARM] l2x0: rename CONFIG_CACHE_PL3X0 to CONFIG_CACHE_PL310Gary King
... to match expected config name from new korg l2x0 code Change-Id: Ia54867363b2087e8c68784d1a5553bb11a18113e Reviewed-on: http://git-master/r/1207 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-04-23[ARM] tegra: defconfig additionsSheshu Shenoy
Whistler Android: enable PPP, OUTER_CACHE_SYNC, UINPUT Whistler LDK: enable OTG_UTILS, OUTER_CACHE_SYNC Harmony Android: enable OUTER_CACHE_SYNC, UINPUT Harmony LDK: enable OUTER_CACHE_SYNC, USB_ETH, USB_ETH_RNDIS bug 635519 (UINPUT) bug 636848 (USB OTG) bug 673802 (OUTER_CACHE_SYNC) Change-Id: I35531fc1fbb440fdf5173e580cca8b51ea3c6423 Reviewed-on: http://git-master/r/1206 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-04-23tegra power: Clean low power implementations (LP2, LP1, LP0)tkasivajhula
Get rid of some unneeded variables, indented and cleaned things up. Change-Id: I06bf8df81de7f1e68f7175f5f507836a2a88a608 Reviewed-on: http://git-master/r/1145 Reviewed-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Tested-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-23tegra power: Remove literal usage from LP2/LP1tkasivajhula
The compiler was changing the literal ldr instructions to mov instructions, as a result of which things worked normally. Issues were seen when the compiler stopped automatically optimizing these instructions. Change-Id: I58f1bb018e6aa7a67e1a9ba177182e160dc64e9a Reviewed-on: http://git-master/r/1203 Reviewed-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Tested-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-23add NvOsShowError()Acorn Pooley
Change-Id: I35cce6b67b2ad0611c742c31ac8e4f6c5b271e3d Reviewed-on: http://git-master/r/1182 Reviewed-by: Acorn Pooley <apooley@nvidia.com> Tested-by: Acorn Pooley <apooley@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-23tegra usb: Modified UTMIP regs to prevent electrical test failures.Abhishek Aggarwal
Summary of changes to AP20 USB PHY: 1. UTMIP_XCVR_CFG0: a. UTMIP_XCVR_SETUP field is being set to 0x9. Its programming through fuses is disabled. b. UTMIP_XCVR_HSSLEW_MSB field is programmed to 0 for non-host mode. Its default value on reset is 1. 2. UTMIP_HSRX_CFG1: UTMIP_HS_SYNC_START_DLY field is now set to 0. Previously it was 9. 3. UTMIP_TX_CFG0: Removed programming of UTMIP_FS_PREAMBLE_J field to 1. It should be 0 which is its default value. 4. UTMIP_SPARE_CFG0: Removed programming of this reg since now it is not required to read fuses to obtain value for UTMIP_XCVR_SETUP field. 5. UTMIP_XCVR_CFG1: Programming UTMIP_XCVR_TERM_RANGE_ADJ field to 0x6. Bug 672008: AP20: USB3_UTMIP electrical parameters cause physical-level failures Change-Id: Idadff030d49584b25678179b876ab200f670af21 Reviewed-on: http://git-master/r/1198 Tested-by: Abhishek Aggarwal <aaggarwal@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-23tegra: Making the GMC pin group to pull up on harmony.Laxman Dewangan
The GMC group is used by UARTD in the harmony and by power on reset, this group's pullupdown is set to normal. So during kernel boot it throws some junk character in the serial terminal. Setting this group pullupdown to pull up resolve this issue. Change-Id: I28868cd87c88d542c5b29016b7c27ae29cfbc189 Reviewed-on: http://git-master/r/1159 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-04-23tegra-kernel: Fix section mismatch warningsBharat Nihalani
Bug 676157: Kernel builds in 9.12.8, 9.12.9 cause section mismatch warnings Change-Id: Ic288f077d24b03f9d6af2d20dcb01a1bfce25599 Reviewed-on: http://git-master/r/1195 Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Tested-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-23panjit touch: Adding the odm panjit touch screen driver.vdumpa
Checking in odm panjit touch screen driver. This is required for new harmony tablet board. This is disabled by default as of now. Also checking updated tegra-gpio.c to have the correct gpio lies info for harmony tablet. This is also disabled by default. Added the acceleremeter properties in the odm kit. The driver for accelerometer will be checked in later. updated copyright headers for panjit. Change-Id: I7089ddb11670670dc0aa683dce190bc619fb07e2 Reviewed-on: http://git-master/r/1139 Reviewed-by: Gary King <gking@nvidia.com> Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Tested-by: Krishna Reddy <vdumpa@nvidia.com>
2010-04-23tegra serial: Improving the rx flow.Laxman Dewangan
Following improvements are done in the uart rx and tx path: - Separate locks for rx and tx paths. - Implementing the continuous double buffering with same buffer for uart rx. - Deactivating the rts line only incase of if dma does not read the fifo i.e. nonmultiple of 4. - Handling the modem control signal chnage properly. - Created the separate workqueue for the receive to handle dma thresold callback as well as the rx uart interrupts. Tested on harmony and whistler with uart testcase and BT on harmony. we tested the simulatenous file transfer and the A2DP on BT-harmony and did not observe any glitches. Change-Id: Id451ca2f42e246b524a7c9e4bbf3aa832cd0d535 Reviewed-on: http://git-master/r/1172 Reviewed-by: Gary King <gking@nvidia.com> Reviewed-by: Anantha Idapalapati <aidapalapati@nvidia.com> Tested-by: Anantha Idapalapati <aidapalapati@nvidia.com>
2010-04-22tegra RM: Separated DDR2 and LPDDR2 EMC DFS parameters.Alex Frid
Separated EMC DFS parameters for DDR2 and LPDDR2 so they can be tuned independently. Kept all parameters for both SDRAM types unchanged with the exception of LPDDR2 EMC activity margin - set at 100% (2x); this change is a partial revert of commit I8467a52d that caused perf regression on LPDDR2 platforms (no perf regression is observed for DDR2). Change-Id: I193732a376e0a477aef3faf2348b4187d8aca40f Reviewed-on: http://git-master/r/1165 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-22tegra : lid supportBitan Biswas
Used EV_SW and SW_LID input events, and modified Android policy manager to respect lid events as wakeups. 1) kernel changes - added driver registration using gpio_keys library Bug 635301: [Android\Whistler\Harmony] Power off/ Lid (close/open) Button support in Android Tested on: harmony. lp1 suspend/wakeup using slider S4 right/left respectively. Change-Id: I694117d64e7319f2efda8251aa8b708ea200e279 Reviewed-on: http://git-master/r/1125 Reviewed-by: Gary King <gking@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
2010-04-22tegra:making suspend(lp1) as default low power stateNarendra Damahe
Also disabling sd card detect as a wake source for harmony Change-Id: If826e916847b44086c531b63938861a47718b7da Reviewed-on: http://git-master/r/1183 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-21tegra RM: Upadted CPU clock control in LP2 state.Alex Frid
Upadted CPU clock control in LP2 state: - Disabled PLLX on entry to LP2 - Forced CPU divider 1:1 setting on entry to LP2, and restore divider on exit (speed up LP2 entry/exit) - Removed PLLC and PLLM from wake source consideration (commonly these PLLs are disabled in LP2 anyway, but using them in rare case when they are available may create dangerous over-clocking condition) Change-Id: Ied51ebee553766e66d6007e1149270e243df0543 Reviewed-on: http://git-master/r/1155 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-21kernel - Backporting explicit cpu_down and L2 cache shutdown from experimentalJitendra Lanka
Bug 673802 - [T20/Harmony/Warm boot] Warm boot stress test failed on Harmony. Backport the changes related to explicit cpu_down and L2 cache shutdown from experimental kernel branch to main line Tested on: Harmony Change-Id: I8615c7e5010ea7133941857cd400a9fb73c0bcc5 Reviewed-on: http://git-master/r/1151 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-04-20tegra:disabling usb0 vbus as a wake sourcetegra-9.12.10Narendra Damahe
Bug 651676, this is causing failure while entering system suspend when lp0 is lowest power state Change-Id: I4337fc00571e21f9a6d39706b74ec62522cb6d46 Change-Id: I4337fc00571e21f9a6d39706b74ec62522cb6d46 Reviewed-on: http://git-master/r/1166 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-20tegra power: Enable CPU standby line during initialization.Venkata(Muni) Anda
CPU power request line needs to be explicitly enabled so that PMUs with separate request lines for CPU and core rails will shutdown the CPU power rail as expected. Change-Id: I95bc048b6e1df9029e900d33c4c0f5aa63c008a7 Reviewed-on: http://git-master/r/1156 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Venkata (Muni) Anda <vanda@nvidia.com>
2010-04-20tegra ODM: Added support for new E1108 board (rev B).Alex Frid
Change-Id: I50cb153fd240818ca876dda53a58809740a272d2 Reviewed-on: http://git-master/r/1141 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-20[ARM] tegra: fix errors in tegra pinmux tables for SPI, NAND, OWRRaj Mailapalli
Bug 671189, 663161 Tested on Nand + android. Change-Id: I518d8a1b57a9766dc69a115b1189789f054c2d0e Reviewed-on: http://git-master/r/1088 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-04-20tegra pm: adding a delay of 2ms after writing to APBDEV_PMC_CNTRL_0Mayuresh Kulkarni
It seems that after writing SYSCLK_OE bit in APBDEV_PMC_CNTRL_0, a delay needs to be added for stabilization. Reviewed by Bharat. Tested on Harmony (A02, R04 EC firmware) for multiple flash and reboot. Bug 676490 - [T20/Harmony] Bootup failure on harmony-inconsistent (3/5 times) Change-Id: I1f45a86aa23ac00b43f0103285cceda970ee5b39 Reviewed-on: http://git-master/r/1160 Reviewed-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-04-19tegra power: Spurious KBC interrupt WAR. Explicitly disable KBC interrupt.tkasivajhula
The interrupt flag in the 32KHz domain might not be getting cleared correctly. Clear the kbc interrupt explicitly prior to LP0 to fix this. Change-Id: I68c93cb3130fd123e28f1c697b9314b1bbcf4c6e Reviewed-on: http://git-master/r/1154 Reviewed-by: Gary King <gking@nvidia.com> Reviewed-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Tested-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com>
2010-04-19tegra nvmap: Enable CONFIG_DEVNVMAP_RECLAIM_UNPINNED_VMvdumpa
Bug 663285 Enable nvmap to reclaim unpinned I/O virtual memory after it has been unpinned and re-use it for other objects. Checking in on behalf of yhsu. Change-Id: I27304b45a80ae0d2fcad9f126672fe6ff5ded2af Reviewed-on: http://git-master/r/1144 Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Tested-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Tested-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-16tegra:low power state selection based on ODMDATA for whistler and HarmonyNarendra Damahe
Change-Id: I6969716342df0b28db1167df9bca50a5c03ffb2f Reviewed-on: http://git-master/r/1138 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-16tegra power: Flush the L2 rams before entering LP0.tkasivajhula
LP0 turns off core voltage. As a result, the L2 rams need to be flushed prior to shutdown. The L2 cache will be re-enabled after returning from LP0. Change-Id: Ie6e69a3e5615393c5c6e7189b4d7e3559304e7f9 Reviewed-on: http://git-master/r/1036 Reviewed-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Tested-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-15tegra usb: Enabling busy hints for cpu clockAbhishek Aggarwal
To enhance the USB MSD performance, the busy hints for cpu clock have been enabled on cable connect and its frequency is being boosted to 300 MHz. Bug 654486: [whistler/android] - Large difference in USB MSD perf with DFS OFF Change-Id: I4471665bd02b7b49b368aec4aac5f1b89038c309 Reviewed-on: http://git-master/r/1114 Tested-by: Abhishek Aggarwal <aaggarwal@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-15tegra nvec: de-assert EC_REQUEST# properlyVarun Wadekar
Set the GPIO in a reasonable state before calling NvRmGpioConfigPins(Output) to avoid 5us~1ms low-pulse, since the low-pulse causes some EC firmwares to crash. reviewed by Artiste-Hsu tested on Harmony Change-Id: Ia30dfd10dfd16eec979f2a8e6ffc8286121a2eeb Reviewed-on: http://git-master/r/1126 Tested-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Phillip Smith <psmith@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-15tegra:enable deep sleep as a lowest power mode for HarmonyNarendra Damahe
Change-Id: Ied68fde9cc9556088837ccaabfdd93c396777218 Reviewed-on: http://git-master/r/1130 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-04-15Enabled CONFIG_CGROUP_SCHED on WhistlerDavid Schalig
On Whistler enabled CONFIG_CGROUP_SCHED instead of CONFIG_USER_SCHED to be in sync with Harmony kernel config. Enables cgroup file system. Bug 669840 Change-Id: I4366b0ad0af5cb57fb7adc373347e081811d0590 Reviewed-on: http://git-master/r/1111 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>