6 years agoregulator: max77663: convert regulator init data to pointer
Laxman Dewangan [Fri, 24 Aug 2012 11:55:31 +0000]
regulator: max77663: convert regulator init data to pointer

The platform data for max77663 regulator have the member for
regulator init data.  Convert this to pointer type to easing
the dt support for regulator.

Change-Id: I7ce715c5afc4046f85fd86e7e6efb27ec0e7e9e7
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/127158
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: host: Read TSEC key
Terje Bergstrom [Fri, 10 Aug 2012 11:34:18 +0000]
video: tegra: host: Read TSEC key

Read TSEC encrypted key from command line, and patch it in front of
the TSEC firmware.

Bug 969164

Change-Id: I396e7780362b92dca0c18f2ace5fefd825dd84c5
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/122664
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agopm: EDP: adding priority governor
Sivaram Nair [Wed, 22 Aug 2012 07:49:09 +0000]
pm: EDP: adding priority governor

This patch adds the priority governor to EDP framework. When throttling
is required, lower priority clients are picked first.

Change-Id: I9e673f35dbe98728bb2fbd9e4ca1c7af684e1d1c
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/125226
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoarm: tegra: pluto: Implement board panel file
Animesh Kishore [Fri, 24 Aug 2012 13:58:13 +0000]
arm: tegra: pluto: Implement board panel file

Comprises of:
1. nvmap device registration
2. nvavp device registration
3. host1x device registration
4. display device registration
5. basic dsi and hdmi support
6. pwm support

Bug 1017715

Change-Id: Ic832cca42afb9d91454de056be1e0fa1cddd66e2
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/127211
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoARM: tegra: name the supply name of regulator rails
Laxman Dewangan [Fri, 24 Aug 2012 11:48:50 +0000]
ARM: tegra: name the supply name of regulator rails

Provide the name of the regulator rails of MAX77663 from
platform data in place of relying on the name given by
driver.

Change-Id: Ib77acefe7117115745e8414fae966b04339c6c6a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/127182
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agomfd: max77663: remove gpio support from core
Laxman Dewangan [Fri, 24 Aug 2012 09:58:36 +0000]
mfd: max77663: remove gpio support from core

GPIO driver support for MAX77663 is moved as separate driver
under gpio directory. Removing the code which support gpio
driver in core driver and register max77663-gpio driver as
mfd sub device.

Change-Id: Iaa414e2e7f2d91ca98ab1c996154aeb01daa63ec
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/127147
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra: enable MAX77663_GPIO config
Laxman Dewangan [Fri, 24 Aug 2012 09:25:03 +0000]
ARM: tegra: enable MAX77663_GPIO config

Enable MAXIM PMIC MAX77663 GPIO driver.

Change-Id: I4200f774f4628448a355fc295afc28bc613659e2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/127146
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agogpio: max77663: add gpio driver
Laxman Dewangan [Fri, 24 Aug 2012 09:21:26 +0000]
gpio: max77663: add gpio driver

Maxim PMIC MAX77663 supports 8 GPIOs. Providing
the access to GPIO through gpio driver.

The support is already in core driver but gpio
functionality should be provided through gpio driver
and keeping this in gpio directory.
This is inline with mfd driver implementation.

Change-Id: I31e169a4be33aa3e1677a2006a70dd05c9da22a9
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/127145
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: dalmore: Adding machine check
Pradeep Goudagunta [Fri, 24 Aug 2012 10:25:02 +0000]
ARM: tegra: dalmore: Adding machine check

Adding machine check for dalmore fixed regulator registration.

Bug 982726

Change-Id: Ic186d7c2bab832fa8630301b5a6bd75253d32b08
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/127144
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoregulator: core: Take supply regulator from init_data only
Laxman Dewangan [Fri, 24 Aug 2012 07:13:58 +0000]
regulator: core: Take supply regulator from init_data only

As EPROBE_DEFER is not supported in K3.4 and hence if supply
regulator is not found then regulator registration fails.
Setting the supply regulator only from init_data in place of
providing it through desc.

Change-Id: Iebe321abd84fc3bec2c4aa5a4233320efef0387b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/127106
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra11: clock: Update pll set rate operation
Alex Frid [Fri, 24 Aug 2012 03:01:09 +0000]
ARM: tegra11: clock: Update pll set rate operation

Modified set out-of-table-rate operation to guarantee that vco
minimum limit is not violated in this case as well (this procedure
applied to PLLD/D2, PLLU, and PLLA, although the latter plls are not
expected to run at out-of-table rates ever).

According to PLLD/D2 and PLLU specification update, increased CPCON
and LFCON values. Removed LFCON dependency on feedback divider range.

Change-Id: Ib785ad54df3d50440ee4a44af45658b95d25001e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/127094
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: clock: Update PLLD/D2 configuration
Alex Frid [Fri, 24 Aug 2012 02:36:14 +0000]
ARM: tegra11: clock: Update PLLD/D2 configuration

Changed tabulated PLLD/D2 settings to increase vco above 500MHz
minimum, and increased CPCON values respectively.

Change-Id: I78f8f9a60e274ae49a0899e54b0f465106544f84
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/127093
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: clock: Update PLLA configuration
Alex Frid [Fri, 24 Aug 2012 01:00:34 +0000]
ARM: tegra11: clock: Update PLLA configuration

Changed PLLA configuration tables in order to
- lower vco below maximum divider input at Vmin - 408MHz - when
9.6MHz reference frequency is used
- increase vco above minimum - 200MHz - when 28.8MHz reference
frequency is used.

Updated curacao clock initialization accordingly.

Change-Id: Ic333be296d16761c5c3ea39e09ba7ab1ea4124e8
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/127092
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoARM: tegra11: clock: Update vco ranges for PLLP, PLLA, PLLD/D2
Alex Frid [Fri, 24 Aug 2012 02:29:55 +0000]
ARM: tegra11: clock: Update vco ranges for PLLP, PLLA, PLLD/D2

Change-Id: Ibebdaac1b6594542698198d7c17d977924cf64a5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/127091
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agokeyboard: tegra-kbc: Fix build for p1852
Bob Johnston [Thu, 23 Aug 2012 19:40:29 +0000]
keyboard: tegra-kbc: Fix build for p1852

tegra_kbc_set_keypress_interrupt was defined but not used
in the non CONFIG_PM_SLEEP config.  This failed the build.
Changing to defining function for CONFIG_PM_SLEEP only.

Bug: 1033000

Change-Id: I9ddaaeb9616d22da6c540ded8c83867e6bbfcfaa
Signed-off-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-on: http://git-master/r/126967
Reviewed-by: David Gorgen <dgorgen@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Bourgeois <fbourgeois@nvidia.com>

6 years agovideo: tegra: dc: Fix timestamp sim build
Jeff Smith [Thu, 23 Aug 2012 18:58:30 +0000]
video: tegra: dc: Fix timestamp sim build

bug 1021221

Change-Id: Ic7b69a19f7baecb8768179d34bdf94bae81969ee
Signed-off-by: Jeff Smith <jsmith@nvidia.com>
Reviewed-on: http://git-master/r/126952
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>

6 years agopm: EDP: Add governor framework
Sivaram Nair [Wed, 22 Aug 2012 07:13:48 +0000]
pm: EDP: Add governor framework

This patch introduces the governor framework into EDP. Governor will
handle all request related processing including issuing of notifications
and throttling.

A single governor can be used by multiple managers.

Change-Id: If0f97107d6a2df9dfa22e7e84c1f48ba27d27280
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/125225
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agopm: EDP: adding client priority
Sivaram Nair [Tue, 21 Aug 2012 12:24:58 +0000]
pm: EDP: adding client priority

This patch adds the priority field to EDP client. List of clients with
the EDP manager are kept sorted on this field.

Change-Id: I53bb5c0b826a4f02ed1e8e1729463ce8b754fc55
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/125224
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoarm: tegra: dalmore: Add LQ101R1SX01 sharp panel support
Animesh Kishore [Fri, 24 Aug 2012 08:51:47 +0000]
arm: tegra: dalmore: Add LQ101R1SX01 sharp panel support

10.07" 2560x1600 sharp panel.

Bug 1012298

Change-Id: Iaf1177a2886c4364111f0e0ee8426c52af3b2b2b
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/124915
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agocpuquiet: Add notifiers for the runnables governor
Sai Charan Gurrappadi [Wed, 25 Jul 2012 15:41:53 +0000]
cpuquiet: Add notifiers for the runnables governor

The governor stops sampling whenever the device is busy and starts its
sampling loop when the device is free.

Change-Id: Ifdae4a84e56c2734be48e49f6112b537602a02da
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/124680
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agocpuquiet: Runnable threads governor
Sai Charan Gurrappadi [Wed, 25 Jul 2012 15:37:14 +0000]
cpuquiet: Runnable threads governor

[perf] The runnable threads governor only looks at the average number of
runnables in the system to make a decision when bringing cores
offline/online. First pass; tweaks thresholds and delays to reduce
decision latency to about ~50-70ms per core (from ~100-150ms per core)

Change-Id: Idd3b268a74a8f56ad3fc0e5c7f388174d1b6611f
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/124679
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoarm: tegra: dalmore: Add B116HAN03.0 AUO panel support
Animesh Kishore [Mon, 20 Aug 2012 12:07:14 +0000]
arm: tegra: dalmore: Add B116HAN03.0 AUO panel support

11.6" 1920x1080 AUO panel

Bug 1028789

Change-Id: I78d591e8764134cdb39fbd2191ed7e7cecabf51a
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/124619
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoarm: tegra: dalmore: Add VVX10F004B00 panasonic panel support
Animesh Kishore [Fri, 24 Aug 2012 08:27:29 +0000]
arm: tegra: dalmore: Add VVX10F004B00 panasonic panel support

10.1" 1920 x 1200 panasonic panel

Bug 1028790

Change-Id: I2c32ec5c8f6c6e927a1b411504b9399e4559bb5c
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/124579
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra: thermal: Thermal Refactor
Joshua Primero [Fri, 17 Aug 2012 23:56:15 +0000]
ARM: tegra: thermal: Thermal Refactor

Removed all edp and throttling specific code in the tegra
thermal framework.

Change-Id: I60eb89266d19d8c8beab833f5c6953364b679318
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/124502
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: thermal: Edp into cooling device
Joshua Primero [Fri, 10 Aug 2012 00:05:14 +0000]
ARM: tegra: thermal: Edp into cooling device

Removed EDP specific code from tegra thermal layer. It is
now implemented as a cooling device.

Change-Id: Ica9602569367e07deb04cf3cb8064a1c4101a7a4
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/124501
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: thermal: Cleaned up thermal framework
Joshua Primero [Thu, 9 Aug 2012 23:44:29 +0000]
ARM: tegra: thermal: Cleaned up thermal framework

Removed shutdown and tc1,tc2,passive delay parameters from
thermal state.

Change-Id: Icd97afaf912a9fb7ab930c95d52d0e1dee42ce5a
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/124500
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: fuse: Add support to query gpu info
Hoang Pham [Fri, 24 Aug 2012 04:01:04 +0000]
ARM: tegra: fuse: Add support to query gpu info

Bug 1018116

Change-Id: Ib80d596d2ec6e2d6ea291b07e1e215e263a1ab5a
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/123826
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoMerge remote-tracking branch 'origin/dev/android-t114-3.4-next' into promotion_build
varun colbert [Fri, 24 Aug 2012 17:18:37 +0000]
Merge remote-tracking branch 'origin/dev/android-t114-3.4-next' into promotion_build

This is part of the main to dev-t114 delivery from main-jb-2012.08.23-B4

Change-Id: If77fb5bcaed386a512d151cf37bdfe90a749ecaf

6 years agoMerge remote-tracking branch 'experimental/dev/android-t114-3.4-rebased' into android...
Varun Wadekar [Fri, 24 Aug 2012 06:14:18 +0000]
Merge remote-tracking branch 'experimental/dev/android-t114-3.4-rebased' into android-t114-3.4

6 years agoARM: tegra: la: add function to scale LA
Ray Poudrier [Tue, 21 Aug 2012 22:09:09 +0000]
ARM: tegra: la: add function to scale LA

Add functionality to enable changing of latency
allowance settings. This is used for memory
tables that may have different tick lengths.

Bug 955082

Change-Id: I3055a062846cfdeb992931e691cf687ffb05725c
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/124979
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agovideo: tegra: host: Clear intr list at intr_put
Terje Bergstrom [Wed, 22 Aug 2012 12:03:07 +0000]
video: tegra: host: Clear intr list at intr_put

Process wait list when removing a waiter. This clears the interrupt
once it is no longer needed.

Bug 1031724

Change-Id: Ifb46672f70c8bbd6359d0a8aeaac0d718a5394b2
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/125230
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agovideo: tegra: dc: Make framebuffer console init OK
Mark Zhang [Fri, 17 Aug 2012 05:31:37 +0000]
video: tegra: dc: Make framebuffer console init OK

Update framebuffer's modelist after we changed it's fb_var_screeninfo.
This makes sure the framebuffer console can be inited successfully.
During framebuffer console init, it'll check whether the var info of
the framebuffer is consistent with the modelist.
Unsuccessful init of framebuffer console driver makes VT driver
doesn't work in right way.

Bug 996992

Signed-off-by: Mark Zhang <markz@nvidia.com>
Change-Id: I96a1db1f389be75dcba48b20447cf1510ad3768b
Reviewed-on: http://git-master/r/107866
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shashank Sharma <shashanks@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agogpio: tegra: Added support for GCOV for GPIO
Sumit Sharma [Wed, 22 Aug 2012 11:09:38 +0000]
gpio: tegra: Added support for GCOV for GPIO

Added support for GCOV code coverage for GPIO

Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Change-Id: I407433db690696644aa67dffc0de8bc03c624b54
Reviewed-on: http://git-master/r/125183
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agohwmon: tegra: tsensor:Fix compilation error
Nagaraja Kolur [Fri, 3 Aug 2012 00:58:16 +0000]
hwmon: tegra: tsensor:Fix compilation error

Bug 1024886

Resolved compilation error for unused code.

Signed-off-by: Nagaraja Kolur <nkolur@nvidia.com>

Change-Id: I9167d8129a9cba0fc6cb203180e07192d66db439
Reviewed-on: http://git-master/r/120581
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nagaraj Kolur <nkolur@nvidia.com>
Tested-by: Nagaraj Kolur <nkolur@nvidia.com>
Reviewed-by: Vijaya Bhaskar <vbhaskar@nvidia.com>
Reviewed-by: Wahed Syed <wsyed@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: tegra: iovmm: Fix spinlock bug if alloc fails
Tuomas Tynkkynen [Fri, 17 Aug 2012 08:37:02 +0000]
ARM: tegra: iovmm: Fix spinlock bug if alloc fails

iovmm_split_free_block leaves the domain's spinlock unlocked if a
memory allocation failed. Unfortunately, all the callers of that
function assume that it takes the spinlock. This will then lead to
double unlocking of the spinlock.

Bug 1035105

Change-Id: Ib4379cad76f053586d6a77b8d0dc9f41af01931a
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/124299
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoPM QoS: Add disable parameter
Antti P Miettinen [Mon, 20 Aug 2012 16:36:38 +0000]
PM QoS: Add disable parameter

For testing purposes it is useful to be able to disable
PM Qos.

Bug 1020898
Bug 917572

Reviewed-on: http://git-master/r/124667

Change-Id: I266f5b5730cfe4705197d8b09db7f9eda6766c7c
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoARM: tegra: config: enable TPS65090 devices
Laxman Dewangan [Thu, 23 Aug 2012 08:26:44 +0000]
ARM: tegra: config: enable TPS65090 devices

Enable config variable for TPS65090
- MFD core driver
- Regulator driver
- Battery charging driver.

Change-Id: I83ae5694f17f1b30a2af2e9279dcee844b9d0035
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/126826
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agopower: tps65090-charger: fix multiple issue
Laxman Dewangan [Thu, 23 Aug 2012 08:10:58 +0000]
power: tps65090-charger: fix multiple issue

Some changes:
- Correct platform data struture name and get correct platform data.
- Make remove function to __devexit.
- Correct license to GPL v2
- Add error print when failure occurs.
- remove unnecessary tabs.

Change-Id: If4d3e09cbd4a762c909586146021004b945a9a6d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/126825
Reviewed-by: Automatic_Commit_Validation_User

6 years agopower: tps65090-charger: fix compilation warning
Laxman Dewangan [Thu, 23 Aug 2012 08:03:01 +0000]
power: tps65090-charger: fix compilation warning

Fix the "maybe-uninitialized" warnings.

Change-Id: I80bacdbf7e8886dfa6afef8877529ed2abd81155
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/126824
Reviewed-by: Automatic_Commit_Validation_User

6 years agopower: tps65090-charger: fix compilation error
Laxman Dewangan [Thu, 23 Aug 2012 07:22:35 +0000]
power: tps65090-charger: fix compilation error

The driver is missing the include of interrupt header file.
Including it to fix compilation error.
Also it is not suggested to use the devm_request_threaded_irq() as
it is not safe when removing driver. converting it to non-devm version
of API.

Change-Id: I5dc3acf731d62861be0fc0f396b97997e7d269ea
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/126823
Reviewed-by: Automatic_Commit_Validation_User

6 years agoregulator: tps65090: fix compilation error
Laxman Dewangan [Thu, 23 Aug 2012 07:20:31 +0000]
regulator: tps65090: fix compilation error

The driver is pulled from the K3.1 kernel and when compiling
for K3.4 it is failing because the regulator_register() have more
number of argument.
Fixing the compilation error.

Change-Id: I8e8b43fe29b3bfddf5294a1eb5c3bf430b6dc9fd
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/126822
Reviewed-by: Automatic_Commit_Validation_User

6 years agoRevert "ARM: tegra: enterprise: update memory timings"
Simone Willett [Wed, 22 Aug 2012 20:58:14 +0000]
Revert "ARM: tegra: enterprise: update memory timings"

This reverts commit 64d7608ed4a0fe0964250ad0423c499841292bf6

Reviewed-on: http://git-master/r/125322
(cherry-picked from e0ed318ccce39543fa821d3cef901111bae556a0)

Bug 1037320

Change-Id: I0178366917146090d75d00ab284286745ed2f785
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/126760

6 years agoARM: Tegra30: defconfig: Add camera devices
Rahool Paliwal [Tue, 21 Aug 2012 08:49:34 +0000]
ARM: Tegra30: defconfig: Add camera devices

This adds camera related devices to be built
as modules.

Bug 1034567

Change-Id: I6cf1397fbbaa766c7344d61abbb6bcfb111cdfbe
Signed-off-by: Rahool Paliwal <rpaliwal@nvidia.com>
Reviewed-on: http://git-master/r/124849
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoHACK: Disable dpd spew messages on FPGA
naveenk [Tue, 14 Aug 2012 09:56:45 +0000]
HACK: Disable dpd spew messages on FPGA

Bug 1031496
Bug 1013917

Change-Id: I489e88dd3c3a2ddffc398dbfbdd2b415ce96233a
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/124291
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agocpuquiet: Adding runnable thread knobs
Xiao Bo Zhao [Thu, 2 Aug 2012 23:33:51 +0000]
cpuquiet: Adding runnable thread knobs

Ported the knobs that select runnable thread profiles from autohotplug
into cpuquiet.

Change-Id: I6858731e238404d33c772767d066cd6d467267a8
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/123852
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agocpuquiet: Enable cpuquiet by default
Sai Charan Gurrappadi [Fri, 22 Jun 2012 23:18:02 +0000]
cpuquiet: Enable cpuquiet by default

Enable cpuquiet by default if autohotplug is enabled. Cpuquiet will now
replace autohotplug as the hotplugging infrastructure. The down_delay in
the balanced governor has also been increased to 2s from 500ms to match
a similar patch for autohotplug.

Change-Id: I36747af67c55547b3dee95f7d435f9ebc075d393
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/123851
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agocpuquiet: Fix cpuquiet for k3.4
Sai Charan Gurrappadi [Thu, 16 Aug 2012 00:56:11 +0000]
cpuquiet: Fix cpuquiet for k3.4

Change-Id: I75d8dba6c9c4c43152c819e08beeccb1e3c07c0c
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/123850
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agocpuquiet: Added cpuquiet to driver Makefile
Sai Charan Gurrappadi [Thu, 16 Aug 2012 01:00:35 +0000]
cpuquiet: Added cpuquiet to driver Makefile

Change-Id: I8a3fd51df81de8d4375b9ddabbaf4fed5277b17d
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/123849
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agovideo: tegra: host: Enable 3D power gating
Terje Bergstrom [Tue, 14 Aug 2012 08:01:39 +0000]
video: tegra: host: Enable 3D power gating

Enable power gating for Tegra11 gr3d.

Bug 971602

Change-Id: I0286b3b05f57e62d2ab8fefc73470a279e640f4e
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/123307
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: host: Abstract actmon support
Terje Bergstrom [Tue, 14 Aug 2012 07:42:50 +0000]
video: tegra: host: Abstract actmon support

Abstract actmon support behind chip_support. This will make the
actmon code adhere to the correct register layout.

Initialization of actmon now happens from gr3d driver. This allows
initializing and deinitializing actmon when gr3d is power gated. The
consequence is that the avg value must be readable even when there
are no channels open to gr3d.

Bug 971602

Change-Id: I87ebf0e873ad3d9f38d5640a8e98be768fdeb5fd
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/123306
Reviewed-by: Automatic_Commit_Validation_User

6 years agodt: add property iteration helpers
Stephen Warren [Wed, 4 Apr 2012 15:27:46 +0000]
dt: add property iteration helpers

This patch adds macros of_property_for_each_u32() and
of_property_for_each_string(), which iterate over an array of values
within a device-tree property. Usage is for example:

struct property *prop;
const __be32 *p;
u32 u;
of_property_for_each_u32(np, "propname", prop, p, u)
printk("U32 value: %x\n", u);

struct property *prop;
const char *s;
of_property_for_each_string(np, "propname", prop, s)
printk("String value: %s\n", s);

Based on work by Rob Herring <robherring2@gmail.com>

Change-Id: I8409ee84d2a94398a36bf1cc3f8b8e6821f40842
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
(cherry picked from commit c541adc637066407d4cda9db14dcb0e618966a4c)
Reviewed-on: http://git-master/r/120038
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agopm: EDP: fixing license text
Sivaram Nair [Tue, 21 Aug 2012 12:10:29 +0000]
pm: EDP: fixing license text

License text updated to correct version

Change-Id: I55fa5ad518f559fada8a55bb058d166318b7eed3
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/125223
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra11: dvfs: Add miscellaneous I/O dvfs tables
Alex Frid [Wed, 22 Aug 2012 03:13:49 +0000]
ARM: tegra11: dvfs: Add miscellaneous I/O dvfs tables

Added dvfs tables and updated maximum limits for i2c, sbc, sdmmc, pwm.

Change-Id: I9f0d8fab8b832e045057c56bbb9c2c574c555301
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/125113
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: dvfs: Update audio clocks maximum limits
Alex Frid [Wed, 22 Aug 2012 01:02:59 +0000]
ARM: tegra11: dvfs: Update audio clocks maximum limits

Change-Id: I3ccba9d88f3143bdbe7e9a72507508eafce150e9
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/125112
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: dvfs: Add dvfs tables for display subsystem
Alex Frid [Wed, 22 Aug 2012 00:44:56 +0000]
ARM: tegra11: dvfs: Add dvfs tables for display subsystem

Added dvfs tables for display, hdmi, dsi, and csi clocks.
Updated maximum limits accordingly.

Change-Id: I30e1660eb71562ecd545ebb3efcca441a27081cb
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/125111
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: dvfs: Add dvfs tables for pll outputs
Alex Frid [Sat, 11 Aug 2012 06:43:32 +0000]
ARM: tegra11: dvfs: Add dvfs tables for pll outputs

Added dvfs tables for high frequency pll outputs. PLLs included
into the list may be configured above maximum rate 480MHz that can
be divided by module dividers at minimum voltage.

Change-Id: I4e1f511234a43e16c3b34f3a05b8adaf1c8315eb
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/125110
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra: dalmore: Add display pwm support
Animesh Kishore [Wed, 22 Aug 2012 19:17:11 +0000]
ARM: tegra: dalmore: Add display pwm support

Use PM1 pin to drive pwm signals.

Bug 1017692

Change-Id: Ia0a8e1ca8189536bbf9f4fdba0266bbd85056ccc
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/124290
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agomtd: tegra-nor: Fix build with kernel 3.4
Sandeep S. Trasi [Tue, 14 Aug 2012 16:02:26 +0000]
mtd: tegra-nor: Fix build with kernel 3.4

Replace internal function parse_mtd_partitions()
with new api mtd_device_parse_register()

Change-Id: Ic01543ed3e21d347e2ae24645d36fdc6b99f5273
Signed-off-by: Sandeep S. Trasi <strasi@nvidia.com>
Reviewed-on: http://git-master/r/123384
Tested-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoARM: tegra11: dvfs: Add LP CPU, SBUS, VI dvfs tables
Alex Frid [Sat, 11 Aug 2012 04:46:16 +0000]
ARM: tegra11: dvfs: Add LP CPU, SBUS, VI dvfs tables

Added core dvfs tables for LP CPU, System bus (sbus), and VI.
Updated LP CPU maximum limits. Allowed VI to use fractional dividers.

Change-Id: I46ed15b51502104f9419a52dd64ea930c9c64d5c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/122909
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: dvfs: Update core dvfs tables
Alex Frid [Sat, 11 Aug 2012 01:38:04 +0000]
ARM: tegra11: dvfs: Update core dvfs tables

Integrated new safe dvfs tables for core modules: 3D, 2D, EPP, MSENC,
TSEC, SE, VDE, Host1x, and EMC. Updated core voltage scaling steps
respectively. Per new tables Host1x is now allowed to use fractional
dividers.

Change-Id: Ic95937f401cf0d8b0d392a642a32bf9d504a4fcc
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/122908
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agovideo: tegra: host: Fix freeing a ERR_PTR value
Tuomas Tynkkynen [Mon, 20 Aug 2012 14:26:16 +0000]
video: tegra: host: Fix freeing a ERR_PTR value

nvhost_3dctx_alloc_common correctly checks the return value of an
allocator function, and attempts to perform cleanup. However, this
particular allocation API returns ERR_PTR values in case of failure,
which then gets passed to the deallocation function, causing a crash.

Also, the return value of that allocator API is checked with IS_ERR
in some places, and with IS_ERR_OR_NULL in others. For consistency
and avoiding surprises if the allocation implementation changes,
use IS_ERR_OR_NULL in all places.

Bug 1035878

Change-Id: I65ce97e11f9712b2e9630b38183f6e70bc14b254
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/124657
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agovideo: tegra: host: Fix crash if allocation fails
Tuomas Tynkkynen [Thu, 16 Aug 2012 16:56:51 +0000]
video: tegra: host: Fix crash if allocation fails

nvhost_module_remove_client assumes that a client structure
to be freed exists in the linked list. However, if an allocation fails
in nvhost_module_add_client, no client structure is allocated, and
during cleanup, nvhost_module_remove_client would then attempt
to free an invalid pointer.

Bug 1034729

Change-Id: Ie1a641071b86f8246951e9be824a6003f14b04b6
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/124096
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoarch: arm: pcie: init TXBA registers
krishna kishore [Thu, 2 Aug 2012 12:40:08 +0000]
arch: arm: pcie: init TXBA registers

Setting default values in TXBA registers to avoid
unfair arbitration between downstream reads and
completions to upstream reads

Bug 1027024

Change-Id: I87763817b7974127f93fa18270b5245a54fc6676
Signed-off-by: krishna kishore <kthota@nvidia.com>
Reviewed-on: http://git-master/r/120359
Tested-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: kai: update memory timings
Ray Poudrier [Mon, 2 Jul 2012 23:41:32 +0000]
ARM: tegra: kai: update memory timings

Extend tick length to 60ns

Bug 1001229

Change-Id: I8a96dd08b6d11a196c9b82bec403ab2e4676e2f4
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113081
(cherry picked from commit 487622aa43568d3f6f9a9f5fc98176e5ffdd6246)
Reviewed-on: http://git-master/r/116208
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomedia: video: tegra: ar0832: Add slew rate support
Naren Bhat [Mon, 20 Aug 2012 19:39:16 +0000]
media: video: tegra: ar0832: Add slew rate support

Add slew rate support for AR0832 focuser.

bug 1028733

Change-Id: I4fd0245fad7f7c820fc30a7c4bfc970d52903da6
Signed-off-by: Naren Bhat <nbhat@nvidia.com>
Reviewed-on: http://git-master/r/124695
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: tegra: Remove timer workaround
Antti P Miettinen [Tue, 26 Jun 2012 13:54:37 +0000]
ARM: tegra: Remove timer workaround

Reprogramming running timers may cause timer interrupt state
to get out of sync and result in lost timer interrupts.

Bug 950482

Change-Id: I83c9d735f9b041e8a57d73ba466f5f9c89ca1b89
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/111242
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoi2c: tegra: protect suspend/resume callbacks with CONFIG_PM_SLEEP
Laxman Dewangan [Tue, 21 Aug 2012 08:08:47 +0000]
i2c: tegra: protect suspend/resume callbacks with CONFIG_PM_SLEEP

The CONFIG_PM doesn't actually enable any of the PM callbacks, it
only allows to enable CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME.
This means if CONFIG_PM is used to protect system sleep callbacks
then it may end up unreferenced if only runtime PM is enabled.
Hence protecting sleep callbacks with CONFIG_PM_SLEEP.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>

Change-Id: I090e167c1de8f254a278e9e3b511292cfbc5f250
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/124872
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoi2c: tegra: I2_M_NOSTART functionality not supported in Tegra20
Laxman Dewangan [Tue, 21 Aug 2012 09:46:38 +0000]
i2c: tegra: I2_M_NOSTART functionality not supported in Tegra20

Tegra20 i2c controller does not support the continue transfer
which implements the I2C_M_NOSTART functionality of i2c
protocol mangling.
Removing the I2C_M_NOSTART functionality support for Tegra20.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Cherry-picked from mainline
72dedc2fb12ff31cc2da977d0c40c3ac58f554cf

Change-Id: I461342749a834ff2eae056f1c6616a8d7693a32c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/124875
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoMerge commit 'v3.4.9' into android-t114-3.4
Varun Wadekar [Thu, 23 Aug 2012 09:37:36 +0000]
Merge commit 'v3.4.9' into android-t114-3.4

Linux v3.4.9

Conflicts:
arch/arm/kernel/smp.c
arch/arm/vfp/entry.S

Change-Id: I731e815ed35ba9280374a5a3e5a6a8b6b805d695
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agomfd: tps65090: add tps65090-charger as mfd subdevice
Laxman Dewangan [Wed, 22 Aug 2012 14:11:01 +0000]
mfd: tps65090: add tps65090-charger as mfd subdevice

Add tps65090-charger in mfd cell to register tps65090 charger.

Change-Id: I5cf938a6ce767aaa795949a902f905708c7be259
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/125263
Reviewed-by: Automatic_Commit_Validation_User

6 years agommc: host: Add stub runtime power management
naveenk [Wed, 22 Aug 2012 12:55:56 +0000]
mmc: host: Add stub runtime power management

Add stub runtime_pm calls which go through the flow of enabling
and disabling but don't actually do anything with the device itself
as there's nothing useful we can do. This provides the core PM
framework with information about when the device is idle,
enabling chip wide power savings.

Bug 887327

Change-Id: I1a67038d34aef2555b17c526bcdcab8177bf4bc3
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/125244
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agomfd: max77663: add GPIO TOP interrupt in interrupt list
Laxman Dewangan [Wed, 22 Aug 2012 11:12:46 +0000]
mfd: max77663: add GPIO TOP interrupt in interrupt list

Add GPIO_TOP interrupt in interrupt list so that gpio driver of
this device can register this interrupt to get gpio interrupts.
This is towards moving the gpio support as independent driver.

Change-Id: I8983cd0eb195ca3d88f7c59dbed1c67f5393313a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/125238
Reviewed-by: Automatic_Commit_Validation_User

6 years agomfd: max77663: make register access via regmap
Laxman Dewangan [Wed, 22 Aug 2012 10:54:07 +0000]
mfd: max77663: make register access via regmap

Make register access of device through regmap framework.

Change-Id: If9577593b6c712255fdb9f0f6bdb4c8c552f29d0
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/125237
Reviewed-by: Automatic_Commit_Validation_User

6 years agomfd: max77663: error check for rtc client
Laxman Dewangan [Wed, 22 Aug 2012 10:53:28 +0000]
mfd: max77663: error check for rtc client

The max77663 device require i2c client with the
RTC address also. Add error check when creating
i2c client for RTC address.

Change-Id: Ief73b4b381022226d6f9653ee32cf6d85351fcb7
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/125236
Reviewed-by: Automatic_Commit_Validation_User

6 years agomfd: max77663: use devm managed resources
Laxman Dewangan [Wed, 22 Aug 2012 10:52:39 +0000]
mfd: max77663: use devm managed resources

Allocate memory for device state using devm_kzalloc()
to simplify accounting and letting the kernel do the
garbage-collection.

Change-Id: If4cab8de569e81da9f90adbf17db1c907c9fb0c0
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/125235
Reviewed-by: Automatic_Commit_Validation_User

6 years agomfd: max77663: correct the size of buffer register-data pair write
Laxman Dewangan [Wed, 22 Aug 2012 10:51:32 +0000]
mfd: max77663: correct the size of buffer register-data pair write

The buffer size for the register-data pair write
can become the 2x of bytes requested.
Correcting the buffer size for allocation.

Change-Id: Ifafcb27ccbcfcd6c7f5cfd8f11090648224b1ef1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/125234
Reviewed-by: Automatic_Commit_Validation_User

6 years agomfd: max77663: protect suspend/resume callbacks with CONFIG_PM_SLEEP
Laxman Dewangan [Wed, 22 Aug 2012 10:49:06 +0000]
mfd: max77663: protect suspend/resume callbacks with CONFIG_PM_SLEEP

The CONFIG_PM doesn't actually enable any of the PM callbacks, it
only allows to enable CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME.
This means if CONFIG_PM is used to protect system sleep callbacks
then it may end up unreferenced if only runtime PM is enabled.
Hence protecting sleep callbacks with CONFIG_PM_SLEEP.

Change-Id: I56794b43d753790c600f8507591d768d826801e0
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/125233
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra: pluto: add t114 specific pinmux code
aghuge [Wed, 22 Aug 2012 08:54:38 +0000]
ARM: tegra: pluto: add t114 specific pinmux code

Added T114 chip specific pinmux code for pluto

Bug 982705

Change-Id: I1795ca6120dc60b64da81006d9092f49992c764d
Signed-off-by: aghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/125155
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: tps65090: add battery charger driver
Syed Rafiuddin [Wed, 22 Aug 2012 07:04:30 +0000]
power: tps65090: add battery charger driver

TPS65090 supports the battery charging.

Add driver for supporting this feature.

Bug 1011286

Change-Id: I7db2147d85869df43d07cdd826e4c5719acedf86
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/125133
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agomfd: tps65090: fix the pmic mfd cell name
Laxman Dewangan [Tue, 21 Aug 2012 14:50:27 +0000]
mfd: tps65090: fix the pmic mfd cell name

The pmic driver name for tps65090 is "tps65090-pmic".
Correcting this in core driver of tps65090.

Change-Id: Ie928580963d6630469c87558fad043819d0340fb
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/124933
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra11: clock: fix build break
Ken Adams [Mon, 20 Aug 2012 17:17:00 +0000]
ARM: tegra11: clock: fix build break

fix build break on possibly unused var (p_rate)

Change-Id: I06cc57d56186b593d78f232c3a5f8ce6c8c086f6
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/124706
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoARM: tegra: thermal: Separate skin from thermals
Joshua Primero [Tue, 7 Aug 2012 23:14:19 +0000]
ARM: tegra: thermal: Separate skin from thermals

Started seperating skin thermal logic from generic
thermal logic.

Change-Id: I7fd8a4f713acf510eb70fd5a06ee42634caa2c8e
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/124499
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: thermal: Cleanup thermal dependencies
Joshua Primero [Mon, 6 Aug 2012 23:56:39 +0000]
ARM: tegra: thermal: Cleanup thermal dependencies

Cleaned up dependencies related to thermals:

1) Added TEGRA_THERMAL Kconfig option which enables
Tegra Thermal Framework

2) Removed unnecessary ifdefs from board files and thermal
files

Change-Id: I3470da3d1482ff7946b3815f7c0e91b45fb58147
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/124498
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoi2c: tegra: Add support for clk divisor in standard/fast mode
Chaitanya Bandi [Fri, 17 Aug 2012 15:37:06 +0000]
i2c: tegra: Add support for clk divisor in standard/fast mode

Added support for clk divisor in standard/fast mode.

Change-Id: I2cd8a6ee80979a4967d032d064babaea2978aab3
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/124399
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoregulator: core: support for voltage change from user-space
Laxman Dewangan [Fri, 17 Aug 2012 11:07:47 +0000]
regulator: core: support for voltage change from user-space

It is required for changing voltage of some of rails
from user space to perform characterization of chip.
Support the API to have achieve this from user space.

bug 1033482

Change-Id: Ic5d2c2eda9a4521968577aed38e1fd492b2bb2c3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/124352
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra: update t114 pinmux table
aghuge [Tue, 21 Aug 2012 13:00:14 +0000]
ARM: tegra: update t114 pinmux table

Bug 959971

Change-Id: Id1c6a1cc475f4c44b9b9652a766d711b7ee6ad15
Signed-off-by: aghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/123934
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: config: Disable unwanted p1852 features
Sandeep S. Trasi [Tue, 14 Aug 2012 16:24:20 +0000]
arm: tegra: config: Disable unwanted p1852 features

Unwanted features of p1852 are disabled.

Change-Id: I3fbca1bf939d6680233eb3ffe68246d1a9ee022f
Signed-off-by: Sandeep S. Trasi <strasi@nvidia.com>
Reviewed-on: http://git-master/r/123387
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoARM: tegra: dalmore: add T114 specific pinmux code
aghuge [Tue, 21 Aug 2012 12:56:41 +0000]
ARM: tegra: dalmore: add T114 specific pinmux code

Added T114 chip specific pinmux code for dalmore

Change-Id: I2186d4bf4fa7d9f33a27c9d64dcd812fe2753c27
Signed-off-by: aghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/123303
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agostaging: iio: Added Pressure sensor driver for BMP180
Sumit Sharma [Wed, 8 Aug 2012 04:30:08 +0000]
staging: iio: Added Pressure sensor driver for BMP180

Added pressure sensor driver for Bosch BMP180 sensor

Bug 1022128

Change-Id: I5ed0d98d3c9197eac5be6c76e0be92c80c9b66df
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/121974
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoALSA: soc: add DAM programming for T114
Rahul Mittal [Tue, 17 Jul 2012 13:59:18 +0000]
ALSA: soc: add DAM programming for T114

For T114, DAM operates at 32 bit, cbits should be 32
Calling APIs for programming newly added registers

Change-Id: I9427d73538c12ae9dddcd865ccbcdc3a3d668370
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/116453
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoMerge remote branch 'origin/dev/android-t114-3.4-next' into promotion_build
Rohan Somvanshi [Wed, 22 Aug 2012 10:14:05 +0000]
Merge remote branch 'origin/dev/android-t114-3.4-next' into promotion_build

This merge is done along with the main to dev-t114 merge using tag main-jb-2012.08.20-B1

Change-Id: Ia9b8833eb37c758abcd58013c212acf91846e030

6 years agoARM: Tegra: remove last usages of tegra_gpio_{enable|disable}
Varun Wadekar [Wed, 22 Aug 2012 09:42:11 +0000]
ARM: Tegra: remove last usages of tegra_gpio_{enable|disable}

Change-Id: I71534a342c391ffe548e834edbe8c233ee5d6f3f
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoARM: Tegra: la: do not compile driver for Tegra2
Varun Wadekar [Wed, 22 Aug 2012 09:41:31 +0000]
ARM: Tegra: la: do not compile driver for Tegra2

Change-Id: I6120ce75b91efff29e24a60546f50f1767271bd8
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoARM: tegra: usb_phy: Fix HSIC resume code
Vinod Atyam [Fri, 17 Aug 2012 09:03:47 +0000]
ARM: tegra: usb_phy: Fix HSIC resume code

1) During remote wakeup resume, no need
   to keep 25 msec delay after resume bit
   is cleared. Updated the code now.
2) PSPD bit in HOSTPC register is read only,
   but bymistake it is getting set in our code.
   Corrected the code now.
3) During AP resume, no need to set RUN bit
   2 times. Corrected the code to do it once.

Bug 1028940
Bug 1024592

Change-Id: I872886f4cef6058d3de9d488321aa5b0925fd62a
Signed-off-by: Vinod Atyam <vatyam@nvidia.com>
Reviewed-on: http://git-master/r/124051
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: cardhu: update memory timings
Ray Poudrier [Tue, 3 Jul 2012 18:43:05 +0000]
ARM: tegra: cardhu: update memory timings

Extend tick length to 60ns

Also add missed Cardhu SKU 1000 table

Bug 1001229
Bug 970610

Change-Id: I224158a88d02595d5b911f59b6920b9ed99481ab
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113315
(cherry picked from commit 492193079047d9c5a4fff617a14191438f356e42)
Reviewed-on: http://git-master/r/116221
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: enterprise: update memory timings
Ray Poudrier [Tue, 3 Jul 2012 03:17:42 +0000]
ARM: tegra: enterprise: update memory timings

Extend to 60ns tick

Bug 1001229

Change-Id: Id2b01218a7c5cb1566d0e8c175defb12c79e6497
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113122
(cherry picked from commit 176fd3fbaede0d38281fe4bad721856e7fef0833)
Reviewed-on: http://git-master/r/116220
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: dc: Add timestamp support
Raghavendra VK [Sat, 4 Aug 2012 04:25:43 +0000]
video: tegra: dc: Add timestamp support

bug 1021221

Change-Id: Ifbe007de5bdeafaa15a0b3f2a138086045eba160
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/118179
(cherry picked from commit 74be8d4e7210d7bcea0d55565a7cbb06d6cc960e)
Reviewed-on: http://git-master/r/121087
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Morell <rmorell@nvidia.com>

6 years agoARM: Tegra: Curacao: enable CONFIG_HID_SUPPORT
Varun Wadekar [Tue, 21 Aug 2012 13:19:07 +0000]
ARM: Tegra: Curacao: enable CONFIG_HID_SUPPORT

Change-Id: I7cfc4b96a0bb64b4dce8b97a2245b9e7dfcc4fe5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoARM: Tegra: Curacao: remove tegra_gpio_{enable|disable} usage
Varun Wadekar [Tue, 21 Aug 2012 12:09:22 +0000]
ARM: Tegra: Curacao: remove tegra_gpio_{enable|disable} usage

Change-Id: I27c23835e1ac56725be61329f9a375aebdae8cb0
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agovideo: tegra: nvmap: Fix overflow in nvmap_heap
Tuomas Tynkkynen [Mon, 13 Aug 2012 12:43:31 +0000]
video: tegra: nvmap: Fix overflow in nvmap_heap

do_heap_alloc locates a suitable free block from a nvmap heap given a
size and alignment. Unfortunately, if a heap block happens to be
smaller than the alignment passed to the function, an integer overflow
will occur, and a block that's too small gets accidentally returned.

Bug 1032642

Change-Id: Ic650c520409134d753e968f62f144ddeb065ccc7
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/123076
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>