summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-kai-power.c
AgeCommit message (Collapse)Author
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