5 years agousb: gadget: tegra: remove extra spin_unlock/lock
Rohith Seelaboyina [Mon, 18 Nov 2013 06:37:01 +0000]
usb: gadget: tegra: remove extra spin_unlock/lock

Remove the extra spin_unlock and spin_lock pair
in done() API because as per the documentation of complete()
It should be called with interrupts disabled and
It must not sleep.

Bug 1401730

Change-Id: I82d0a89ffe609e9aa8814fb9b61a83d741c3fbf9
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/333916
(cherry picked from commit 10f32cf3e8cfb61d060fd6279688739077f59588)
Reviewed-on: http://git-master/r/335567
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: create a DT header defining pincontrol
Laxman Dewangan [Wed, 27 Nov 2013 10:04:38 +0000]
ARM: tegra: create a DT header defining pincontrol

Defines the pincontrol constants which can be used by the
DTS file.

Change-Id: Ia59c853d0ca0a597b0ed0b3d73e63ecfc15f714f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/336161
GVS: Gerrit_Virtual_Submit

5 years agopinctrl: tegra: configure user state pinmux expliclty during probe
Laxman Dewangan [Wed, 27 Nov 2013 10:01:28 +0000]
pinctrl: tegra: configure user state pinmux expliclty during probe

Define two pincontrol user states, drive for drive group settings and
unused for setting unused pins in low power states.

Confgure these states during probing of pincontrol driver.

Change-Id: I144b03ce6fa1f377b7f01c2b64ec1d8dd8899ffd
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/336160
GVS: Gerrit_Virtual_Submit

5 years agopinctrl: tegra: add debugfs for dumping pincontrol registers
Laxman Dewangan [Wed, 27 Nov 2013 10:00:00 +0000]
pinctrl: tegra: add debugfs for dumping pincontrol registers

This will help the debugging of pincontrol by matching with
register settings.

Change-Id: I8af731b3208c7d0786d9c7ea18e2b758f33b1058
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/336159
GVS: Gerrit_Virtual_Submit

5 years agopinctrl: core: add support to configure user specified states
Laxman Dewangan [Wed, 27 Nov 2013 09:54:16 +0000]
pinctrl: core: add support to configure user specified states

Currently, pincontrol driver defines three states i.e. default, idle and
sleep. The default state get sets when the pincontrol driver gets
regsitered.

In tegra boards, we define three types of default, commpn pinmux table,
driver setting table and unused low-power pins pinmux tables.

Add the API to support the user specified state names to configure the
pinmux.

Change-Id: I0a6a234e891b5d53dbb8996db47984323463da48
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/336158
GVS: Gerrit_Virtual_Submit

5 years agopinctrl: tegra: add safe pinmux function option
Laxman Dewangan [Mon, 25 Nov 2013 09:47:29 +0000]
pinctrl: tegra: add safe pinmux function option

Add "safe" as the valid pinmux option from the DT.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

Change-Id: Ic09de7b2f521df45c5d00d7267689d36c1c8479a
Reviewed-on: http://git-master/r/335020
GVS: Gerrit_Virtual_Submit
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: add cw201x fuel guage driver
Shardar Shariff Md [Fri, 22 Nov 2013 09:42:41 +0000]
power: add cw201x fuel guage driver

Add Cellwise cw2015 fuel gauge driver

Bug 1399412

Change-Id: Id7e55efbbb59ce7fd4ba78689ffe67ccfec9ab1b
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/334428
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: laguna: Pass bq24715 charger platform data
Darbha Sriharsha [Wed, 27 Nov 2013 09:34:28 +0000]
arm: laguna: Pass bq24715 charger platform data

Pass bq24715 charger platform data for the Laguna platform

Bug 1271064

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

5 years agopower: bq2471x: use module_i2c_driver and not subsys_initcall
Darbha Sriharsha [Wed, 27 Nov 2013 11:17:49 +0000]
power: bq2471x: use module_i2c_driver and not subsys_initcall

Invoke the driver through module_i2c_driver instead of
subsys_initcall so that driver invocation is done after
fuel gauge driver which exports broadcast enable function

Bug 1271064

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

5 years agopower: bq2471x: Enable charging through fuel gauge broadcasts
Darbha Sriharsha [Wed, 27 Nov 2013 09:22:11 +0000]
power: bq2471x: Enable charging through fuel gauge broadcasts

On some platforms, battery charging is not enabled and configured
by directly programming the charger registers via i2c, but by
enabling charging current and charging voltage broadcast mode
on the fuel gauge chipset. Enable this feature in the bq24715
charger driver.

Bug 1271064

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

5 years agopower: sbs-battery: Provide API to enable broadcast mode
Darbha Sriharsha [Wed, 20 Nov 2013 10:46:23 +0000]
power: sbs-battery: Provide API to enable broadcast mode

Provide API to enable the broadcast of charging current
and charging voltage values to the battery charger chipset

Bug 1271064

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

5 years agopower: charger_gauge_comm: Add API to enable broadcast mode
Darbha Sriharsha [Wed, 20 Nov 2013 10:36:22 +0000]
power: charger_gauge_comm: Add API to enable broadcast mode

Some platforms facilitate the charging of battery by enabling
broadcast mode on the respective fuel gauge chipset. Export
an API to enable the battery charger driver to invoke the
broadcast mode on the fuel gauge.

Bug 1271064

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

5 years agoarm: tegra: add pm374 and pm370 support.
Hayden Du [Wed, 20 Nov 2013 11:55:13 +0000]
arm: tegra: add pm374 and pm370 support.

Bug 1405054

Change-Id: I505e3b8a132b425462459de0a470f9f6c89a245a
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/333403
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: ardbeg: Disable OD for GEN1_I2C
Chaitanya Bandi [Thu, 14 Nov 2013 05:52:14 +0000]
ARM: tegra: ardbeg: Disable OD for GEN1_I2C

Bug 1400844

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

5 years agostaging: iio: adc: palmas: Fix current setting
Jinyoung Park [Thu, 28 Nov 2013 01:58:35 +0000]
staging: iio: adc: palmas: Fix current setting

Fixed current setting for GPADC_IN3 dual mode reading.

Bug 1356128

Change-Id: Iee7ffe06b752f66b6d43c489972a5c10fd371cef
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/336433
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agowireless: enable rx filter once work mode set
Jiukai Ma [Wed, 20 Nov 2013 04:49:10 +0000]
wireless: enable rx filter once work mode set

Enable rx filter once the work mode set, only adding for active standby
feature
bug 1391929

Change-Id: I3f439b39d4c490bd94c63367dfc64155c7321573
Signed-off-by: Jiukai Ma <jiukaim@nvidia.com>
Reviewed-on: http://git-master/r/335979
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agomedia: platform: tegra: Update OV7695 settings
Frank Chen [Fri, 22 Nov 2013 01:19:04 +0000]
media: platform: tegra: Update OV7695 settings

- revert back to 09/21 settings
- change AE to be center weighted

Bug 1327952

Change-Id: I68b68f711934a3d8f3b5e5254ec9ca3a2de3d50d
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/336015
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm: dts: tegra124: add mipical node
Min-wuk Lee [Mon, 18 Nov 2013 08:22:30 +0000]
arm: dts: tegra124: add mipical node

Bug 1371533

Change-Id: I5530a3af8a12716aa2f1e65e565496e3af346fda
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/332303
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: dts: tegra114: fix MIPI_CAL default length
Min-wuk Lee [Mon, 18 Nov 2013 08:25:09 +0000]
arm: dts: tegra114: fix MIPI_CAL default length

Based on the TRM, tegra114 MIPI_CAL default length
is 256B, not 256KB.

Bug 1371533

Change-Id: Idbf2a1e727efcd668a84d89c32ad46e4cf30a6b9
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/332309
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: vcm30t124: Rename vcm30_t124 to vcm30t124.
Srinivas [Tue, 26 Nov 2013 05:23:07 +0000]
arm: tegra: vcm30t124: Rename vcm30_t124 to vcm30t124.

Removing underscore from board name.

Bug 1384384

Change-Id: Iafcf5a0091ec13dcfa4c6b0661abcc3eb8dad300
Signed-off-by: Srinivas <ysrinivas@nvidia.com>
Reviewed-on: http://git-master/r/328869
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Tested-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: gadget: tegra: remove spin_unlock/lock pair
Rohith Seelaboyina [Wed, 20 Nov 2013 05:36:52 +0000]
usb: gadget: tegra: remove spin_unlock/lock pair

Remove the extra spin unlock/lock pain while building
dtd, as data corruption seems to happen by swapping
of dtd when multiple gadget functions are loaded.
This changes will make build dtd as part of Critical
section, there by swapping of dtd's doesnt occur.

Bug 1380570

Change-Id: I69ffc92a294cba13e79e2a02382b0c8f6b8cb28d
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/329296
(cherry picked from commit 5551ebc537dcd311188496d2dc0edf96bc1b036a)
Reviewed-on: http://git-master/r/334931
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra12: dvfs: Add alternative display DVFS table
Alex Frid [Tue, 19 Nov 2013 06:53:29 +0000]
ARM: tegra12: dvfs: Add alternative display DVFS table

Added display DVFS table applicable only when one window B is active.
Updated comments on multiple display and sdmmc tables.

Bug 1397158

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

5 years agoARM: tegra: clock: Add EMC rate sysfs nodes
Alex Frid [Wed, 27 Nov 2013 05:37:33 +0000]
ARM: tegra: clock: Add EMC rate sysfs nodes

Added sysfs nodes to retrieve EMC rate:
/sys/kernel/tegra_emc/emc_rate
/sys/kernel/tegra_emc/emc_available_rates

Bug 1410043

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

5 years agoARM: tegra12: dvfs: Add core rail Vmax thermal profile
Alex Frid [Fri, 8 Nov 2013 05:31:16 +0000]
ARM: tegra12: dvfs: Add core rail Vmax thermal profile

Bug 1413311

Change-Id: I0c945ec3b058a0fe10baee3c5c0535e8f8f32042
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/335402
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra12: dvfs: Add core rail Vmax trip-points
Alex Frid [Fri, 8 Nov 2013 06:30:02 +0000]
ARM: tegra12: dvfs: Add core rail Vmax trip-points

Added core rail Vmax trip-points to PLL thermal zone on Tegra12
platforms. Made sure pid governor is installed in PLL zone (for
consistency with all other SOC-THERM zones, and to avoid incorrect
cooling device state reporting by default step-wise governor).

Bug 1413311

Change-Id: Ib06fd98ab39dc9a4411b571778600569d801b242
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/335923
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agousb: host: tegra: Fix panic in tegra_ehci_remove()
Vinayak Pane [Thu, 21 Nov 2013 21:48:58 +0000]
usb: host: tegra: Fix panic in tegra_ehci_remove()

device_remove_file() uses hcd->self.controller, but hcd is
already freed by usb_put_hcd(). This causes kernel panic
when USB device is being removed.

Fix this issue by calling the sysfs_remove_file() before kref_put()

Bug 1409766

Change-Id: I026b9fe193d93bb65c16d454083a270c410e62dc
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/334154
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: tegra: emc dvfs support for E1780 4GB board
Xue Dong [Mon, 18 Nov 2013 22:33:57 +0000]
arm: tegra: emc dvfs support for E1780 4GB board

bug 1409572

Change-Id: I317341d2b8ac43947322e16bdc01147946735c37
Signed-off-by: Xue Dong <xdong@nvidia.com>
Reviewed-on: http://git-master/r/332589
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: tegra: update emc dvfs table to v7
Xue Dong [Mon, 18 Nov 2013 22:03:08 +0000]
arm: tegra: update emc dvfs table to v7

bug 1350759
bug 1340913

Change-Id: I75c04442e0ff6f0913bb2821c4f07e139cbf92cd
Signed-off-by: Xue Dong <xdong@nvidia.com>
Reviewed-on: http://git-master/r/332574
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: tegra: update emc dvfs sequence to v12413
Xue Dong [Tue, 29 Oct 2013 19:44:54 +0000]
arm: tegra: update emc dvfs sequence to v12413

Change-Id: I0f07977520f5ffa6b646e368f2844e6b56d878fc
Signed-off-by: Xue Dong <xdong@nvidia.com>
Reviewed-on: http://git-master/r/305051
Tested-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agomedia: tegra_camera: use pdev->dev.id after using DT
Bryan Wu [Fri, 15 Nov 2013 01:00:15 +0000]
media: tegra_camera: use pdev->dev.id after using DT

VI device tree node was added into tegra124.dtsi.

 - use pdev->dev.id to match sensor driver's bus_id, otherwise it
   will fail to start to probe sensor driver.
 - the name of VI platform device changed, as a result clock
   probing will fail during driver starting. So correct dev_id by
   using the name of pdev->dev.
 - check the cam->reg_base mapping, if it's NULL further register
   operation will cause oops

Bug 1377330

Change-Id: Iacf93f88b4f37bbca1d310c16c6ed2ed0b786758
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/335947
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

5 years agoarm: tegra: macallan: increase 2nd fb size
Emma Yan [Fri, 22 Nov 2013 09:31:32 +0000]
arm: tegra: macallan: increase 2nd fb size

Bug 1412680

Change-Id: Ie750340dbb741f5368708222efc1dc027c53c709
Signed-off-by: Emma Yan <eyan@nvidia.com>
Reviewed-on: http://git-master/r/334422
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: config: tegra: enable QUOTA2_LOG
Louis Li [Fri, 22 Nov 2013 02:29:52 +0000]
ARM: config: tegra: enable QUOTA2_LOG

Enable QUOTA2_LOG so that data usage alert could be sent to framework

Bug 1317481

Change-Id: I7b12e0fd3a87c9d966a8a985cb5ab54faa4dde9f
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/334263
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra12: move mtk gps to device tree
bibhayr [Fri, 1 Nov 2013 17:25:00 +0000]
ARM: tegra12: move mtk gps to device tree

mtk gps is added as device node in loki
device tree.

Bug 1369054

Change-Id: I34b0d02b827c83f47fb6667443b2164a025228b1
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/325689
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agodrivers: misc: gps: add device tree support in mtk gps
bibhayr [Fri, 1 Nov 2013 17:15:27 +0000]
drivers: misc: gps: add device tree support in mtk gps

Bug 1369054

Change-Id: I6d32240b4d2ee2156784a954cd6964f0b43d0659
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/309848
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Tested-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoRemove writable permission for pinmux
Leavitt Zhang [Tue, 12 Nov 2013 06:50:35 +0000]
Remove writable permission for pinmux

To pass CTS 4.3, which guarantees that all
files under /sys are not writable for others.
Change the flag when creating tegera_pinmux.

Bug 1389582

Change-Id: Iac77fdc87dc9a7be7dd74e75f94656c9080855bb
Reviewed-on: http://git-master/r/335503
Reviewed-by: Lin Zhang (SW-TEGRA) <leavittz@nvidia.com>
Tested-by: Lin Zhang (SW-TEGRA) <leavittz@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra12: Fix T124 VE powergate clock list
Pablo Ceballos [Tue, 26 Nov 2013 23:25:55 +0000]
arm: tegra12: Fix T124 VE powergate clock list

The correct clock for the reset signal is "ispa" not "isp"

Bug 1406356

Change-Id: I14dc436c7080be734733893a7790d01926a2d1ce
Signed-off-by: Pablo Ceballos <pceballos@nvidia.com>
Reviewed-on: http://git-master/r/335901
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Chen <frankc@nvidia.com>
Tested-by: Frank Chen <frankc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoarm: tegra: vcm30t124: register SDMMC4 to platform
Seshagiri Holi [Mon, 18 Nov 2013 08:24:42 +0000]
arm: tegra: vcm30t124: register SDMMC4 to platform

As read/write errors were observed during booting
sequence, sdmmc4 device was disabled.
This was root-caused to mmcblkrpmb partition
being accessed as regular block device by
udev in the rootfs.

The udev issue has been fixed in rootfs.
Thus, enabling eMMC on SDMMC4 controller.

bug 1367536

Change-Id: Ie0fff210ec001c252e6f650ff82d8626f1927096
Signed-off-by: Seshagiri Holi <sholi@nvidia.com>
Reviewed-on: http://git-master/r/332831
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM: tegra: loki: add ffd memory table
Ray Poudrier [Mon, 4 Nov 2013 20:34:28 +0000]
ARM: tegra: loki: add ffd memory table

Bug 1393328

Change-Id: I8a6f583f3c9dfa37956b9ace34a6f71ee2dc0384
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/335731
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra: dvfs: Add core rail Vmax cooling device
Alex Frid [Thu, 7 Nov 2013 04:21:27 +0000]
ARM: tegra: dvfs: Add core rail Vmax cooling device

Added cooling device to cap frequencies of core shared buses based on
core rail Vmax thermal profile. Thermal limits implementation is an
extension of the existing core voltage capping mechanism, combined with
core voltage override limits, and limits set from user space.

Bug 1413311

Change-Id: I65e8b885f49318020e20d25425e257b7f0b0f66e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/335357
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Add core rail cap table to debugfs
Alex Frid [Tue, 26 Nov 2013 01:20:58 +0000]
ARM: tegra: dvfs: Add core rail cap table to debugfs

Change-Id: I59ac7a5e6e6d299ec53761b6f6e6c40e31a943d4
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/335333
GVS: Gerrit_Virtual_Submit
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra12: clock: Update capping shared users
Alex Frid [Mon, 25 Nov 2013 21:03:30 +0000]
ARM: tegra12: clock: Update capping shared users

- Added cap.vcore.<bus> (bus = emc, c2bus, c3bus, sbus, host1x) users;
moved core voltage cap mechanism to these new cap.vcore.<bus> users.
Kept for debugging purposes cap.<bus> users that were originally
utilized for core voltage capping.

- Removed edp capping users on core shared buses (no VDD_CORE EDP
limits on Tegra12)

Change-Id: Iff7d072beda0bcbb70c16517c470feb72b489b26
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/335332
GVS: Gerrit_Virtual_Submit
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoarm: tegra: move sd_settings to the panel board file
Kerwin Wan [Fri, 25 Oct 2013 09:25:41 +0000]
arm: tegra: move sd_settings to the panel board file

The configurable data of PRISM should be tuned per panel.
So PRISM settings are needed to move from board-<platform>-panel.c
to the specific panel board file.

Bug 1391869

Change-Id: I70d28d7813cb21fc46a421a40e3cf53cb98d4a03
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/303813
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: tegra: t124: ardbeg: edp: support system edp
Seema Khowala [Tue, 19 Nov 2013 00:42:14 +0000]
arm: tegra: t124: ardbeg: edp: support system edp

Bug 1326839
Bug 1345916
Bug 1345931
Bug 1339832

Change-Id: Iadd3bbda87195c2851a5253d72deb5e4187bd21d
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/332638
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agocommon: DMA-mapping: add DMA_ATTR_ALLOC_EXACT_SIZE attribute
Vandana Salve [Fri, 22 Nov 2013 09:26:32 +0000]
common: DMA-mapping: add DMA_ATTR_ALLOC_EXACT_SIZE attribute

Add DMA_ATTR_ALLOC_EXACT_SIZE attribute to DMA-mapping subsystem

By default dma_alloc/free_coherent allocates/release memory
in order of 2^pages. By specifying this attribute, allocation/release
can be done for exact size of memory thereby reducing internal memory
fragmentation

bug 1380639

Change-Id: I49eb6a0caeb85aa84ff75fab6a4cf3c6a6d96abb
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/334416
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoarm: tegra: ardbeg: E1782: Add ardbeg_sata m/c
Seema Khowala [Fri, 15 Nov 2013 20:16:27 +0000]
arm: tegra: ardbeg: E1782: Add ardbeg_sata m/c

Bug 1361265

Change-Id: I810c2072684d25acb6f0dfd3400eb0cf2286f25d
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/305036
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra: loki: Add compass support
Xiaohui Tao [Fri, 8 Nov 2013 19:56:45 +0000]
ARM: tegra: loki: Add compass support

Support for compass on loki

Bug 1372670

Change-Id: I482882fb3a4a389a5990fc6e8489cf5dc2a93bd9
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/328417
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: add device tree support for DC
Min-wuk Lee [Tue, 30 Apr 2013 14:11:25 +0000]
video: tegra: add device tree support for DC

Add device tree support for display controller.
This change is for Tegra114 and Tegra124.

Bug 1371533
Bug 1240921

Change-Id: I28ddc2e3b9a9a818ebc330dcf90ee879420726ab
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/240006
(cherry picked from commit d27e77cadf76c4c38f12f476ad6c678b227ef8c4)
Reviewed-on: http://git-master/r/326443
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarm: tegra: extern sd_brightness relocation
Min-wuk Lee [Tue, 26 Nov 2013 01:58:25 +0000]
arm: tegra: extern sd_brightness relocation

Move extern sd_brightness to dc.h, so display related
driver can avoid extern variable usage.

Bug 1371533

Change-Id: I785dc1e0085ace74d2463bf70512f964ff80ef65
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/335323
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoEDP: tn8: support 2d rbat_lut tables
Timo Alho [Mon, 25 Nov 2013 10:03:39 +0000]
EDP: tn8: support 2d rbat_lut tables

Battery impedance tables are modified to two dimensional (rbat as a
function of temperatur and state of charge). This patch updates tn8
data accoringly.

bug 1412781

Change-Id: I3da0fe5f8fd019b1b804c65a67a423b7065ee465
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/335071
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoEDP: add temperature dependant rbat table support
Timo Alho [Mon, 25 Nov 2013 09:59:35 +0000]
EDP: add temperature dependant rbat table support

Previously, only state of charge was considered when determining
battery impedance. In practice, impedance is dependant on temperature
and state of charge.

This patch adds support for two dimensional battery impedance
(rbat_lut) tables. The rbat value is bi-linearly interpolated from
table as a function of temperature and state of charge.

bug 1412781

Change-Id: I8656aa13f0ebebb848f536194b37420a0438d2ac
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/335070
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agovideo: tegra: host: Fix uninterruptible waits
Terje Bergstrom [Tue, 26 Nov 2013 07:58:52 +0000]
video: tegra: host: Fix uninterruptible waits

Uninterruptible sync point waits used the interruptible kind of
wake_up(). This does not work and uninterruptible waits had to
always wait until timeout expired.

Bug 1389532

Change-Id: I098d617b21599d53145b7b2c4c09677d507876d4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/335483
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agonet: wireless: bcmdhd: add flag to enable MCC
Om Prakash Singh [Wed, 20 Nov 2013 15:58:50 +0000]
net: wireless: bcmdhd: add flag to enable MCC

With Android-KK upgrade MCC(Multi Channel Concurrency) is
by default enabled from supplicant, which impact on Miracast
performance so we are disabling it from driver

Bug 1410893

Change-Id: I8746cacdcd2e7e12205f90b0ec47cfb87aaf79aa
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/333471
(cherry picked from commit 56b14ebe7ec24b972b32ea038417b8643d0dc6f4)
Reviewed-on: http://git-master/r/335465
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM: tegra12: Remove old automotive defconfig
Ashwin Joshi [Mon, 25 Nov 2013 12:46:55 +0000]
ARM: tegra12: Remove old automotive defconfig

Automotive platform name got changed from vcm30-t124 to vcm30t124. So,
delete deprecated defconfig.

Bug 1365252

Change-Id: I23776946a3f7625f1ffe8b6dc4feb19b978e2904
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/335084
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: config: l4t: enable ext4 to support ext2,3
Naveen Kumar S [Thu, 21 Nov 2013 08:53:48 +0000]
arm: config: l4t: enable ext4 to support ext2,3

Enabled CONFIG_EXT4_USE_FOR_EXT23 by disabling EXT2 and EXT3
as EXT4 can support both EXT2 and EXT3

bug 1404831

Change-Id: Ia25acd2ec33a716514852703da9918e58027e443
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/333934
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: tegra: ardbeg: enable ro gpio for sdcard
Shreshtha Sahu [Fri, 22 Nov 2013 12:05:48 +0000]
arm: tegra: ardbeg: enable ro gpio for sdcard

Enable SDCARD RO gpio pin as TEGRA_GPIO_PQ4 for SDI1

Bug 1404840

Change-Id: Iac8ff3f1fe4bbbcf1ec53b9416e0809414ef84cf
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/334496
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agovideo: tegra: host: fix regops flags handling
Eric Eells [Wed, 20 Nov 2013 00:36:43 +0000]
video: tegra: host: fix regops flags handling

Bug 1396379

Change-Id: I3f67381560fae62c71793db0142d30055d19155f
Signed-off-by: Eric Eells <eeells@nvidia.com>
Reviewed-on: http://git-master/r/333127
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Simon Song <simons@nvidia.com>
Tested-by: Simon Song <simons@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo:tegra:dc L4T unblank display corruption
Jong Kim [Fri, 22 Nov 2013 23:29:53 +0000]
video:tegra:dc L4T unblank display corruption

Fix L4T unblank display corruption problem by save/restore last
window context.

bug 1408678

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

5 years agoarm: tegra12: loki: New fan curve for Loki/Foster
Anshul Jain [Sat, 23 Nov 2013 01:44:35 +0000]
arm: tegra12: loki: New fan curve for Loki/Foster

This change declares new fan curves for loki and foster.

Bug 1364451

Change-Id: I06540f10afc389b9291f1c6dd5c9f0802459d3e1
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/334779
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoloki: Support for NCT thermistor and tdiode
Ankita Garg [Fri, 25 Oct 2013 23:15:52 +0000]
loki: Support for NCT thermistor and tdiode

Bug 1356128

Change-Id: Ic045e0c6d73a6c0ac5a9f7444889753c7416ee2d
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/304052
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra12: dvfs: Update CPU minimum voltage
Alex Frid [Sat, 9 Nov 2013 06:30:04 +0000]
ARM: tegra12: dvfs: Update CPU minimum voltage

Based on characterization results:
- Lowered CPU Vmin setting in dfll mode to 750mV (from 800mV)
- Added CPU Vmin thermal profile for different temperature ranges
- Adjusted CPU rail voltage range to include new low voltages

Since above changes exposed not characterized yet, CPU voltages at
low frequencies in pll mode, clamped them to 800mV, for now.

Bug 1342499

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

5 years agoARM: tegra: Enable ISOMgr for t124
Chao Xu [Fri, 15 Nov 2013 19:12:29 +0000]
ARM: tegra: Enable ISOMgr for t124

Bug 1162232

Change-Id: I77e7870297b651375573836e2f3deeb343b80744
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/331874
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: host: pod: refactor load algorithm
Samuel Russell [Tue, 12 Nov 2013 23:02:56 +0000]
video: tegra: host: pod: refactor load algorithm

Overhaul the load-based portion of 3dfs by
 - using a simple ema to track idle
 - remove deadcode related to adjust
 - use a traditional load targetting algorithm
 - only jump max/3 on very high loads

Change-Id: I2f45f2604586a0f57a378a369549a19c8bcbe6a0
Signed-off-by: Samuel Russell <samuelr@nvidia.com>
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/331885
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoRevert "arm: tegra12: Loki: Add C2 debug port support"
Juha Tukkinen [Mon, 25 Nov 2013 11:03:22 +0000]
Revert "arm: tegra12: Loki: Add C2 debug port support"

This reverts commit 2bd68779e8a2c04ea2f6aaf34884765988d69fb0.

Change-Id: I373a35abf5ad84d0b43ca411cf844e786f5574cb

5 years agovideo: tegra: host: Register gk20a for touch boost
Terje Bergstrom [Wed, 9 Oct 2013 12:22:53 +0000]
video: tegra: host: Register gk20a for touch boost

Register gk20a device to be notifier on touch event.

Bug 1364240

Change-Id: Id903aca62840cddb3c1ad753924d0ba01492dbb0
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: fix regulator_get return value check
Mallikarjun Kasoju [Fri, 22 Nov 2013 11:24:23 +0000]
video: tegra: fix regulator_get return value check

regulator_get() returns either error pointer or valid pointers.
It never returns NULL. Hence it is not a correct to check
the return pointer as IS_ERR_OR_NULL(). It should be only IS_ERR()

Bug 1410234

Change-Id: Ie5362dfecf00919f081946e766a83b7076f517e1
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/334479
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoPCI: tegra: fix regulator_get return value check
Mallikarjun Kasoju [Fri, 22 Nov 2013 10:41:11 +0000]
PCI: tegra: fix regulator_get return value check

regulator_get() returns either error pointer or valid pointers.
It never returns NULL. Hence it is not a correct to check
the return pointer as IS_ERR_OR_NULL(). It should be only IS_ERR()

Bug 1410234

Change-Id: If132c2060aa315766a324098afa4c425fd2ce57f
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/334477
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra: fuse: proper check for regulator_get
Mallikarjun Kasoju [Fri, 22 Nov 2013 10:33:53 +0000]
arm: tegra: fuse: proper check for regulator_get

regulator_get() returns either error pointer or valid pointers.
It never returns NULL. Hence it is not a correct to check
the return pointer as IS_ERR_OR_NULL(). It should be only IS_ERR().

Bug 1410234

Change-Id: I0cc162e4970014696cc855b93ce1478f57b6c7c5
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/334475
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agomedia: tegra: fix regulator_get return value check
Mallikarjun Kasoju [Fri, 22 Nov 2013 10:23:28 +0000]
media: tegra: fix regulator_get return value check

regulator_get() returns either error pointer or valid pointers.
It never returns NULL. Hence it is not a correct to check
the return pointer as IS_ERR_OR_NULL(). It should be only IS_ERR().

Bug 1410234

Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>

Change-Id: Ic1caa1433f4ee9b49eca3309970cac82d1ab7d6a
Reviewed-on: http://git-master/r/334473
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: fix regulator_get() return value check
Mallikarjun Kasoju [Fri, 22 Nov 2013 10:10:12 +0000]
ARM: tegra: fix regulator_get() return value check

regulator_get() returns either error pointer or valid pointers.
It never returns NULL. Hence it is not a correct to check
the return pointer as IS_ERR_OR_NULL(). It should be only IS_ERR().

Bug 1410234

Change-Id: I8cf668ca0bced49ee4f47ccf9b02d70fd0263cd6
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/334471
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra12: Loki: Add C2 debug port support
Will Wu [Mon, 18 Nov 2013 05:05:01 +0000]
arm: tegra12: Loki: Add C2 debug port support

Enable C2 port for Loki platform for debugging microcontroller
in Joystick in case of mcu failure.

Bug 1375728

Change-Id: I85fd8eed598c2f68ab74faf2d05f75e48b338568
Signed-off-by: Will Wu <willw@nvidia.com>
Reviewed-on: http://git-master/r/332705
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agousb: gadget: tegra: get DCP current from platform data
Rakesh Bodla [Fri, 22 Nov 2013 14:50:55 +0000]
usb: gadget: tegra: get DCP current from platform data

Get DCP current limit from platform data, if it is
not passed used default value specified.

Bug 1403563

Change-Id: I65fba7b6329955ef20e8ce0f738e2842b255b8da
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/332255
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: usb: set DCP current for loki
Rakesh Bodla [Fri, 22 Nov 2013 14:48:52 +0000]
ARM: tegra: usb: set DCP current for loki

Loki comes with charger which is capable of charging
at 2A, add dcp current limit in platform data.
Set DCP current limit for loki to 2A.

Bug 1403563

Change-Id: If4e72ecbf756e658ebe2a29c5490ad791163f655
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/332734
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agovideo: tegra: hdmi: check powergate status
pdabade [Fri, 22 Nov 2013 09:57:40 +0000]
video: tegra: hdmi: check powergate status

Checking powergate status before dumping registers.
If power is gated, return quietly.

bug 1403057

Change-Id: I7791ede351b3f0ecec909f99d8ec279f33d37700
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/333953
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agommc: tegra: Fix ddr clock selection in ddr mode
Pavan Kunapuli [Thu, 21 Nov 2013 13:26:46 +0000]
mmc: tegra: Fix ddr clock selection in ddr mode

This patch fixes the condition used to choose ddr/sdr clock.
When ddr mode is set for first time, ddr clock is selected.
But, in subsequent set_ios calls, the incorrect conditional
check leads to sdr clock selection for ddr mode as well.

Bug 1371250

Change-Id: Ia81371871e13059f16a016028475d3d63d470666
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/334056
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agonet: wireless: bcmdhd: enable WiFi EDP support
Om Prakash Singh [Fri, 22 Nov 2013 11:11:00 +0000]
net: wireless: bcmdhd: enable WiFi EDP support

apply missing change from:
commit 0493f65a029a9ffe2ce52e61ab34e2ce4c44df3a
net: wireless: bcmdhd: add EDP support (revised framework)

remove old edp framework code:
commit 342d744a07cb56aa9577acc27ebf49dbee8bd21a
net: wireless: bcmdhd: Wifi EDP support

Bug 1160685

Change-Id: Ia0fc8652d11e6d9252d102245a2127018ed87de3
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/334333
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoUSB: ehci: tegra: destroy mutex when driver remove
Suresh Mangipudi [Sat, 23 Nov 2013 08:39:59 +0000]
USB: ehci: tegra: destroy mutex when driver remove

mutex_destroy to be called when the driver is removed.

BUG 1401358

Change-Id: I43b3a92b06830acc85fd7d218b32d75cb5c34d24
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/334848
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoUSB: tegra: Fix the print message
Suresh Mangipudi [Tue, 19 Nov 2013 08:19:46 +0000]
USB: tegra: Fix the print message

Update the print message when interrupts occur.

Bug 1395732

Change-Id: I8b9a64d290d20ca888725ec279e761baf1bf80ab
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/332821
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: Tegra12: DVFS: Add audio codec clocks to dvfs table
Krishna Sitaraman [Wed, 20 Nov 2013 21:30:54 +0000]
ARM: Tegra12: DVFS:  Add audio codec clocks to dvfs table

Audio clocks hda, hda2codec_2x fail at 800mV.  Adding them to dvfs table to
prevent switching to 800mV when these are active.

Change-Id: I111d303ab675475776af9fe92141a9d6090da088
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/333612
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: Tegra12: Clocks: Add xusb from dvfs table
Krishna Sitaraman [Wed, 20 Nov 2013 21:20:35 +0000]
ARM: Tegra12: Clocks:  Add xusb from dvfs table

Xusb cannot be run at 800mv.  Hence adding it back to dvfs table to prevent switching to
800mV when xusb is active.

Bug 1342499

Change-Id: I2d6a3299528028e2f6db11e0f8056d623f27db5e
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/333611
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: Tegra12: DVFS: Update display dvfs clocks
Krishna Sitaraman [Wed, 20 Nov 2013 21:07:59 +0000]
ARM: Tegra12: DVFS: Update display dvfs clocks

Bug 1342499

Change-Id: I6b1609f0b9744f3872ad5e35f404893aff6f1396
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/333610
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: Tegra12: DVFS: Update SOC dvfs table for clock buses and cpu_lp
Krishna Sitaraman [Wed, 20 Nov 2013 20:44:15 +0000]
ARM: Tegra12: DVFS:  Update SOC dvfs table for clock buses and cpu_lp

Bug 1342499

Change-Id: I8ba9eac503e217c9dc880907381eeabdf159f685
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/333609
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra12: power: Specify PMU undershoot gaurd-band
Seema Khowala [Thu, 21 Nov 2013 20:43:27 +0000]
ARM: tegra12: power: Specify PMU undershoot gaurd-band

Specified PMU undershoot gaurd-band 100mV for TN8 (E1736 PMU)

Bug 1285525

Change-Id: I5d9b89204db4584653ab3bd6be259a20fbe0a5c2
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/334124
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoinput: touch: synaptics: Add ftrace log support
Vincent Chen [Wed, 30 Oct 2013 02:21:52 +0000]
input: touch: synaptics: Add ftrace log support

Enable Synaptics interrupt handler ftrace logging

Bug 1394727

Change-Id: Iac0cb5a4c8c0c6d94a344f99527b34ce23cad469
Signed-off-by: Vincent Chen <zochen@nvidia.com>
Reviewed-on: http://git-master/r/305172
(cherry picked from commit 05b43663f563a695e2c2981fb673f932b9796398)
Reviewed-on: http://git-master/r/330899
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: mipi_cal: check powergate status
pdabade [Fri, 22 Nov 2013 10:03:32 +0000]
video: tegra: mipi_cal: check powergate status

Checking powergate status before dumping registers.
If power is gated, return quitely.

bug 1403057

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

5 years agoarch: config: tegra update mods defconfig
Vivek Aseeja [Thu, 21 Nov 2013 22:12:38 +0000]
arch: config: tegra update mods defconfig

Enable PINCTRL_AS3722 and POWER_RESET_AS3722

Bug 1409265

Change-Id: I8aee3a59f035f6c04d80ca05ae34eecea1abcd3b
Reviewed-on: http://git-master/r/334160
Reviewed-by: Vivek Aseeja <vaseeja@nvidia.com>
Tested-by: Vivek Aseeja <vaseeja@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agousb: xhci: tegra: fix dt parse error
Krishna Yarlagadda [Wed, 13 Nov 2013 09:59:55 +0000]
usb: xhci: tegra: fix dt parse error

In dt all constants are considered to be u32 and when read back in
driver we would get msb (which is zero always for a u8). changing
driver to read the value as u32 and then save to u8. this will
ensure proper conversion

Change-Id: I23e5ad3476a2f4eace759560e50eb073cfad9cdd
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/330208
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: dt: tegra: xhci: dt entry for hsic on ardbeg
Krishna Yarlagadda [Wed, 13 Nov 2013 08:55:29 +0000]
ARM: dt: tegra: xhci: dt entry for hsic on ardbeg

hsic config values are added as an array in the
order defined in structure

Bug 1342607

Change-Id: I5033408f487ebab86c98a6fce77c4a1e56b13c6f
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/330164
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agommc: sdhci: enable EMMC delayed clock gating
Bitan Biswas [Mon, 11 Nov 2013 05:49:18 +0000]
mmc: sdhci: enable EMMC delayed clock gating

Aggressive clock gating was reported as degrading
random performance numbers. Similar to SDIO we
are enabling delayed clock gating of EMMC. This
reduces the overhead of clock enable and disable.
 - clock gating happens if EMMC interface is idle
   for over 20msec

bug 1372006

Change-Id: If9f08af6d5ae55e4c30aeef0a36d8c9fdd5fe5a8
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/328775
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>

5 years agousb: xhci: tegra: support hsic dt config
Krishna Yarlagadda [Wed, 13 Nov 2013 08:52:29 +0000]
usb: xhci: tegra: support hsic dt config

Changes to read hsic cofig data from dt and change header
to have all u8 values which simplifies parsing dt

Bug 1342607

Change-Id: I0c547a32a347e561eccd35acc16c824cd105e69c
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/330163
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agovideo: tegra: host: Add debug_dump_locked()
Arto Merilainen [Thu, 21 Nov 2013 12:42:16 +0000]
video: tegra: host: Add debug_dump_locked()

In some occasions we already have lock while calling debug
dump or we lock it immediately after calling the debug dump. This
patch adds an alternative version of the function to skip locking
of a single cdma structure thereby allowing the caller to be
responsible of locking.

Bug 1408228

Change-Id: Ieb436307a32c89f25e508dbb17b736219737e1ec
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/334051
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: Enable GPU rail gating
Terje Bergstrom [Wed, 9 Oct 2013 10:16:59 +0000]
video: tegra: host: Enable GPU rail gating

This reverts commits be06c1b68a9427d38673f9a00612d93414263be0 and
f96d264eec6338b2e08d05465d1c6d08d3eb658 and enables dynamic rail
gating.

Bug 1364240

Change-Id: Ifc0014530c8222cd51af85f60117d338fc39a48a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/334166

5 years agoRevert "video: tegra: host: Disable gk20a powergating"
Prashant Malani [Sat, 9 Nov 2013 02:10:37 +0000]
Revert "video: tegra: host: Disable gk20a powergating"

Bug 1404859

This reverts commit 5fd204d40cf820d3603e133d7c2781f156a2cb08.

Change-Id: I70b94920deeec8da76ce7ed9edc2ed57e7a6cb3f
Reviewed-on: http://git-master/r/328556
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: Enable only gk20a at dump
Terje Bergstrom [Fri, 22 Nov 2013 08:45:17 +0000]
video: tegra: host: Enable only gk20a at dump

At gk20a channel dump only gk20a needs to be turned on.

Bug 1364240

Change-Id: Iac40dba3105d31049e2839f10f3bae95421cd741
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/334398
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agovideo: tegra: host: Do not touch clocks in poweron
Terje Bergstrom [Fri, 22 Nov 2013 08:41:54 +0000]
video: tegra: host: Do not touch clocks in poweron

Bug 1364240

Change-Id: I3de437e875bb04ad2968efcde300c4b8cb8f2e4c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/334397
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra: Initialize VENC refcount
Terje Bergstrom [Wed, 20 Nov 2013 06:08:52 +0000]
ARM: tegra: Initialize VENC refcount

Initialize VENC refcount to 1 if power domain is already on. This
prevents an underflow of refcount when the driver power gates VENC
at probe.

Bug 1400020

Change-Id: Icf3721d3270eb8d97cf8dfb70710a5dab9555e57
signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/334061
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Pablo Ceballos <pceballos@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra: Remove definition and reference of tegra_pinmux_device
Laxman Dewangan [Wed, 20 Nov 2013 13:38:28 +0000]
ARM: tegra: Remove definition and reference of tegra_pinmux_device

Platform device tegra_pinmux_device is used for legacy pinmux driver
which has been removed in order to use the pincontrol driver.

Hence tegra_pinmux_device is no more used and removing it.

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

5 years agoARM: tegra: remove all pinmux tables
Laxman Dewangan [Wed, 20 Nov 2013 13:34:33 +0000]
ARM: tegra: remove all pinmux tables

Pincontrol driver is moved to drivers/pinctrl and the tables
lying on the mach-tegra is no more used.

Hence removing these table files from code tree.

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

5 years agoARM: tegra: change all pinmux apis to inline
Laxman Dewangan [Wed, 20 Nov 2013 13:32:25 +0000]
ARM: tegra: change all pinmux apis to inline

Change all pinmux wrapper APIs to inline and use the pincontrol
APIs.

Remove the Make of the source file which implement these pinmux APIs.

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

5 years agopinctrl: tegra: use pinmux define header only
Laxman Dewangan [Wed, 20 Nov 2013 13:28:18 +0000]
pinctrl: tegra: use pinmux define header only

The data type definitons of tegra pinmux is in mach/pinmux-defines.h
and so including this file only instead of mach/pinmux.h

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

5 years agoARM: tegra: pinmux: move pinmux datatype definiton to separate file
Laxman Dewangan [Wed, 20 Nov 2013 13:24:14 +0000]
ARM: tegra: pinmux: move pinmux datatype definiton to separate file

Move the pinmux data type definition to different file as
mach/pinmux-defines.h becasue pincontrol driver requires
these definitons only.

This will also avoid circular dependency as Pinmux API will use
the pincontrol API and pincontrol APIs will use the pinmux definitions
Currenlty pinmux APIs and deinitions are on same header file.

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