7 years agoregulator: max77663: Add safe voltage scaling step
Min-wuk Lee [Fri, 4 Nov 2011 07:46:24 +0000]
regulator: max77663: Add safe voltage scaling step

The MAX77663 PMU has under-shooting issue when voltage down scaling
on SD power rails until revision 3. So if revision is less than rev3,
set safe_down_uV for stable down scaling.

Original Author: Jinyoung Park

Reviewed-on: http://git-master/r/56950
(cherry picked from commit b685f87ea655919e0bf0efb3a1bdddf5d1a3abbb)

Reviewed-on: http://git-master/r/62376
(cherry picked from commit de2370747b224f38ac2fd87402a60e058db28b68)

Change-Id: Icf864c869775490ea0465aae23505ae7333fa80c
Reviewed-on: http://git-master/r/63757
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Tested-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R9ebf2c4e6fbec3b3c8ec065b119fdc2c64f37cb0

7 years agoregulator: ricoh583: Support for external PWRREQ control
Laxman Dewangan [Sun, 30 Oct 2011 18:07:41 +0000]
regulator: ricoh583: Support for external PWRREQ control

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: R36248d862cd221d49b9faf584d88b8c63a8dedb8

7 years agoregulator: tps6236x: Support to configure in force PWM mode
Laxman Dewangan [Mon, 24 Oct 2011 09:08:14 +0000]
regulator: tps6236x: Support to configure in force PWM mode

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

7 years agoregulator: ricoh583: Use register cache to optimise set_voltage
Laxman Dewangan [Mon, 24 Oct 2011 16:22:30 +0000]
regulator: ricoh583: Use register cache to optimise set_voltage

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

7 years agoregulator: tps6591x: Support to put LDO in low power in suspend
Laxman Dewangan [Wed, 19 Oct 2011 08:18:34 +0000]
regulator: tps6591x: Support to put LDO in low power in suspend

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

7 years agomfd: max77663: Update the driver to new mfd core
Jin Park [Mon, 24 Oct 2011 07:44:42 +0000]
mfd: max77663: Update the driver to new mfd core

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

7 years agoregulator: tps80031: Proper configuration for PREQ1 control
Laxman Dewangan [Thu, 13 Oct 2011 07:04:58 +0000]
regulator: tps80031: Proper configuration for PREQ1 control

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

7 years agoregulator: gpio_switch: Fix set_voltage to return selector value
Antti P Miettinen [Fri, 7 Oct 2011 12:18:26 +0000]
regulator: gpio_switch: Fix set_voltage to return selector value

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

7 years agoregulator: tps80031: Fix set_voltage to return selector value
Antti P Miettinen [Fri, 7 Oct 2011 12:03:52 +0000]
regulator: tps80031: Fix set_voltage to return selector value

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

7 years agoregulator: tps6236x: Fix set_voltage to return selector value
Antti P Miettinen [Fri, 7 Oct 2011 11:14:54 +0000]
regulator: tps6236x: Fix set_voltage to return selector value

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

7 years agoregulator: tps6591x: Fix set_voltage to return selector value
Antti P Miettinen [Tue, 18 Oct 2011 15:24:25 +0000]
regulator: tps6591x: Fix set_voltage to return selector value

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

7 years agoregulator: tps6591x: Optimize voltage change using cache
Laxman Dewangan [Mon, 12 Sep 2011 07:58:12 +0000]
regulator: tps6591x: Optimize voltage change using cache

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

7 years agoregulator: tps80031: Optimize voltage change by register cache
Laxman Dewangan [Wed, 14 Sep 2011 11:17:50 +0000]
regulator: tps80031: Optimize voltage change by register cache

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

7 years agoregulator: tps6591x: Take care of voltage slew rate
Laxman Dewangan [Thu, 8 Sep 2011 10:55:15 +0000]
regulator: tps6591x: Take care of voltage slew rate

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

7 years agoregulator: max77663: reduce i2c transfer using cache value
Jin Park [Fri, 9 Sep 2011 07:32:39 +0000]
regulator: max77663: reduce i2c transfer using cache value

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

7 years agomfd: aat2870: Update the driver to new mfd core
Jin Park [Wed, 28 Sep 2011 08:13:03 +0000]
mfd: aat2870: Update the driver to new mfd core

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: Rc7ac7718182de4efbbfd839e97ceb2fa5875882a

7 years agoregulator: max77663: Correct parameter in set_voltage operation
Jin Park [Tue, 27 Sep 2011 10:58:04 +0000]
regulator: max77663: Correct parameter in set_voltage operation

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

7 years agoregulator: max77663: Active-discharge mode for SDx
Harry Hong [Thu, 1 Sep 2011 11:22:11 +0000]
regulator: max77663: Active-discharge mode for SDx

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

7 years agoregulator: ricoh583: Fix regulator information table
Laxman Dewangan [Wed, 24 Aug 2011 13:17:13 +0000]
regulator: ricoh583: Fix regulator information table

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

7 years agoregulator: tps80031: Support for delay configuration
Laxman Dewangan [Tue, 19 Jul 2011 14:04:57 +0000]
regulator: tps80031: Support for delay configuration

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

7 years agoregulator: tps8003x: Add Charging bus ID
Laxman Dewangan [Fri, 19 Aug 2011 14:22:32 +0000]
regulator: tps8003x: Add Charging bus ID

Adding charging rail ID for registering as regulator.

Original-Change-Id: I654f8d040be5387bc8d6949e0338db6d4fdd5ed4
Reviewed-on: http://git-master/r/48208
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com>

Rebase-Id: R10a204a890f5e4f340de18b97d53691b77e13bc8

7 years agoregulator: max77663: Slew rate and forced PWM mode for SDx
Jin Park [Thu, 18 Aug 2011 08:48:46 +0000]
regulator: max77663: Slew rate and forced PWM mode for SDx

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

7 years agoregulator: ricoh583: Add ricoh583 regulator
Laxman Dewangan [Sat, 9 Jul 2011 20:28:14 +0000]
regulator: ricoh583: Add ricoh583 regulator

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

7 years agoregulator: max77663: Add MAX77663 regulator driver
Jin Park [Tue, 2 Aug 2011 07:35:58 +0000]
regulator: max77663: Add MAX77663 regulator driver

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

7 years agoregulator: tps6591x: Clear external control setting in shutdown
Laxman Dewangan [Mon, 25 Jul 2011 12:38:15 +0000]
regulator: tps6591x: Clear external control setting in shutdown

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

7 years agoregulator: Expand regulator notifier events
Alex Frid [Wed, 20 Jul 2011 22:04:06 +0000]
regulator: Expand regulator notifier events

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

7 years agomfd: tps80031: Move rail definition to regulator header
Laxman Dewangan [Thu, 14 Jul 2011 10:01:49 +0000]
mfd: tps80031: Move rail definition to regulator header

Moving the definitions of regulator rail names into regulator
header from core header.

bug 849977

Original-Change-Id: Ia2e4e9394b6ee013e2e12355038e15609d5077ea
Reviewed-on: http://git-master/r/41023
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Rf3dcc1388e95dafd1b082a6e52091d952eb7366a

7 years agomfd: tps6591x: Move rail definition to regulator header
Laxman Dewangan [Thu, 14 Jul 2011 09:35:33 +0000]
mfd: tps6591x: Move rail definition to regulator header

Moving the definitions of regulator rail names into regulator
header from core header.

bug 849977

Original-Change-Id: I84cb56e64995c37fbf79f51936bfab9c01644c00
Reviewed-on: http://git-master/r/41015
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R461e9e844052b36ad6eee38831a68a3d0c5ebec9

7 years agoregulator: tps80031: Correcting voltage range for LDOs.
Jin Park [Mon, 4 Jul 2011 07:06:31 +0000]
regulator: tps80031: Correcting voltage range for LDOs.

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

7 years agoregulator: tps80031: Fix build warning
Dan Willemsen [Wed, 10 Aug 2011 04:49:03 +0000]
regulator: tps80031: Fix build warning

Original-Change-Id: I0bcfd38569b9a9a1cc21d0e9d12a0d114d87be9c
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rf1f1609942bd3ca4fae07ab37304cb214ab87774

7 years agoarm: mfd/regulator: tps80031: Adding force_update for status register
Jin Park [Sat, 25 Jun 2011 08:00:03 +0000]
arm: mfd/regulator: tps80031: Adding force_update for status register

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: R4fe2a3dce3d7aa9d1710f706ca7978a2848a1fe8

7 years agoregulator: tps80031: Controls regulator output by PREQ
Laxman Dewangan [Thu, 30 Jun 2011 03:38:33 +0000]
regulator: tps80031: Controls regulator output by PREQ

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: Rbdf280412ca9c3f2fa73b17bd15b85408ffc0996

7 years agoregulator: tps80031: Add VBUS as regulator
Laxman Dewangan [Mon, 27 Jun 2011 10:23:12 +0000]
regulator: tps80031: Add VBUS as regulator

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: R65f709d46eada58498564214a3b9f0957fb98f25

7 years agoregulator: write permission for only user
Sachin Nikam [Thu, 16 Jun 2011 09:52:26 +0000]
regulator: write permission for only user

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

7 years agoarm: mfd/regulator: tps80031: Fix I2C addressing
Laxman Dewangan [Fri, 3 Jun 2011 09:14:18 +0000]
arm: mfd/regulator: tps80031: Fix I2C addressing

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

7 years agoarm: mfd/regulator: Adding driver for tps80031
Laxman Dewangan [Thu, 26 May 2011 08:23:59 +0000]
arm: mfd/regulator: Adding driver for tps80031

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

7 years agodriver:regulator: tps6591x: sleep mode support
Luke Huang [Thu, 19 May 2011 17:29:51 +0000]
driver:regulator: tps6591x: sleep mode support

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

7 years agoregulator: generate status events for all regulators
Peter De Schrijver [Wed, 4 May 2011 11:05:35 +0000]
regulator: generate status events for all regulators

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

7 years agoregulator: tps6236x: Adding driver
Laxman Dewangan [Thu, 12 May 2011 17:35:28 +0000]
regulator: tps6236x: Adding driver

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

7 years agoregulator: tps6591x: delay for LDOs to stabilize
Bharat Nihalani [Mon, 9 May 2011 14:34:23 +0000]
regulator: tps6591x: delay for LDOs to stabilize

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

7 years agoregulator: gpio_switch: voltage should be return in microvolts
Laxman Dewangan [Thu, 5 May 2011 10:29:39 +0000]
regulator: gpio_switch: voltage should be return in microvolts

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

7 years agoARM: tegra: power: add cpu-dvs table for tegra3
Diwakar Tundlam [Tue, 15 Mar 2011 23:16:58 +0000]
ARM: tegra: power: add cpu-dvs table for tegra3

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

7 years agoarm: tegra: cardhu: Cleanup to support multiboards configuration
Laxman Dewangan [Thu, 10 Mar 2011 11:31:44 +0000]
arm: tegra: cardhu: Cleanup to support multiboards configuration

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

7 years agoregulator: tps6591x: VDDCTRL voltage range is 600mv to 1400mv
Laxman Dewangan [Tue, 8 Mar 2011 07:43:27 +0000]
regulator: tps6591x: VDDCTRL voltage range is 600mv to 1400mv

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

7 years agoARM: tegra: cardhu: Enable VDD_CPU external control
Alex Frid [Sun, 20 Feb 2011 06:32:51 +0000]
ARM: tegra: cardhu: Enable VDD_CPU external control

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

7 years agoregulator: tps6591x: supporting init state of output through board
Laxman Dewangan [Thu, 10 Feb 2011 10:44:46 +0000]
regulator: tps6591x: supporting init state of output through board

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

7 years agoarm: regulator: gpio-switch: Removing device in reverse way
Laxman Dewangan [Wed, 2 Feb 2011 09:31:47 +0000]
arm: regulator: gpio-switch: Removing device in reverse way

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

7 years agoarm: regulator: gpio_switch: Registering gpio rails as sub devices.
Laxman Dewangan [Mon, 31 Jan 2011 19:49:38 +0000]
arm: regulator: gpio_switch: Registering gpio rails as sub devices.

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

7 years agoarm: regulator: gpio_switch: enable/disable of rail through board apis
Laxman Dewangan [Mon, 31 Jan 2011 09:00:25 +0000]
arm: regulator: gpio_switch: enable/disable of rail through board apis

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

7 years agoarm: regulator: gpio_switch: Returning proper enable states
Laxman Dewangan [Sat, 29 Jan 2011 11:28:19 +0000]
arm: regulator: gpio_switch: Returning proper enable states

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

7 years agoarm: regulator: gpio_switch: providing initial state
Laxman Dewangan [Fri, 28 Jan 2011 17:55:12 +0000]
arm: regulator: gpio_switch: providing initial state

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

7 years agoregulator: Adding gpio switch based regulator
Laxman Dewangan [Mon, 24 Jan 2011 11:55:10 +0000]
regulator: Adding gpio switch based regulator

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

7 years ago[ARM] tps6591x: Adding regulator and mfd driver
Laxman Dewangan [Fri, 21 Jan 2011 11:09:41 +0000]
[ARM] tps6591x: Adding regulator and mfd driver

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

7 years agoregulator: tps6586x: fix LDO0 voltage setting
David Schalig [Sat, 2 Apr 2011 06:01:38 +0000]
regulator: tps6586x: fix LDO0 voltage setting

Minimum voltage for LDO0 was specified with a code construct,
better solve this with a voltage table. This avoids a warning
in kernel log, too.

Bug 798821

Original-Change-Id: I706276a9aae3359006ddc7fe9134b67e00ec34fd
Reviewed-on: http://git-master/r/25185
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R800f3239d35415e5cb2f5ff2570f6f0285e44adc

7 years agoregulator: tps6586x: add PFM/PWM options on SMs supply
Xin Xie [Sat, 12 Mar 2011 03:04:15 +0000]
regulator: tps6586x: add PFM/PWM options on SMs supply

TPS6586x SM0, SM1 and SM2 port have 2 power switching modes:
 - PWM only, or
 - PMW-PFM auto mode

Some of TPS6586x have voltage spike in PFM-to-FWM transition can lockup
the CPU if choose PWM-PFM auto mode.

This patch enables such mode selection on SMs ports from the board level
power configuration file.

BUG 796364

Original-Change-Id: I7015798151d6753ff5dcc329703338fde105e2b0
Reviewed-on: http://git-master/r/22701
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Reviewed-by: Xin Xie <xxie@nvidia.com>
Tested-by: Xin Xie <xxie@nvidia.com>

Rebase-Id: R2f74b345bc3ea3adc22adcab40ee407c3e65cae9

7 years agoregulator: tps6586x: delay needed for LDO/SMs to stabilise
Varun Wadekar [Thu, 24 Feb 2011 07:37:29 +0000]
regulator: tps6586x: delay needed for LDO/SMs to stabilise

after enabling any LDO/SM, there is a specific amount of delay
required before the regulator becomes stable.

Original-Change-Id: Ife675b46eeec22e862bafd9f93774bd31782d53b
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/20738
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R2f7428e60415d486a43b8fab367ee597e8fce945

7 years agomax8907c regulator: use new mfd driver api
Tom Cherry [Fri, 21 Jan 2011 22:45:40 +0000]
max8907c regulator: use new mfd driver api

Modify the max8907c regulator to use the new i2c api in the mfd driver

Original-Change-Id: Ib919e97069459a9deb595b1fa0d3142763205de1
Reviewed-on: http://git-master/r/16614
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R10baa9eb3d5078457edc75a8774ec4be3228011d

7 years agomax8907c regulator: fix unit error
Tom Cherry [Wed, 29 Dec 2010 02:30:31 +0000]
max8907c regulator: fix unit error

The minimum, maximum, and step voltages for SD1 are different on max8907b
and max8907c.  This change reads the version register of the device
and uses the proper values, defaulting to the max8907c values, unless
the device is a max8907b.

Bug 772688

Original-Change-Id: I2bc53e81c7784e47c50e4ff45c4f4d71d875e187
Reviewed-on: http://git-master/r/14503
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R52c46e5096b21f9b530cfe19cea2cef964d640e5

7 years agoRegulators: Add max8907c and max8952
Jin Park [Thu, 28 Oct 2010 09:04:04 +0000]
Regulators: Add max8907c and max8952

Add max8907c regulator and mfd driver.
Add max8952 regulator driver.

Original-Change-Id: If63b724647d887a8088da0f2deb8af91e4fe3cfa
Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/9902
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R34a5dc549ba3f6781e5b7371e8e182c3cf6368db

7 years agoplaceholders for merging
Dan Willemsen [Thu, 5 May 2011 03:13:18 +0000]
placeholders for merging

Rebase-Id: R177e2f8e2b79f789558d19e4b17863c9b29fab9e

7 years agoMerge branch 'pre-hacks/from-google' into after-pre-hacks
Dan Willemsen [Thu, 22 Mar 2012 08:11:16 +0000]
Merge branch 'pre-hacks/from-google' into after-pre-hacks

7 years agoMerge branch 'pre-hacks/dma' into after-pre-hacks
Dan Willemsen [Thu, 22 Mar 2012 08:11:15 +0000]
Merge branch 'pre-hacks/dma' into after-pre-hacks

7 years agofs: ext4: Fix computation of inodes per block group
Colin Cross [Fri, 29 Apr 2011 22:38:33 +0000]
fs: ext4: Fix computation of inodes per block group

857ac889cce8a486d47874db4d2f9620e7e9e5de (ext4: add interface
to advertise ext4 features in sysfs) added an error check that
exposes a bug in the computation of sbi->s_itb_per_group.  If
the number of inodes per group is not a multiple of the number
of inodes per block,

Original-Change-Id: I8c60817dbb6feb43535b567ec7ea5ee0af709c37
Signed-off-by: Colin Cross <ccross@android.com>
(cherry picked from commit 8703a0ccb0135ae0de0d7011f29eeb6dc1caa486)

Rebase-Id: R7fc03850010d565447bb8702710040f112705738

7 years agousb: gadget: add phy_config to fsl_devices.h
Colin Cross [Sat, 9 Apr 2011 04:33:12 +0000]
usb: gadget: add phy_config to fsl_devices.h

Original-Change-Id: I7be84ad877d1865c639ee5856f546276c8fdac73
Signed-off-by: Colin Cross <ccross@android.com>
(cherry picked from commit e8945b26135c260f91c12a85cc911a165ab07504)

Rebase-Id: R3051e65e6a756bdad25ade5f865b383d9a2164e3

7 years agoRevert "ARM: tegra: dma: Do not call complete callback on canceled requests"
Dan Willemsen [Sun, 15 May 2011 00:58:29 +0000]
Revert "ARM: tegra: dma: Do not call complete callback on canceled requests"

This reverts commit 5dba29d1f761502e75320770fc4c6cf9c8e00998.

Rebase-Id: Rb6889e4755716f5baa5c7f272ae7d8c8b6d97ba5

7 years agoRevert "serial: tegra_hsuart: Call complete callbacks when cancelling reqs"
Dan Willemsen [Sun, 15 May 2011 00:58:24 +0000]
Revert "serial: tegra_hsuart: Call complete callbacks when cancelling reqs"

This reverts commit 5bf3a3e0d18712006090000256086c4a1672cca7.

Conflicts:

drivers/tty/serial/tegra_hsuart.c

Rebase-Id: R53d1706a5d5cdd2f06756158e6a4fb0e93f840e9

7 years agoARM: Cortex-A9: Enable dynamic clock gating
Todd Poynor [Tue, 15 Feb 2011 19:48:42 +0000]
ARM: Cortex-A9: Enable dynamic clock gating

Enable dynamic high level clock gating for Cortex-A9 CPUs, as
described in 2.3.3 "Dynamic high level clock gating" of the
Cortex-A9 TRM.  This may cut the clock of the integer core,
system control block, and Data Engine in certain conditions.

Add ARM errata 720791 to avoid corrupting the Jazelle
instruction stream on earlier Cortex-A9 revisions.

Original-Change-Id: I48e51d907e593f26982ea91b0a811553f68e3c86
Signed-off-by: Todd Poynor <toddpoynor@google.com>

Rebase-Id: R7ae4d4825e9171bca2471fe776ecf363e75b9ca6

7 years agoMake tegra_defconfig compile
Dan Willemsen [Thu, 22 Mar 2012 07:22:47 +0000]
Make tegra_defconfig compile

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agommc: tegra: fixup error path
Dan Willemsen [Tue, 20 Mar 2012 00:34:37 +0000]
mmc: tegra: fixup error path

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R0dc39c843e6a708cb1fdfb7193422bc55c363e38

7 years agoRevert "mmc: sdhci-tegra: Add MMC_PM_IGNORE_PM_NOTIFY for builtin device"
Dan Willemsen [Fri, 17 Jun 2011 05:33:52 +0000]
Revert "mmc: sdhci-tegra: Add MMC_PM_IGNORE_PM_NOTIFY for builtin device"

This reverts commit 09e0e4fb75de1a008f00025a186d756435f9f034.

Rebase-Id: R7f871bc41beda798acea8b9c7c32d50531ad88e0

7 years agoARM: Add 'card_present' state to mmc_platfrom_data
Dmitry Shmidt [Tue, 3 May 2011 18:05:04 +0000]
ARM: Add 'card_present' state to mmc_platfrom_data

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

Rebase-Id: R326381df3f4188cc1f700eb210c12b483afe9e77

7 years agoRecreate asm/mach/mmc.h include file
Colin Cross [Sat, 9 Apr 2011 05:20:53 +0000]
Recreate asm/mach/mmc.h include file

Change-Id: I9f10244b0603f7842b8504a16124d40dc4a71ed2
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: Rdc49da8123b4e700f2987a4a5ea19ad2b29ff1d6

7 years agofixup: hotplug.c: cpu_pm
Dan Willemsen [Thu, 22 Mar 2012 05:04:03 +0000]
fixup: hotplug.c: cpu_pm

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agopinmux-tegra30-tables: replace mach/suspend.h with pm.h
Dan Willemsen [Thu, 22 Mar 2012 05:02:28 +0000]
pinmux-tegra30-tables: replace mach/suspend.h with pm.h

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoHACK usb_phy.c add pinmux-tegra20.h include
Dan Willemsen [Thu, 22 Mar 2012 04:57:59 +0000]
HACK usb_phy.c add pinmux-tegra20.h include

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoHACK: add idmap.h include
Dan Willemsen [Thu, 22 Mar 2012 04:56:57 +0000]
HACK: add idmap.h include

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoHACK: partial revert of static identity_mapping_add
Dan Willemsen [Thu, 22 Mar 2012 04:50:16 +0000]
HACK: partial revert of static identity_mapping_add

commit 4e8ee7de227e3ab9a72040b448ad728c5428a042

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoHACK: fixup tegra_init_cache
Dan Willemsen [Thu, 22 Mar 2012 01:31:15 +0000]
HACK: fixup tegra_init_cache

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agovideo: fbmon: fixed E-EDID SVD entry parsing
Eric Laurent [Thu, 15 Sep 2011 17:30:46 +0000]
video: fbmon: fixed E-EDID SVD entry parsing

Fixed index calculation when parsing E-EDID block SVD entry
in fb_edid_add_monspecs().

Change-Id: I0273e2f29e86687607923d07faf99a30696f5ead
Signed-off-by: Eric Laurent <elaurent@google.com>

Rebase-Id: Rc55887d66002d58dcc5b602efb038a35807e6799

7 years agovideo: fbmon: add HDMI dectetion to fbmod edid parsing
Erik Gilling [Mon, 7 Feb 2011 03:32:17 +0000]
video: fbmon: add HDMI dectetion to fbmod edid parsing

Looks for ieee registration number 0x000c03 as per HDMI spec.
CEA-861-E section D.6.8.

Change-Id: I6875b24c66e8754510edabcb4f9ba682a50d6ac1
Signed-off-by: Erik Gilling <konkers@android.com>
Signed-off-by: Lajos Molnar <molnar@ti.com>

Rebase-Id: Rf3a48bcf800a61542c2226d728e7cde1c3889da7

7 years agovideo: fbmon: Add support for CEA pixel ratios.
Lajos Molnar [Fri, 9 Sep 2011 21:44:13 +0000]
video: fbmon: Add support for CEA pixel ratios.

CEA defines multiple timings with dual timing ratios that cannot
be distinguished from timings parameters.  Added 2 new fb flags
to specify 4:3 or 16:9 display ratios.

Also added a flag that denotes CEA formats that require repeating
pixels.

Change-Id: I75d413babdcb4048a0ccce6548ed386ad0e52318
Signed-off-by: Lajos Molnar <molnar@ti.com>

Rebase-Id: Re8a9c83e4707ae0ffabf4f2a539758faeacd6211

7 years agovideo: fbmon: add remaining modes to CEA mode database
Erik Gilling [Tue, 13 Sep 2011 20:44:44 +0000]
video: fbmon: add remaining modes to CEA mode database

These mode are directly from the CEA-861-E spec.

Change-Id: Ic29390fb8dfc4605da1f95aaee0e2e775dfc0a4a
Signed-off-by: Erik Gilling <konkers@android.com>

Rebase-Id: R846f89c07d11e7b985f5437c4ecf446354147561

7 years agoRevert "video: fbmon: add HDMI dectetion to fbmod edid parsing"
Erik Gilling [Wed, 9 Nov 2011 22:18:46 +0000]
Revert "video: fbmon: add HDMI dectetion to fbmod edid parsing"

This reverts commit c326f06779fb6bdd7f92c3ede8d1bebbe2fafbfa.

Rebase-Id: Re524e8d29145ef2fe418b122c9d0eeb4b773a7eb

7 years agowatchdog: tegra_wdt: give time for spinlock lockup detection to work
JP Abgrall [Sat, 27 Aug 2011 01:39:17 +0000]
watchdog: tegra_wdt: give time for spinlock lockup detection to work

To allow the spinlock lockup detection to actually trigger after
60 seconds, the tegra_wdt heartbeat needs to be longer than that.
Bumping it to 120sec, as at the 50% marker the watchdog takes an
interrupt.

Change-Id: I099fd7720d65c0e2050fa91161e30485fe84a1ed
Signed-off-by: JP Abgrall <jpa@google.com>

Rebase-Id: R89dfdbb2a0d1c756a79b5e77205d74a27ab6185b

7 years agoARM: tegra: pm: hold cpus unti all have booted when exiting lp2
Colin Cross [Wed, 24 Aug 2011 02:26:33 +0000]
ARM: tegra: pm: hold cpus unti all have booted when exiting lp2

When exiting lp2, each cpu boots through cpu_resume, which
modifies the last used page table to add a 1-1 mapping in
order to turn on the mmu.  The first cpu to boot triggers
booting the second cpu, and if allowed to continue immediately
may start executing a userspace task that is using the same
page tables as the second cpu is modifying during its boot
process.  Hold each cpu in a loop until all cpus have
finished booting to ensure page tables are back to their
original state.  Each cpu triggers a global tlb flush
after it restores the page table, so all cpus will see the
original values before they exit idle.

Change-Id: Iad91ae57e2abbbec3d6d491460c3e19411b519c0
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: R110a4b1f28846af97edd39bb382e1e09c3f92330

7 years agoARM: tegra: sleep: flush tlbs when exiting wfi
Colin Cross [Wed, 24 Aug 2011 00:43:54 +0000]
ARM: tegra: sleep: flush tlbs when exiting wfi

tegra_sleep_wfi disables coherency to prepare for possibly
resetting the cpu.  If an interrupt is received, it exits
wfi and re-enables coherency, but it was not flushing the
tlbs or the branch predictor array, which could have been
updated by broadcast tlb operations that were ignored.
Flush the tlbs and branch predictor array when exiting.

Change-Id: If2c6ca3f923baf2f883f461a2a90f08833c7e191
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: Re46c9045a33ad78789e7dee2788b470fd1071c83

7 years agommc: sdhci: Enable MMC_CAP_ERASE for the tegra sdhci controller
Ken Sumrall [Thu, 18 Aug 2011 04:12:55 +0000]
mmc: sdhci: Enable MMC_CAP_ERASE for the tegra sdhci controller

Even if the card/emmc chip claims to support the Erase command,
the command won't work unless the controller is also configured
to support it.

Change-Id: Ic45fcd88dd3b3381677d907d31fa3a56bb697107
Signed-off-by: Ken Sumrall <ksumrall@android.com>

Rebase-Id: Ra7472026260294afa7d63335e7db29cadc9f1f9e

7 years agoARM: tegra: pm: save/restore ahb bus registers
Benoit Goby [Fri, 15 Jul 2011 04:26:39 +0000]
ARM: tegra: pm: save/restore ahb bus registers

Submitted on behalf of Jay Cheng <jacheng@nvidia.com>
Modified to use syscore_ops

Change-Id: Ic8a3a9559634eb3f1f0e4b40a2d8502d20d606d6
Signed-off-by: Benoit Goby <benoit@android.com>

Rebase-Id: R772632ac36f18c046f055fa71c062eda75adaf78

7 years agoARM: tegra: Enable AHB prefetch for USB
Benoit Goby [Fri, 15 Jul 2011 02:50:34 +0000]
ARM: tegra: Enable AHB prefetch for USB

Enabling AHB prefetch on USB1, USB2, USB3 controllers,
to improve the USB transfer throughput.

originally work from Rakesh Bodla <rbodla@nvidia.com>

Change-Id: I3c45bb8e97ceffbf43229b9c3d9581a565b61187
Signed-off-by: James Wylder <james.wylder@motorola.com>

Rebase-Id: R70e5a98a122758afb8aafc8c9bd5fd3e0640ba2d

7 years agoARM: tegra: usb: prefetch engine buffer coherency protection
James Wylder [Tue, 21 Jun 2011 20:30:40 +0000]
ARM: tegra: usb: prefetch engine buffer coherency protection

The prefetcher fetches a total of 128 bytes, and then responding to
sequential reads with this prefetched data. To avoid coherency issues,
it discards the prefetched data if a non sequential read occurs.

Allocate dtd with 128 bytes boundary to make 2 consecutive dtd 128 bytes
apart.

Submitted on behalf of Jay Cheng <jacheng@nvidia.com>

Change-Id: I2adc02c2ac7901d0617b487cb498a34ec7a63e18
Signed-off-by: James Wylder <james.wylder@motorola.com>

Rebase-Id: R5f9b91ece4b041d15bed9c1239bff073af18dcb8

7 years agousb: host: tegra: Add a short delay before the controller suspends.
Mike Corrigan [Mon, 20 Jun 2011 20:36:18 +0000]
usb: host: tegra: Add a short delay before the controller suspends.

Submission from Jay Cheng <jacheng@nvidia.com>.

Change-Id: Ic92befe618adc7bdd12c35374fb3f855d7f6a515
Signed-off-by: Mike Corrigan <michael.corrigan@motorola.com>

Rebase-Id: Rd1b4ff67cb1a4ad0df30d578072d36571b68afec

7 years agousb: gadget: tegra: update memory frequency requests to MAX
James Wylder [Tue, 21 Jun 2011 17:48:15 +0000]
usb: gadget: tegra: update memory frequency requests to MAX

Need maximum memory bandwidth to support bi-directional
transfers on multiple endpoints.

Change-Id: Idfd74c62ea0438fca7b93e82a6032a28feeab830
Signed-off-by: James Wylder <james.wylder@motorola.com>

Rebase-Id: R81d4136fe8d556ecf53873e7fe3022bc8d0e2ced

7 years agoARM: tegra: small optimizations for table lookups
James Wylder [Tue, 21 Jun 2011 17:51:37 +0000]
ARM: tegra: small optimizations for table lookups

Optimization that primarily addresses when cpu frequency
is low but a high memory bandwidth is needed.

Change-Id: I4f800c2368191c744aefd9f83eb96e4c108dbcc3
Signed-off-by: James Wylder <james.wylder@motorola.com>

Rebase-Id: Rb56fcfbf9ee66305b9d9cf8b02a42e3f4aab020c

7 years agoARM: tegra: usb_phy: Revise some default settings for utmi phy
Benoit Goby [Sun, 17 Jul 2011 23:59:58 +0000]
ARM: tegra: usb_phy: Revise some default settings for utmi phy

Submitted on behalf of Jay Cheng <jacheng@nvidia.com>

Change-Id: I8552e995ee5c124023dd7f5385e8ecca7a50eee8
Signed-off-by: James Wylder <james.wylder@motorola.com>

Rebase-Id: R003588d3b2d55a4117d118f95b71cdc388fa19f1

7 years agoARM: tegra: clock: Add frequencies table for pll_c
Sergey Kudakov [Fri, 1 Apr 2011 00:15:43 +0000]
ARM: tegra: clock: Add frequencies table for pll_c

Change-Id: Ib64190b01fc26bfb7fb8b9059afcc172d91e8da5
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>

Rebase-Id: R36eb1e1b485a1ea31af7092b3c3ef83c0e78aad3

7 years agovideo: tegra: nvmap: perform cache maintenance for rw_handle
Greg Roth [Wed, 16 Mar 2011 20:44:47 +0000]
video: tegra: nvmap: perform cache maintenance for rw_handle

Need cache maintenance on rw_handle to remove
display garbage issue which happens randomly.

Change-Id: I73606ae6551c0e75058e055f4a19e5f074a47004
Signed-off-by: Greg Roth <groth@nvidia.com>

Rebase-Id: R90e3ef151b634a47639a314e3d990eda4671ec73

7 years agoRevert "ARM: tegra: resolve ulpi disconnect issue"
Colin Cross [Fri, 17 Jun 2011 23:27:21 +0000]
Revert "ARM: tegra: resolve ulpi disconnect issue"

Commit 190f7b3ed5a597d2232e9047b50ac2d7613c3272 was an incorrect
merge, revert it.

Change-Id: I1c7e09fdbaad6637326facbc0ee06117bfb15e48

Rebase-Id: R224f9a9eb78f2758ca6c7ad423719ad20d61c826

7 years agovideo: tegra: add support for tiled surfaces
Michael I. Gold [Thu, 31 Mar 2011 02:07:07 +0000]
video: tegra: add support for tiled surfaces

Change-Id: I82497fc756552740836eaa2f608fecaea409cfeb
Signed-off-by: Michael I. Gold <gold@nvidia.com>

Rebase-Id: R546a39a04712c0dbb6fcc51f60fb9ccb20fc46d5

7 years agovideo: tegra: add display inversion support
Ari Hirvonen [Wed, 2 Mar 2011 00:06:27 +0000]
video: tegra: add display inversion support

Change-Id: Ied3851e0cb801f607499493f1e552f42daa97e6b
Signed-off-by: Ari Hirvonen <ahirvonen@nvidia.com>

Rebase-Id: Ref0a8a3fad3a8ddcea612106a2a7e08a7a33e325

7 years agousb: ehci: tegra: Correctly handle GetPortStatus during Resume
Nathan Connell [Mon, 2 May 2011 19:32:36 +0000]
usb: ehci: tegra: Correctly handle GetPortStatus during Resume

Multiple GetPortStatus requests can be made while the
USB bus is resuming.  All requests must be handled
properly to prevent incorrect disconnect detection
during Resume and improper indentification of
Resume signaling as a remote wakeup event.

Change-Id: Ib07f83a2bab5699b2d95533d26d0a6bf541c697d
Signed-off-by: Nathan Connell <w14185@motorola.com>

Rebase-Id: R6d2c8b1b85fb37d1e1d7dad3051098b0d42ed71a