8 years agomisc: tegra-throughput: prevent division by 0
Ilan Aelion [Thu, 2 Aug 2012 17:01:02 +0000]
misc: tegra-throughput: prevent division by 0

Prevent division by 0 on subsequent flip notifications at an interval
shorter than 1 micro-second.

Bug 1027664

Change-Id: I6e2f886721216fc2479adc1a24504b707c7ebe45
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
(cherry picked from commit 92807179cbbd60be67e09ff40bdaab313e3a55fe)
Reviewed-on: http://git-master/r/121142
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael I Gold <gold@nvidia.com>

8 years agoarm: tegra: xmm: protect xmm power state
Vinayak Pane [Wed, 30 May 2012 01:00:26 +0000]
arm: tegra: xmm: protect xmm power state

Added protection locks for xmm power state. Moving
prints outside of spinlock. Revisit spinlock on global
flags and rearrange in irq.
Avoid kernel crash in case of remote-wakeup detected.
Protect ipc_ap_wake_state in xmm on & off.

Bug 1010131

Change-Id: Id53598b09bececd6f4ff1a948a492e6fcc56628c
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/108427
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

8 years agopwm: tegra: resource allocation through devm_*
Kunal Agrawal [Tue, 7 Aug 2012 08:16:07 +0000]
pwm: tegra: resource allocation through devm_*

Using the devm_* for memory region allocation and clock handler
request. As a result, there is no need to explicitly free them and
hence saving some code.

Change-Id: Id69d40bd44622105ea4f8a37426dd83a694adb8d
Signed-off-by: Kunal Agrawal <kunala@nvidia.com>
Reviewed-on: http://git-master/r/121581
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

8 years agoARM: tegra: e1853: Update pinmux table entries
Ashwin Joshi [Thu, 26 Jul 2012 09:13:11 +0000]
ARM: tegra: e1853: Update pinmux table entries

Some of the entries in pinmux table are incorrect. Updated the table
with correct entries.

Bug 966833
Bug 1018258

Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>

Change-Id: I7ca486246fd51d83e865a9ef825be33011404a89
Reviewed-on: http://git-master/r/118282
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-by: Bhavesh Parekh <bparekh@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
(cherry picked from commit a1aef89788f8660e7579a8ad555f1ef68d4c553b)
Reviewed-on: http://git-master/r/119651
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agoARM: tegra: e1853: Add e1853 defconfig
Ashwin Joshi [Thu, 26 Jul 2012 07:25:49 +0000]
ARM: tegra: e1853: Add e1853 defconfig

Add a defconfig file for E1853 board

Bug 966833
Bug 1018258

Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>

Change-Id: I7cbde666acbe13fcaca2f56d877e0b4872756c17
Reviewed-on: http://git-master/r/118281
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-by: Bhavesh Parekh <bparekh@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
(cherry picked from commit 465ba7c85429964a7937a6683376d72e396ebe47)
Reviewed-on: http://git-master/r/119650
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agoARM: tegra: e1853: Add board support for e1853
Ashwin Joshi [Fri, 27 Jul 2012 10:24:22 +0000]
ARM: tegra: e1853: Add board support for e1853

E1853 is T30 based Automotive platform.

Changes done:
1. New board specific files added
2. Added new machine number for E1853
3. Added pinmux configuration for E1853

Bug 966833
Bug 1018258

Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>

Change-Id: Ibf1093f59e10a0a5cfa42a177c21c0db01983196
Reviewed-on: http://git-master/r/118000
Tested-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
(cherry picked from commit ad9dd1b3242f23c0f46eaf92ab49f495c06f330f)
Reviewed-on: http://git-master/r/119580
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agoarm: configs: tegra3: Enable boost cpu frequency
Rakesh Bodla [Thu, 2 Aug 2012 12:21:13 +0000]
arm: configs: tegra3: Enable boost cpu frequency

Enabling boost CPU frequency for tegra gadget
to improve USB performance.

Bug 1020850

Change-Id: Ic36686399f8ebd84c24f9d3cb73792ce3bef90be
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/120351
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

8 years agomfd: tps65090: initialize regmap before accessing register
Laxman Dewangan [Tue, 7 Aug 2012 09:46:51 +0000]
mfd: tps65090: initialize regmap before accessing register

The regmap should be initialized before irq initialization
happen as register are accessed during irq init.

Change-Id: I301e8b84596a9075209901cbaff1dc42a944e163
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121623
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

8 years agomfd: add support for MAXIM77665
Laxman Dewangan [Tue, 7 Aug 2012 09:07:34 +0000]
mfd: add support for MAXIM77665

Maxim 77665 is Companion PMIC for Smartphones and Tablets.
This support Flash, Fuel Gauge, Haptic, MUIC and battery
charging.
This patch add the core driver for interface for accessing
resgister of the device.

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

8 years agocrypto: tegra-aes: remove unused variable
Stefan Becker [Thu, 9 Aug 2012 08:20:25 +0000]
crypto: tegra-aes: remove unused variable

Bug 1024089

Change-Id: I185016635729d3e1fb853a680ca6e66f7fc3c714
Signed-off-by: Stefan Becker <stefanb@nvidia.com>
Reviewed-on: http://git-master/r/122363
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Oskari Jaaskelainen <oskarij@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Bourgeois <fbourgeois@nvidia.com>

8 years agousb: ehci: tegra: give ownership of DMA buffer to processor first
Preetham Chandru [Wed, 8 Aug 2012 15:25:48 +0000]
usb: ehci: tegra: give ownership of DMA buffer to processor first

Give ownership of the DMA buffer back to the processor first and
then free the buffer. Otherwise processor won't be able to
access the dma mapped buffers and this would lead to slab
corruption.
When the DMA buffer is freed without a call to dma_sync_single_for_cpu(),
the kernel won't be able to set the buffer as POISON FREE and when we
acquire this memory back again the kernel will start printing slab
corruption output as the memory is not set to POISON FREE

Bug 1017884
Bug 1018161
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>

Change-Id: I9188e83ca394082a6f33dc7858a781b1363392ab
Reviewed-on: http://git-master/r/122151
Tested-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Venkata Jagadish <vjagadish@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

8 years agopm: EDP: allow heap allocation
Sivaram Nair [Tue, 7 Aug 2012 07:17:00 +0000]
pm: EDP: allow heap allocation

Remove the const qualifiers from EDP manager and client structures which
prevents their allocation on heap.

Change-Id: Id583d2e8fbf564bf1a6530a29b1d3d0983a52abc
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/121565
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

8 years agoARM: tegra: spell check
Hiroshi Doyu [Tue, 7 Aug 2012 05:20:44 +0000]
ARM: tegra: spell check

s/wher/where/, pointed by Hiro Sugawara.

Change-Id: Ieb5680d3f84392c57c582896c31c7a01dd987e88
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/121541
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoARM: tegra: clock: Update clock tree
Alex Frid [Mon, 6 Aug 2012 23:21:47 +0000]
ARM: tegra: clock: Update clock tree

- Added EMC shared bus users for camera, sdmmc4, and iso manager
- Fixed typos in dsi duplicate clock definitions
- Removed CML duplicate clocks

Change-Id: Ia1ba234949401426096a54c8b2c7ffe055e1da4b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/121536
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

8 years agoARM: tegra11: clock: Update sbus round rate
Alex Frid [Mon, 6 Aug 2012 23:08:02 +0000]
ARM: tegra11: clock: Update sbus round rate

Allowed to use fractional dividers with the exception of 1 : 1.5
ratio for system bus clock.

Change-Id: I9bf37bcc123b2dbbec3e89226bfdb9942f3ad3b0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/121535
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

8 years agoARM: tegra11: clock: Lower cbus backup rate by 25% margin
Alex Frid [Mon, 6 Aug 2012 22:37:31 +0000]
ARM: tegra11: clock: Lower cbus backup rate by 25% margin

Change-Id: I9eabb0054641e3edb95febd3254ed47dc6f7dec3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/121530
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

8 years agoARM: tegra11: clock: Restrict PLLC usage
Alex Frid [Mon, 6 Aug 2012 22:24:26 +0000]
ARM: tegra11: clock: Restrict PLLC usage

PLLC is allowed to supply clock to EMC only on configuration with
dual cbus, or to cbus modules only, otherwise.

Change-Id: I40599e24ae165377c4aa622aae95754d4f35d089
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/121529
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

8 years agoARM: config: enabled CONFIG_THERMAL
Joshua Primero [Mon, 6 Aug 2012 23:21:23 +0000]
ARM: config: enabled CONFIG_THERMAL

Enabled CONFIG_THERMAL to enable Linux thermal sysfs framework.

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

8 years agoARM: tegra11: dvfs: Add preliminary EMC DVFS table
Alex Frid [Mon, 6 Aug 2012 21:32:41 +0000]
ARM: tegra11: dvfs: Add preliminary EMC DVFS table

Change-Id: Ic4d0f0b23d9f03ab63909747b779639e779a18b9
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/121437
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

8 years agoARM: tegra11: clock: Implement EMC bus update policy
Alex Frid [Fri, 3 Aug 2012 00:33:39 +0000]
ARM: tegra11: clock: Implement EMC bus update policy

Implemented EMC bus update policy as follows.

Request for EMC rate is rounded up to the available discrete step
listed in EMC scaling table.

The clock source is selected as specified in the respective table
entry (it can be either scaled PLLC or one of fixed rate plls: PLLP,
or PLLM).

If clock source rate does not match table entry (possible only for
scaled PLLC), and
- the scaled clock source is not used currently by EMC, then re-scale
PLLC, and complete source switch/divider change in one shot
- the scaled clock source is used currently by EMC, then switch emc to
backup pll, re-scale PLLC, and then switch emc to PLLC with appropriate
divider. The backup rate is determined as minimum rate above the target
that can be achieved from any fixed rate plls.

Change-Id: I1c9e3403c9600f925413fc310d7c8df2e2d3dff4
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/121436
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoARM: tegra11: clock: Add EMC scaling table initialization
Alex Frid [Tue, 31 Jul 2012 04:41:45 +0000]
ARM: tegra11: clock: Add EMC scaling table initialization

Added preliminary EMC scaling table initialization. Unlike tegra30,
clock source selection policy is now encoded in the table itself.
Available sources include fixed rate plls PLLM and PLLP, as well as
scaled PLLC.

Change-Id: I593c7175d832d75596f47910388f03a62ef5f05c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/121435
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

8 years agoiommu/tegra: smmu: Don't allocate pte at iova_to_phys
Hiroshi DOYU [Fri, 23 Mar 2012 08:56:41 +0000]
iommu/tegra: smmu: Don't allocate pte at iova_to_phys

No need to allocate new pte if it doesn't exsit just for translation.

Change-Id: I48ef9b48bc5d1d9b1ec73dca7db018df789e3232
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/121261
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoiommu/tegra: smmu: Fix smmu_iommu_unmap() return value
Hiroshi DOYU [Fri, 23 Mar 2012 09:24:48 +0000]
iommu/tegra: smmu: Fix smmu_iommu_unmap() return value

Fix to return 0 if fails.

Change-Id: Iee4efebc24329f82d9e055915a064a0abb17ddd3
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/121260
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoiommu/tegra: smmu: Refrain noisy console message
Hiroshi Doyu [Mon, 6 Aug 2012 09:32:00 +0000]
iommu/tegra: smmu: Refrain noisy console message

With many iommu'able devices, console gets noisy.

Change-Id: I7f3ebab0eb844f353cd4d3013d270cdc1112289a
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/121259
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoarm: tegra: kai: add missing irq to bluesleep resource
Johnny Qiu [Mon, 6 Aug 2012 09:50:42 +0000]
arm: tegra: kai: add missing irq to bluesleep resource

bug 1029521

Change-Id: Id3bbc8437c30b44bd02a8f33984d3419abe5fd0b
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/121254
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agortc-max77663: add wakeup property in RTC device.
haydend [Mon, 6 Aug 2012 08:26:39 +0000]
rtc-max77663: add wakeup property in RTC device.

Android use ioctl ANDROID_ALARM_SET_RTC on /dev/alarm to change time,
alarm device driver will call RTC interface to set the change into RTC
register.
On K3.4 alarm related code has changed a little bit, in alarmtimer.c
alarmtimer_rtc_add_device used as rtc class add_device callback, in
this function will check if devices can wakeup system or not,
     if (!device_may_wakeup(rtc->dev.parent))
        return -1;
If check is failed, the alarm device will not bind to a RTC device
this will cause our time change not set into RTC register, the change
will lose after system reboot.
Because K3.1 don't has such check, so we need use device_init_wakeup
to add wakeup property on rtc-max77663 in K3.4 to solve the issue.

bug 1026999

Change-Id: If542407d5ee1fcce0718ba4107315a1c4020f653
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/121243
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

8 years agoARM: tegra: Create IOMMU map at board_init w/ PLATFORM_IOMMUABLE
Hiroshi Doyu [Mon, 16 Jul 2012 08:10:06 +0000]
ARM: tegra: Create IOMMU map at board_init w/ PLATFORM_IOMMUABLE

Create IOMMU map at board_init with CONFIG_PLATFORM_IOMMUABLE enabled.

Change-Id: I204b98c145420535821c4cbf03fa61765e619ec1
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/121219
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoARM: tegra: Add SMMU resources for compatibility
Hiroshi DOYU [Tue, 17 Jul 2012 07:04:21 +0000]
ARM: tegra: Add SMMU resources for compatibility

For the compatibility between IOMMU and IOVMM.

REVISIT: multiple MC support.

Change-Id: Ie6e74ac4140451cb5cfcc46770a0931c732d7848
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/121218
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

8 years agoiommu/tegra: smmu: Fix incorrect cherry-pick merge
Hiroshi Doyu [Fri, 3 Aug 2012 07:04:23 +0000]
iommu/tegra: smmu: Fix incorrect cherry-pick merge

Remove duplicated member.
Remove unnecessary header inclusion from upstream.

Change-Id: I16988896a1994dcefd44ba1f46e16e20783c335b
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/121217
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoarm: tegra11x: usb_phy: fix compilation errors
Preetham Chandru [Fri, 3 Aug 2012 09:46:58 +0000]
arm: tegra11x: usb_phy: fix compilation errors

TEGRA_PINGROUP_UAA, TEGRA_PINGROUP_UAB, TEGRA_PINGROUP_UDA
are only applicable for T20.

Bug 1022159
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: I6b1f448070520f4165cb30f6186158a1b67d984f
Reviewed-on: http://git-master/r/120856
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoARM: tegra: linear IOVA map for FB at tegra_move_framebuffer
Hiroshi Doyu [Wed, 1 Aug 2012 06:20:43 +0000]
ARM: tegra: linear IOVA map for FB at tegra_move_framebuffer

To avoid white out at boot until DC works correctly.

*FIXME*: Those linear map should be removed later.

Bug 1024594

Change-Id: Ia1d41a1b6433c438daac07232f7ef64531699feb
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/120015
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agonet: r8169: Correct calling nap_disable api
Jay Agarwal [Mon, 6 Aug 2012 13:13:04 +0000]
net: r8169: Correct calling nap_disable api

Two consecutive calls to napi_disable leads to hang
since SCHED bit is always set. So doing napi_disable
in close only when it is not already done in suspend.

Bug 1022390

Change-Id: I83bf40a9cddc3008685b768ef6dbcbd0371eb07e
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/119669
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

8 years agoARM: tegra: clock: Implement clk_prepare/clk_unprepare
Alex Frid [Sun, 29 Jul 2012 01:38:48 +0000]
ARM: tegra: clock: Implement clk_prepare/clk_unprepare

Implemented clk_prepare/clk_unprepare APIs that will be used after
CONFIG_HAVE_CLK_PREPARE is set. Then, these APIs will be called only
in non-atomic context, and can hold mutex. On the other hand current
clk_enable/clk_disable will be no longer allowed to hold mutex, as
they may be called in atomic context.

Implementation took advantage of tegra clock "cansleep" attribute
that indicates if clock requires preparation. Hence, the interfaces
are splitted respectively: all work on sleeping clocks is done only
in clk_prepare/clk_unprepare, and all work for non-sleeping clocks
is done only in clk_enable/clk_disable APIs. Calling "complimentary"
APIs on either type of clocks is allowed, and actually expected,
since clients may not know the clock attributes. However, calling
clk_enable on non-prepared sleeping clock would fail.

When macro CONFIG_HAVE_CLK_PREPARE is not set, there is no changes
in behavior of clk_enable/clk_disable APIs, with one exception:
propagation of enable/disable state to sleeping parent passes through
might_sleep macro, which may help to catch clock tree inconsistencies
(e.g., non-sleeping child of sleeping parent).

On code base with CONFIG_HAVE_CLK_PREPARE not set, and might_sleep is
resolved to NOP, this commit does not change clk_enable/clk_disable
at all.

Change-Id: I09bbae7845903054cadb4de84aee1cb3fb0def4b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/119187
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agovideo: tegra: dynamic tsec, msenc firmware name
Ken Adams [Mon, 30 Jul 2012 19:50:11 +0000]
video: tegra: dynamic tsec, msenc firmware name

Allows msenc and tsec choose different versions of the firmware at runtime.
For bug 980258

Change-Id: Ie34dddb23417ce3b21f0097e50dc47349b5f6aaa
Reviewed-on: http://git-master/r/116802
Reviewed-by: Ken Adams <kadams@nvidia.com>
Tested-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shashank Garg <sgarg@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

8 years agoMerge remote branch 'origin/dev/android-t114-3.4-next' into promotion_build
Rohan Somvanshi [Thu, 9 Aug 2012 16:18:12 +0000]
Merge remote branch 'origin/dev/android-t114-3.4-next' into promotion_build

8 years agoRevert "media: video: tegra: fix sh532u buffer overflows"
Varun Wadekar [Thu, 9 Aug 2012 12:41:24 +0000]
Revert "media: video: tegra: fix sh532u buffer overflows"

This reverts commit 0c134c5ada823064a40a55a34fed065582cfdc1c since it
breaks camera_sanity.

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

8 years agoARM: Tegra: remove tegra_get_linear_age() from under CONFIG_HAVE_ARM_TWD
Varun Wadekar [Thu, 9 Aug 2012 10:54:31 +0000]
ARM: Tegra: remove tegra_get_linear_age() from under CONFIG_HAVE_ARM_TWD

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

8 years agoARM: Tegra: declare tegra_dvfs_age_cpu only for Tegra3
Varun Wadekar [Thu, 9 Aug 2012 10:51:49 +0000]
ARM: Tegra: declare tegra_dvfs_age_cpu only for Tegra3

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

8 years agoARM: Tegra: use CONFIG_ARCH to pick proper boot addresses
Varun Wadekar [Thu, 9 Aug 2012 10:49:32 +0000]
ARM: Tegra: use CONFIG_ARCH to pick proper boot addresses

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

8 years agoMerge branch 'android-t114-3.4-rebased' into android-t114-3.4
Varun Wadekar [Thu, 9 Aug 2012 07:50:36 +0000]
Merge branch 'android-t114-3.4-rebased' into android-t114-3.4

8 years agoRevert "ARM: Tegra: allocate non-cacheable page to hold cpu context"
Varun Wadekar [Thu, 9 Aug 2012 06:53:44 +0000]
Revert "ARM: Tegra: allocate non-cacheable page to hold cpu context"

This reverts commit 70002205cda63da3d09d76fce823e5a55e5d61bd.

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

8 years agoRevert "arm: tegra: optimize L2 enable/disable paths for secureos"
Varun Wadekar [Thu, 9 Aug 2012 06:50:52 +0000]
Revert "arm: tegra: optimize L2 enable/disable paths for secureos"

This reverts commit 7ac85a9d58b51352605c845a0066c949c0c85f72.

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

8 years agoRevert "Merge commit 'main-jb-2012.08.03-B4' into t114-0806"
Varun Wadekar [Thu, 9 Aug 2012 06:24:40 +0000]
Revert "Merge commit 'main-jb-2012.08.03-B4' into t114-0806"

Part of the kernel cleanup process.

This reverts commit b8b641f5e81434ebb721b3998218645b5190bc25.

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

8 years agoRevert "Fix compilation errors due to merge"
Varun Wadekar [Thu, 9 Aug 2012 06:24:01 +0000]
Revert "Fix compilation errors due to merge"

Part of the kernel cleanup process.

This reverts commit 92f18b11534e02bbd3297c89d2ac7baaa85b79c5.

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

8 years agoARM: tegra: lp0 WAKE2 status clear
Bitan Biswas [Mon, 6 Aug 2012 05:47:25 +0000]
ARM: tegra: lp0 WAKE2 status clear

Tegra pmc WAKE2 status registers also need to be cleared
before re-entering lp0 mode.

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

8 years agomfd: tps80031: remove support for subdevs registration
Laxman Dewangan [Sun, 5 Aug 2012 08:01:20 +0000]
mfd: tps80031: remove support for subdevs registration

The mfd sub devices should get added through the
mfd_add_devices() not through legacy style of
adding sub devices.

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

8 years agomfd: tps80031: gpadc: register as mfd sub device
Laxman Dewangan [Sun, 5 Aug 2012 07:57:08 +0000]
mfd: tps80031: gpadc: register as mfd sub device

Register General Purpose ADC driver of TPS80031 as
mfd sub driver in place of adding it as a sub devices.
This is inline with the mfd driver policy.

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

8 years agopower: tps80031: battery-charger: register as mfd sub device
Laxman Dewangan [Wed, 1 Aug 2012 11:14:29 +0000]
power: tps80031: battery-charger: register as mfd sub device

Register battery charger driver of TPS80031 as mfd
sub driver in place of adding it as a sub devices.
This is inline with the mfd driver policy.

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

8 years agopower: tps80031: battery-gauge: register as mfd sub device
Laxman Dewangan [Wed, 1 Aug 2012 11:04:12 +0000]
power: tps80031: battery-gauge: register as mfd sub device

Register battery gauge driver of TPS80031 as mfd
sub driver in place of adding it as a sub devices.
This is inline with the mfd driver policy.

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

8 years agortc: tps80031: register as mfd sub device
Laxman Dewangan [Wed, 1 Aug 2012 10:55:25 +0000]
rtc: tps80031: register as mfd sub device

register RTC driver of TPS80031 as mfd sub
driver in place of adding it as a sub devices.
This is inline with the mfd driver policy.

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

8 years agoARM: tegra: enterprise: remove macro for common fixed regs
Laxman Dewangan [Sun, 5 Aug 2012 07:45:51 +0000]
ARM: tegra: enterprise: remove macro for common fixed regs

The macro FIXED_REGS_COMMON used in only one place and it
is no more common across A02 and A04 and hence removing
this. Also remove unnecessary back slash.

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

8 years agomisc: bcm4329: get rid of tegra_gpio_enable()
Laxman Dewangan [Fri, 3 Aug 2012 09:06:31 +0000]
misc: bcm4329: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I38dac94bd0eb753c779db61f71c1e01295faa89e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120848
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>

8 years agomedia: video: tegra: fix sh532u buffer overflows
Frank Chen [Wed, 1 Aug 2012 23:17:44 +0000]
media: video: tegra: fix sh532u buffer overflows

We need to validate the buffer size before we
copy buffers from/to user space.

Bug 1027334

Change-Id: I0717e9ff1d2e5eb3e8a863555457f4bcfdbb2cb9
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/120185
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

8 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Tue, 31 Jul 2012 22:53:09 +0000]
security: tf_driver: integrate latest TL release

Tegra 3 version: TF_TEGRA3_AB01.14.36781

1)Kernel boot addr in TF boot args, branch prediction activated early,
fix in system driver mapping.
2)Several improvments in boot and L2CC operations
3)Fix to support Neon

Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>

Change-Id: I16ed5d46d196875dece1f0006a0b04dbfdb58d42
Reviewed-on: http://git-master/r/119790
Reviewed-by: James Zhao <jamesz@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
Tested-by: Hyung Taek Ryoo <hryoo@nvidia.com>

8 years agoarm: tegra: optimize L2 enable/disable paths for secureos
Hyung Taek Ryoo [Tue, 31 Jul 2012 22:43:34 +0000]
arm: tegra: optimize L2 enable/disable paths for secureos

For the CONFIG_TRUSTED_FOUNDATION code paths, differentiate L2
enable vs. reenable, which are different SMCs (won't trigger an
invalidate in the case of a reenable).

On an L2 disable SMC, optionally pass a 0 for the L2 ways arg,
which skips the full clean/invalidate (and simply just disabled
the L2).

In order to safely skip flushing the L2 on the disable, we have
to be careful what we dirty from the type we flush the L1 and
disable the L2.

Bug 939415
Signed-off-by: Chris Johnson<cwj@nvidia.com>

Change-Id: I756d2ceda83d5d8d6bc5670218e9d874d5e5f62a
Reviewed-on: http://git-master/r/119786
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agoARM: Tegra: allocate non-cacheable page to hold cpu context
Varun Wadekar [Wed, 8 Aug 2012 11:27:40 +0000]
ARM: Tegra: allocate non-cacheable page to hold cpu context

This page would be used by the Trusted Foundations code to
hold the CPU context during suspend.

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

8 years agoFix compilation errors due to merge
Pradeep Kumar [Mon, 6 Aug 2012 17:33:12 +0000]
Fix compilation errors due to merge

Change-Id: I1067e7b9ab829bc6629eb79c1edd36dc1327e281
Reviewed-on: http://git-master/r/121393
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

8 years agoMerge commit 'main-jb-2012.08.03-B4' into t114-0806
Pradeep Kumar [Mon, 6 Aug 2012 17:31:18 +0000]
Merge commit 'main-jb-2012.08.03-B4' into t114-0806

Conflicts:
arch/arm/boot/compressed/Makefile
arch/arm/boot/compressed/atags_to_fdt.c
arch/arm/boot/compressed/head.S
arch/arm/boot/dts/tegra30.dtsi
arch/arm/include/asm/bug.h
arch/arm/kernel/traps.c
arch/arm/mach-tegra/Makefile.boot
arch/arm/mach-tegra/board-cardhu-sdhci.c
arch/arm/mach-tegra/board-cardhu.c
arch/arm/mach-tegra/board-enterprise-sdhci.c
arch/arm/mach-tegra/board-enterprise.c
arch/arm/mach-tegra/board-harmony.c
arch/arm/mach-tegra/board-kai-sdhci.c
arch/arm/mach-tegra/board-ventana.c
arch/arm/mach-tegra/board-whistler.c
arch/arm/mach-tegra/clock.h
arch/arm/mach-tegra/fuse.h
arch/arm/mach-tegra/tegra2_usb_phy.c
arch/arm/mach-tegra/tegra3_clocks.c
arch/arm/mach-tegra/tegra3_dvfs.c
arch/arm/mach-tegra/tegra3_speedo.c
arch/arm/mach-tegra/timer.c
arch/arm/mach-tegra/usb_phy.c
arch/arm/mach-tegra/wakeups-t3.c
drivers/cpufreq/cpufreq_interactive.c
drivers/input/touchscreen/atmel_mxt_ts.c
drivers/mfd/tps65090.c
drivers/mmc/core/mmc.c
drivers/mmc/host/sdhci-tegra.c
drivers/mmc/host/sdhci.c
drivers/net/wireless/bcmdhd/bcmsdh_sdmmc_linux.c
drivers/regulator/Kconfig
drivers/regulator/core.c
drivers/regulator/tps80031-regulator.c
drivers/spi/Makefile
drivers/staging/nvec/nvec.c
drivers/tty/serial/Makefile
include/linux/mmc/card.h
sound/soc/tegra/tegra_max98095.c
sound/usb/card.c

Change-Id: I65043bc6ce9e97d0592683462215a39e50f403fd
Reviewed-on: http://git-master/r/121392
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: config: tegra: android: enable device tree support
Nitin Kumbhar [Thu, 3 May 2012 10:55:25 +0000]
arm: config: tegra: android: enable device tree support

Enable device tree support for tegra2/tegra3 based android
platforms.

Bug 1001225

Change-Id: I5caf6302b88d30cca66bfdb957c5b4f1a575a634
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/110204
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agoarm: whistler: add device tree support for whistler
Nitin Kumbhar [Thu, 14 Jun 2012 02:15:08 +0000]
arm: whistler: add device tree support for whistler

Enable device tree support for whistler by adding board
compatible table.

Bug 1001225

Change-Id: Ic945d70894fe2deb5039106e794b7fa51c5604bb
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116609
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agoarm: enterprise: add device tree support for enterprise
Nitin Kumbhar [Mon, 7 May 2012 06:43:17 +0000]
arm: enterprise: add device tree support for enterprise

Enable device tree support for enterprise by adding board
compatible table.

Bug 1001225

Change-Id: I64038ce47771148f7cf2f1d53503d11729ac56b8
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116608
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agoarm: ventana: add device tree support for ventana
Nitin Kumbhar [Mon, 30 Apr 2012 14:53:08 +0000]
arm: ventana: add device tree support for ventana

Enable device tree support for ventana by adding board
compatible table.

Bug 1001225

Change-Id: I3f20c1a7966aff1a8a5fbfc1a7ccf2790419be70
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/110203
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agoARM: tegra: cardhu: Add DT boot support
Dan Willemsen [Tue, 10 Apr 2012 01:08:04 +0000]
ARM: tegra: cardhu: Add DT boot support

Use the existing boardfile for everything, just match using DT.

Change-Id: Ie12cad6ab0bfcb94538cd158dd9fc9ca85b91c98
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/95478
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agoARM: dt: tegra: rename board files to match SoC
Stephen Warren [Mon, 11 Jun 2012 22:25:07 +0000]
ARM: dt: tegra: rename board files to match SoC

Most ARM ${board}.dts files are already named ${soc}-${board}.dts. This
change modifies the Tegra board files to be named the same way for
consistency.

Once a related change is made in U-Boot, this will cause both U-Boot and
the kernel to use the same names for the .dts files and SoC identifiers,
thus allowing U-Boot's recently added "soc" and "board" environment
variables to be used to construct the name of Tegra .dtb files, and hence
allow board-generic U-Boot bootcmd scripts to be written.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit 702b0e4f2f2782962aab7d9a0a40ad68770bb1f6)

Conflicts:

arch/arm/boot/dts/tegra20-paz00.dts
arch/arm/boot/dts/tegra20-trimslice.dts
arch/arm/mach-tegra/Makefile.boot

Change-Id: I4ec7605331c996d3aff84fc2fc37bcf06f0aba0b
Reviewed-on: http://git-master/r/110202
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agoARM: tegra: make .dts compilation depend on Tegra2/3 support
Stephen Warren [Mon, 11 Jun 2012 22:25:07 +0000]
ARM: tegra: make .dts compilation depend on Tegra2/3 support

Update Makefile.boot to compile *.dts when the appropriate Tegra SoC
support is enabled, rather than requiring Kconfig to list each board
individually. Remove CONFIG_MACH_VENTANA now that it has no use.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit 9132b0ed57320996b16eafbf651a04e02ad29092)

Change-Id: I730271346eff20005ad289dedc54c9c6681e0384
Reviewed-on: http://git-master/r/116607
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agoarm: tegra: whistler: dt: add dts file with minimal info
Nitin Kumbhar [Thu, 14 Jun 2012 02:00:36 +0000]
arm: tegra: whistler: dt: add dts file with minimal info

Add dts file to enable device tree support on whistler platform.
This currently adds only compatible info to dt.

Bug 1001225

Change-Id: I3023639e817529e6bb18ed5fa92b8c35c12d45b8
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116606
GVS: Gerrit_Virtual_Submit
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

8 years agoarm: tegra: enterprise: dt: add dts file with minimal info
Nitin Kumbhar [Wed, 16 May 2012 12:49:23 +0000]
arm: tegra: enterprise: dt: add dts file with minimal info

Add dts file to enable device tree support on enterprise platform.
This currently adds only compatible info to dt.

Bug 1001225

Change-Id: I4cc4093062d39baef9871b423840f5f2d01f25e9
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116605
GVS: Gerrit_Virtual_Submit
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

8 years agoarm/dt: use CONFIG_MACH_CARDHU to build tegra-cardhu.dtb
Varun Wadekar [Mon, 6 Aug 2012 11:39:34 +0000]
arm/dt: use CONFIG_MACH_CARDHU to build tegra-cardhu.dtb

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

8 years agoarm: tegra: read board info from device tree
Nitin Kumbhar [Mon, 7 May 2012 12:39:41 +0000]
arm: tegra: read board info from device tree

Read board_info data from device tree instead of ATAGs,
if we're booting with device tree.

Bug 1001225

Change-Id: I2d659252a6a91f723bf4bb6c74918774650b87e2
Original-Author: Dan Willemsen <dwillemsen@nvidia.com>
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116604
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agoarm: tegra: Add ATAG_SERIAL parsing
Dan Willemsen [Thu, 15 Sep 2011 00:15:50 +0000]
arm: tegra: Add ATAG_SERIAL parsing

Bug 973078

Change-Id: I2860402c887db414717ce313101dc09e8b327f99
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>
Reviewed-on: http://git-master/r/108699
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

8 years agoregulator: tps65090: support for input supply
Laxman Dewangan [Fri, 3 Aug 2012 11:20:37 +0000]
regulator: tps65090: support for input supply

Fill the desc.supply_name for each rail with corresponding
input pinname as per datasheet.

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

8 years agoregulator: tps65090: Support for external control of DCDC
Laxman Dewangan [Fri, 3 Aug 2012 10:49:46 +0000]
regulator: tps65090: Support for external control of DCDC

The DCDC regulators can support of control through extrenal
signal. Add support of this feature.

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

8 years agoregulator: tps65090: support for LDO1 and LDO2
Laxman Dewangan [Fri, 3 Aug 2012 09:25:27 +0000]
regulator: tps65090: support for LDO1 and LDO2

The LDO1 and LDO2 are always-on regulator from device.
Add support for these rails.

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

8 years agoregulator: core: support of supply name through desc
Laxman Dewangan [Fri, 3 Aug 2012 11:11:18 +0000]
regulator: core: support of supply name through desc

Add support of providing the supply name through
regualtor descriptor. This help to fill the supply name
in device based on datasheet.
This patch help to develop driver which is align with
mainline.
This change is small set of change in mainline
---------------
commit 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3
Author: Rajendra Nayak <rnayak@ti.com>

    regulator: map consumer regulator based on device tree
---------------

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

8 years agomtd: nand: tegra: get rid of tegra_gpio_enable()
Laxman Dewangan [Fri, 3 Aug 2012 09:08:11 +0000]
mtd: nand: tegra: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

8 years agomfd: tps65090: print error message when malloc failed
Laxman Dewangan [Thu, 2 Aug 2012 15:12:19 +0000]
mfd: tps65090: print error message when malloc failed

Prints error message when memory alloc failed for easing
debugging.

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

8 years agomfd: tps65090: remove unused member from tps65090 structure
Laxman Dewangan [Thu, 2 Aug 2012 15:06:05 +0000]
mfd: tps65090: remove unused member from tps65090 structure

The structure tps65090 have member as "client", "lock", "id"
which is no more required.
Removing this member from structure.

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

8 years agoregulator tps65090: fix compilation warning
Laxman Dewangan [Thu, 2 Aug 2012 14:51:22 +0000]
regulator tps65090: fix compilation warning

Fix compilation warning of -Wmaybe-uninitialized

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

8 years agomfd: tps65090: fix compilation warning
Laxman Dewangan [Thu, 2 Aug 2012 14:50:32 +0000]
mfd: tps65090: fix compilation warning

Fix compilation warning of -Wmaybe-uninitialized

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

8 years agomfd: tps65090: make register access to inline
Laxman Dewangan [Thu, 2 Aug 2012 14:46:58 +0000]
mfd: tps65090: make register access to inline

Move the register access function to header and make
all register access apis to inline.

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

8 years agomfd: tps65090: remove duplicate mfd cells
Laxman Dewangan [Thu, 2 Aug 2012 14:30:23 +0000]
mfd: tps65090: remove duplicate mfd cells

TPS65090 add mfd sub device of "tps65090-pmic" and
"tps65090-regualtor" which is same.
Remove one of them.

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

8 years agomfd: tps65090: remove unused platform data
Laxman Dewangan [Thu, 2 Aug 2012 14:21:14 +0000]
mfd: tps65090: remove unused platform data

The tps65090 have platform data for subdevs which is
not used any more. Removing this from platform data.

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

8 years agoregulator: tps65090: fix multiple regulator registration issue
Laxman Dewangan [Thu, 2 Aug 2012 14:16:17 +0000]
regulator: tps65090: fix multiple regulator registration issue

The regulator of tps65090 is registered as mfd sub device
and hence all regulator should be register in one call
of tps65090 regulator probe.
Fixing this by providing the list of regulator platform data
and registering the regulators in single probe call.

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

8 years agoregulator: tps65090: convert regualtor_init_data as pointer
Laxman Dewangan [Thu, 2 Aug 2012 13:36:18 +0000]
regulator: tps65090: convert regualtor_init_data as pointer

In regulator platform data for tps65090, convert the regulator
init data to a pointer type to have easy support in DT.

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

8 years agoregulator: tps65090: separate regulator info with device info
Laxman Dewangan [Thu, 2 Aug 2012 13:30:59 +0000]
regulator: tps65090: separate regulator info with device info

Currently the regulator info is stored in the data structure of
device. This avoid to have multiple instance of this driver
as it can corrupt the other instance driver.
Separating driver specific data with device information.

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

8 years agoregulator: tps65090: rename regulator enums
Laxman Dewangan [Thu, 2 Aug 2012 13:18:07 +0000]
regulator: tps65090: rename regulator enums

Renaming regulator enums from TPS65090_ID_* to
TPS65090_REGULATOR_* for better readability.

Change-Id: I402de2069045b97000686e8010897c4a0821a48d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120835
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

8 years agomfd: tps80031: fix wrong regmap for charger
Xin Xie [Fri, 3 Aug 2012 01:28:48 +0000]
mfd: tps80031: fix wrong regmap for charger

BUG 1026050

Change-Id: Ide19fd183ee172c84b0d5d2d0382e8ec944f2a87
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/120580
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

8 years agoARM: tegra: cardhu: add support for lid switch
Rhyland Klein [Thu, 2 Aug 2012 19:09:15 +0000]
ARM: tegra: cardhu: add support for lid switch

Chromeos testing includes verifying the lid switch is functional.
While cardhu's don't have lids, this can be tested via the
lid_switch dip switch on the debug board. Add support for the lid
switch via gpio_keys.

bug 1027716

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I7b2e31798b6cfa0715980ddd93dd6b5292ca20d3
Reviewed-on: http://git-master/r/120445
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

8 years agoALSA: usb-audio: fix compilation error
Rhyland Klein [Thu, 2 Aug 2012 19:29:35 +0000]
ALSA: usb-audio: fix compilation error

change 8843c49092b6ed903e88eded1f1c9b9a7f432dfe introduced
a compliation error if CONFIG_SWITCH is not enabled.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I4b4c547394f424bd90837726b08d9feccd4207de
Reviewed-on: http://git-master/r/120444
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

8 years agoinput: touch: atmel_mxt_ts: Add Ftrace logging.
Vikas Jain [Fri, 27 Jul 2012 10:05:47 +0000]
input: touch: atmel_mxt_ts: Add Ftrace logging.

This change assists automating system wide
touch driver performance.

Bug 928954

Change-Id: Iea21dfea1c31748ce5835652cecc0856c4f4028d
Signed-off-by: Vikas Jain <vjain@nvidia.com>
Reviewed-on: http://git-master/r/118984
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: David Jung <djung@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

8 years agoARM: tegra: cardhu: report height/width for cardhu
Rakesh Iyer [Thu, 2 Aug 2012 12:19:17 +0000]
ARM: tegra: cardhu: report height/width for cardhu

For accurate Dots-per-inch computation we need to report height/width for
all cardhu based panels.

Bug 1003707.

Change-Id: I06c5ee077aa82a9ffd958e1cc7c536b445523da3
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/120350
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agomedia: tegra: ov9726: add group hold ioctl
Charlie Huang [Wed, 1 Aug 2012 01:41:38 +0000]
media: tegra: ov9726: add group hold ioctl

To make AE transition smoother, the group hold enable/disable actions
should be added before and after set gain/frame length/coarse time.

bug 1025995

Change-Id: I578b33167e50f59d0d9a88a0e16fac0c5425b6b6
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/119835
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Abhinav Sinha <absinha@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

8 years agoARM: tegra: cardhu: provide suspend aggr for E1506
Rakesh Iyer [Thu, 26 Jul 2012 19:18:05 +0000]
ARM: tegra: cardhu: provide suspend aggr for E1506

DSI clock gating requires a valid value for aggressive suspend.

Change-Id: I6847fb94e2db899ff251e16f045fa76b8ad2e737
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/118733
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

8 years agoregulator: tps65090: Use IS_ERR to check return value of regulator_register
Laxman Dewangan [Thu, 2 Aug 2012 12:42:04 +0000]
regulator: tps65090: Use IS_ERR to check return value of regulator_register

regulator_register never returns NULL.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(Cherry-picked from mainline
0ca2d6e65268477a53f959320a43d13b0c4d6b70)

Conflicts:

drivers/regulator/tps65090-regulator.c

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

8 years agomfd: Convert tps65090 to devm_regmap_init_i2c()
Axel Lin [Wed, 25 Apr 2012 02:04:58 +0000]
mfd: Convert tps65090 to devm_regmap_init_i2c()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(Cherry-picked from mainline
1d88f7a01d9588b3298cfd6a2ec30538e96d166e)

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

8 years agomfd: Return proper error if tps65090 regmap_init_i2c fails
Axel Lin [Wed, 25 Apr 2012 01:30:36 +0000]
mfd: Return proper error if tps65090 regmap_init_i2c fails

Return proper error instead of 0 if regmap_init_i2c fails.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(Cherrypicked from mainline
b683a0a675560307ebc458cf9044d98d27820b7c)

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

8 years agomfd: Don't use I2C-specific suspend and resume operations for tps65090
Mark Brown [Mon, 7 May 2012 09:03:18 +0000]
mfd: Don't use I2C-specific suspend and resume operations for tps65090

The legacy suspend operations have been deprecated and printing warnings
on boot for over a year now.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(Cherry-picked from mainline
b6c9eeef4e775e1fff76f4395d11638dc198271d)

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

8 years agomfd: Fix tps65090 ifdefs for suspend mode
Mark Brown [Mon, 7 May 2012 09:03:17 +0000]
mfd: Fix tps65090 ifdefs for suspend mode

CONFIG_PM also covers runtime only PM.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(Cherry-picked from mainline
1ca5513af77307eccea7efd4d12ef5c14f1b12ab)

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

8 years agoarm: tegra: usb_phy: use devm_kfree to free memory
Rakesh Bodla [Thu, 2 Aug 2012 06:23:39 +0000]
arm: tegra: usb_phy: use devm_kfree to free memory

devm_kfree() should be used to free memory allocated by devm_kzalloc()
Memory allocated with devm_kzalloc is automatically freed on driver
detach. Kernel crash will be observed if it is freed with kfree().

Bug 1027472

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

8 years agovideo: tegra: hdmi: cleanup error handling in init
Gaurav Batra [Wed, 1 Aug 2012 19:28:51 +0000]
video: tegra: hdmi: cleanup error handling in init

In case tegra_dc_init fails, this change will prevent unbalanced call
to dc->out_ops->disable().

Also mark tegra_dc_io_end in case tegra_dc_controller_enable
fails, this is required to not stop device from going into suspend mode.

Bug 1003874

Change-Id: I5af6b46fc50e1ae8e54f9f4eb8540d751364fed7
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/120108
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>