]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/log
sojka/nv-tegra/linux-3.10.git
10 years agovideo: tegra: dc: fix uninitialized var warning
Jon Mayo [Thu, 6 Feb 2014 02:30:51 +0000 (18:30 -0800)]
video: tegra: dc: fix uninitialized var warning

if win_num is 0, then post_sync_val is not initialized.
Set it to 0 to match post_sync_id's default of NVSYNCPT_INVALID.

Change-Id: I8d4c4b1110d396978182c52e38ebff482490f64a
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/364131
Reviewed-by: Automatic_Commit_Validation_User
10 years agovideo: tegra: dc: clean up checkpatch warnings
Jon Mayo [Wed, 5 Feb 2014 21:40:36 +0000 (13:40 -0800)]
video: tegra: dc: clean up checkpatch warnings

Clean up warnings from checkpatch and gcc.

Change-Id: I08bd2fc4374d0ccc644d9d16fe80db9c6521aa61
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/364083
Reviewed-by: Daniel Solomon <daniels@nvidia.com>
10 years agoASoC: tegra-alt: vcm30t124: Add dai link for spdif
Songhee Baek [Wed, 11 Dec 2013 23:48:05 +0000 (15:48 -0800)]
ASoC: tegra-alt: vcm30t124: Add dai link for spdif

This change is for adding spdif dai in vcm30t124
machine driver.

Bug 1423733

Change-Id: I1a0bfed96092d0b18b6b6b8ece2b742de3054630
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/344452
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agoARM: tegra: vcm30t124: Instantiate SPDIF in DT
Songhee Baek [Thu, 12 Dec 2013 18:41:20 +0000 (10:41 -0800)]
ARM: tegra: vcm30t124: Instantiate SPDIF in DT

This change is to use SPDIF in vcm30t124 platform.

Bug 1423733

Change-Id: I491615f74a992732b4f5706f44527a54fe7b3bd1
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/344899
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agoARM: tegra: vcm30t124: Set SPDIF pinmux
Songhee Baek [Mon, 9 Dec 2013 21:37:49 +0000 (13:37 -0800)]
ARM: tegra: vcm30t124: Set SPDIF pinmux

This change is to use SPDIF from UARTB.

Bug 1423733

Change-Id: I2706437489069b38ca9e59318727dfbfc0646de5
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/340029
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agoAdd firmware path to the firmware search paths.
Neil Gabriel [Mon, 27 Jan 2014 16:18:22 +0000 (10:18 -0600)]
Add firmware path to the firmware search paths.

If the kernel is able to find firmware in the kernel firmware
search path (when requested through request_firmware()) it will
load it directly without the involvement of the usermodehelper/
udev process (which is not always available).

Bug 1403956

Change-Id: Ic66b6dc306002c7baac541cf94ad89d29c1d397d
Signed-off-by: Neil Gabriel <ngabriel@nvidia.com>
Reviewed-on: http://git-master/r/360474
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/362435

10 years agoAttempt kernel firmware load before going to udev.
Neil Gabriel [Tue, 21 Jan 2014 18:03:59 +0000 (12:03 -0600)]
Attempt kernel firmware load before going to udev.

request_firmware() should fall back to usermodehelper
routines to load firmware only after a failed attempt
to load it directly. Prior to this change, the code
will attempt to lock the usermodehelper state before
attempting to load the firmware directly. If the
usermodehelper is disabled, the lock attempts will
fail and request_firmware() will exit without even
attempting a direct load.

Bug 1403956

Change-Id: I26c502d30657eab3d382d139618f9daa366068cf
Signed-off-by: Neil Gabriel <ngabriel@nvidia.com>
Reviewed-on: http://git-master/r/358303
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/362065

10 years agomtd: tegra-nor: Cleanup reference to MTD_NOR_TEGRA
Ashwin Joshi [Thu, 23 Jan 2014 10:16:17 +0000 (15:46 +0530)]
mtd: tegra-nor: Cleanup reference to MTD_NOR_TEGRA

Remove reference to MTD_NOR_TEGRA as this old driver has been removed.

Bug 1352942

Change-Id: I205b0b9bb411ea55ad4d8b742e6e9a0bc96c37f0
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/359300
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agoARM: tegra: iomap: Cleanup
Ashwin Joshi [Thu, 23 Jan 2014 10:15:29 +0000 (15:45 +0530)]
ARM: tegra: iomap: Cleanup

Remove reference to CONFIG_MTD_NOR_TEGRA
Bug 1352942

Change-Id: I9b9bde74159d44f426d197f67ecba297103b5640
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/359299
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agomtd: tegra-nor: Remove old tegra mapping driver
Ashwin Joshi [Thu, 23 Jan 2014 08:32:03 +0000 (14:02 +0530)]
mtd: tegra-nor: Remove old tegra mapping driver

Remove old tegra mapping driver.
Bug 1352942

Change-Id: I606b526e02a5e7ac84bb4023ebd058a286d55ef9
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/359298
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agopower: lc709203f:move soc scaling to work thread
Venkat Reddy Talla [Wed, 5 Feb 2014 07:22:02 +0000 (12:52 +0530)]
power: lc709203f:move soc scaling to work thread

Based on battery soc value battery health
and other battery information passed to framework layer,
to sync with battery information such as health and capacity
level moving get_scaled_soc api to work thread.

Change-Id: I9aad0a7ade95973773629da84855c89d4acc170d
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/363680
(cherry picked from commit 45c06515b2eff991c5e91df8e863ccb2f0a672a6)
Reviewed-on: http://git-master/r/364208
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agopower: max17048: report scaled SoC by manipulating kernel threshold
Venkat Reddy Talla [Wed, 29 Jan 2014 11:40:55 +0000 (17:10 +0530)]
power: max17048: report scaled SoC by manipulating kernel threshold

Make kernel threshold SoC as 0% and scale the SoC read from device
as:
Read from device: 0 to threshold -> report 0%
Read from device: threshold+1 to 100% -> report as 1 to 100%.

Change-Id: I08db7ebc08f3f9bb7e69d7397ce5b5d7a98f516a
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/361480
(cherry picked from commit 826bbd7843f06a960f8f7832fd29f6357164646d)
Reviewed-on: http://git-master/r/364229
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agopower: bq2419x: cleanup in output charging current sysfs
Laxman Dewangan [Wed, 5 Feb 2014 12:34:26 +0000 (18:04 +0530)]
power: bq2419x: cleanup in output charging current sysfs

Simplify the code implementation for the sysfs of output
charging and remove non-required helper function.

Change-Id: Iff285063770bd2101cf564c75a93c409db2f7ea8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/363840
(cherry picked from commit 80acde0bbc82f84e8af55ee7e1585d1647403828)

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

10 years agolinux: of: add api to get count of u32 array
Laxman Dewangan [Wed, 5 Feb 2014 12:12:02 +0000 (17:42 +0530)]
linux: of: add api to get count of u32 array

Add generic API to get the value count of u32 type array
from given property.

This helps of reading array data.

Change-Id: I12fab0c582df78720adf75f0bc91ba7505e63d22
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/363839
(cherry picked from commit a81f3da06f745fc9423b95fa624aadebf0cdf3dc)

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

10 years agovideo: tegra: host: Survive failing pm_runtime_get_sync
Terje Bergstrom [Wed, 5 Feb 2014 11:57:22 +0000 (13:57 +0200)]
video: tegra: host: Survive failing pm_runtime_get_sync

Do not crash if pm_runtime_get_sync() fails.

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

10 years agoPM/Domain: Propagate restore_state error to caller
Terje Bergstrom [Wed, 5 Feb 2014 13:50:34 +0000 (15:50 +0200)]
PM/Domain: Propagate restore_state error to caller

genpd_restore_dev() might fail. Propagate the failure to caller
of pm_genpd_runtime_resume().

Change-Id: Ie20187ecc90a69d989a531db776d52c81956b899
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/363858
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agoPatch to set MEMIO to 1.2V for E1971 and E1973
Hridya [Tue, 28 Jan 2014 17:41:59 +0000 (12:41 -0500)]
Patch to set MEMIO to 1.2V for E1971 and E1973

Change-Id: Id8d12c1ace0d1af40a09e577544c937caa424897
Signed-off-by: Hridya <hvalsaraju@nvidia.com>
Reviewed-on: http://git-master/r/361078
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agosound: hda: do not decrement refcount on resume
Mohan Kumar [Wed, 29 Jan 2014 12:17:05 +0000 (17:47 +0530)]
sound: hda: do not decrement refcount on resume

after system resume device state is change to active
and codec power work handler takes care of powering
down if it is idle for some time.

Bug 1447475

Change-Id: Icabb82ebacc7bf79730e2b7aaac1a87675959cf2
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: http://git-master/r/361495
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
10 years agovideo: tegra: host: Null out channel vm on free
Lauri Peltonen [Wed, 8 Jan 2014 22:27:45 +0000 (00:27 +0200)]
video: tegra: host: Null out channel vm on free

Leaving a pointer to vm in the list of unused channels list is
dangerous, since the vm may get free'd after the channel is released.

Also detect if a channel is bound by testing whether the vm pointer is
null. This eliminates a dependency to nvhost_hwctx.

Bug 1434573

Change-Id: I754cfb56a3d9c05520d99d4a9805d0720a779c12
Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com>
Reviewed-on: http://git-master/r/353454
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agovideo: tegra: host: Deallocate VI/ISP isomgr BW
Sudhir Vyas [Mon, 3 Feb 2014 08:44:19 +0000 (14:14 +0530)]
video: tegra: host: Deallocate VI/ISP isomgr BW

* Add release function to deallocate isomgr BW
on camera exit. Due to this missing deallocation
VI/ISP emc clocks seen ON even after camera stops.

* Add nvhost_client_device_release() call in ISP
driver.

Bug 1443888

Change-Id: I8b8f891233593ab200229218f0e5c87a3803483b
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/362888
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>
10 years agoARM: tegra: set uda drive strength to avoid ovsershoot
Laxman Dewangan [Tue, 4 Feb 2014 10:27:17 +0000 (15:57 +0530)]
ARM: tegra: set uda drive strength to avoid ovsershoot

Configure the UAD drive strength as per recommended setting
to avoid overshoot on clocks when interfacing with Radium touch.

bug 1452391

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

10 years agopower: lc709203f: report scaled SoC by manipulating kernel threshold
Laxman Dewangan [Mon, 3 Feb 2014 06:27:32 +0000 (11:57 +0530)]
power: lc709203f: report scaled SoC by manipulating kernel threshold

Make kernel threshold SoC as 0% and scale the SoC read from device
as:
Read from device: 0 to threshold-> report 0%
Read from device: threshold + 1 to 100% -> report as 1 to 100%.

Change-Id: I05fb167296357b5ec49936241c27078f9ffe2c41
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362908
(cherry picked from commit d25b59b584db946fac0d15d6c85f099b65ccd31c)

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

10 years agopower: charger-gauge-comm: add API for scaling SoC
Laxman Dewangan [Mon, 3 Feb 2014 06:22:30 +0000 (11:52 +0530)]
power: charger-gauge-comm: add API for scaling SoC

The bootloader and kernel usage the same configuration of fuel
gauge and so SoC read from device is same on both the places.

It is require to run the kernel properly and shutdown gracefully,
the minimum base SoC for the kernel is more than the bootloader
0% SoC.

Add generic API for scaling the reported SoC on kernel based on
kernel thresold SoC. This thresold SoC will be used by BL to jump
to kernel and kernel will report this thresold as 0% SoC.

Change-Id: Ie1787e21f8a41ce10e05fac992d524c1565c70de
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362907
(cherry picked from commit 06a087a259d68f9134fb07b1f06e6ce176aef015)

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: If801ae8b05479b1bdb9c97d8d36453fc40f24623
Reviewed-on: http://git-master/r/363835
Reviewed-by: Automatic_Commit_Validation_User
10 years agopower: lc709203f: initialise driver as per programming sequence
Laxman Dewangan [Sat, 1 Feb 2014 15:08:23 +0000 (20:38 +0530)]
power: lc709203f: initialise driver as per programming sequence

Initialising the driver as per recommended programing sequence as
per application manual.

Change-Id: Ib1b737f6aa5ab7a261e16381e9c9dca4274d0ecd
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362906
(cherry picked from commit 043a8f84ece196e44cfc05cb5c61c349c5e4eb22)

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

10 years agopower: lc709203f: remove public header
Laxman Dewangan [Sat, 1 Feb 2014 15:04:41 +0000 (20:34 +0530)]
power: lc709203f: remove public header

Driver is supported only from DT registration and
hence it is not require to make the platform data
as public.

Hence moving platform data to driver only and removing
related header file.

Change-Id: I5a13f7f2be23e88923a1a8e4deba105088ab17da
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362905
(cherry picked from commit fb66e65c7c753bbb75684b81294de736f2ff8d1f)

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I6892d8805360d760a8844cd46b2b5fcde92c8271
Reviewed-on: http://git-master/r/363833
Reviewed-by: Automatic_Commit_Validation_User
10 years agopower: lc709203f: remove of_device_id data
Laxman Dewangan [Sat, 1 Feb 2014 14:05:45 +0000 (19:35 +0530)]
power: lc709203f: remove of_device_id data

For the i2c devices, it is not require to provide the
of_device_id data as framework look the client_id for
driver matching.

Hence removing this from driver.

Change-Id: Ib53bd92eafbb625b52e432e79fec883c24c318a1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362904
(cherry picked from commit c74bb4e60187e682c1c13135b1cdd810bbcaad34)

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I137f4e9aacc375bd8d5d165a3e632f159c522b70
Reviewed-on: http://git-master/r/363832
Reviewed-by: Automatic_Commit_Validation_User
10 years agopower: lc709203f: add debugfs support to dump all registers
Laxman Dewangan [Thu, 30 Jan 2014 14:31:49 +0000 (20:01 +0530)]
power: lc709203f: add debugfs support to dump all registers

To help on debugging, add debugfs interface to dump all register
content of the device.

Change-Id: Ia715019f354bc78a9eb1a785dbc1435b530b237e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362903
(cherry picked from commit 1f3aeab1de43ea5fd9619190063b114b3c7b44c1)

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

10 years agopower: lc709203f: prints device params in probe
Laxman Dewangan [Fri, 31 Jan 2014 13:11:19 +0000 (18:41 +0530)]
power: lc709203f: prints device params in probe

Prints number of parameter in probe for the quick
reference for a parameter table.

Also use this for checking whether device present on
bus or not and remove the duplicate code for acheiving
same.

Change-Id: I529128aaadea2ef9ed24bbe4a625955604cc382d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362902
(cherry picked from commit 7171d55660b00c6ed594195058ad16e37fcdcbc0)

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: Ia773e3fa2405f4318b4ed05e23ea5b8785880e31
Reviewed-on: http://git-master/r/363830
Reviewed-by: Automatic_Commit_Validation_User
10 years agovideo: tegra: host: Delayed PMU init only if PMU on
Terje Bergstrom [Wed, 5 Feb 2014 10:01:41 +0000 (12:01 +0200)]
video: tegra: host: Delayed PMU init only if PMU on

Schedule delayed PMU initialization only if PMU is enabled.

Change-Id: I12b2b78099f5f3581af671735d39b6f673618c81
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/363788
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
10 years agovideo: tegra: host: Fix warnings for -Werror
Seema Khowala [Wed, 5 Feb 2014 19:38:58 +0000 (11:38 -0800)]
video: tegra: host: Fix warnings for -Werror

Change-Id: I76338d38528436d1632971b84234822ec553d163
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/363969
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
10 years agoarm64: tegra: remove dup xusb dt node in tegra132.dtsi
Kerwin Wan [Thu, 16 Jan 2014 20:09:53 +0000 (12:09 -0800)]
arm64: tegra: remove dup xusb dt node in tegra132.dtsi

xusb dt node is already included in tegra124-soc.dtsi
which is included by tegra132.dtsi.

Change-Id: I55e7e81e45b1b4ade876b6ce0bc300f6e8c0ff09
Reviewed-on: http://git-master/r/356702
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/361695
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
10 years agousb: xhci: Check for XHCI_PLAT in xhci_cleanup_msix()
Jack Pham [Fri, 15 Nov 2013 22:53:14 +0000 (22:53 +0000)]
usb: xhci: Check for XHCI_PLAT in xhci_cleanup_msix()

If CONFIG_PCI is enabled, make sure xhci_cleanup_msix()
doesn't try to free a bogus PCI IRQ or dereference an invalid
pci_dev when the xHCI device is actually a platform_device.

This patch should be backported to kernels as old as 3.9, that
contain the commit 52fb61250a7a132b0cfb9f4a1060a1f3c49e5a25
"xhci-plat: Don't enable legacy PCI interrupts."

Cc: stable@vger.kernel.org
Change-Id: I6601c3db7a0a4f5ebef6c64118eb62a67701c42a
Reviewed-on: http://git-master/r/358200
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Reviewed-on: http://git-master/r/361700
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
10 years agoxhci: fix dma mask setup in xhci.c
Xenia Ragiadakou [Wed, 14 Aug 2013 02:55:19 +0000 (02:55 +0000)]
xhci: fix dma mask setup in xhci.c

The function dma_set_mask() tests internally whether the dma_mask pointer
for the device is initialized and fails if the dma_mask pointer is NULL.
On pci platforms, the device dma_mask pointer is initialized, when pci
devices are enumerated, to point to the pci_dev->dma_mask which is 0xffffffff.
However, for non-pci platforms, the dma_mask pointer may not be initialized
and in that case dma_set_mask() will fail.

This patch initializes the dma_mask and the coherent_dma_mask to 32bits
in xhci_plat_probe(), before the call to usb_create_hcd() that sets the
"uses_dma" flag for the usb bus and the call to usb_add_hcd() that creates
coherent dma pools for the usb hcd.

Moreover, a call to dma_set_mask() does not set the device coherent_dma_mask.
Since the xhci-hcd driver calls dma_alloc_coherent() and dma_pool_alloc()
to allocate consistent DMA memory blocks, the coherent DMA address mask
has to be set explicitly.

This patch sets the coherent_dma_mask to 64bits in xhci_gen_setup() when
the xHC is capable for 64-bit DMA addressing.

If dma_set_mask() succeeds, for a given bitmask, it is guaranteed that
the given bitmask is also supported for consistent DMA mappings.

Other changes introduced in this patch are:

- The return value of dma_set_mask() is checked to ensure that the required
  dma bitmask conforms with the host system's addressing capabilities.

- The dma_mask setup code for the non-primary hcd was removed since both
  primary and non-primary hcd refer to the same generic device whose
  dma_mask and coherent_dma_mask are already set during the setup of
  the primary hcd.

- The code for reading the HCCPARAMS register to find out the addressing
  capabilities of xHC was removed since its value is already cached in
  xhci->hccparams.

- hcd->self.controller was replaced with the dev variable since it is
  already available.

Change-Id: I4fae4a4c8cd419bb80fcf623da3e6b2a797440f4
Reviewed-on: http://git-master/r/357120
Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Reviewed-on: http://git-master/r/361699
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
10 years agoARM: dts: tegra: Add Tegra DFLL data to Ardbeg DT
Alex Frid [Sat, 1 Feb 2014 03:40:51 +0000 (19:40 -0800)]
ARM: dts: tegra: Add Tegra DFLL data to Ardbeg DT

Add Tegra DFLL data to DT variants for Ardbeg with E1735 PMIC module.

Bug 1442709

Change-Id: I0583ac2004e36d21b1087a3096df61d8985a5668
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/362600
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
10 years agoARM: tegra: Support Ardbeg DT variants w/wo DFLL data
Alex Frid [Thu, 30 Jan 2014 08:17:05 +0000 (00:17 -0800)]
ARM: tegra: Support Ardbeg DT variants w/wo DFLL data

DT variants that are used for Ardbeg platforms with E1735 PMIC module
may or may not include DFLL data. To keep functionality intact in the
latter case DFLL platform data in Ardbeg board file was retained, but
the respective platform devices are registered from board file only if
DT DFLL node is not available. Also added a special hook to modify DT
for E1767 prototype module that yet to be productized, and does not
have separate DT variant.

Consolidated E1735 setting for suspend mode in ardbeg_suspend_init()
function. Set E1735 regulator idle mode thresholds during regulator
initialization.

Bug 1442709

Change-Id: I9b2f0db468a86c8b142b88bf0678ced7ccb2f2c2
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/362601
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
10 years agoARM: dts: tegra: Prepare Ardbeg E1735 DT variants
Alex Frid [Thu, 30 Jan 2014 06:59:54 +0000 (22:59 -0800)]
ARM: dts: tegra: Prepare Ardbeg E1735 DT variants

Created device tree variants for Ardbeg platform with E1735 PMIC
module:
arch/arm/boot/dts/tegra124-ardbeg-e1735.dts
arch/arm/boot/dts/tegra124-ardbeg-e1735-a03-00.dts

For now, no changes in content: new variants just point to the
respective generic Ardbeg variants.

Bug 1442709

Change-Id: If5927136c8ccd6bc19942758cc5c3897556982d9
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/362599
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
10 years agoarm64: dma: fix dma_release_from_coherent
Rich Wiley [Thu, 16 Jan 2014 20:30:45 +0000 (12:30 -0800)]
arm64: dma: fix dma_release_from_coherent

bug 1431659

Change-Id: I8bbaa5ac44f496a5f2675224438b3f92b87476bd
Reviewed-on: http://git-master/r/356184
Signed-off-by: Rich Wiley <rwiley@nvidia.com>
Reviewed-on: http://git-master/r/361708
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
10 years agoASoC: tegra-alt: fix checking error case.
Songhee Baek [Mon, 3 Feb 2014 19:10:34 +0000 (11:10 -0800)]
ASoC: tegra-alt: fix checking error case.

To register max9487, this machine driver uses i2c_new_device,
i2c_new_device returns NULL when it is error case, not a error code.
So, IS_ERR is not proper to check the error.

Bug 1425688

Change-Id: I7ee323bfcbc546abb2b63dc7e35f9100ffd85290
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/362965
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
10 years agopower: reset: as3722: allow i2c transfer during power off/reset
Laxman Dewangan [Wed, 5 Feb 2014 09:21:05 +0000 (14:51 +0530)]
power: reset: as3722: allow i2c transfer during power off/reset

Allow the i2c transfer on as3722 device during power off/reset
of the system. This call happen in atomic context.

Bug 1443347

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

10 years agomfd: as3722: provide customized lock to regmap
Laxman Dewangan [Wed, 5 Feb 2014 09:10:26 +0000 (14:40 +0530)]
mfd: as3722: provide customized lock to regmap

Add customized locking mechanism for register access
of as3722 device through regmap.

This will help to bypass the locking mechanism when as3722
device get accessed in the atomic context.

Bug 1443347

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

10 years agopower: reset: palmas: allow i2c transfer during power off/reset
Laxman Dewangan [Mon, 3 Feb 2014 12:27:07 +0000 (17:57 +0530)]
power: reset: palmas: allow i2c transfer during power off/reset

Allow the i2c transfer on palmas device during power off/reset
of the system. This call happen in atomic context.

Bug 1443347

Change-Id: I40fbdd53ef0af3efe448633ea324339884bff355
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362876
(cherry picked from commit 4220552e2deccab22303e74a2a8ecd1e7862ea65)

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

10 years agomfd: palmas: provide customized lock to regmap
Laxman Dewangan [Mon, 3 Feb 2014 12:24:41 +0000 (17:54 +0530)]
mfd: palmas: provide customized lock to regmap

Add customized locking mechanism for register access
of palmas device address config 0.

This will help to bypass the locking mechanism when palmas
device get accessed in the atomic context.

Bug 1443347

Change-Id: I3739b88e1b15a15da010f7f850c980c2a4809c4e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362875
(cherry picked from commit 55ccf8025ec4787bc75991a1a292979ac9bbb64c)

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

10 years agoi2c: tegra: call adapter lock in shutdown callback
Laxman Dewangan [Mon, 3 Feb 2014 12:21:56 +0000 (17:51 +0530)]
i2c: tegra: call adapter lock in shutdown callback

Call the adapter shutdown to cancel any further i2c transfer
from shutdown callback.

This will be require to stop any transfer on bus after shutdown
happen.

Bug 1443347

Change-Id: I4bf7de911c76b1c0032f1d82ffd956a099351cd8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362874
(cherry picked from commit 2376afbfd638fbe37d61158154dc8ba85a099b31)

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

10 years agoi2c: add flag for cancel transfer when adapter shutdown
Laxman Dewangan [Mon, 3 Feb 2014 12:19:30 +0000 (17:49 +0530)]
i2c: add flag for cancel transfer when adapter shutdown

Add support to cancel the transfer when the adapater in shutdown
state. Also add API to re-enable transfer when actually client
wants to do forcefully transfer.

Bug 1443347

Change-Id: I750c9d3f97fcb5bd1d7ce8e5c721496e4c0debcc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362873
(cherry picked from commit fff546d83e8bd56cb26eb14ac6abac63070e3a95)

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

10 years agoarm: tegra: TN8: Update power for 19x12 8" panel
Steve Rogers [Fri, 24 Jan 2014 21:56:07 +0000 (15:56 -0600)]
arm: tegra: TN8: Update power for 19x12 8" panel

Bug 1446328

Change-Id: Iee4fcbffa93e3d3c48d715de63338f9f5792a498
Signed-off-by: Steve Rogers <srogers@nvidia.com>
Reviewed-on: http://git-master/r/359983
(cherry picked from commit 96d59269723663c0564a2997a98bc8eebadbf4b4)
Reviewed-on: http://git-master/r/363341
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>
10 years agovideo: tegra: host: Enable gk20a scaling on T132
Arto Merilainen [Mon, 13 Jan 2014 09:40:02 +0000 (11:40 +0200)]
video: tegra: host: Enable gk20a scaling on T132

Change-Id: I1c51ef2dfe3fa297c07cef3687d87bc9096f1607
Reviewed-on: http://git-master/r/346903
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/361703
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agovideo: tegra: host: Rework T132 power features
Arto Merilainen [Mon, 13 Jan 2014 08:16:39 +0000 (10:16 +0200)]
video: tegra: host: Rework T132 power features

T132 power features were disabled using a single loop that went
through host1x devices and removed callbacks. Even though the solution
is simple and the loop will in the end be removed, it does not allow
enough control before all power features have been verified.

This patch creates new platform data structures for T132. The code
goes through T132 devices and if an override for platform data is
available, the original pdata is replaced by the override version.

Change-Id: Ic2ade8ffc79e770721dd6cbcfe4055e70b7b29b5
Reviewed-on: http://git-master/r/355013
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/361702
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agovideo: tegra: host: Enable -Werror
Terje Bergstrom [Mon, 3 Feb 2014 11:24:55 +0000 (13:24 +0200)]
video: tegra: host: Enable -Werror

Enable warnings as error throughout nvhost. Fix a couple of trivial
warnings.

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

10 years agoARM: tegra: tn8: Update parameters of lc709203f
Chaitanya Bandi [Thu, 30 Jan 2014 13:12:36 +0000 (18:42 +0530)]
ARM: tegra: tn8: Update parameters of lc709203f

Added parameters thermistor-b and initial-rsoc.
Also, as TN8 plaftorm that uses lc709203f FG has the
battery thermistor connected to FG, tz_name parameter
is not required.

Bug 1447012

Change-Id: I7b45d188aeb3a4678cc4926d2e4ac3cca6a9cabd
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/361996
(cherry picked from commit b63efbb4b07ad28580dd2832876766cdc9cc2fac)
Reviewed-on: http://git-master/r/363140
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agopower: lc709203f: Add thermistor_b, intial_rsoc, status bit programming
Chaitanya Bandi [Thu, 30 Jan 2014 14:09:52 +0000 (19:39 +0530)]
power: lc709203f: Add thermistor_b, intial_rsoc, status bit programming

Added programming of thermistor_b, intial_rsoc and status bit
in LC709203f FG driver.

Bug 1447012

Change-Id: I69b0219e6bfffb307c6cfd66beba691a912fd93b
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/362013
(cherry picked from commit 3169bbeacc41085bd509e796fff1d6d0e4399320)
Reviewed-on: http://git-master/r/363139
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agovideo: tegra: host: gk20a: Export raw counters
Arto Merilainen [Thu, 23 Jan 2014 08:33:36 +0000 (10:33 +0200)]
video: tegra: host: gk20a: Export raw counters

GPU scaling in user space is moving towards using raw counter
readings instead of instantaneous load. This patch exports busy
and idle counters to userspace as sysfs nodes counters and
counters_reset. The first node shows raw counter values and
the second node shows the raw values and resets them.

This patch does not account for possible wrapping issues.

Bug 1444343

Change-Id: I24620a77f5042008ac811ed55cb1b0d1ea3eac37
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/359240
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agoarm: tegra: ardbeg: force CAM_1V8_LDO1 to be true
Charles Kong [Wed, 5 Feb 2014 00:46:47 +0000 (16:46 -0800)]
arm: tegra: ardbeg: force CAM_1V8_LDO1 to be true

Force CAM_1V8_LDO1 to remove the ~19mW power leakage at camera i2c
lines when camera is off. The power impact of CAM_1V8_LDO1 is  ~0.55mW.
The idle battery power is also dropped by this change.

Bug: 1441261
Change-Id: I690b6e71d0935242dcb8211fd291c2d43441ec20
Signed-off-by: Charles Kong <charlesk@nvidia.com>
Reviewed-on: http://git-master/r/363528
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agoARM: tegra: Enable I2Cs in t124 dt files
Chaitanya Bandi [Fri, 17 Jan 2014 11:57:45 +0000 (17:27 +0530)]
ARM: tegra: Enable I2Cs in t124 dt files

Enabled I2Cs in t124 SOC dt files instead of
doing it in board specific dt files. Also
made GEN1_I2C, PWR_I2C, CAM_I2C, I2C6 to operate
at FM mode and GEN2_I2C, DDC_I2C in Standard mode
as default from SOC dt files.

Change-Id: I1226b6f8af78c02dc11bc6711bf7ad00eb3bdb33
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/357131
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agovideo: tegra: gk20a: force GPU on for REG_OPS
Prashant Malani [Tue, 4 Feb 2014 01:34:05 +0000 (17:34 -0800)]
video: tegra: gk20a: force GPU on for REG_OPS

Bug 1442555

Change-Id: Iedeb239335e548f8f236852f8c9736fbb2dc0dd3
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/363076
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agovideo: tegra: nvmap: Check for invalid handle
Vandana Salve [Tue, 28 Jan 2014 05:22:01 +0000 (10:52 +0530)]
video: tegra: nvmap: Check for invalid handle

Add check for invalid nvmap handle

bug 1434818

Change-Id: I8ad4c5f8f40416609bcc819789e5048bbabe638b
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/360717
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
10 years agovideo: tegra: host: Fix dma_addr_t vs u64 errors
Terje Bergstrom [Mon, 3 Feb 2014 17:53:55 +0000 (19:53 +0200)]
video: tegra: host: Fix dma_addr_t vs u64 errors

dma_alloc_*() require a dma addr_t pointer, but we always give it
u64.

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

10 years agopower: bq2419x: add more check on charger parameter
Laxman Dewangan [Thu, 30 Jan 2014 08:48:06 +0000 (14:18 +0530)]
power: bq2419x: add more check on charger parameter

Make sure that charger paramaters are more than their
offset value and round the register value as per their
behavior.

Change-Id: I892b222fefdcc05147e2cced1dc7c35824b873f2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/361911
(cherry picked from commit fefddd517d42ffc1d708b2d27280323fcd662aae)

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

10 years agoARM: tegra: set charge voltage limit to 4.352V for P1761
Laxman Dewangan [Thu, 30 Jan 2014 08:35:16 +0000 (14:05 +0530)]
ARM: tegra: set charge voltage limit to 4.352V for P1761

Set charge voltage limit to 4352mV for all P1761 platforms.

Change-Id: I5e3a5ac7013f38908be98b9a825ec56707975e58
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/361910
(cherry picked from commit 223386175a1d4b144fc6bcd832a6cb717e96915b)

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

10 years agopower: bq2419x: add support to change charge voltage limit
Laxman Dewangan [Wed, 29 Jan 2014 11:44:01 +0000 (17:14 +0530)]
power: bq2419x: add support to change charge voltage limit

Add support to configure the charger voltage limit based on
battery used on platform.

bug 1445682

Change-Id: Ibdc9d852f06504d8052ccc736ac3938ccc1aa88b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/361478
(cherry picked from commit 56f5517a05b95e4be5be8af0c2c9ffac89b28bcd)

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

10 years agoARM: tegra: disable suspend during high current charging on TN8
Laxman Dewangan [Fri, 24 Jan 2014 09:20:35 +0000 (14:50 +0530)]
ARM: tegra: disable suspend during high current charging on TN8

Do not enter into suspend when there is high charging current
selected.

Change-Id: I845975d964d970eeab509bc0eb6f52cb1485bfdf
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/359825
(cherry picked from commit 67be257544f4462b39ee49f4318ae707bebae0d3)

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

10 years agoarm: tegra: t132: add Innolux 11.6" eDP panel
Seema Khowala [Mon, 3 Feb 2014 22:55:25 +0000 (14:55 -0800)]
arm: tegra: t132: add Innolux 11.6" eDP panel

Add support for Innolux 11.6" eDP panel.
The code assumes that the only variant of this panel
is NVSR-enabled. NVSR PWM support is work in progresss;
for now, Tegra PWM for backlight is present only as a
placeholder.

Bug 1315461

Change-Id: Ie896f1b41c92e5e775940bd79d4bb168ebbc9970
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/363032
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
10 years agokernel: arch: arm64: Correcting GK20A configs
Vinod G [Tue, 4 Feb 2014 01:55:54 +0000 (17:55 -0800)]
kernel: arch: arm64: Correcting GK20A configs

Correcting the GK20A configs for t132

bug 1452279

Change-Id: I7153fd6e29494c6f2ada0e172b4b4e09f796d5ea
Signed-off-by: Vinod G <vinodg@nvidia.com>
Reviewed-on: http://git-master/r/363079
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Janne Kiviluoto <jkiviluoto@nvidia.com>
Tested-by: Janne Kiviluoto <jkiviluoto@nvidia.com>
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
10 years agoARM: tegra: TN8 FFD: remove flash device support
Charlie Huang [Thu, 30 Jan 2014 23:31:51 +0000 (15:31 -0800)]
ARM: tegra: TN8 FFD: remove flash device support

on TN8 FFF/FFD boards, the flash device is not present.

bug 1443481

Change-Id: Ib974937b5f239616514407344b620fbdfe98a2da
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/362167
(cherry picked from commit c11456e0433ba4a9d5aa9b019b2553a740935e3f)
Reviewed-on: http://git-master/r/363055
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agoARM: tegra12: update thermal margins for POP pkg
Hyungwoo Yang [Thu, 30 Jan 2014 23:21:10 +0000 (15:21 -0800)]
ARM: tegra12: update thermal margins for POP pkg

update thermal margins for T124 POP package.

Bug 1447319

Change-Id: I278430c024352cbda836edf4acb6377a590097c7
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/362164
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
10 years agoarm64: tegra: add bowmore ers-s support
Adeel Raza [Sun, 5 Jan 2014 21:37:14 +0000 (13:37 -0800)]
arm64: tegra: add bowmore ers-s support

Change-Id: Idf26b0a265e4d7bf1924304c1d38955ef049537d
Reviewed-on: http://git-master/r/355862
Signed-off-by: Adeel Raza <araza@nvidia.com>
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/361688
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
10 years agoarm64: locks: introduce ticket-based spinlock implementation
Will Deacon [Wed, 9 Oct 2013 14:54:26 +0000 (15:54 +0100)]
arm64: locks: introduce ticket-based spinlock implementation

This patch introduces a ticket lock implementation for arm64, along the
same lines as the implementation for arch/arm/.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Change-Id: I3d036cdde84b03298fec7cf3cc2d17aeeb9464c6
Reviewed-on: http://git-master/r/355769
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-on: http://git-master/r/361692
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
10 years agoarm64: spinlock: retry trylock operation if strex fails on free lock
Catalin Marinas [Fri, 31 May 2013 15:30:58 +0000 (16:30 +0100)]
arm64: spinlock: retry trylock operation if strex fails on free lock

An exclusive store instruction may fail for reasons other than lock
contention (e.g. a cache eviction during the critical section) so, in
line with other architectures using similar exclusive instructions
(alpha, mips, powerpc), retry the trylock operation if the lock appears
to be free but the strex reported failure.

Reported-by: Tony Thompson <anthony.thompson@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Change-Id: Id170c917f99b794ec7be23e0b8da0fd05fd78ca1
Reviewed-on: http://git-master/r/355768
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-on: http://git-master/r/361691
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
10 years agoARM: T132: Clocks: Update PLLDP initialization routine
Krishna Sitaraman [Tue, 14 Jan 2014 19:05:17 +0000 (11:05 -0800)]
ARM: T132: Clocks: Update PLLDP initialization routine

If BootLoader initialized PLLDP skip re-initilization.

Bug 1439061

Change-Id: I0e188b20febf4e81f9442c60a3c304d5c13cf466
Reviewed-on: http://git-master/r/355589
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/361694
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
10 years agoarm: tegra: soctherm: adjust on vdd_core vmin
Diwakar Tundlam [Fri, 24 Jan 2014 00:09:51 +0000 (16:09 -0800)]
arm: tegra: soctherm: adjust on vdd_core vmin

Adjust soctherm GPU and MEM zone configuration when vdd_core crosses
boundary between high/low voltage ranges. (old ref bug 832603).

Uses dvfs rail notification API.

Bug 1363113

Change-Id: Ib7d4093df6513c2d8a2a76929ef24b983304d70f
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/361147

10 years agoV3L: T124: dc: Support 1920x1200 mode
Raghavendra VK [Sat, 23 Nov 2013 15:54:36 +0000 (21:24 +0530)]
V3L: T124: dc: Support 1920x1200 mode

To support 1920x1200 HDMI monitor for T124.

- To reserve enough space for frame buffers for screen resolution up to
  1920x1200.  Each pixel consists with 4 bytes and a display controller
  needs two set of FB, so each DC needs FB space reserved for
    1920 * 1200 * 4 * 2 = 18432000 = 18M bytes
  And the T124 has two DC.
- To limit the parent of HDMI pclk to 600MHz.  Usually the pll_d2 is the
  parent clock of hdmi pclk and T124 has 600MHz limit on it.
  This change needs to be reviewed in the bug 1420652 because setting
  the hdmi pclk has some problem with certain value.

Bug 1413335

Change-Id: If7f86e6747d3e38c630b69d84ddb20e88329ef9e
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/334876
(cherry picked from commit 4ff582c659949d66265f4b37722bcbc7f151996a)
Reviewed-on: http://git-master/r/359120
Reviewed-by: Sungwook Kim <sungwookk@nvidia.com>
Tested-by: Sungwook Kim <sungwookk@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
10 years agoarm: tn8: use common tn8 sensor dt in A02.
Q-Ha Park [Fri, 24 Jan 2014 01:50:10 +0000 (17:50 -0800)]
arm: tn8: use common tn8 sensor dt in A02.

Bug 1436819

Change-Id: I14138d5226bf0cc6d3a033ef0cf206cc7fffaf35
Reviewed-on: http://git-master/r/359583
(cherry picked from commit 285a10c9e5a798853bd1c068cb1de1e0494bb111)
Signed-off-by: Q-Ha Park <qpark@nvidia.com>
Reviewed-on: http://git-master/r/363342
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agovideo: tegra: dc: fix soft clipping correction
Daniel Solomon [Wed, 29 Jan 2014 22:32:18 +0000 (14:32 -0800)]
video: tegra: dc: fix soft clipping correction

- Change "k" to be fractional part of HW_K, matching
what the algorithm assumes
- Fix reading of bin_width
- Enable soft clipping correction only if
soft clipping is enabled

Bug 1430681

Change-Id: I0c4872d7c009429d7c3c2abbac3658b5713e14c9
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/361751
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>
10 years agovideo: tegra: dc: allow selection of bin_width -1
Daniel Solomon [Thu, 30 Jan 2014 01:33:18 +0000 (17:33 -0800)]
video: tegra: dc: allow selection of bin_width -1

Valid bin_width values are -1, 1, 2, 4, and 8. We
allow setting of bin_width via sysfs to all these values
except for -1. Add this missing value to the allowed
settings.

Bug 1430681

Change-Id: Icb60574212c203238c6db2d1ada94d3ae3ea9a4f
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/361792
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
10 years agovideo: tegra: host: Get irqs from platform device
Lauri Peltonen [Tue, 7 Jan 2014 09:56:44 +0000 (11:56 +0200)]
video: tegra: host: Get irqs from platform device

Also make simulation registers normal platform resources.

Change-Id: Id7c03ea50c1ca2e8fbc46ef0ebce5f1260ba43c0
Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com>
Reviewed-on: http://git-master/r/356076
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agoARM: tegra: remove unused dtsi file
Laxman Dewangan [Tue, 4 Feb 2014 12:36:16 +0000 (18:06 +0530)]
ARM: tegra: remove unused dtsi file

The dtsi file "tegra124-p1761-battery.dtsi" is no more
used and hence removing this file.

Change-Id: I12282c469936d27683462fb13bc540fc2b39782d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/363276
Reviewed-by: Automatic_Commit_Validation_User
10 years agopinctrl: tegra: add register base address and group name when dumping
Laxman Dewangan [Tue, 4 Feb 2014 11:36:43 +0000 (17:06 +0530)]
pinctrl: tegra: add register base address and group name when dumping

Add the register base address in the offset and group name when
dumping register content. This helps on quick reference of the
content of register and relate to the pin.

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

10 years agoedp: tn8: set sysedp_dynamic capping pthrot ratio
Timo Alho [Wed, 29 Jan 2014 18:45:38 +0000 (20:45 +0200)]
edp: tn8: set sysedp_dynamic capping pthrot ratio

soc_therm is set to throttle 75% on OC signal. To account the dynamic
budgeting to match this throttling (in the context of modem consumer),
set the pthrot_ratio parameter to 75%.

Change-Id: I320f1d5433c48c4f44e348f8a642b34c9da8cd4b
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/361615
(cherry picked from commit 8bb71b6df9c3932ac0922aec124d91203b85cd67)
Reviewed-on: http://git-master/r/362848
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
10 years agoarm: tegra: tn8: change voltmon (OC1) throttling
Timo Alho [Fri, 24 Jan 2014 12:31:53 +0000 (14:31 +0200)]
arm: tegra: tn8: change voltmon (OC1) throttling

Change OC1 (voltage monitor) throttling parameters on P1761
platforms. New values:
 - Throttling depth 75%
 - Ramp rate 3.76us

While at it, also fix voltmon_oc1 and batmon_oc4 structures to be
static.

Bug 1444676

Change-Id: I2dee90db845b71704abc9e77c119081c2964332b
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/359870
(cherry picked from commit 3a13c642841f8c2b6819b012079769c7d2b752df)
Reviewed-on: http://git-master/r/362847
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>
10 years agoedp: tn8: implement battery OC WAR
Timo Alho [Wed, 29 Jan 2014 13:20:02 +0000 (15:20 +0200)]
edp: tn8: implement battery OC WAR

P1761-A02 battery temp sensing is not functional - this will cause
system EDP to battery OC limited (4A) already in room temperature. As
a workaround relax battery OC limit to 9A at any temperarure.

Bug 1447012

Change-Id: Ib4b725b5a324e996b9abaece03769b7bca2aa2aa
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/361530
(cherry picked from commit 2adc54791a093f61321195f36a63951a52937679)
Reviewed-on: http://git-master/r/362846
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
10 years agostaging: iio: adc: palmas: Use palmas_irq_get_virq
Jinyoung Park [Wed, 22 Jan 2014 10:33:17 +0000 (19:33 +0900)]
staging: iio: adc: palmas: Use palmas_irq_get_virq

Replaced platform_get_irq() with palmas_irq_get_virq().

Bug 1398960
Bug 1415280

Change-Id: Ib85f6cce087904cfc22943b3f42b880959c9df8a
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/358676
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agovideo: tegra: host: QoS triggers postscale
Arto Merilainen [Sat, 1 Feb 2014 10:44:40 +0000 (12:44 +0200)]
video: tegra: host: QoS triggers postscale

For some devices we use QoS to define the minimum required frequency.
As this mechanism bypasses totally devfreq and the usual device profile,
we need to trigger postscale callback also in these cases to ensure that
i.e. EMC is scaled correctly at the same time.

Bug 1441874

Change-Id: I33545101157b015db240bfe9bb8a5c404469803c
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/362487
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agovideo: tegra: host: Inform EDP in prescale
Arto Merilainen [Sat, 1 Feb 2014 10:14:03 +0000 (12:14 +0200)]
video: tegra: host: Inform EDP in prescale

This far EDP was informed about changed load as part of postscale
callback when we changed the frequency. The theory behind this idea
has been that we need to inform EDP due to changed constraint.

However, we have seen cases where updating load information for EDP
would be beneficial more often. This patch modifies the call sequence
so that we inform EDP each time we submit work to GPU.

Bug 1441874

Change-Id: I07a804e0a07ea7efc6024a273437c33a02a8939d
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/362631
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agovideo: tegra: host: Remove nvhost_get/putchannel from gk20a
Lauri Peltonen [Tue, 21 Jan 2014 18:10:22 +0000 (20:10 +0200)]
video: tegra: host: Remove nvhost_get/putchannel from gk20a

Do client refcounting inside the gk20a driver.

Bug 1434573

Change-Id: I18896e8e53f1a5c1d651e08ba9f7bb09e96e36eb
Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com>
Reviewed-on: http://git-master/r/357862
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agovideo: tegra: host: move client device node
Shridhar Rasal [Sat, 25 Jan 2014 02:02:50 +0000 (07:32 +0530)]
video: tegra: host: move client device node

For dynamic channel mapping, when ref_count is zero,
it is unclear to which device channel maps to.

So moving channel device node to nvhost_device_data from
nvhost_channel.

Bug 1259844

Change-Id: I402d0b6ac4dcf72260f94e5ed387174fcfe0d2ab
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/360061
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agoARM: tegra: set pi5 to input and remove tristate
Mallikarjun Kasoju [Tue, 4 Feb 2014 05:33:49 +0000 (11:03 +0530)]
ARM: tegra: set pi5 to input and remove tristate

On e1784 board, pin pi5 is used for home key.
Set it to input and remove it from tristate

Bug 1442127

Change-Id: I85006c2b75f6d0e721aad71977b09cd46c7a258f
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/363134
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agovideo: tegra: host: Load gk20a firmware from gpu specific path
Lauri Peltonen [Wed, 29 Jan 2014 12:31:45 +0000 (14:31 +0200)]
video: tegra: host: Load gk20a firmware from gpu specific path

Handle firmware loading independently in the gk20a driver rather than
relying on nvhost_client_request_firmware.

Assume that firmware is located at a gpu IP specific path instead of SOC
specific path (e.g. /etc/firmware/gk20a instead of
/etc/firmware/tegra12x).

Retain support for old SOC specific firmware paths for now, by calling
nvhost_client_request_firmware if loading from the IP specific path
fails.

Bug 1434573

Change-Id: If443841e0287e070fb47f93dc475b48c9edbe91b
Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com>
Reviewed-on: http://git-master/r/356074
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agovideo: tegra: host: Suppress warnings on firmware
Terje Bergstrom [Mon, 3 Feb 2014 08:36:08 +0000 (10:36 +0200)]
video: tegra: host: Suppress warnings on firmware

Suppress warnings on firmware data type not matching.

Change-Id: Ic06d2cf0b5b767b8d123597c793bfc8bb8eacfeb
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/362856
Reviewed-by: Automatic_Commit_Validation_User
10 years agovideo: tegra: gpu: Fix warning in gk20a_fifo.c
Alex Waterman [Wed, 29 Jan 2014 18:54:35 +0000 (10:54 -0800)]
video: tegra: gpu: Fix warning in gk20a_fifo.c

Change-Id: I47ff6b1511016791798f5e1b0fa61e6aa9762a3a
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/361626
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agoarm: tegra: flush dcache before cluster switch
Varun Wadekar [Thu, 16 Jan 2014 07:07:06 +0000 (12:37 +0530)]
arm: tegra: flush dcache before cluster switch

There's no point having the secure world flush the dcache
for us. This is more of a requirement from the NS world and
the chip, rather than the secure world.

Bug 1387322

Change-Id: I879e48347faac2a2b2e841e39b4c8830416c38be
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/356339
(cherry picked from commit 415e0884bbf9194f6ff2e389b81dca9c376b33fd)
Reviewed-on: http://git-master/r/359651

10 years agovideo: tegra: gk20a: add notifier to pm framework
Naveen Kumar S [Fri, 31 Jan 2014 06:36:33 +0000 (12:06 +0530)]
video: tegra: gk20a: add notifier to pm framework

Device hangs if registers are read when module is powered down.
Added notification call to pm framework upon accessing gk20a
registers.

bug 1427674

Change-Id: Id93e82801c4a0c89fbecaa41477129a8c3638743
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/362279
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agoarm: edp_core: fix panic on suspend abort
David Yu [Mon, 3 Feb 2014 04:44:43 +0000 (13:44 +0900)]
arm: edp_core: fix panic on suspend abort

Bug 1445863

Change-Id: I8cd067facbf2d96f4b0c5a0f7a341eee72fcf8eb
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/362712
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
10 years agosecurity: tlk_driver: add new storage support
Scott Long [Thu, 30 Jan 2014 01:48:10 +0000 (17:48 -0800)]
security: tlk_driver: add new storage support

The existing storage protocol support will remain enabled
until tlk can be switched over to the new protocol.

Bug 1397251

Change-Id: I7186774e6fd6072f8260780b82203ce5d9ddf820
Signed-off-by: Scott Long <scottl@nvidia.com>
Reviewed-on: http://git-master/r/361797
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chris Johnson <cwj@nvidia.com>
10 years agoarm: tegra: Added kernel-doc to tegra_tsensor_pmu_data struct
Christina Guertin [Thu, 16 Jan 2014 22:00:48 +0000 (14:00 -0800)]
arm: tegra: Added kernel-doc to tegra_tsensor_pmu_data struct

The file was missing proper documentation, therefore added it for
the tegra_tsensor_pmu_data data structure.

Change-Id: I35d144c2d2fc2ff61aba9744125eaea1ede11371
Signed-off-by: Christina Guertin <cguertin@nvidia.com>
Signed-off-by: Kexin Shi <kexins@nvidia.com>
Reviewed-on: http://git-master/r/356753
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Paul Walmsley <pwalmsley@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
10 years agoARM: tegra: nct1008: Fix 64 bit mask calculation
Alex Frid [Sat, 1 Feb 2014 06:12:53 +0000 (22:12 -0800)]
ARM: tegra: nct1008: Fix 64 bit mask calculation

Right side of 64-bit mask assignment was a 32-bit expression resulting
in mask overflow - fixed.

Change-Id: I3e9c31f7357f48cbe4373773eee0153a9411b954
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/362598
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
10 years agoRevert "ARM: tegra: power: Add VDD_GPU SiMon consumer"
Alex Frid [Tue, 28 Jan 2014 05:58:14 +0000 (21:58 -0800)]
Revert "ARM: tegra: power: Add VDD_GPU SiMon consumer"

This reverts commit 84169083f38a0b7b5e9282d0f095701059d51be9.
No need for direct consumers, since SiMon registration for vdd_gpu
notification has been moved to common DVFS rail interface.

Bug 1343366

Change-Id: Ie2652ffc50a028a110984d88e356d1c10b403156
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/360766
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
10 years agoARM: tegra: power: Simplify SiMon GPU grading init
Alex Frid [Tue, 28 Jan 2014 05:31:50 +0000 (21:31 -0800)]
ARM: tegra: power: Simplify SiMon GPU grading init

Simplified initial GPU SiMon grader registration with vdd_gpu regulator
by using DVFS rail interface (instead of creating/destroying temporary
regulator consumer).

Bug 1343366

Change-Id: I9e0c50c697856eefbde08bf5c2f07b37477f8c31
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/360765
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
10 years agoARM: tegra: Move PWM PMIC binding into DFLL sub-node
Alex Frid [Sun, 2 Feb 2014 06:59:22 +0000 (22:59 -0800)]
ARM: tegra: Move PWM PMIC binding into DFLL sub-node

Updated definition of DFLL DT binding: moved PWM PMIC integration to
DFLL device sub-node (from root node). Modified DT parsing in CL-DVFS
driver accordingly.

Bug 1442709

Change-Id: I1d3919589ae95c7f3c86c435716577d433c73e4d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/362657
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
10 years agoTegra: ARM: T132: Clock: Allow higher emc frequencies
Krishna Sitaraman [Mon, 13 Jan 2014 23:05:17 +0000 (15:05 -0800)]
Tegra: ARM: T132: Clock: Allow higher emc frequencies

Change-Id: I959bbed9d926f7b5861610f1df1e5d3a53f2511f
Reviewed-on: http://git-master/r/355245
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/361684
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
10 years agoARM: Tegra132: DVFS: Add version names for initial dvfs tables
Krishna Sitaraman [Mon, 13 Jan 2014 23:34:20 +0000 (15:34 -0800)]
ARM: Tegra132: DVFS: Add version names for initial dvfs tables

Change-Id: Ic91fcb02474b4bfb28bcf943d5a2726cbdd760c7
Reviewed-on: http://git-master/r/355258
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/361682
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
10 years agoARM: DVFS: Add version number to dvfs table
Krishna Sitaraman [Sat, 11 Jan 2014 02:30:10 +0000 (18:30 -0800)]
ARM: DVFS:  Add version number to dvfs table

Add version number and print them as part of the dvfs table

Change-Id: Ib60371aebd9f9ad1ad55b2e2a55cb03da2c61770
Reviewed-on: http://git-master/r/354699
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/361683
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>