5 years agoARM: tegra: pluto: memory: add table for 2GB memory
Deepak Nibade [Tue, 23 Jul 2013 13:50:32 +0000]
ARM: tegra: pluto: memory: add table for 2GB memory

- Use API memblock_phys_mem_size() to get memory size
- Based on memory size, select tables at runtime
  for 1GB or 2GB memory for board AP40

Bug 1327872

Change-Id: I89d5ac405e0c4b96d1dedca0740ad429a7551ff6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/252421
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
Tested-by: Venkata (Muni) Anda <vanda@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>

5 years agoARM: tegra11: clock: Add gpu sysfs floor
Alex Frid [Thu, 18 Jul 2013 06:45:45 +0000]
ARM: tegra11: clock: Add gpu sysfs floor

Change-Id: Id1df835e0b60da703b67fc289b2ed21087f2c0c3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250928
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoARM: tegra11: dvfs: Update T40T frequency limits
Alex Frid [Thu, 18 Jul 2013 19:18:21 +0000]
ARM: tegra11: dvfs: Update T40T frequency limits

Change-Id: I25851ce78f034ac592a0bd39ded1444f0a7e230d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250901
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoARM: tegra11: clock: Add emc and host1x sysfs floors
Alex Frid [Wed, 17 Jul 2013 21:23:25 +0000]
ARM: tegra11: clock: Add emc and host1x sysfs floors

Change-Id: Ib00775ecbded79cb865cdeaed8e05ba2e06e486a
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250417
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoARM: tegra: clock: Add sysfs interface for bus floors
Alex Frid [Wed, 17 Jul 2013 05:47:55 +0000]
ARM: tegra: clock: Add sysfs interface for bus floors

Added mechanism to install sysfs objects for tegra shared bus floors.
Currently no floor objects are installed.

Change-Id: I4940b096fe7013f09213813b18b1cfe71fce9336
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250416
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoRevert "vide: tegra: dc: Update latency allowance for disabled windows"
Shu Zhang [Mon, 22 Jul 2013 05:39:50 +0000]
Revert "vide: tegra: dc: Update latency allowance for disabled windows"

Updated latency caused flicker line while pressing wifi button.

bug 1323142

Change-Id: Ib5b202b14b32981bdc5588670b6a142436a48d60
Signed-off-by: Shu Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/251766
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: gadget: tegra: fix schedule work for non-std charger
Rohith Seelaboyina [Fri, 19 Jul 2013 10:43:29 +0000]
usb: gadget: tegra: fix schedule work for non-std charger

Work is scheduled to detect non-standard charger
whenever can_pullup is successful.

Bug 1316950

Change-Id: I8c8b7eb381d311273a77f039964601d5b2535bb2
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/251164
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoasoc: codecs: patch from Realtek to detect headphone
Simon Je [Mon, 15 Jul 2013 10:18:33 +0000]
asoc: codecs: patch from Realtek to detect headphone

Bug 1324680

Change-Id: Ia33d76a3a10bb12872e6c5bfae254f50538ee930
Signed-off-by: Simon Je <sje@nvidia.com>
(cherry picked from commit 896d664b4c3c7dbbcd8dd5875c73f80e49a21c01)
Reviewed-on: http://git-master/r/250757
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

5 years agosoc: tegra: rt5640: support speaker volume edp table
Simon Je [Thu, 18 Jul 2013 12:05:35 +0000]
soc: tegra: rt5640: support speaker volume edp table

To support different gains of volume edp for each platform
in single machine driver, add edp_vol table to tegra_asoc_platform_data,
and add edp_vol values to tegratab and macallan board file.

Bug 1321224

Change-Id: Ia74c17dcc3eabe27d3d6356d6d0e51b2623976b1
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/250746
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agosecurity: tf_driver: update with latest TL drop
Hyung Taek Ryoo [Thu, 18 Jul 2013 02:02:10 +0000]
security: tf_driver: update with latest TL drop

K3.4 does not need this code maintain to PF_KTHREAD

Bug 1244750

Change-Id: Iec2fdf2cf4646ea3415f370a45376b1757498854
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/250493
Reviewed-by: Karthik Iyer <karthiki@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoinput: touch: maxim: Add shutdown for power-down control.
Jinyoung Park [Tue, 18 Jun 2013 11:50:12 +0000]
input: touch: maxim: Add shutdown for power-down control.

Added shutdown for power-down control.

Bug 1304090

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/239783
(cherry picked from commit a422e1d54d2426e3c4503471c5bbf4ee527b0208)

Change-Id: I95376df5fbac1589079b4e1fed8a7fb1fa93c7cb
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/239732
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

5 years agoxhci: tegra: fix race between remote and host wake for usb2 devices
Henry Lin [Fri, 12 Jul 2013 03:36:55 +0000]
xhci: tegra: fix race between remote and host wake for usb2 devices

For usb2 devices, a race condition between remote and host wake was
observed during remote wake from LP0. If usb2 remote wake's port status
change event interrupt happens while the hub driver is resuming the same
usb2 port for host wake, the hub driver may disconnect the usb2 port
and cause the resuming_ports flag for usb2 remote wake not cleared properly.
Then, the system cannot go to LP0 with "xhci_bus_suspend failed -16"
error message.

This patch fix the race by letting remote wake being completed
before hub driver performs host resume for usb2 port.

Bug 1318548

Change-Id: I59c032527f9adf02a6e4f589f022033940b1d494
Signed-off-by: Henry Lin <henryl@nvidia.com>
Reviewed-on: http://git-master/r/248179
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

5 years agoARM: tegra: clock: Update emc monitor preset mechanism
Alex Frid [Tue, 9 Apr 2013 05:07:24 +0000]
ARM: tegra: clock: Update emc monitor preset mechanism

- Allowed per-SoC code to select emc monitor preset rate.
For now, rounded down boot rate is used as monitor preset rate
(round down to not over-clock on boot).

- Skipped emc clock update when monitor preset rate is set, but not
yet enabled (to avoid temporary dip in EMC rate). EMC rate is updated
only when monitor preset is enabled.

- Preset EMC monitor rate after iso usage table is initialized.

Change-Id: I3a1407b8523596a7823a7c5398f5c1a03b4c3206
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/219504
(cherry picked from commit 9279fd450cba7c8012a405755d483dfc9b502941)
Reviewed-on: http://git-master/r/241242
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

5 years agoARM: tegra11: pluto: Fix gpio error for AD5823
Frank Chen [Fri, 19 Jul 2013 20:33:26 +0000]
ARM: tegra11: pluto: Fix gpio error for AD5823

Remove gpio_request and gpio_free calls from
AD5823 power functions. Gpio request/free are
already controlled in the main board file.

Bug 1329704

Change-Id: Id889ad48224b11718b9f13fa1b580edd70d9a2b6
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/251459
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sean Pieper <spieper@nvidia.com>
Reviewed-by: Robert Lin <robertl@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoARM: tegra: tegratab: Update Tskin coefficients
Jinyoung Park [Thu, 4 Jul 2013 12:30:43 +0000]
ARM: tegra: tegratab: Update Tskin coefficients

Updated Tskin coefficients for P1640 A00 hard tooled unit.

Bug 1236444
Bug 1291251

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/245135
(cherry picked from commit 2c5dfbd1f1a4c2da10627ae631458f24c7dd7cb7)

Change-Id: Iaf0406f44d39439e40cf3cf7b03612aba9a7eba8
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/251220
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agovideo: tegra: avoid double free in modedb
Jon Mayo [Fri, 19 Jul 2013 00:37:19 +0000]
video: tegra: avoid double free in modedb

modedb can double free in some cases, or worse point to free'd memory that
later gets allocated.

Bug 1328121
Bug 1264520

Change-Id: Icc4bba24017a782501f27c4787a63a2e2680e4a7
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/251070
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jong Kim <jongk@nvidia.com>

5 years agoARM: tegra11: clock: Add cbus fine granularity region
Alex Frid [Tue, 16 Jul 2013 19:43:15 +0000]
ARM: tegra11: clock: Add cbus fine granularity region

Added fine granularity region to cbus possible rates. In this region
requested cbus rate is not clipped to dvfs steps, but rounded to fine
granularity resolution. The latter is set as 12MHz, and the region is
defined as 5 resolution steps below the top dvfs rate, assuming this
top rate is reachable on the particular chip bin/sku.

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

5 years agoARM: tegra11: dvfs: Update T40T tables and limits
Alex Frid [Fri, 12 Jul 2013 02:50:22 +0000]
ARM: tegra11: dvfs: Update T40T tables and limits

Updated dvfs and edp tables, clock and voltage limits for T40T part.

Change-Id: I99649b1ac7347424d668e9a7cb3862bb32f55c6b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/248952
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoARM: tegra11: power: Add T40T core edp tables
Alex Frid [Sat, 13 Jul 2013 05:22:28 +0000]
ARM: tegra11: power: Add T40T core edp tables

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

5 years agoARM: tegra11: dvfs: Don't throttle T40T nominal voltage
Alex Frid [Sat, 13 Jul 2013 03:36:22 +0000]
ARM: tegra11: dvfs: Don't throttle T40T nominal voltage

On T40T parts removed throttling of nominal voltage by boot core edp.
Used the latter to specify detached mode (boot, disable, suspend)
limits.

Change-Id: If6ab57785c22ffb9622998aaf9d06bfe36496949
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/248950
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoARM: tegra: dvfs: Decouple nominal and detached voltages
Alex Frid [Sat, 13 Jul 2013 02:58:41 +0000]
ARM: tegra: dvfs: Decouple nominal and detached voltages

DVFS rail nominal voltage is minimum voltage required to run all
associated clocks at maximum allowed rates. DVFS rail can be detached
from clocks during initial boot, on suspend entry/exit, or when
voltage scaling is disabled. So far, rail voltage in any detached mode
was set to nominal level. This commit introduced separate voltages for
each detached mode. If any of these levels is not specified, backward
compatible nominal voltage is used.

Since, suspend voltage may now be different from nominal (below), it
is important for dvfs to suspend after suspend edp rate caps are set,
and resume before edp. Hence, priorities of dvfs suspend notifiers
were adjusted accordingly.

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

5 years agoarm: tegra: loose cpu edp power table calculation.
Roger Hsieh [Tue, 16 Jul 2013 05:56:25 +0000]
arm: tegra: loose cpu edp power table calculation.

T40X will be limited to 1.8Ghz if cpu edp power table is applied.
Set the temp limit to 50 to restore the limit to 1.9G for T40X.

Bug 1310571

Change-Id: I6588e193820c34e1c4a8f6d2c82ceedc797a941c
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/249522
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoinput: touch: maxim: Move power-up and reset-high after start touch_fusion
Jinyoung Park [Fri, 28 Jun 2013 15:06:19 +0000]
input: touch: maxim: Move power-up and reset-high after start touch_fusion

Move power-up and reset-high after start touch_fusion daemon.

Bug 1304090
Bug 1315583

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/243901
(cherry picked from commit 05ba9be0181c2a4dae11670a4887f0c8fb50f085)

Change-Id: Ibddd226767fbf152d64becfd3d4209c08ff637bf
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/249053
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoxhci: tegra: rewind firmware log buffer across ELPG
JC Kuo [Fri, 5 Jul 2013 11:38:35 +0000]
xhci: tegra: rewind firmware log buffer across ELPG

In ELPG, firmware log context is gone. Firmware doesn't save and
restore log enqueue pointer, dequeue pointer, and sequence number at
CSS/CRS.
In order to minimize complexity of firmware design, driver has to
  1) make sure all firmware log is processed after enters ELPG,
  2) rewind firmware log buffer before exit ELPG,
so that firmware will not have a chance to corrupt log buffer.

This commit also wakes firmware log thread in xhci isr. Idea is that
when driver gets interrupted, there must be some firmware logs unread.
xhci isr is a perfect timing to wake log thread up.

bug 1320242

Change-Id: I4e57e0359055dfbc9a9750658bf7eabb284c804c
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/245366
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoxhci: tegra: support loading xusb firmware from file
JC Kuo [Mon, 24 Jun 2013 12:19:31 +0000]
xhci: tegra: support loading xusb firmware from file

This commit add the capability of loading Tegra xusb firmware from
a firmware file in file system.

Two kernel module parameters provides the firmware loading flexibility.
1. "use_bootloader_firmware=Y" driver loads firmware from the
   bootloader carveout region.
2. "use_bootloader_firmware=N" driver loads firmware from the file
   specified by "firmware_file" parameter.

This example shows how to load firmware from /etc/firmware/xusb_sil_prod_fw

   insmod /system/lib/modules/xhci-hcd.ko use_bootloader_firmware=N firmware_file=xusb_sil_prod_fw

bug 1301430

Change-Id: I7ff4a86ab56b2724d3a4d17f28fe048e6303b067
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/241457
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoARM: tegra: tegratab: Change default state of maxim touch reset
Jinyoung Park [Tue, 2 Jul 2013 02:19:54 +0000]
ARM: tegra: tegratab: Change default state of maxim touch reset

Changed default state of maxim touch reset from 1 to 0 in order to
pull reset to low until power rails are stable for proper initialization.

Bug 1304090
Bug 1315583

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/244101
(cherry picked from commit 003d40dcebd4ce4c33fbd3377e4074030083cddb)

Change-Id: Ic25ee4d8bf6d6b4468b78640bfe4443fa42b1d1f
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/249055
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomisc: nct1008: Refactor sensor configuration
Jinyoung Park [Fri, 7 Jun 2013 09:00:43 +0000]
misc: nct1008: Refactor sensor configuration

Refactor sensor configuration.
- Fixed wrong min/max temperature settings.
- Removed unnecessary register readings.

Bug 1325770

Change-Id: I33f195df7673ad35d037fa4bf2cf987b6eba5bb1
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/237219
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agomisc: nct1008: Refactor power rail control
Jinyoung Park [Tue, 4 Jun 2013 13:31:05 +0000]
misc: nct1008: Refactor power rail control

Refactor power rail control
- Use devm_regulator_get() instead of regulator_get/put().
- Fix repeated regulator_get calling issue when the regulator is not
available on the system.
- Add return value checking in suspend and resume.

Bug 1325770

Change-Id: I77b457e7b6aa3e9d5ed389cabb9cd0260503eae6
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/235477
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agodrivers: misc: therm_est: Fixed factory reset issue
Hyungwoo Yang [Wed, 10 Jul 2013 02:14:04 +0000]
drivers: misc: therm_est: Fixed factory reset issue

Thermal Estimator tries to access device no more usable during factory reset.

Bug 1320678

Change-Id: Ic56f550c029ad5b9d9a117ad79ccf5bd03292f86
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/246962
(cherry picked from commit e06ae462d514f61f28d5fd7f82d927bbeb0c8607)
Reviewed-on: http://git-master/r/248508
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agomedia: tegra: ov7695: apply 070213 tuning values
Jake Park [Wed, 3 Jul 2013 21:45:02 +0000]
media: tegra: ov7695: apply 070213 tuning values

Apply ov7695 quality tune register changes from OV,
'OV7695 reference setting_MIPI_24MCLK_o70213_nVidia.txt'.

Bug 1278482

Change-Id: If40629b7a4fe7c4c8bd731693f5b8e2cc66bb674
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/244866
(cherry picked from commit 9d08009023cacaef14137d3dab46b496dfcb4e39)
Reviewed-on: http://git-master/r/247286
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agomedia: ov7695: WAR for initial greenish preview
Jake Park [Wed, 3 Jul 2013 00:11:12 +0000]
media: ov7695: WAR for initial greenish preview

To reduce initial greenish preivew time,
1. start from manual white balance with pre-defined values
2. discard 3 frame
3. move to auto white balance

Bug 1304101

Change-Id: Iba4520b94614ccaca8d2d0c037928c70e736ecb8
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/244570
(cherry picked from commit b4dd59c448e9b89a05d7ffa9654aa9bb51239855)
Reviewed-on: http://git-master/r/247285
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoarm: tegra3: change max current to 10000mA for T33
Naveen Kumar S [Thu, 2 May 2013 10:44:47 +0000]
arm: tegra3: change max current to 10000mA for T33

6000mA is the max current for regular T30 SOCs. Conditionally changing
it to 10000mA for T33 SOCs to avoid passing the command line parameter
max_cpu_cur_ma=10000 explicitly.

Bug 1166110

Change-Id: I453c8e128a6cf32f10e0f6e4a577b857d38d8e4d
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/245335
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: fuse: add api for chip minor revision
Naveen Kumar S [Thu, 4 Jul 2013 16:10:06 +0000]
arm: tegra: fuse: add api for chip minor revision

Added function tegra_get_minor_rev() to return minor revision number
of the chip.

Bug 1166110

Change-Id: I087331433cabb35c05fa2ce0bd53013b6fb6624f
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/245330
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomisc: ti-st: Fix compiler warnings
Philip Rakity [Tue, 9 Jul 2013 09:03:31 +0000]
misc: ti-st:  Fix compiler warnings

Change-Id: I7a97cad4d27ae9fceb5902bc18004eeb00102a84
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246582
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: Fix compiler warning.
Philip Rakity [Mon, 8 Jul 2013 11:19:10 +0000]
arm: Fix compiler warning.

use type the kernel.h expects.

Change-Id: Idd3e9d7813151c9e2b2d2c5db7988b4e1715597b
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246091
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agopower: sbs-battery: Shift work out of get_property function
Darbha Sriharsha [Tue, 16 Jul 2013 10:01:55 +0000]
power: sbs-battery: Shift work out of get_property function

The board is made to stay awake as long as the power_supply_changed
work thread is in execution. Hence, doing too much work in this thread
often hampers the board from entering LP0 state. Hence, shifting all
work to calculate battery parameters out of this thread and keeping
this thread minimal as to only assign the calculated values. The
calculations needed to obtain the values are not done in the
get_property function anymore.

Bug 1223793

Change-Id: I2595919c9dfd10b0f71136a25f1096a92bba5b3d
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/249641
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agostaging: iio: light: if no chip or shutdown return false
Philip Rakity [Mon, 15 Jul 2013 14:45:55 +0000]
staging: iio: light: if no chip or shutdown return false

isl29028_write_data()
isl29028_read_als_ir()
isl29028_read_proxim()

return a bool..

if chip and shutdown return false

Change-Id: Icc7ce8de9332c4c7cc6f97232443a2f0b4816197
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/249234
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: tegratab: Change GMI_CS4_N pinmux setting
Jinyoung Park [Tue, 11 Jun 2013 10:15:37 +0000]
ARM: tegra: tegratab: Change GMI_CS4_N pinmux setting

Changed GMI_CS4_N pinmux setting for MAX11936 touch power sequence.

Bug 1304090

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/243899
(cherry picked from commit 127b8836f2ebf591d9a585d58b2a6c82887dedc8)

Change-Id: I1d409b2bae54d3eedbb37db81b62626bfb94640d
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/249051
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years ago misc: Removed warnings from MAX1749 driver
Philip Rakity [Mon, 8 Jul 2013 18:54:28 +0000]
   misc: Removed warnings from MAX1749 driver

Change-Id: I416a44a7188d36f2b014b0905d77dd89d5489a44
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246211
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomfd: remove compiler warning possible uninitialzed vars
Philip Rakity [Mon, 8 Jul 2013 18:15:41 +0000]
mfd: remove compiler warning possible uninitialzed vars

warning is bogus but initializing variable has probably
no performance impact.

Change-Id: I27dcff816caef0f98e6f627dcbeb4789b59a0e39
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246193
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoHID: hid-sony: Fix compiler warning
Philip Rakity [Fri, 5 Jul 2013 20:06:29 +0000]
HID: hid-sony: Fix compiler warning

Declarations come before code in c.

Change-Id: If640e07616a8b422a0362192ba7fd97194662db8
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245586
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: Increase PMU max voltage for vdd_cpu to 1350
Chaitanya Bandi [Tue, 2 Jul 2013 08:21:35 +0000]
ARM: tegra: Increase PMU max voltage for vdd_cpu to 1350

Bug 1310622

Change-Id: I2d47023f46a0d6fb56731274b6312d89b51f1635
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/244224
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: macallan: Set VALRT.MIN to 3.5 of max17048.
Hayden Du [Fri, 7 Jun 2013 08:37:00 +0000]
arm: tegra: macallan: Set VALRT.MIN to 3.5 of max17048.

Use voltage low alert when vcell is under 3.5V.

bug 1289570

Change-Id: I572311aa36baf2008623a73aa4b2e8e373214552
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/236618
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra11: update sysedp tables assuming max VDD_CORE
Timo Alho [Mon, 1 Jul 2013 10:17:41 +0000]
ARM: tegra11: update sysedp tables assuming max VDD_CORE

This patch updates pluto and macallan sysedp corecap tables assuming
that VDD_CORE voltage is always at maximum level.

Bug 1316937

Change-Id: Ia250dd0d48b0efe0273c1eac286e24de76bbb4a7
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/243854
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoARM: tegra: tegratab: Doesn't enable LDO4 when boot-up
Jinyoung Park [Fri, 28 Jun 2013 15:00:22 +0000]
ARM: tegra: tegratab: Doesn't enable LDO4 when boot-up

Doesn't enable LDO4 when boot-up.

Bug 1315583

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/243900
(cherry picked from commit 60f2f530b32306fa60c52352e37d10fbfbd772ac)

Change-Id: I93c871387b8f04d746effc8fa436eb7f883f7903
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/249054
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: dvfs: Prevent CL-DVFS map allocation overflow
Alex Frid [Sat, 13 Jul 2013 23:26:51 +0000]
ARM: tegra: dvfs: Prevent CL-DVFS map allocation overflow

Instead of generating BUG() when number of CL-DVFS output map entries
exceeds look up table size, store maximum voltage mapping, and abort
allocation when last available slot is reached.

Change-Id: Ibff18a82e4efa3729f3e0641473acb826429a8e5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/248945
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

6 years agoinput: misc: Fix unused compiler warning
Philip Rakity [Fri, 5 Jul 2013 12:09:41 +0000]
input: misc:  Fix unused compiler warning

use direct functions rather than read / write wrappers
removes compiler warning about unused code.

Change-Id: I95682dcd24ed2e27eed6022352d6829cd29e2317
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245374
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoinput: Fix compiler warning message
Philip Rakity [Fri, 5 Jul 2013 10:48:23 +0000]
input: Fix compiler warning message

enabled sysfs attribute function needs const char *
not char * as argument.

Change-Id: I74204d64072b42af5c1ecfb3ac7a864780a7307c
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245349
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: dalmore: update T40S mem table for rev 4.2
Ray Poudrier [Thu, 20 Jun 2013 20:10:15 +0000]
ARM: tegra: dalmore: update T40S mem table for rev 4.2

Bug 1265159

Change-Id: Ie9b6744ca75ec5ef278fa78e473198ee9088784e
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/240715
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agocpuidle: menu: Fix compiler warning.
Philip Rakity [Wed, 10 Jul 2013 13:05:24 +0000]
cpuidle: menu: Fix compiler warning.

get_loadavg is defined.  not used.
google code has code commented out but
not the call.  comment out the call.

Change-Id: Ic4e39cad50d810ebac328cae2278b3e350bf43b3
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/247181
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agonet: mhi mhi_dgram Fix warning messages
Philip Rakity [Tue, 9 Jul 2013 09:33:39 +0000]
net: mhi  mhi_dgram  Fix warning messages

printk arguments not in correct order
___func__ is the char *

Change-Id: I7c39e64dcb20026ac015942380dbd523f198cd5e
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246607
Reviewed-by: WK Tsai <wtsai@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agotime: alarmtimer: Fix compile warning
Philip Rakity [Mon, 8 Jul 2013 11:32:39 +0000]
time: alarmtimer: Fix compile warning

%ll is not legal format for printk - use %lld

Change-Id: Ie59783dfbd6558e2fe833c76b2ba96cd52bbac76
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246096
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years ago hwmon: INA219: Remove compile warnings
Philip Rakity [Mon, 8 Jul 2013 10:39:24 +0000]
 hwmon: INA219:  Remove compile warnings

Change-Id: Ibdafc853a1e52ad9573152d3feb8f6afae901c42
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246069
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agocpuquiet: Remove compiler warning on unused variable
Philip Rakity [Sat, 6 Jul 2013 11:04:41 +0000]
cpuquiet:  Remove compiler warning on unused variable

Change-Id: I41ddc91b81cf07ed71964d232da3c7e71e4dfdce
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245838
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoRevert "usb: xhci: tegra: save leakage power if SS link suspended"
Ajay Gupta [Thu, 11 Jul 2013 20:50:21 +0000]
Revert "usb: xhci: tegra: save leakage power if SS link suspended"

This reverts commit 5cf20ab3dc1c7b4ed5b0c52bbdb420415ead398b.

Change-Id: I9e455bf6d7cf4b3c7f58c67c249c58e561274174
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/248027
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoRevert "usb: xhci: tegra: set SNPS as owner to save power"
Ajay Gupta [Thu, 11 Jul 2013 20:50:03 +0000]
Revert "usb: xhci: tegra: set SNPS as owner to save power"

This reverts commit 18b7fd1a4deb8b77b589f03b5d4e1cb10645efac.

Change-Id: I93b0d78a125363dbfb973c7dd6f614d0ae478a4b
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/248026
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoRevert "usb: xhci: tegra: set SNPS owner only if no hs connected"
Ajay Gupta [Thu, 11 Jul 2013 20:49:53 +0000]
Revert "usb: xhci: tegra: set SNPS owner only if no hs connected"

This reverts commit deb1d0181e713cb8cb8bc3ad96a79b6799d9c2b4.

Change-Id: I90a638f659e7dccdab5442dd1372ed363cefb0b2
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/248025
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years ago asoc: codecs: rt5639_ioctl: Fix warning messages
Philip Rakity [Tue, 9 Jul 2013 10:34:15 +0000]
 asoc: codecs: rt5639_ioctl:  Fix warning messages

Change-Id: I87a039c3f662b8aa99b6fe8340c6769b03427fca
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246637
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agostaging: iio: light: fix compiler warning.
Philip Rakity [Mon, 8 Jul 2013 19:22:47 +0000]
staging: iio: light: fix compiler warning.

warning is bogus but since code is not performance
intensive just fix warning.

Change-Id: If492d49008fbabf9fb796dc1363980f7a8d6f396
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246223
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agomedia: video: v4l Remove compile warning
Philip Rakity [Mon, 8 Jul 2013 13:23:25 +0000]
media: video: v4l Remove compile warning

Change-Id: Ie1059c00226e2f948151c82d1db3a79527c27aaf
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246133
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agokernel: trace: Remove compile warning.
Philip Rakity [Mon, 8 Jul 2013 11:40:13 +0000]
kernel: trace:  Remove compile warning.

warning is bogus but since code is not used frequently
just set ret to avoid warning.

Change-Id: Icd3b47f2e95982cea2019e93c5fc1c69c64852dd
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246102
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agosound: soc: rt5639: Remove compile warnings.
Philip Rakity [Mon, 8 Jul 2013 10:04:59 +0000]
sound: soc: rt5639: Remove compile warnings.

delete unused code.
EXPORTED function that is deleted is not used and in
any case type defintion warning probably means it would
not work.

Change-Id: I8d71555e919f76ca0932e452edf384f7d18f2e35
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246051
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: tegratab: Set LDO5 to 2.8V
Jinyoung Park [Tue, 18 Jun 2013 07:53:35 +0000]
ARM: tegra: tegratab: Set LDO5 to 2.8V

Changed LDO5 from 2.7V to 2.8V for AVDD of Camera Sensor OV7695.

Bug 1297127

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/239781
(cherry picked from commit bbdf247d3ba6e77759a40daa14d2d76ee1f7e8ad)

Change-Id: I6380c365ea920dbffa87783e8c2e42f3a7e95636
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/239636
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: tegratab: disable cmu in kernel side
Min-wuk Lee [Tue, 11 Jun 2013 11:42:36 +0000]
arm: tegra: tegratab: disable cmu in kernel side

Set cmu_enable to 0 in kernel side. Transition of color tone
in tegra dc probe is unpleasant to the eye. Rather than enabling
cmu in dc probe, framework will enable this sysfs node
when it begins.

Bug 1305726

Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Change-Id: I68a11b59d79a61cd2ea8d630ebdc3d08de8a22aa
Reviewed-on: http://git-master/r/237618
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agousb: gadget: u_serial. Fix compile warning
Philip Rakity [Tue, 9 Jul 2013 09:44:00 +0000]
usb: gadget: u_serial. Fix compile warning

undef pr_vdebug first to avoid redefine warning

Change-Id: I4b70c339aa5db2a420b1152b3cfbe1bf563baea0
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246614
Reviewed-by: Eric Miao <emiao@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>

6 years agovideo: tegra: dc: hdmi: remove dangling pointer
Jong Kim [Thu, 11 Jul 2013 22:43:30 +0000]
video: tegra: dc: hdmi: remove dangling pointer

Remove dangling pointer by removing kfree in tegra_dc_add_modes.
specs.modedb is allocated by tegra_dc_add_modes(), but is consumed
by tegra_fb_update_monspecs(), so releasing specs.modedb creates a
dangling pointer and make the system crashed, especially when the
system suspends to lp0.

bug 1264520

Change-Id: Ic944e75b631800ed552b7e56b5799a3e60b48afe
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/248089
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agotegra: media: video: imx135 reduce PLL for HDR res
Ming Wong [Thu, 23 May 2013 23:29:47 +0000]
tegra: media: video: imx135 reduce PLL for HDR res

reduce PLL settings for HDR resolutions for power optimization

Bug 1293554

Change-Id: Ic2e021eee6f335d329be6fec97270c871e981e5a
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/248056
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Chen <frankc@nvidia.com>
Tested-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoarm: tegra11: config: disable HDCP for L4T
Jong Kim [Tue, 9 Jul 2013 21:46:51 +0000]
arm: tegra11: config: disable HDCP for L4T

HDCP are not used/tested in L4T. It simply generates a lot of
meaningless i2c timeout messages and wastes CPU cycles. If needed,
individual users may recompile kernel with HDCP enabled.

bug 1264520

Change-Id: I9f23c6850a68c7db0613a737becc95607c7559e7
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/248090
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoARM: fix warnings about atomic64_read
Russell King [Thu, 5 Jul 2012 12:06:32 +0000]
ARM: fix warnings about atomic64_read

Fix:
net/netfilter/xt_connbytes.c: In function 'connbytes_mt':
net/netfilter/xt_connbytes.c:43: warning: passing argument 1 of 'atomic64_read' discards qualifiers from pointer target type
...

by adding the missing const.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
(cherry picked from commit b89d607b590397c04b63d94a9e2fca9649917955)

Change-Id: Ief2e9a65be74a3ce74257249537b4ee00f0b64e7
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/247147
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years ago audio: a2220: remove compile warnings
Philip Rakity [Mon, 8 Jul 2013 19:06:20 +0000]
 audio: a2220: remove compile warnings

Change-Id: I8693c1a821b8c75836c1c908db80995c26bcf867
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246216
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agotlv320aic3xxx: Fix warning message on compiling kernel
Philip Rakity [Mon, 8 Jul 2013 18:02:41 +0000]
tlv320aic3xxx: Fix warning message on compiling kernel

Change-Id: Ic8ed6bd9ea344f9a18d14b9a0e2b9e37da37ceb2
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246185
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoext4: remove compile warning on unused variable
Philip Rakity [Mon, 8 Jul 2013 12:14:09 +0000]
ext4: remove compile warning on unused variable

Change-Id: I5b2ed8f2c54f381ec36a2b9f7f54d9f37a4d36e0
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246116
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agogpio: max77663: Fix warning message
Philip Rakity [Sat, 6 Jul 2013 10:56:39 +0000]
gpio: max77663: Fix warning message

fake out -W option on unused return value
since we really don't care what gets returned.

Change-Id: I2886653c4b81e5c9039fe58e28be6143fa086b01
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245837
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agonet: phonet: Fix warning messages while compiling for rel-17
Philip Rakity [Thu, 4 Jul 2013 11:23:25 +0000]
net: phonet: Fix warning messages while compiling for rel-17

Change-Id: I413bd2f981702462efc31b92239ab4fa53dde48b
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245093
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomac80211&nl80211: Fix SCAN_ABORT warning
Philip Rakity [Thu, 4 Jul 2013 11:08:07 +0000]
mac80211&nl80211: Fix SCAN_ABORT warning

SCAN_ABORT will produce a warning that it is not used in
the switch statements.  The code is handled by a
KConfig option.  Use that option in the include file.

Change-Id: I86f5aa2c305df49544ef4aa5e86622e2eedfab2a
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245083
Reviewed-by: Wei Ni <wni@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoRevert "video: tegra: Removing tegra_fb_set_par from tegra_fb_register"
pdabade [Wed, 10 Jul 2013 08:42:48 +0000]
Revert "video: tegra: Removing tegra_fb_set_par from tegra_fb_register"

Patch causing regression. Greenish corruption is seen during boot.
This reverts commit f6c60cef8e6707e06c5057a43ecf280902eb1cce.

Bug 1316650

Change-Id: Ib19863f5430044cc3f96ccd87134713cd64230fb
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/247718
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: support HDMI as primary
Shridhar Rasal [Thu, 30 May 2013 13:10:15 +0000]
arm: tegra: support HDMI as primary

Bug 1280972

Change-Id: I5ef8c251d5340ba844de0746095884741987bf32
Signed-off-by: Michael I. Gold <gold@nvidia.com>
Reviewed-on: http://git-master/r/233514
(cherry picked from commit 0f87609cc4599bec06f8c69335507d15a6618a5a)
Reviewed-on: http://git-master/r/247489
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoarm: tegra: tegratab: Remove duplicated definition
Yong Goo Yi [Thu, 27 Jun 2013 02:53:15 +0000]
arm: tegra: tegratab: Remove duplicated definition

Definitions for pinmux are already defined in pinmux-t11.h

Change-Id: I89722a61b01735500641f8c49b2f7497758a3a6a
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/242725
Reviewed-by: Simon Je <sje@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years ago arm: tegra: macallan: add gpio irq to detect ALRT of max17048
Venkat Reddy [Wed, 10 Jul 2013 05:05:00 +0000]
 arm: tegra: macallan: add gpio irq to detect ALRT of max17048

add gpio irq to detect voltage low alert when vcell is below 3.5v
bug 1304228

Change-Id: Ie9e8dc65b7278a344e2d99b04bbda536cd86bc64
Signed-off-by: Venkat Reddy <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/246986
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agobcmdhd: Add support for channel 165
bibhayr [Fri, 21 Jun 2013 07:40:36 +0000]
bcmdhd: Add support for channel 165

channel 165 is not the side band of 40MHz 5G channel

Bug 1298751

Change-Id: I9f29d11d30b1394ab097c82f97b177acd98149a2
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/240198
(cherry picked from commit 95e0bfd5949e8bcfb2513a06bd0467d94fe84a92)
Reviewed-on: http://git-master/r/243682
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonet: wireless: bcmdhd: mask excessive wifi chip interrupts
Michael Hsu [Tue, 4 Jun 2013 07:49:14 +0000]
net: wireless: bcmdhd: mask excessive wifi chip interrupts

On P2560 hardware only, wifi chip generates excessive wifi
activity interrupts:
- on first boot after flashing image

WAR is to mask this specific wifi activity interrupt to
prevent it from keeping application processor awake.

Bug 1299635

Change-Id: Idf0fdaf817621e3ae5e0f63864c488366dbbcaba
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/236011
(cherry picked from commit b62ddb11c0b68fc563dbb0f5f709268d1bb6c4ae)
Reviewed-on: http://git-master/r/237145
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonet: wireless: bcmdhd: new driver version 1.28.28.4
bibhayr [Fri, 31 May 2013 06:56:57 +0000]
net: wireless: bcmdhd: new driver version 1.28.28.4

- Changed to take module parameter "disable_proptx" to avoid
  recompilation for P2P certification test.
- Fixed driver to recover properly from hang event.
- Fixed error log generated by deauthorization on virtual interface.

Driver attached in the bug

Bug 1247033

Change-Id: Ib57a25d2d7209188d16e363582bf3be779654bea
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/234433
(cherry picked from commit a5129c77e8755748809aa7ed48c9c51c5b2028f7)
Reviewed-on: http://git-master/r/234525
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agotegra: hdmi: add hdmi_audio capability exposure via sysfs
Emma Yan [Wed, 10 Apr 2013 08:10:27 +0000]
tegra: hdmi: add hdmi_audio capability exposure via sysfs

Add checking of the CEA extension bit 6 of byte #3 and expose this
information for userspace to set audio path properly.

Bug 1261178

Change-Id: Id2780f735da13c7292f269d7ddd9a87b3d09d0d6
Signed-off-by: Emma Yan <eyan@nvidia.com>
Reviewed-on: http://git-master/r/218151
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agomisc: nct: nct1008 Fix warnings
Philip Rakity [Tue, 9 Jul 2013 09:18:53 +0000]
misc: nct: nct1008 Fix warnings

Bug 1323159

Change-Id: I30224f937b5bb9c6493e9fda84de5be5174d1fe7
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246600
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years ago sound: soc: rt56xx: Fix compiler warning
Philip Rakity [Sat, 6 Jul 2013 18:08:10 +0000]
 sound: soc: rt56xx:  Fix compiler warning

missing #include <linux/module.h>

Change-Id: I760ce2c55f3c1bc22821e583f1c8fce2d2ab74f4
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245846
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agonet: mhi: Fix compiler warnings
Philip Rakity [Fri, 5 Jul 2013 10:08:51 +0000]
net: mhi:  Fix compiler warnings

Change-Id: Ib862e0c63309b5fb57636a413747e414bca4cda4
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245336
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agonet:nfc Fix Warning
Philip Rakity [Fri, 5 Jul 2013 09:52:06 +0000]
net:nfc Fix Warning

u8 *nfc_llcp_general_bytes(struct nfc_dev *dev, size_t *general_bytes_len);
prototype did not match static inline.

static inline used u8* rather then size_t*.  Change static inline

Change-Id: Ia35d1230c530636b39f5ffe5a514daa5022ab467
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245328
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agovideo: tegra: support pixel format byte swap
Jon Mayo [Thu, 23 May 2013 02:25:19 +0000]
video: tegra: support pixel format byte swap

reserve upper bits of pixformat to indicate byte swizzle option.
reorder and increase field sizes of tegra_dc structure.

Change-Id: Ibd84dafcc478f6c8f51669f2db52270d5723961c
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/231901
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoarm:misc: Fix compiler warnings
Philip Rakity [Tue, 9 Jul 2013 08:42:51 +0000]
arm:misc:  Fix compiler warnings

Change-Id: I534763919f7282826e1c333ae6dc6b77cc552a00
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246570
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoarm: tegra: soctherm: show temperature log in debug output
Diwakar Tundlam [Fri, 21 Jun 2013 20:02:31 +0000]
arm: tegra: soctherm: show temperature log in debug output

Added new debugfs node to show temperature log with one-line summary
of temperatures of various TSOSCs with time-stamp.

The TSOSCs temperatures order is CPU0, CPU1, CPU2, CPU3, GPU, PLLx.

Also temporarily resume soctherm if it was suspended for the duration
of the debugfs call. Useful for logging purposes.

Bug 1165644

Change-Id: I695b7f8ab15fe9f5dcd2bc38b26c87a1938b3efb
Reviewed-on: http://git-master/r/241145
(cherry picked from commit b538aa0a38894dad2fe83a9decbe3c4702471438)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/246280
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: soctherm: fix heavy throttling on GPU zone
Diwakar Tundlam [Mon, 8 Jul 2013 19:38:06 +0000]
arm: tegra: soctherm: fix heavy throttling on GPU zone

Fixed initialization of GPU throttling config in board files

Bug 1169070

Change-Id: I43cc7edaa4adf5a3527ff16332b7755682fc5d74
Reviewed-on: http://git-master/r/239453
(cherry picked from commit 80605ae69b8f1f5a9a5b20e3a74384a18ab75f41)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/246231
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: soctherm: fix heavy throttling on GPU zone
Diwakar Tundlam [Thu, 23 May 2013 21:21:51 +0000]
arm: tegra: soctherm: fix heavy throttling on GPU zone

Fixed initialization of GPU throttling in level2 thermal control regs.

Bug 1169070

Change-Id: I121449b20fb987f61c6142e3783cd924f19a5bd6
Reviewed-on: http://git-master/r/232300
(cherry picked from commit 51383ec7f26659c758a2f0ddf119c491e47737ff)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/246230
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoasoc: codec: spdif: Remove Compiler Warning
Philip Rakity [Fri, 5 Jul 2013 20:22:31 +0000]
asoc: codec: spdif: Remove Compiler Warning

use correct return type per struct
unsigned int -- not int

Change-Id: Ia7a95cba5c983011a3215939bdd0f4ee88fabaf2
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245592
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoinput: cfboost: Fix pm_qos_add_request for online cores
Xiaohui Tao [Thu, 27 Jun 2013 00:51:34 +0000]
input: cfboost: Fix pm_qos_add_request for online cores

cf_core is used to set how many cpu cores to be brought
online. The pm_qos_class is set to be the wrong value.
Change it from PM_QOS_CPU_FREQ_MIN to PM_QOS_MIN_ONLINE_CPUS.

Change-Id: I0905ef1afbc2bc3724367e6d6e69da3dcc566632
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/242644
(cherry picked from commit e69fa302132661c71154a8cc0ff92155cdd834f9)
Reviewed-on: http://git-master/r/244436
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Yogish Kulkarni <yogishk@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoinput: misc: sensor drivers
Erik Lilliebjerg [Mon, 8 Jul 2013 12:55:56 +0000]
input: misc: sensor drivers

- reduce suspend time for compass and pressure
- fix MPU possible interrupt storm
- fix MPU sample frequency overrun
- fix MPU 9250 support for sw_rev > 2 HW
- add BMP280 support to BMP180 pressure driver
- optimize MPU FIFO timestamp algorithm
- add compass self-test
- add data interface

Bug 1313284
Bug 1311053
Bug 1295128
Bug 1256470
Bug 1236893

Change-Id: I4ffa906c07ed1d07ad3b89aea9eb83fb153b765d
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/246132
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agovide: tegra: dc: Update latency allowance for disabled windows
Daniel Solomon [Wed, 26 Jun 2013 20:49:42 +0000]
vide: tegra: dc: Update latency allowance for disabled windows

Currently when a window is disabled (window bandwidth is 0),
latency allowance is not updated; this leads to inaccurate
latency allowance calculations. Fix this by updating latency
allowance when a window becomes disabled.

Bug 1314628

Change-Id: Ifa36b6ddfeef343f41a0831b97cd871741a0f6cc
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/242571
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agomedia:video:tegra delete msleep delay
Karl Kim [Fri, 28 Jun 2013 08:13:13 +0000]
media:video:tegra delete msleep delay

AD5823 open time is long due to msleep delay.
It is no need.

Bug 1315484

Change-Id: Ic0527f2868d4d2d6e11dfd7b40ade4cf0373c44c
Signed-off-by: Karl Kim <kkim@nvidia.com>
Reviewed-on: http://git-master/r/243350
(cherry picked from commit fac48de13b3b9e43e13fcc6149f37d5c421415bb)
Reviewed-on: http://git-master/r/245957
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agomedia:video:tegra: adjusting ad5823 value for rev2
Karl Kim [Tue, 25 Jun 2013 02:21:26 +0000]
media:video:tegra: adjusting ad5823 value for rev2

settletime / POS_LOW / POS_HIGH value is adjusted by
result of ad5823 charaterization

Bug 1308712

Change-Id: I89c0471f3a49d15e54d0293c6a42f12f2d10edbb
Signed-off-by: Karl Kim <kkim@nvidia.com>
Reviewed-on: http://git-master/r/241635
(cherry picked from commit fabc0b3569d1ad2b21bb910ec074deb470ac617e)
Reviewed-on: http://git-master/r/245956
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoARM: tegra11: update macallan sys EDP data
Sivaram Nair [Tue, 25 Jun 2013 09:31:50 +0000]
ARM: tegra11: update macallan sys EDP data

Updated battery cap and depletion data.

Bug 1306298

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

6 years agoinput: touch: raydium: conditional wakelock calls
Naveen Kumar S [Mon, 1 Jul 2013 11:16:21 +0000]
input: touch: raydium: conditional wakelock calls

Tasks holding wakelocks in raydium driver intermittently obstruct
system from entering suspend state. Added conditional checks while
invoking wakelock functions so as to disable them if needed.

Bug 1314808

Change-Id: Ie71ea98661e56f2f50d406ee759b007ac877762a
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/243887
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>