6 years agodrivers: nct: tsensor: use location in nct drivers
Matt Wagner [Thu, 6 Dec 2012 05:14:15 +0000]
drivers: nct: tsensor: use location in nct drivers

Some boards have multiple nct sensors. This changes enables
platform data to specify location of the sensor by giving them
unique name.

Change-Id: I421dc4c5b147257f14f5da9fca200ad0491d080d
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/168225
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra11: dvfs: Update pll output tables
Alex Frid [Wed, 5 Dec 2012 00:47:38 +0000]
ARM: tegra11: dvfs: Update pll output tables

- Updated dvfs tables for PLLC/C2/C3, PLLM and PLLP outputs to take
into account limitation of all tegra "big blocks" dividers to integer
settings only.

- Removed PLLD/D2 and PLL_REFE tables - these PLLs can run at maximum
frequency in the entire voltage range their downstream clients (DSI,
CSI, and XUSB) can operate in.

Change-Id: Ie0e837ea76e53dc41ea8d62c5b49eeb8d0b8499e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/168560
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agovideo: tegra: dc: clean up powergate code
Jon Mayo [Wed, 5 Dec 2012 21:10:44 +0000]
video: tegra: dc: clean up powergate code

Change-Id: Iec88ab24e676707dc51f1aa4eea0a176d7491186
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/168830
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: soctherm: high precision fuse handling computation
Diwakar Tundlam [Wed, 5 Dec 2012 00:26:43 +0000]
arm: tegra: soctherm: high precision fuse handling computation

bug 1169070

Change-Id: I59bf1aa6f4bcefda0914cd133d113afb4c54b56c
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/168486
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>

6 years agomisc: nct: add regulator enable/disable functionality
Sri Krishna chowdary [Wed, 5 Dec 2012 09:46:15 +0000]
misc: nct: add regulator enable/disable functionality

Bug 1189700

Change-Id: Idc2ad394a8b4bead90de757b5016c0d49fe54f26
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/168690
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: pluto: Correct pclk values
Rakesh Iyer [Wed, 5 Dec 2012 22:38:26 +0000]
arm: tegra: pluto: Correct pclk values

Upper layers depend on correct values of mode's pixel clock.

Bug 1183265.

Change-Id: Ieae424a163bda5114c5f9519b017d037551ef69f
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/168856
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael I Gold <gold@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoARM: tegra: thermal: Update Tegra11 thermal parameters
Diwakar Tundlam [Thu, 6 Dec 2012 01:26:29 +0000]
ARM: tegra: thermal: Update Tegra11 thermal parameters

Updated hotspot-offset for nct1008 device on Tegra11 platforms
Updated thermal throttle point and shutdown point appropriately

Bug 1058013

Change-Id: I16464dd3a832c69efb6dba8dc2335022965f7557
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/168894
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agovideo: tegra: dc: apply CMU changes only if active
Jon Mayo [Thu, 6 Dec 2012 01:49:51 +0000]
video: tegra: dc: apply CMU changes only if active

Bug 1189604

Change-Id: I2f80ba92137a8a9153dad00fa3afea7ce4a1b0a1
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/168912
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: Tegra: Add Roth DTB file
Matt Wagner [Thu, 6 Dec 2012 05:56:22 +0000]
ARM: Tegra: Add Roth DTB file

Add tegra114-roth.dtb to Makefile.boot

Bug 1190672

Change-Id: I27864dd6225b222225f4686621bdc5610a68e328
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/168964
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: dt: tegra: add default pinctrl nodes for pluto
Pritesh Raithatha [Fri, 30 Nov 2012 14:29:54 +0000]
ARM: dt: tegra: add default pinctrl nodes for pluto

Bug 1003210

Change-Id: Ie1b7243b6f4ed2570f875f9c6995b0ebcd9cfaa8
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/167756
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: dt: tegra: add default pinctrl nodes for dalmore
Pritesh Raithatha [Fri, 30 Nov 2012 14:23:55 +0000]
ARM: dt: tegra: add default pinctrl nodes for dalmore

Bug 1003210

Change-Id: I773fdd1618a05d38028bb5a2516158647c9af585
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/167755
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: dt: tegra: add pinctrl support for Tegra114
Pritesh Raithatha [Wed, 7 Nov 2012 15:04:37 +0000]
ARM: dt: tegra: add pinctrl support for Tegra114

Bug 1003210

Change-Id: I901462c9372c574c624d3c40441c7e7e0fad4d22
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/162049
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: Tegra: Roth: Add fan thermal estimator device
Anshul Jain [Wed, 5 Dec 2012 06:15:20 +0000]
ARM: Tegra: Roth: Add fan thermal estimator device

This device estimates the thermal point that drives fan

Change-Id: I7152cb237029d89773eff6f43f43c1e7c22a4fd2
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/167701
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: pluto: remove Tegra3x support
Laxman Dewangan [Wed, 5 Dec 2012 07:35:52 +0000]
ARM: tegra: pluto: remove Tegra3x support

Tegra3x support was added in pluto interposer board.
It is not require now. Removing Tegra3x support from
pluto.

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

6 years agopinctrl: add support for Tegra114
Pritesh Raithatha [Wed, 7 Nov 2012 15:02:03 +0000]
pinctrl: add support for Tegra114

Bug 1003210

Change-Id: I7166fc60969b68840b24adcbb71559c69b47763b
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/162048
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agopinctrl: tegra: add drive-type config param
Pritesh Raithatha [Fri, 30 Nov 2012 13:16:32 +0000]
pinctrl: tegra: add drive-type config param

drive-type is not supported for pinctrl-tegra20 and pinctrl-tegra30
so set drvtype_reg to -1 for them.

Bug 1003210

Change-Id: I330fb8049a3e3d6f905e385aedb782d06f1ca002
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/167754
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoEnabling PD_RX on HSIC causing extra power on PLLU
srinivas thaduvai [Wed, 5 Dec 2012 07:22:07 +0000]
Enabling PD_RX on HSIC causing extra power on PLLU

PD_RX disabled during PHY power off so that there is
no extra power on PLLU and also not seen any extra
Power on HSIC IO rail for T114.

Bug 1178557

Change-Id: I2b9c21849097d2d7966df139066994c3246fa954
Signed-off-by: srinivas thaduvai <sthaduvai@nvidia.com>
Reviewed-on: http://git-master/r/168651
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agodrivers: misc: fan thermal estimator driver
Anshul Jain [Fri, 30 Nov 2012 11:42:42 +0000]
drivers: misc: fan thermal estimator driver

Thermal estimator driver that estimates temperature based on
a linear formula from other temperature sensors

This estimated thermal point is used to drive fan

Change-Id: Ic6f82473435901514bca47cfda7a453ab64468e0
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/167700
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Matt Wagner <mwagner@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: dalmore: remove Tegra3x support
Laxman Dewangan [Thu, 6 Dec 2012 08:23:18 +0000]
ARM: tegra: dalmore: remove Tegra3x support

Tegra3x support was added in dalmore interposer board.
It is not require now. Removing Tegra3x support from
dalmore.

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

6 years agopinctrl: tegra: add missing rcv_sel config params
Pritesh Raithatha [Wed, 5 Dec 2012 12:39:00 +0000]
pinctrl: tegra: add missing rcv_sel config params

rcv_sel is not supported for pinctrl-tegra20 and pinctrl-tegra30
so set rcv_sel_reg to -1 for them.

Bug 1003210

Change-Id: If7670036ec9a43e243745d9c4989189681bc2468
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/168381
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoARM: tegra: dalmore: set tps65090 wait_timeout values
Yen Lin [Wed, 5 Dec 2012 18:35:08 +0000]
ARM: tegra: dalmore: set tps65090 wait_timeout values

Set 800us wait_timeout to FET1 only.

bug 1178161

Signed-off-by: Yen Lin <yelin@nvidia.com>
Change-Id: I0601dcd2bbd13af01d58293f2ee6d0985eaf12dc
Reviewed-on: http://git-master/r/168798
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: configs: enable Bluez-HIDP
Nagarjuna Kristam [Wed, 5 Dec 2012 07:11:52 +0000]
ARM: tegra: configs: enable Bluez-HIDP

BlueZ HIDP is required for BT HID data processing on adnroid 4.2

bug 1190006

Change-Id: I7c7bbae95605caa7fb256b557c4b22d003a36058
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/168645
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: nvavp: Disable powergating of VDE
Jaiprakash Khemkar [Wed, 5 Dec 2012 06:13:34 +0000]
video: tegra: nvavp: Disable powergating of VDE

* For widevine playback key programming is done in secure OS and
  VDE should be powered ON.

Bug 1190582

Change-Id: I0cea07c20a8f9d7dd0b61810137ae03b20d85161
Signed-off-by: Jaiprakash Khemkar <jkhemkar@nvidia.com>
Reviewed-on: http://git-master/r/168615
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoCHROMIUM: config: renormalize split configs
Rhyland Klein [Tue, 4 Dec 2012 20:14:35 +0000]
CHROMIUM: config: renormalize split configs

Renormalize the split configs to adapt to changes since the last
renormalization. Also fix the DEFAULT_HOSTNAME change which was
accidentally reverted in the last round of normalization.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I4aee8d0efd4315ad57e7053c5cf7baad89435f11
Reviewed-on: http://git-master/r/168432
Reviewed-by: Christopher Freeman <cfreeman@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agoARM: tegra11: dvfs: Fix kernel warning
Rhyland Klein [Tue, 4 Dec 2012 15:31:20 +0000]
ARM: tegra11: dvfs: Fix kernel warning

Gcc 4.7 has flagged cpu_max_freq_index as a variable
which might possibly be used without being initialized, so
initializing it to 0.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: Icb279761dafb9dc29abf9382ab280399e6050e51
Reviewed-on: http://git-master/r/168391
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra: t11x: disable sdmmc3 clock by default
Pavan Kunapuli [Tue, 4 Dec 2012 14:02:29 +0000]
ARM: tegra: t11x: disable sdmmc3 clock by default

Sdmmc3 clock need not be always ON. It will be
enabled by the driver when the card is present.

Bug 1188788

Change-Id: Ia345515435f79e7c31501926d4b8bc9381228a51
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/168371
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: roth: correct bluetooth configurations
Nagarjuna Kristam [Tue, 4 Dec 2012 09:08:58 +0000]
ARM: tegra: roth: correct bluetooth configurations

 - correct shutdown_gpio and host_wake irq in bluedroid_pm resources.
 - remove user-space consumers for bluetooth as bluedroid_pm handles
BT regulator operations

Bug 1188713

Change-Id: I773b8322f7aa4b80d9a6200c98e45e1ba42d1c0d
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/168303
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agousb: Fixing USB wake up irqs based on board config
Venu Byravarasu [Tue, 4 Dec 2012 07:47:26 +0000]
usb: Fixing USB wake up irqs based on board config

Default wakeup irqs table is updated w.r.t Pluto needs.
Based on board id, added USB wake irqs for Dalmore.

bug 1048524

Change-Id: Ic68ee780deb32977f7d32ad7e081a8b11eda728b
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/168047
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: e1853: Enable host1x, DC driver
Raghavendra VK [Thu, 29 Nov 2012 19:42:01 +0000]
arm: e1853: Enable host1x, DC driver

bug 1178963

Change-Id: I865b4e4fe446b4bec85f445d2472ec4a54273334
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/167391
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agovideo: tegra: nvmap: use phys_addr_t to hold phys addr
Krishna Reddy [Thu, 29 Nov 2012 00:20:29 +0000]
video: tegra: nvmap: use phys_addr_t to hold phys addr

Bug 1182878

Change-Id: I1f4888bf049ec362388c8db07ee0b0b43a375e46
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/167111
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: avoid race condition between cpufreq and clusterswitch
Peter De Schrijver [Wed, 21 Nov 2012 15:39:58 +0000]
ARM: tegra: avoid race condition between cpufreq and clusterswitch

Avoid a race condition between cpufreq and clusterswitch and also make writes
to no_lp and enable synchronous operations.

bug 1178947

Change-Id: Ib9608f8a0a22be84d3c0916babb7e43c1f6df2e1
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/165751
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agovideo: tegra: host: Restore several regs from other regs
Wei Sun [Sat, 17 Nov 2012 01:27:50 +0000]
video: tegra: host: Restore several regs from other regs

Part 3/3 checkin.

restore reg 0xe44 from reg 0x40e
restore reg 0x403 and 0xe45 from reg 0x411

bug 972588
bug 962360
bug 1159659

Change-Id: I9ff6dba35747a910df79a0345decdba2d32c9f89
Signed-off-by: Wei Sun <wsun@nvidia.com>
Reviewed-on: http://git-master/r/164481
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoARM: tegra: Add t11x AMX/ADX address
Songhee Baek [Wed, 31 Oct 2012 22:44:44 +0000]
ARM: tegra: Add t11x AMX/ADX address

Change-Id: I39447ad0588405eb52677c7c2e98838d6370f1aa
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/160346
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoARM: tegra11: fuse: Set speedo/process IDs based on fuses
Alex Frid [Tue, 20 Nov 2012 06:09:22 +0000]
ARM: tegra11: fuse: Set speedo/process IDs based on fuses

Bug 1170986

Change-Id: Id95f7eb8465204ba444c41b44d9736169c2ffd7b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/165539
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agonet: wireless: bcmdhd: Increase scan unassoc active time to 80 ms
Dmitry Shmidt [Wed, 3 Oct 2012 23:37:16 +0000]
net: wireless: bcmdhd: Increase scan unassoc active time to 80 ms

source of the commit:

https://android.googlesource.com/kernel/common
branch- remotes/origin/android-3.4

Bug 7088022
Bug 1188165

Change-Id: Ie38ff2bf657a65ef3f2e0102cd9f7003f1097f5c
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 54ae97fbeb043604912c8152fc822dd422812096)
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/167238
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11: thermal: Clean duplicated definitions
Alex Frid [Sun, 2 Dec 2012 07:16:05 +0000]
ARM: tegra11: thermal: Clean duplicated definitions

Same Tegra throttling data structures and function prototypes were
defined in

mach-tegra/include/mach/thermal.h
and
mach-tegra/cpu-tegra.h

Consolidated all definitions in thermal.h header.

Change-Id: I52f6a964d04cb74513e5fc7be2f2aa7762b90c3d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/168663
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra11: clock: Don't set cbus to the same rate
Alex Frid [Wed, 5 Dec 2012 04:02:13 +0000]
ARM: tegra11: clock: Don't set cbus to the same rate

Skipped cbus set rate operation, if the new target rate is the
same as the old one.

Change-Id: I8404b240a5fa7bbbc37b48afce8eaae95185211f
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/168605
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra11: clock: Use XUSB clock source integer divisors
Alex Frid [Wed, 5 Dec 2012 00:36:36 +0000]
ARM: tegra11: clock: Use XUSB clock source integer divisors

Only integer divisors are allowed from now on for XUSB clock
sources.

Change-Id: I2f0888d4ab36f81196ecdcaadc2a7e27e689207d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/168559
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra11: clock: Use AVP clock source integer divisors
Alex Frid [Tue, 4 Dec 2012 21:03:55 +0000]
ARM: tegra11: clock: Use AVP clock source integer divisors

Only integer divisors are allowed from now on for AVP/SCLK clock
sources.

Change-Id: I5d846e8c304c18cff2e2da5a8ff2d2ed821ea727
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/168558
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra11: power: Add A01P CPU EDP table
Alex Frid [Tue, 4 Dec 2012 04:19:32 +0000]
ARM: tegra11: power: Add A01P CPU EDP table

Signed-off-by: Alex Frid <afrid@nvidia.com>
Change-Id: Iea6aff82147bfebf9f4d16d6f6de6c7dea3d9d11
Reviewed-on: http://git-master/r/168244
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra11: clock: Support cbus scaling below Fmax@Vmin
Alex Frid [Mon, 3 Dec 2012 23:01:27 +0000]
ARM: tegra11: clock: Support cbus scaling below Fmax@Vmin

So far, frequencies of graphics engines on cbus are scaled along
the respective DVFS operating points only, which effectively set
minimum scaling frequency to Fmax@Vmin level.

This commit extended cbus scaling range down to the minimum rate
supported by the bus parent pll with the regular frequency steps
of 48MHz.

Change-Id: I8289f0317d85529c5d765d8f800319eb19de6423
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/168189
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: mm: restore counter enable register
Bo Yan [Thu, 29 Nov 2012 19:33:44 +0000]
ARM: mm: restore counter enable register

Change-Id: I2433e53175e79d558d76a7c37b10de9175d7b1b0
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/167385
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: ad5816: fix power off issue
Wei Chen [Thu, 29 Nov 2012 22:42:49 +0000]
video: tegra: ad5816: fix power off issue

The original logic prevents the NVC_PWR_OFF
from getting called when the device is release.
When the device is open again, the power-on
sequence is not called. This will cause register
mis-programming.

Bug 1185601

Change-Id: I197cbb5dc67a970348a7bbf71185503daf67abba
Signed-off-by: Wei Chen <wechen@nvidia.com>
Reviewed-on: http://git-master/r/167431
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomedia: video: tegra: ov9772: group hold launch now
Phil Breczinski [Tue, 4 Dec 2012 23:52:14 +0000]
media: video: tegra: ov9772: group hold launch now

Modify group hold function to launch immediately to ensure
that exposure changes go into effect early enough to pass
linearity conformance.  Also modify exposure_wr function
to properly write exposure registers as a group.

Bug 1179317

Change-Id: I36026d6e86bcee3b6e3fcd65e3489140ee33f9b1
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
Reviewed-on: http://git-master/r/168474
Reviewed-by: Wei Chen <wechen@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoe1853: Remove duplicate registration of SMMU
Raghavendra VK [Tue, 4 Dec 2012 21:51:53 +0000]
e1853: Remove duplicate registration of SMMU

bug 1178963

Change-Id: I4b4c3e724b6b98a30e4bc57583a18ece03d148f7
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/168183
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dongfang Shi <dshi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoarm: tegra: baseband: support USB host reload for modem recovery
Steve Lin [Fri, 30 Nov 2012 23:33:19 +0000]
arm: tegra: baseband: support USB host reload for modem recovery

Bug 1176649

Change-Id: I8cd7debbd31cf52849e888c65bc37e46fdad5760
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/167871
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agonet: wireless: bcmdhd: cfg80211 fixes
Dmitry Shmidt [Mon, 1 Oct 2012 23:14:07 +0000]
net: wireless: bcmdhd: cfg80211 fixes

source of the commit:

https://android.googlesource.com/kernel/common
branch- remotes/origin/android-3.4

Bug 1188165

- Add wl_cfg80211_40MHz_to_20MHz_Channel() processing
- Add mac address information of the ap for debugging
  disconnection or roaming problem in wl_notify_connect_status
- Fix hidden AP connection failure from cfg80211 WARNING
  in static s32 wl_update_bss_info()

Change-Id: Ibafc2b766d0515c21abbba3bdfab68ff4acbebad
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit f27ac4647f2276be767407ca9e0583f69d8c749d)
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/167237
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonet: wireless: bcmdhd: Protect dhd_wlfc_cleanup() call
Dmitry Shmidt [Wed, 26 Sep 2012 22:05:24 +0000]
net: wireless: bcmdhd: Protect dhd_wlfc_cleanup() call

source of the commit:

https://android.googlesource.com/kernel/common
branch- remotes/origin/android-3.4

Bug 1188165

Change-Id: Ie9322f165a603f6eb12fead6603aadd2192bcdbf
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 08beba13849316fb899bff2188989d02acb8b828)
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/167236
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonet: wireless: bcmdhd: Skip scan params allocation in timeout
Dmitry Shmidt [Wed, 26 Sep 2012 20:52:20 +0000]
net: wireless: bcmdhd: Skip scan params allocation in timeout

source of the commit:

https://android.googlesource.com/kernel/common
branch- remotes/origin/android-3.4

Bug 1188165

Change-Id: Id4c0be0625f5f16c2f9b51267b72f3eecff500d0
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 9292ec303ddfe0f71b9e3820bd87386aa11b3c40)
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/167235
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonet: wireless: bcmdhd: Update to version 1.28.13-1
Dmitry Shmidt [Mon, 24 Sep 2012 19:42:34 +0000]
net: wireless: bcmdhd: Update to version 1.28.13-1

source of the commit:

https://android.googlesource.com/kernel/common
branch- remotes/origin/android-3.4

Bug 1188165

- Fix sending unproper value for connection status to CFG80211 layer
- Fix wl_scan_prep which can leave a hole in channel list if channel
  is a DFS channel and it is virtual interface scan
- SoftAP: Fix setting DTIM interval
- Fix len variable to be signed in dhdsdio_download_code_file
- Add ARP white packet filter list during P2P mode
- Add extra check if glom is NOT default to update bus:txglom

Change-Id: Ib1fd9f77eef2fb8333fb80e749fda5b7186aa83c
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 35326a4297a7f6715bc05725b2f2c807af32f827)
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/167234
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonet: wireless: bcmdhd: Adjust roaming treshold to -65 dB
Dmitry Shmidt [Thu, 20 Sep 2012 18:15:40 +0000]
net: wireless: bcmdhd: Adjust roaming treshold to -65 dB

source of the commit:

https://android.googlesource.com/kernel/common
branch- remotes/origin/android-3.4

Bug 1188165

Change-Id: Id5bfc9c9d6c9c211685f10346f995defd6e60f5d
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 8e17a2f829972020ebbdad35f37d34bf176fa157)
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/167233
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonet: wireless: bcmdhd: Fix wldev_ioctl set parameter
Dmitry Shmidt [Wed, 19 Sep 2012 23:03:10 +0000]
net: wireless: bcmdhd: Fix wldev_ioctl set parameter

source of the commit:

https://android.googlesource.com/kernel/common
branch- remotes/origin/android-3.4

Bug 1188165

Change-Id: Ia977e98ac631f715c7b6c7161510e5be78082889
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 3ec04912dd5632cce7d60e980c6919474ee5bbec)
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/167232
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: dsi: Implement regulator enable/disable
Animesh Kishore [Mon, 26 Nov 2012 09:03:23 +0000]
video: tegra: dsi: Implement regulator enable/disable

Handle avdd_dsi_csi on/off.

Bug 1051533
Bug 1178426

Change-Id: Ie9d80fa6972bda04a061ea43411421e5bf830c82
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/166151
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: dc: multiple mode support
Rakesh Iyer [Sat, 10 Nov 2012 01:53:19 +0000]
video: tegra: dc: multiple mode support

Support multiple modes in platform device mode list.

Bug 1166276
Bug 560152

Change-Id: I94f9458f3ae006d2dd50cd3c3b704ea2153c3e1d
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/162840
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: roth: Enable INA3221 device
Anshul Jain [Tue, 4 Dec 2012 20:21:36 +0000]
ARM: tegra: roth: Enable INA3221 device

Changes in board files to declare the INA3221 device and right
configuration parameters.There is only 1 INA3221 device on roth
which can measure power consumed over 3 rails.

Bug 1160066

Change-Id: Ic28041f08b2c878b4859455c08f5c691b4c224e9
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/167599
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agohwmon: ina3221: Fix trigger config data
Anshul Jain [Fri, 30 Nov 2012 00:53:25 +0000]
hwmon: ina3221: Fix trigger config data

Fix the debug print and trigger config data for INA3221 device

Bug 1160066

Change-Id: Ib544489a8cd8861d98ee7e276e92559c0077ce51
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/167598
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agomedia: video: tegra: normalize emc freq in camera
Jihoon Bang [Wed, 28 Nov 2012 00:18:11 +0000]
media: video: tegra: normalize emc freq in camera

Normalize emc clock freq request from camera.
Use tegra_emc_bw_to_freq_req to get HW specific
emc freq.

Bug 1167105

Change-Id: I366134b7ef61fd8db6fd49d0b8e24a412dcb64ae
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/166729
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agommc: tegra: Add calibration WAR for T11x
Pavan Kunapuli [Tue, 30 Oct 2012 11:21:59 +0000]
mmc: tegra: Add calibration WAR for T11x

Added the calibration WAR suggested for T11x
by the HW team.
Programming the drive codes generated by auto
calibration logic into the pinmux registers.
Enabled calibration support for T11x.

Bug 1157930

Change-Id: I6da62701ed07ae2969bf6bf985c33bfb1f83a479
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/159846
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: pinmux: Allow dynamic drive settings
Pavan Kunapuli [Tue, 16 Oct 2012 16:17:22 +0000]
ARM: tegra: pinmux: Allow dynamic drive settings

The pullup and pulldown drive configuration APIs
are made available for drivers that need to change
drive strengths.
Added API to get the pingroup info based on dev id
mapping.

Bug 1157930

Change-Id: Idd4151177bc1c91b18bdb8ab2543cc2055dbb96c
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/159841
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra11: clock: call registered callbacks for cbus
Liang Cheng [Thu, 29 Nov 2012 20:29:48 +0000]
ARM: tegra11: clock: call registered callbacks for cbus

Bug 1178433

Change-Id: I92f642f3fc38b9527b685959600eb8126aa34718
Signed-off-by: Liang Cheng <licheng@nvidia.com>
Reviewed-on: http://git-master/r/167408
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: nct: Use new nct platform data
Joshua Primero [Tue, 20 Nov 2012 23:54:31 +0000]
ARM: tegra: nct: Use new nct platform data

Utilize the updated nct platform data structure. Multiple active cooling
devices can also be used now.

Change-Id: I009b34d0156c679882040c86b9e583261617071a
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/165189
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agodrivers: misc: nct: Add support for multiple cdevs
Joshua Primero [Tue, 20 Nov 2012 23:47:24 +0000]
drivers: misc: nct: Add support for multiple cdevs

Added support for nct multiple cooling devices. Accomplished this
by refactoring the nct platform data structure to be based on trip
temperatures rather than cdevs.

Change-Id: I3a8abcf92ead71f4575e27698d7bed647078a8cc
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/165188
Tested-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: Use new nct interface for cdev bind
Joshua Primero [Wed, 31 Oct 2012 01:46:10 +0000]
ARM: tegra: Use new nct interface for cdev bind

Remove the create_cdev function pointers from nct platform data and
just utilize cdev type name to bind with nct driver.

Change-Id: I7be429a8b8e0deb485c24e3d3c779d3ca1f09d2b
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/165187
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agodrivers: misc: nct: bind via cdev type
Joshua Primero [Mon, 19 Nov 2012 23:40:56 +0000]
drivers: misc: nct: bind via cdev type

Bind thermal cooling devices via type name instead of creating
cooling devices.

Change-Id: I8a116608570b428703e25fbde6e62265a5fedc69
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/165186
Tested-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: throttle: Expose name to throttle API
Joshua Primero [Wed, 31 Oct 2012 01:46:10 +0000]
ARM: tegra: throttle: Expose name to throttle API

Allow the function caller to name the type of the cooling device.

Change-Id: I26f69d0e7d0de9e58f0ffa65b97cd92b0cb0fd12
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/160075
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agotegra/iommu: smmu: Disable IOMMU only for PCIe
Hiroshi Doyu [Tue, 4 Dec 2012 13:59:16 +0000]
tegra/iommu: smmu: Disable IOMMU only for PCIe

PCI client hasn't been registered as IOMMU device yet.

Bug 1186140

Change-Id: I18b1091172c1377b0beaa39b059e19e402eaada8
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/168374
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Tue, 4 Dec 2012 01:46:13 +0000]
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.02.39373

Create a new SMC (0xFFFFFFE7) for no flush operations in cluster power down.

Bug 969937

Change-Id: Ie91d1ab2560ab56ee9ca2c8f35757a9bb5222c26
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/168212
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoarm: tegra: thermal: update gpio pin for fab4 dalmore boards
Diwakar Tundlam [Mon, 3 Dec 2012 06:49:28 +0000]
arm: tegra: thermal: update gpio pin for fab4 dalmore boards

Bug 1188593

Change-Id: Iafb66d92425865ab760153654287fa17ed3838eb
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/167998
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: mm: Enable NCSE feature for A15 only
Bo Yan [Sat, 1 Dec 2012 00:11:15 +0000]
ARM: mm: Enable NCSE feature for A15 only

Change-Id: If966ee69f1d5e4314f79685238ecff3c44eadac0
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/167879
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoARM: tegra: thermal: New Tegra11 thermal table
Anshul Jain [Thu, 29 Nov 2012 21:30:41 +0000]
ARM: tegra: thermal: New Tegra11 thermal table

This change updates the thermal throttle table.

Bug 1058013

Change-Id: If7656fccb749bd36535fb2786e84ba0c843badf1
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/167704
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoregulator: tps65090: add wait_timeout support for FETx
Yen Lin [Thu, 29 Nov 2012 22:39:44 +0000]
regulator: tps65090: add wait_timeout support for FETx

Add platform data for wait_timeout value for FETx.

bug 1178161

Signed-off-by: Yen Lin <yelin@nvidia.com>
Change-Id: I12eedd48dd4bfcabfe3fa9ae08afff6399e94abf
Reviewed-on: http://git-master/r/167476
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agoARM: tegra: __tegra_move_framebuffer takes dev
Hiroshi Doyu [Thu, 29 Nov 2012 13:47:45 +0000]
ARM: tegra: __tegra_move_framebuffer takes dev

For T30+ based boards, FB needs to create 1-1 linear mapping, which
requires dma mapping API from device itself.

Bug 1182882
Bug 1024594

Change-Id: Ifde49919de8c9a1a3ef918a5d531d15e815814c8
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/167310
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoiommu/tegra: smmu: Remove pfn_valid() at map
Hiroshi Doyu [Thu, 29 Nov 2012 13:33:55 +0000]
iommu/tegra: smmu: Remove pfn_valid() at map

pfn_valid() should be done in a caller function if *needed*. IOMMU
drivers cares about address mapping only but should not care about if
the address is a valid page or not.

Bug 1182882
Bug 1024594

Change-Id: I3cbcadc02259b7f217ffa42f6d981d3ca3dc9917
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/167309
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agomedia: video: tegra: handle NULL dereferences
Deepak Nibade [Wed, 28 Nov 2012 15:12:34 +0000]
media: video: tegra: handle NULL dereferences

-fix coverity issues
ar0832_main : handle dereference before NULL check
Coverity id : 15049
ar0832_main : handle dereference after NULL check
Coverity id : 12050
tegra_dtv : handle dereference after NULL check
Coverity id : 12051

Bug 1046331

Change-Id: I84bc0853db147c6941ab4b795dd3deb129996f7e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/166923
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Adam Jiang <chaoj@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoiommu: Add DMA window parser, of_get_dma_window()
Hiroshi Doyu [Mon, 25 Jun 2012 11:23:54 +0000]
iommu: Add DMA window parser, of_get_dma_window()

This code was based on:
    "arch/microblaze/kernel/prom_parse.c"
    "arch/powerpc/kernel/prom_parse.c"

Can replace "of_parse_dma_window()" in the above. This supports
different formats flexibly. "prefix" can be configured if any. "busno"
and "index" are optionally specified. Set NULL and 0 if not used.

[Hiroshi DOYU: Backport from the upstream]

Bug 1025468

Change-Id: I45182b312be6c2ef671d852cd2434a0f07206dfa
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Reviewed-on: http://git-master/r/166869
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoiommu/tegra: Move bus_set_iommu after probe
Hiroshi Doyu [Tue, 27 Nov 2012 08:01:28 +0000]
iommu/tegra: Move bus_set_iommu after probe

For a single image to support GART/SMMU.

Change-Id: I82e8328242d0e155dfb330fec2061027c4c3d6e2
Reported-by: Arto Merilainen <amerilainen@nvidia.com>
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/166478
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoiommu/tegra: smmu: Remove unnecessary PTC/TLB flush all
Hiroshi Doyu [Tue, 27 Nov 2012 07:47:35 +0000]
iommu/tegra: smmu: Remove unnecessary PTC/TLB flush all

smmu_flush_regs() does TLB/PTC flush all for a second level page
table. This isn't necessay at all since each pte entry has been
already maintained by address in the above flush_ptc_and_tlb().

Change-Id: I45d6decefcd49ef6f02043ead1a46701ee6ed19e
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/166477
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agovideo: tegra: dc: moving to clk prepare APIs
Sivaram Nair [Thu, 1 Nov 2012 15:46:49 +0000]
video: tegra: dc: moving to clk prepare APIs

The clk_enable/clk_disable pair of APIs are replaced with
clk_prepare_enable and clk_disable_unprepare.

This is needed for the migration to common clk framework.

Bug 920915

Change-Id: I3798befdd10a78b95f844a39dc8dd52948f07d08
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/162325
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: TEGRA: roth: Fix orientation vector
Xiaohui Tao [Sun, 25 Nov 2012 07:33:30 +0000]
ARM: TEGRA: roth: Fix orientation vector

The mpu6050 is placed 90 degree clock-wise of the default positon.
Change the orientation vector accordingly.

Bug 1163074

Change-Id: I0280b6f0954111e236bb7efd700a24135f934ea6
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/166038
(cherry picked from commit 455aca3bf65d79317dcfcf6c3e8bd08ff59e244c)
Reviewed-on: http://git-master/r/168117
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agocrypto: tegra-se: Remove unused code
Sri Krishna chowdary [Sun, 2 Dec 2012 06:05:26 +0000]
crypto: tegra-se: Remove unused code

coverity id: 20917

Bug 1046331

Change-Id: Ia5653fff5df8cb0b5d8bda838b8d7cd883527fa0
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/167944
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Venkata Jagadish <vjagadish@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agokernel: add ioctl constants for amx/adx tests
Songhee Baek [Wed, 31 Oct 2012 22:53:20 +0000]
kernel: add ioctl constants for amx/adx tests

+ ioctl constants for audio test manager amx kernel module
+ ioctl constants for audio test manager adx kernel module
+ ioctl constants for audio test manager amx-adx kernel module

Change-Id: I372a729d456a19a4a48cb9cd0174cbb773c769c8
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/160350
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agousb: gadget: tegra: Add Null Check
Sri Krishna chowdary [Sun, 2 Dec 2012 07:47:20 +0000]
usb: gadget: tegra: Add Null Check

coverity id; 20913

Bug 1046331

Change-Id: I4da83a06eef672f2e7b166e26ec14bd388afce6f
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/167948
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: dc: organize clock setup by out type
Jon Mayo [Fri, 30 Nov 2012 22:53:10 +0000]
video: tegra: dc: organize clock setup by out type

Add an out_ops->setup_clk and move clock setup code to a function in each
output type.

Change-Id: I72bdce530fce2a68c5547ea2a6cee301bc9f2df1
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/168138
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: dc: use apis to calculate EMC frequency
Jon Mayo [Wed, 31 Oct 2012 01:17:25 +0000]
video: tegra: dc: use apis to calculate EMC frequency

Use MC api tegra_mc_get_effective_bytes_width to calculate EMC clock.

bug 1167105

Change-Id: I06eee3ced3d54e5699ae84051e4e1a9f548079de
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/167836
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: dc: fix the clock-gate for suspend.
Kevin Huang [Fri, 30 Nov 2012 19:45:06 +0000]
video: tegra: dc: fix the clock-gate for suspend.

Bug 1174105

Change-Id: I2eb6bb5e75b1bf7a65956e69abff798ca95fe35f
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/167803
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARCH: arm: Enable sensor for Roth
Xiaohui Tao [Mon, 3 Dec 2012 19:19:31 +0000]
ARCH: arm: Enable sensor for Roth

 * Add regulator support for sensors
 * Add back mpuirq_init() function
 * Change i2c bus address

Bug 1163074

Change-Id: I6c4fbd03548b897bd04c2f579a3c64842692bebc
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/164573
(cherry picked from commit e4e5dad47daffa094202b80646de78f4483f9001)
Reviewed-on: http://git-master/r/168114
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agocdc_ncm: Adding rmnet interface for Icera Nemo modem
Steve Lin [Fri, 30 Nov 2012 18:20:56 +0000]
cdc_ncm: Adding rmnet interface for Icera Nemo modem

Bug 1176649

Change-Id: I9c89b907649ac66d9e85c66e964574a2fe9d368f
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/167784
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frederic Bossy <fbossy@nvidia.com>

6 years agoarm: config: tegra3: enable tegra wakeup monitor
Jiukai Ma [Tue, 23 Oct 2012 07:17:31 +0000]
arm: config: tegra3: enable tegra wakeup monitor

The tegra wakeup monitor is to send wakeup source and the uevents
indicate suspend_prepare and post_suspend.

Bug 890577

Change-Id: I69e1c8e2eeb9c7fca11a45628ba70e0355ec0dbd
Signed-off-by: Jiukai Ma <jiukaim@nvidia.com>
Reviewed-on: http://git-master/r/146771
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: export the wake status function
Jiukai Ma [Tue, 23 Oct 2012 05:20:38 +0000]
arm: tegra: export the wake status function

Export the wake status function by tegra_read_pmc_wake_status so
it is possible to read the wake status by others.

Bug 890577

Change-Id: Ib237cc8b1f374ff51ef8b171f35504f99c3d4123
Signed-off-by: Jiukai Ma <jiukaim@nvidia.com>
Reviewed-on: http://git-master/r/146727
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agomedia: video: tegra: ov9772: Modify mode tables
Phil Breczinski [Fri, 30 Nov 2012 02:28:57 +0000]
media: video: tegra: ov9772: Modify mode tables

Modify mode tables for ov9772 sensor driver to fix blacklevel
issues. Adjust pixel type to compensate for mode table changes.

Bug 1048307

Change-Id: I2416a43a02152b9b87405305ccd82c4ed476822c
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
Reviewed-on: http://git-master/r/167577
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: usb:Disable PMC when driver unregister
Petlozu Pravareshwar [Fri, 30 Nov 2012 12:12:55 +0000]
ARM: tegra: usb:Disable PMC when driver unregister

PMC should be disabled while unregistering
the driver.

Bug 1171244

Change-Id: Ide52b30f18f30b0d2308729eb8eb8d2f7a90d0bc
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/167349
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agousb: gadget: nvusb: fix section mismatch warning
Deepak Nibade [Thu, 29 Nov 2012 15:33:48 +0000]
usb: gadget: nvusb: fix section mismatch warning

fix warning by removing __init from
-nvusb_bind_config
-nvusb_bind_func

Bug 1038578

Change-Id: I85e1a952a180ba711e23d9f0fedbe5c10d0daada
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/167336
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: usb: Enable USB_TXFILLTUNING properly
Suresh Mangipudi [Thu, 29 Nov 2012 12:36:15 +0000]
ARM: tegra: usb: Enable USB_TXFILLTUNING properly

USB_TXFILLTUNING is being overwritten, set it properly at the end
of PHY power_on.

Bug 1176649

Change-Id: I99cbb4d8727d53df6a37a99139bc54f1c5139334
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/167304
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: pluto: add unused rail data
Deepak Nibade [Wed, 28 Nov 2012 13:16:36 +0000]
ARM: tegra: pluto: add unused rail data

-add unused rail data in board-pluto-powermon.c
-without rail initialization data, no probe was called
and hence ina219 devices remained powered up

Bug 1182097

Change-Id: Iea11ba171f75de03539461e5e6b1e238257698f6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/166894
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aly Hirani <ahirani@nvidia.com>
Tested-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoinput: touch: Enable async suspend/resume
Li Li [Wed, 28 Nov 2012 01:48:55 +0000]
input: touch: Enable async suspend/resume

Touch driver needs quite a long time to resume, which impacts
suspend/resume latency.

Make it async to prevent blocking other drivers.

Bug 1166767

Change-Id: Iff68234ece4201057ceb72c69f19eb7a486c582f
Signed-off-by: Li Li <lli5@nvidia.com>
Reviewed-on: http://git-master/r/166749
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agommc: tegra: Enable async suspend/resume
Li Li [Wed, 28 Nov 2012 01:41:50 +0000]
mmc: tegra: Enable async suspend/resume

mmc init is slow, which impacts suspend/resume latency.
Enable async mode to prevent blocking other devices.

Bug 1166767

Change-Id: I2bfcc47c7d9456d02f844e180f50a07671205965
Signed-off-by: Li Li <lli5@nvidia.com>
Reviewed-on: http://git-master/r/166748
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>

6 years agovideo: tegra: ad5816: focus setting update
Wei Chen [Tue, 27 Nov 2012 23:56:04 +0000]
video: tegra: ad5816: focus setting update

Update the focus settings according to the
vcm driver vendor and isp calibration.

Bug 1176695

Change-Id: I478dae1af70e3616c440245cc9e66b8018c28bf9
Signed-off-by: Wei Chen <wechen@nvidia.com>
Reviewed-on: http://git-master/r/166705
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: usb_phy: Remove WAR for port suspend
srinivas thaduvai [Mon, 5 Nov 2012 09:22:30 +0000]
ARM: tegra: usb_phy: Remove WAR for port suspend

Since suspend fix enabled for all interfaces as
part of usb_phy_init funcion, Remove the 4 ms
delay before the controller goes to suspend.

Bug 1170444

Change-Id: Ibc5826b1d0f145b278aca1d8c7d9aab0070e94ff
Signed-off-by: srinivas thaduvai <sthaduvai@nvidia.com>
Signed-off-by: Abhishek Shukla <abhisheks@nvidia.com>
Reviewed-on: http://git-master/r/165738
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoinput: touch: raydium: regulator modification
Xiaohui Tao [Tue, 20 Nov 2012 21:47:46 +0000]
input: touch: raydium: regulator modification

The spi checking function was moved above the
regulator init function.
Clean up code update accordingly.

Change-Id: Ic1f6db0c1f5e79d3a9379a5a93bf0ca3ce40a9b9
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Signed-off-by: David Jung <djung@nvidia.com>
Reviewed-on: http://git-master/r/165144
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: mm: cpa: Fix warnings in cpa code.
Krishna Reddy [Wed, 14 Nov 2012 23:22:06 +0000]
arm: mm: cpa: Fix warnings in cpa code.

Change-Id: I4b9faea7252399c598619460dee27990ad6474ca
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/163722
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User