summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-kai-power.c
AgeCommit message (Collapse)Author
2012-08-29arm: tegra: Board files settings for LP1 0.95V CoreVKarthik Ramakrishnan
Set the register values for each of the board files to keep the Core voltage to 0.95V in LP1. This change is only for those platforms where LP1 is supported. Enterprise and Kai are the main platforms for this change. There is no support for Cardhu for LP1 and so is left blank and the feature will be skipped for Cardhu platforms, except for AP37. AP37 with a PM269 board needs this change and so Cardhu board file is updated with the values specific to AP37. This change is part of the feature to set VCore to 0.95V Refer to http://git-master/r/124135 for more details Bug 1035684 Change-Id: I6d1d984b0e7968b441cebbc37705c25647a4a85a Signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com> (cherry picked from commit b46921e475bd95e729896a6763bc94df1e03ee4a) Reviewed-on: http://git-master/r/124780 Reviewed-by: Lokesh Pathak <lpathak@nvidia.com> Tested-by: Lokesh Pathak <lpathak@nvidia.com>
2012-07-12arm: tegra: kai: fix time does not increase in lp0Chandler Zhang
time does not increase in LP0 because GPIO4 is configured as POR. Change to active_low and pull push to fix the issue. Bug 1014548 Change-Id: I13c65ac6a4f3ae9158c58922e1ad6982f24bb103 Signed-off-by: Chandler Zhang <chazhang@nvidia.com> Reviewed-on: http://git-master/r/114866 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Jinyoung Park <jinyoungp@nvidia.com> Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
2012-07-09arm: tegra: fix power down sequence fps/ameChandler Zhang
Fix power down sequence to align with POR. FPS, GPIO and AME part. LDO4 tracking is not disabled. Affcted regs: FPS_SD3 FPS_SD2 FPS_SD1 FPS_L4 FPS_L3 AME_GPIO GPIO3 GPIO4 CNFG1_L4 CNFG1SD0 CNFG1SD1 Bug 1001267 Change-Id: I8db160bf00cbe8f215c6e1b762d994d26d82809f Signed-off-by: Chandler Zhang <chazhang@nvidia.com> Reviewed-on: http://git-master/r/109134 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-06-01ARM: tegra: cleanup wake header usageBitan Biswas
Removed unused wake header file from Tegra board files bug 980993 Change-Id: I61d919a2dc5b98caaca612b990fd1a7d06e76ae2 Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-on: http://git-master/r/103622 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-17arm: tegra kai:fix screen flicker when kernel boot up.Linqiang Pu
set vdd_pnl as 'boot_on' to avoid dropping panel VDD. Bug 965398 959819 Signed-off-by: Linqiang Pu <dpu@nvidia.com> Reviewed-on: http://git-master/r/95398 (cherry picked from commit 9f423c83e391fa8581de2c088b4dea8248da8ae1) Change-Id: I513e004f7ec1a46c155825af9e6278c46ca444c5 Reviewed-on: http://git-master/r/96643 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-05-17arm: tegra: kai: change SD1 power up periodJinyoung Park
To reduce delay between CORE_PWR_REQ and VDD_CORE, changed SD1 power up period from 1 to 0. Bug 930883 Change-Id: I50ea110d0cb72402b5d03c3e260e6ab340d87fbe Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/92704 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-05-01arm: tegra: kai: disable the always-on flag of modem regulatorHunk Lin
Disable the always-on flag of modem regulator so the regulator is possilbe to be powered off. bug 966960 Change-Id: Ibe88e6a5554c7fde27b9142b35d26d252aa40334 Signed-off-by: Hunk Lin <hulin@nvidia.com> Reviewed-on: http://git-master/r/99494 Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> GVS: Gerrit_Virtual_Submit
2012-03-21arm: tegra: kai: Correcting fuse supply nameVenu Byravarasu
As fuse driver expects regulator name as Vdd_fuse instead of Vpp_fuse, fixing it. bug 956535 Change-Id: I4ecf38acd2ae8c2191f4dbbd018904a33b87043c Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-on: http://git-master/r/91472 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2012-03-01arm: tegra: kai: Turn off status LED during LP0Johnny Qiu
Use leds-gpio to control status LED during LP0. Bug 920845 Bug 931371 Change-Id: I22f11629bcefe7ecb47181ad5c461f505654dde1 Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Reviewed-on: http://git-master/r/86879 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-03-01Revert "arm: tegra: kai: turn off status LED in LP0"Johnny Qiu
This reverts commit 39af9f4c2c3cf0d9b8026986db5d73b9ad3ffe11. Stat LED control through PMU GPIO should be implemented in another way. No need to touch PMU driver. Change-Id: I7b577364275a3da3f6fee0b683a4a1323123ae63 Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Reviewed-on: http://git-master/r/86827 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-02-28arm: tegra: kai: enable modem regulatorSheshagiri Shenoy
bug 937956 Change-Id: I765f2fb07e438d91e4e3c338206f7d0899c3c67d Signed-off-by: Sheshagiri Shenoy <sshenoy@nvidia.com> Reviewed-on: http://git-master/r/84661 Reviewed-by: Steve Lin <stlin@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-02-17arm: tegra: kai: turn off status LED in LP0Johnny Qiu
Bug 920845 Bug 931371 Change-Id: If3faee713a456f3f7e2e30b400d2245b2f79bebd Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Signed-off-by: Hao Tang <htang@nvidia.com> Signed-off-by: Kerwin Wan <kerwinw@nvidia.com> Reviewed-on: http://git-master/r/83725 Reviewed-by: Simone Willett <swillett@nvidia.com>
2012-02-16arm: tegra: kai: enable VDD_RTC voltage tracking to VDD_COREJohnny Qiu
With this feature enabled, VDD_RTC voltage can track to VDD_CORE while VDD_CORE voltage is higher than the default voltage of VDD_RTC, which is set to 1.0V here. When VDD_CORE is turned of in LP0, VDD_RTC keeps its default value 1.0V. Bug 920845 Change-Id: Ie62859df0d533745ff25cc0d19f8209f86938cec Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Signed-off-by: Hao Tang <htang@nvidia.com> Reviewed-on: http://git-master/r/83729 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-02-15ARM: tegra: kai: Use machine_is_kai()Dan Willemsen
We don't need a static bool here, there's already a function that does this. Change-Id: I63e02db770d617c5566af5a3f153b34660b689b0 Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Reviewed-on: http://git-master/r/83625 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-02-15ARM: tegra: kai: Update pm_power_off registrationDan Willemsen
Opt in to the max77663 registering the pm_power_off handler instead of doing it ourselves. Change-Id: Ic3efbce21e12337a3f435fbc257950fb977628a0 Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Reviewed-on: http://git-master/r/83603 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-02-15arm: tegra: kai: make vdd_comm rail always onRakesh Goyal
vdd_comm should not 0 when system is in suspend state. This power rail need to be always on for functionilities like "wake on wireless". Bug 937381 Change-Id: I0a24bfdac1c8c69c3a0cbe1b333c05dbb933c2b6 Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-on: http://git-master/r/83135 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-02-13arm: tegra: kai: Set correct I2C slave address of RTCJohnny Qiu
MAX77663 on Kai uses different RTC I2C slave address comparing to Cardhu PM298. Bug 937252 Change-Id: I5d6ee036dc4953a8609a2e4492918335a4ecd428 Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Reviewed-on: http://git-master/r/83298 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-02-13arm: tegra: kai: Add missing pdata_size in macro MAX77663_REGJohnny Qiu
Change-Id: I9c95a2919db66df935afab068a2f594f68e15423 Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Reviewed-on: http://git-master/r/82753 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-02-13arm: tegra: kai: Restrict SD2 output to 1.8VJohnny Qiu
sdhci-tegra driver has an issue which will pull all VDDIO_SDMMC rails to 2.7V. However, VDDIO_SDMMC on EMMC and WiFi module should be 1.8V and they are tied to SD2 output. This is to prevent sdhci-tegra from burning SD2 output rail. Change-Id: Idcb7a6864fba6f5e4c9e554178dff440a3ceaffc Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Reviewed-on: http://git-master/r/83007 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-02-13arm: tegra: kai: gpio changes for smb349 driverSyed Rafiuddin
This patch changes gpio direction from output to input to enable interrupts for smb349 charger driver. Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-on: http://git-master/r/78294 (cherry picked from commit 0e685175440bdb7f004ded2c4a6612a2c8c39b00) Change-Id: I65435c5f2e9d534344f152758e54d6a3c2835a00 Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/82706 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-02-13arm: tegra: kai: fix pmu GPIO4 drive strengthChandler Zhang
Modify Kai PMU MAX77663 GPIO4 from open-drain to push-pull. Signed-off-by: Chandler Zhang <chazhang@nvidia.com> Reviewed-on: http://git-master/r/78377 (cherry picked from commit 3f8f4808e723d84d1a4c505beec6d09799b7643e) Change-Id: I4af87f75bb1ecee5946e0cf684e1c003c5b8f2c7 Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/82707 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-02-10arm: tegra: kai: Use different power tree for A01Johnny Qiu
Power tree of A01 is a little different from A00. On A00, AVDD_USB/AVDD_HDMI shares the same rail with VDD_3V3_GMI. On A01, VDD_3V3_GMI has been moved to VDD_3V3_SYS for power gating of AVDD_USB/AVDD_HDMI. Bug 931371 Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Reviewed-on: http://git-master/r/78406 (cherry picked from commit 53f98f53dfe8a8a6b2d402e0ee2e89443dba01a6) Change-Id: Ifd5da092be2252baf5a7a4563862d218bc6fc779 Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/82719 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-02-10arm: tegra: kai: use subsys_initcall_sync to initialize fixed regulatorsJohnny Qiu
Initialization of fixed regulators should be in subsys_initcall_sync; otherwise some PMU GPIO based regulators will fail to be registered since PMU is not registered at this time. Bug 932578 Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Reviewed-on: http://git-master/r/78945 (cherry picked from commit e6bc3ad1d54240725b082cc18ad4141d76b9a4b7) Change-Id: I4527ddbc9ddee0576c894b7c55b0413e93513c68 Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/82700 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-02-10arm: tegra: kai: Use fixed regulatorJohnny Qiu
Using fixed regulator in place of gpio-switch regulator. Fixed regulator is very similar to gpio-switch regulator and it is available by default in linux kernel. gpio-switch-regulator will be used only for the open collector load switches. bug 932578 Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Reviewed-on: http://git-master/r/78039 (cherry picked from commit cd77c6f4f0a1964de84a8b0e9411c177f8e65f34) Change-Id: Ibfe770501f3037d5c4aac55de2ec2ce82cb95cae Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/82699 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-30arm: tegra: kai: Fill power rails detailsJohnny Qiu
Register PMU MAX77663 and provide detailed power rails information. Change-Id: I28051b621b72c88519c57ba2485fa7cdb4e76c70 Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Change-Id: Icace4430f24c7e3ac62ed2ac359ace707cd11209 Reviewed-on: http://git-master/r/77298 Reviewed-by: Automatic_Commit_Validation_User
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