summaryrefslogtreecommitdiff
path: root/drivers/regulator
AgeCommit message (Collapse)Author
2011-11-30regulator: ricoh583: Support for external PWRREQ controlLaxman Dewangan
Supporting the different rails control through the external control signal PWRREQ1 and PWRREQ2. Reviewed-on: http://git-master/r/61898 (cherry picked from commit fc07ccae30b61a92fa0b77ee6b2b7c8d43176bbe) Change-Id: Id6322ef251e4b87673d3a647efb1f0d74b8e0815 Reviewed-on: http://git-master/r/62912 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R687c186e89635a5bd4e3f399709cdf3520936a3f
2011-11-30regulator: tps6236x: Support to configure in force PWM modeLaxman Dewangan
Added the platform data to configure the pmu in force pwm mode. Reviewed-on: http://git-master/r/61896 (cherry picked from commit 6488995a7ead950e3ab585e71528f86f3208b0da) Change-Id: I1a828013abdbdf132d77207c7c294e526d9bb825 Reviewed-on: http://git-master/r/62593 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Rebase-Id: Rd5da6f04a8941a13a3437988dcaaafed2fe6aa8d
2011-11-30regulator: ricoh583: Use register cache to optimise set_voltageLaxman Dewangan
Optimising the read-modify-write operation for setting voltage by using the register cache. Reviewed-on: http://git-master/r/60412 (cherry picked from commit 4880f2de83efe7c7c88edf156f1434e7b402b4ce) Change-Id: I5861838a0e5f98c03badf02a831b852a9eff3952 Reviewed-on: http://git-master/r/61436 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Rebase-Id: R7821472f936fce9e270403031d48c6fea3dc1a35
2011-11-30regulator: tps6591x: Support to put LDO in low power in suspendLaxman Dewangan
Adding the configuration flag to put the ldos in the low power mode when it is suspended. The option can be provided through platform data. bug 890770 Reviewed-on: http://git-master/r/60408 (cherry picked from commit e317af259582d04c4eba2feabb757eb05d174002) Change-Id: I65ee0ef9ae963cf3d9f73ed9c5bb7c7fa4af77c8 Reviewed-on: http://git-master/r/61435 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Rebase-Id: R869a6c46008af761bc3eec1a3fbb50681786b7de
2011-11-30mfd: max77663: Update the driver to new mfd coreJin Park
The mfd core was updated that removed size_t data_size and renamed void *platform_data to void *mfd_data in struct mfd_cell. The new mfd API, mfd_get_data(), was added for mfd device. It return from struct platform_device to right value of mfd_data and platform_data. Change-Id: I21528879f2186d568f867f1c7e026f8d8e172b5a Signed-off-by: Jin Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/59891 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R4ee12a3ba5afec4255002e226f479e1c96a0f66c
2011-11-30regulator: tps80031: Proper configuration for PREQ1 controlLaxman Dewangan
When any rail is configured such that it can be enable by PREQ1 then only control the sleep mode of rails through TRANS register, not the STATE register. PREQ1 control the rail to switch from active to sleep and sleep to active mode. Reviewed-on: http://git-master/r/58278 (cherry picked from commit 6a8db3200c3119673b85769b1caa56422a22b4f9) Change-Id: I9763a4d283f0171eb9b7755d44ca3b9059755033 Reviewed-on: http://git-master/r/59289 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R25d191b2429a5f60e77d70aed1eefecaa3b75ba3
2011-11-30regulator: gpio_switch: Fix set_voltage to return selector valueAntti P Miettinen
Current regulator_ops interface expects selector value to be returned. Not doing so results in uninitialized variables used. Bug 886170 Change-Id: I5b7ca77badbd517f161f8c5c7a92fdf18e1ef7bb Reviewed-on: http://git-master/r/56661 Reviewed-by: Antti Miettinen <amiettinen@nvidia.com> Tested-by: Antti Miettinen <amiettinen@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Rebase-Id: R2b693750ff84e9f8dadd88a835bc06b66d0a3129
2011-11-30regulator: tps80031: Fix set_voltage to return selector valueAntti P Miettinen
Current regulator_ops interface expects selector value to be returned. Not doing so results in uninitialized variables used. Bug 886170 Change-Id: I23e664790311e434303eb23fafd194502ae2909c Reviewed-on: http://git-master/r/56654 Reviewed-by: Antti Miettinen <amiettinen@nvidia.com> Tested-by: Antti Miettinen <amiettinen@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Rebase-Id: R72759360aeca354ef82d0ec7431e8c9f2fcafdfb
2011-11-30regulator: tps6236x: Fix set_voltage to return selector valueAntti P Miettinen
Current regulator_ops interface expects selector value to be returned. Not doing so results in uninitialized variables used. Bug 886170 Change-Id: I206117fbb1524e5c272e0c94bdaef3b605978717 Reviewed-on: http://git-master/r/56652 Reviewed-by: Antti Miettinen <amiettinen@nvidia.com> Tested-by: Antti Miettinen <amiettinen@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Rebase-Id: R6015e7534c82212f3b28f7fe450e635f0274f80d
2011-11-30regulator: tps6591x: Fix set_voltage to return selector valueAntti P Miettinen
Current regulator_ops interface expects selector value to be returned. Not doing so results in uninitialized variables used. Bug 886170 Change-Id: I004ee168eb0f003eb71c36d5fcd6c8106a1fc054 Reviewed-on: http://git-master/r/56648 Reviewed-by: Antti Miettinen <amiettinen@nvidia.com> Tested-by: Antti Miettinen <amiettinen@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Rebase-Id: R5fa05ad3dc7cda25b634efbf956ae99280bab40d
2011-11-30regulator: tps6591x: Optimize voltage change using cacheLaxman Dewangan
Optimizing the time require to change the voltage by using the register caching. bug 870689 Reviewed-on: http://git-master/r/51754 (cherry picked from commit cb2676e3e25f3a6134f38ecb0e3dfe9e7a1f4fd4) Change-Id: I771d6d0ebad60d05381af07cc791f5ad8b4426fd Reviewed-on: http://git-master/r/55643 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Rebase-Id: R89993e38c00a6e1dc0f482bd6319830548b90118
2011-11-30regulator: tps80031: Optimize voltage change by register cacheLaxman Dewangan
Using the register caching for optimizing the update of pmu register through i2c. In this way, the frequent read of pmu register is avoided. bug 870689 Reviewed-on: http://git-master/r/56617 (cherry picked from commit 59426b56710e06b075769b4eb73723c3dcf28710) Change-Id: I9fc339587c8c5c82443bb99489992d608fd3534e Reviewed-on: http://git-master/r/56872 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Rebase-Id: Reb0312eaaa88f9b082c540b752663089964ffee8
2011-11-30regulator: tps6591x: Take care of voltage slew rateLaxman Dewangan
Adding delays in set_voltage to stablize the voltage as per voltage slew rate when changing the voltage. bug 872382 Reviewed-on: http://git-master/r/51324 (cherry picked from commit 2aae0d2db5959b16ca73d53b4543e62ebc5c3c88) Change-Id: Ia8ad81281dc78e121c7d701055235c490e731d09 Reviewed-on: http://git-master/r/55642 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com> Rebase-Id: R53948e9aa72d1dd303a4011fc2b43229df92c6b7
2011-11-30regulator: max77663: reduce i2c transfer using cache valueJin Park
To reduce i2c transaction, added struct max77663_register into struct max77663_regulator. It includes cache value for each register, so there is no need for i2c read after updating cache value in preinit function. Bug 849360 Signed-off-by: Jin Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/51526 (cherry picked from commit ea3ee402c624826f70c735f56a017326e3c7ed83) Reviewed-on: http://git-master/r/54694 (cherry picked from commit 553979f17353f570b52b4c9e138ec6b95cf8f9b0) Change-Id: Ibe090174cc0ff40b1bda54e610485898f241faaa Reviewed-on: http://git-master/r/55472 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Rb6f46869b89096ef0a516282d8e4bcb7bd813785
2011-11-30mfd: aat2870: Update the driver to new mfd coreJin Park
The mfd core was updated that removed size_t data_size and renamed void *platform_data to void *mfd_data in struct mfd_cell. The new mfd API, mfd_get_data(), was added for mfd device. It return from struct platform_device to right value of mfd_data and platform_data. Change-Id: I9b61d0ac0139be840c328fc0b266752d27815cf5 Signed-off-by: Jin Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/54912 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Rc0b7b7d376c1bab14eab86a9bdfa4cd5b970bbf8
2011-11-30regulator: max77663: Correct parameter in set_voltage operationJin Park
The regulator core was updated that unsigned *selector parameter was added to set_voltage operation. Change-Id: I29881e45fb44083fc350088a6af28faf22788909 Signed-off-by: Jin Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/54684 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R7465637a408a8560d78e808cd6aeda328d7268b3
2011-11-30regulator: max77663: Active-discharge mode for SDxHarry Hong
Adding Active-discharge option for SDx rails. bug 859415 Original-Change-Id: Ia4d3933b9dbf4a0ec646c586f99a7411d2a93371 Reviewed-on: http://git-master/r/50281 Tested-by: Harry Hong <hhong@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Rac11236a7f0f305f0e821c5a8f911e5751bd2c82
2011-11-30regulator: ricoh583: Fix regulator information tableLaxman Dewangan
Correcting the n_voltages in regulator table. Also applying deep sleep and init voltage only if it is valid. bug 822562 Original-Change-Id: I484a556c0b5dd0c984f3afce5c136186d90422ba Reviewed-on: http://git-master/r/48972 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Rebase-Id: R7eac9d2f39ceb3b279789876b90342a59b1b7d27
2011-11-30regulator: tps80031: Support for delay configurationLaxman Dewangan
Adding support for delay configuration after setting the voltage from platform data based on board behavior. Also providing flag to enable the VBUS discharging though internal pull down. bug 853393 Change-Id: I27e7ae1eab9893241e775e17ec7b98afac71195b Reviewed-on: http://git-master/r/41886 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R395c7ac35ccfabbea8de403d0db3cc4708981ab8
2011-11-30regulator: max77663: Slew rate and forced PWM mode for SDxJin Park
Adding slew rate and forced PWM mode for SD power rails. Bug 849360 Original-Change-Id: Ie66074bd36e600f2f72ba04e2c04331a58dd6a5c Signed-off-by: Jin Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/47830 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R21ef37ada9a64dec082f82468f5c51d92e30a394
2011-11-30regulator: ricoh583: Add ricoh583 regulatorLaxman Dewangan
Adding ricoh583 regulator driver to supprot RICOH 583 PMIC. bug 822562 Original-Change-Id: Ie4b3aab91f2057965e2352f7a9509c651fb2ad0a Reviewed-on: http://git-master/r/40319 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R0d28e8d36a4052250f2d9c20e7f463e1bbda4883
2011-11-30regulator: max77663: Add MAX77663 regulator driverJin Park
Add regulator driver for Maxim PMU MAX77663. Bug 849360 Bug 854414 Signed-off-by: Jin Park <jinyoungp@nvidia.com> Original-Change-Id: I740f484ee1f39deefa8e5b9669426d6e6bafb42d Reviewed-on: http://git-master/r/44484 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Re303620c5dcae6f56d1f219484d659525005eaa7
2011-11-30regulator: tps6591x: Clear external control setting in shutdownLaxman Dewangan
Clearing the external control configuartion in shutdown on the regulator. bug 839572 Original-Change-Id: I2362c6decb7209aa5f5667de48315ef0bc8926a2 Reviewed-on: http://git-master/r/43048 Tested-by: Vivek Kumar <vivekk@nvidia.com> Reviewed-by: Kaushik Sen <ksen@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Rebase-Id: R4aa455b1b3fd6007875f94ab31c61315fd61633b
2011-11-30regulator: Expand regulator notifier eventsAlex Frid
Add regulator enable notifications (not sent by the current code). Add voltage notifications sent only if regulator output is actually changed (keep intact existing voltage change notification that is sent unconditionally - even if voltage change was not allowed by constraints, or no actual change since regulator is disabled): PRE_ENABLE Regulator is to be enabled POST_ENABLE Regulator was enabled OUT_PRECHANGE Regulator is enabled and its voltage is to be changed OUT_POSTCHANGE Regulator is enabled and its voltage was changed Bug 853132 Original-Change-Id: I2759ada1c5d1e43f746f6c866f9b3c203b68aed6 Reviewed-on: http://git-master/r/42262 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Karan Jhavar <kjhavar@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Rebase-Id: Rdac9b19d1f999e889aae8e2eb72f9b60057dd05a
2011-11-30regulator: tps6586x: add SMx slew rate settingXin Xie
bug 815933 Original-Change-Id: I3b8f8910b12ff4f8a5f9588615bd0bb6452bdc3b Reviewed-on: http://git-master/r/40263 Reviewed-by: Xin Xie <xxie@nvidia.com> Tested-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R18292e6e68c95b9f67d24281a9f2b80439452ba8
2011-11-30regulator: tps80031: Correcting voltage range for LDOs.Jin Park
The LDOs are supporting 1.0V to 3.3V on TPS80031, but current driver was implemented 1.1V to 3.3V. So corrected this. And adding bit mask in ldo_get_voltage to prevent wrong voltage calculation. Signed-off-by: Jin Park <jinyoungp@nvidia.com> Original-Change-Id: Ic3779730fd8ad1dec6cf156b4582b0099734e7e6 Reviewed-on: http://git-master/r/39515 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rffc735384a266c5d8cde7697e25d9d3f3081597c
2011-11-30regulator: tps80031: Fix build warningDan Willemsen
Original-Change-Id: I0bcfd38569b9a9a1cc21d0e9d12a0d114d87be9c Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Rebase-Id: Rf1f1609942bd3ca4fae07ab37304cb214ab87774
2011-11-30arm: mfd/regulator: tps80031: Adding force_update for status registerJin Park
The state register is read and write register, if read, it returned current state, not current written value in register. So if it want to write the value into state register, it must unconditional write the value, don't use update(read and compare and then write). Bug 838189 Original-Change-Id: I2555875a822f159e664b0834af2d00073c859acd Signed-off-by: Jin Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/38396 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Rebase-Id: Ra90d4ccbe0373bbdad44422e8ff6798eea96019a
2011-11-30regulator: tps80031: Controls regulator output by PREQLaxman Dewangan
Based on platform, it is require to control the regulator output through the peripheral power request signal to pmu. Supporting this type of platform configuration to control output voltage by sw as well as through PREQ input line. bug 839809 bug 829405 Original-Change-Id: Ifa19b9062ca2a2c5cae84de1f311a33cec094ad0 Reviewed-on: http://git-master/r/38936 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Tested-by: Bitan Biswas <bbiswas@nvidia.com> Rebase-Id: R396800524fcea5c74711aec305c29229d32a0908
2011-11-30regulator: tps80031: Add VBUS as regulatorLaxman Dewangan
Providing the control of VBUS through regulator api. bug 833736 Original-Change-Id: Id79f64dfb0ab30a5f0663521defb60a76681c767 Reviewed-on: http://git-master/r/38499 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Rebase-Id: R218327eaf38a09215ca2fe4f6e7e90c8e961d21f
2011-11-30regulator: write permission for only userSachin Nikam
Write permission only for User for syncevent_regulators sysfs attribute. This is needed so as to pass FileSystemPermission CTS. Bug 840409 Original-Change-Id: Iad1ac9fc63b9471b2f7c9f2c12524512b3f5941e Signed-off-by: Sachin Nikam <snikam@nvidia.com> Reviewed-on: http://git-master/r/36897 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com> Rebase-Id: Rb71c94a12e155ae630d09f30fb42df4d83cc6e7c
2011-11-30arm: mfd/regulator: tps80031: Fix I2C addressingLaxman Dewangan
This change adds the possibility of addressing all addresses on the tps80031 I2C Bus. The interrupt registers and SMPS1/2 and VIO require using different I2C addresses to be reached correctly. bug 830904 Original-Change-Id: I1b5b0d03e531c3c8a0551e5049055930e742e10f Reviewed-on: http://git-master/r/34866 Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Matt Wagner <mwagner@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Rebase-Id: Rd3ec6b9b3fac3c13e0b6a58af428110e7e51a2c8
2011-11-30arm: mfd/regulator: Adding driver for tps80031Laxman Dewangan
Adding core and regulator driver for the TI pmu device tps80031. Following functionality is added: - Basic core driver interface to access register. - Regulator driver. - gpio driver. - interrupt support from pmu. - clock 32 initialization. bug 830904 bug 829658 Original-Change-Id: I41e732c0b5d0472209798552b5264038e5a97ee4 Reviewed-on: http://git-master/r/33109 Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Rebase-Id: R72919d00e28138767da61d673c9e805f74911341
2011-11-30driver:regulator: tps6591x: sleep mode supportLuke Huang
Adding controls for the following items 1. PMU SLEEP state enable/disable 2. Keep 32KHz clock out on sleep mode 3. Keep thermal monitor on sleep mode 4. Keep LDO full load capability on sleep mode 5. Keep high speed internal clock on sleep mode 3. Turn off power rails on sleep mode Original-Change-Id: I389bca4a4d7ff9ae264727af8e93dcec796d3c0c Reviewed-on: http://git-master/r/32222 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Tested-by: Chih-Lung Huang <lhuang@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Rebase-Id: Rb1423bd228beab0d3880635877b5589c6a0bb426
2011-11-30regulator: generate status events for all regulatorsPeter De Schrijver
Original-Change-Id: I6aba475047e0f1e1186bff88dfe9aedaf6a8b415 Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> Reviewed-on: http://git-master/r/31532 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com> Rebase-Id: R7f6a01f24db741f441c692bb95ccc2017b25344d
2011-11-30regulator: tps6236x: Adding driverLaxman Dewangan
Adding regulator driver for the device TPS6236x. bug 821295 Original-Change-Id: Ifed4044db33fa6867248fae000bddf6239cb9685 Reviewed-on: http://git-master/r/31386 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Rebase-Id: R2e891c9fe81939803999acb9014622f82fa139b0
2011-11-30regulator: tps6591x: delay for LDOs to stabilizeBharat Nihalani
after enabling any LDO/SM, there is a specific amount of delay required before the regulator becomes stable. Original-Change-Id: I7cce3d8aad8859af0cbda7e114850fc95fe34eea Reviewed-on: http://git-master/r/30862 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com> Tested-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Rebase-Id: R5b213829fa0489c2d147df738d449863e4bf0d95
2011-11-30regulator: gpio_switch: voltage should be return in microvoltsLaxman Dewangan
The get_voltage should return voltage in unit of microvolts. bug 823828 Original-Change-Id: I41d168f2845947cab0b076b0d3f0b70305af240b Reviewed-on: http://git-master/r/30488 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com> Tested-by: Peter De Schrijver <pdeschrijver@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Rebase-Id: Re26c5a127adacaa692682f56c15a3e26e5277b29
2011-11-30ARM: tegra: power: add cpu-dvs table for tegra3Diwakar Tundlam
Original-Change-Id: I3eac69eec691e4e75d698011461e578324fb4c1d Reviewed-on: http://git-master/r/23094 Tested-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Original-Change-Id: I9553f03a1947015c7a19c13eb2881835e04a5614 Rebase-Id: R8bbf67b9159fa5a1105dee9d14fe294db210ab81
2011-11-30arm: tegra: cardhu: Cleanup to support multiboards configurationLaxman Dewangan
Cleanup in the configuration related to board is done so that it will be easier to add another board configuration on same build configuration. Original-Change-Id: Id030d70e4893b886ee73aaf944450526e7722e7e Reviewed-on: http://git-master/r/22392 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Mohit Singh <mpsingh@nvidia.com> Tested-by: Mohit Singh <mpsingh@nvidia.com> Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Tested-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com> Original-Change-Id: Id737a2668ce13470be80086e3d3764c4f9ac6096 Rebase-Id: Rc650446ce8e9e419605086760b52bb58b0447c8c
2011-11-30regulator: tps6591x: VDDCTRL voltage range is 600mv to 1400mvLaxman Dewangan
Setting the voltage table for the tps6591x to the range of 600mV to 1400mV as per datasheet. Original-Change-Id: I6311790788f67a8fd7644877d13206713177b7a1 Reviewed-on: http://git-master/r/22016 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Original-Change-Id: I326d3628a8097c41c47343afc42962ad39ecdbc8 Rebase-Id: R69ec88437e5780bafeea169c10546645459d6ce7
2011-11-30ARM: tegra: cardhu: Enable VDD_CPU external controlAlex Frid
Original-Change-Id: Ie2b9c7bb441c72c105ca3205bdd42a8dcd76d9ef Reviewed-on: http://git-master/r/20230 Reviewed-by: Hoang Pham <hopham@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Original-Change-Id: I9896c0568ee5103a2608cf4abcab36f592a83f21 Rebase-Id: Rdc56b3cade05c916acceb73ff15097325680f881
2011-11-30regulator: tps6591x: supporting init state of output through boardLaxman Dewangan
Supporting init state of the output power rails from tps6591x through board files to enable/disable and setting required voltage level. Original-Change-Id: Ifdf3c4fea889c1fed465db0bdb39df079bf1afa8 Reviewed-on: http://git-master/r/19061 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Original-Change-Id: I198d471ab98aa5bff125b77ccfa99c9104a86426 Rebase-Id: R2199888f87cb319ab257d5aad832bec5496fb64e
2011-11-30arm: regulator: gpio-switch: Removing device in reverse wayLaxman Dewangan
Unregistring the regulator device in reverse way of registering the devices. This way the child of the regulator will be removed before removing the parent regulator. Original-Change-Id: I6776c3cbbdeae40fd3c16e6127f39be07b5db8f0 Reviewed-on: http://git-master/r/18005 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Original-Change-Id: Ie5d1db87d1b7c5b0eecb35fc5503e4b788a6bb8e Rebase-Id: Rd6735fd929a83576b132093113fb3a487d3718b0
2011-11-30arm: regulator: gpio_switch: Registering gpio rails as sub devices.Laxman Dewangan
Registering gpio rails as sub devices of platform device in place of registering all the rails as different platform device. The kernel pmu driver have all rails as regulator devices under platform devices. Original-Change-Id: I7a636ce47b0d715ccca4d0d6c92b76c578c5e5dc Reviewed-on: http://git-master/r/17620 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Original-Change-Id: If2347bf775edfbef0129219064723138249e70ce Rebase-Id: R1256fc1a2a5b6d2a26ecda551d059f8cd9d4c436
2011-11-30arm: regulator: gpio_switch: enable/disable of rail through board apisLaxman Dewangan
Supporting the enabling/disabling of rail through board supplied function. This is require if rail control is done through special sequence. Original-Change-Id: Iec7de658fe427a2098705a5363733887f87f6c1d Reviewed-on: http://git-master/r/17658 Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com> Original-Change-Id: Ibe3d6e9e15e92a9ac5f381ac26666fb4f69635db Rebase-Id: R11dd4124004939de2cf4ebd9f102cde2427fc206
2011-11-30arm: regulator: gpio_switch: Returning proper enable statesLaxman Dewangan
Returning proper enable states when the supply of the rail is not enabled. Original-Change-Id: Ibb707790b03b1af7e3c305c6dba3a28914ed22b2 Reviewed-on: http://git-master/r/17569 Reviewed-by: Venkata Nageswara Penumarty <vpenumarty@nvidia.com> Tested-by: Venkata Nageswara Penumarty <vpenumarty@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Original-Change-Id: I5e072d19d6cf5f2e5ab4f647e75715fb796673c7 Rebase-Id: R825ed1f95f3ebbec5b2266f0258f7ac7e2a0c094
2011-11-30arm: regulator: gpio_switch: providing initial stateLaxman Dewangan
Providing initial state of gpio switch to enable/disable rail during init. Original-Change-Id: Ibf6ca7e6bd4ccb8d48c65873b1a24582de195f59 Reviewed-on: http://git-master/r/17486 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Kaushik Sen <ksen@nvidia.com> Original-Change-Id: Ib690801d2291da92257e42bc4db572d62fd4f0be Rebase-Id: R3eb34754d9e335a602985e2b4bef4794855f180a
2011-11-30regulator: Adding gpio switch based regulatorLaxman Dewangan
Supporting gpio switch based regulator so that client can use the power rail through the regulator framework even if the power rail partially controlled by gpio. Original-Change-Id: I8cd0141a337d4a38a1b10efb0b5dbb8e3ff98a12 Reviewed-on: http://git-master/r/16727 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Original-Change-Id: I15dedf9ab874037922186b97c5f9daa33dde0b5f Rebase-Id: Rca56ff58d510a37b71fb1497893cfe90d09931b2
2011-11-30[ARM] tps6591x: Adding regulator and mfd driverLaxman Dewangan
Adding regulator and mfd core driver for TI TPS6591x PMIC family. Original-Change-Id: I65c0e4758094f211f7e9f0944423bd935c1893c4 Reviewed-on: http://git-master/r/16529 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Tested-by: Scott Williams <scwilliams@nvidia.com> Original-Change-Id: I2f82c178e3db0998e7c1a5a3b6b8e49832deaf59 Rebase-Id: Rc23fcc1e98e212ae6dc61a2458cafa016442b441