6 years agoPM: Add watchdog to catch lockup during device resume
Benoit Goby [Tue, 15 Feb 2011 05:32:43 +0000]
PM: Add watchdog to catch lockup during device resume

Refactor the dpm suspend watchdog code and add watchdogs
on resume too. The dpm wachdog prints the stack trace and
reboots the system if a device takes more than 12 seconds
to suspend or resume.

Change-Id: If00c047a17b80bdc13a8426393c698bc450a7347
Signed-off-by: Benoit Goby <benoit@android.com>

6 years agopower: android: switch to nn.n format for temperature readings
Todd Poynor [Sat, 4 Aug 2012 01:58:46 +0000]
power: android: switch to nn.n format for temperature readings

Change-Id: I67b44e5c706c94f5e2031da9dab3dddb1a4b6b3f
Signed-off-by: Todd Poynor <toddpoynor@google.com>

6 years agopower: android: battery monitor polling with wakeup alarms
Todd Poynor [Thu, 2 Aug 2012 01:22:22 +0000]
power: android: battery monitor polling with wakeup alarms

Based on Tuna code from 3.0 ported to 3.4 alarm API.

Change-Id: I9b13209963d5a5043237e9e29f3cb07c40583af2
Signed-off-by: Todd Poynor <toddpoynor@google.com>

6 years agosync: add reference counting to timelines
Erik Gilling [Fri, 3 Aug 2012 00:26:45 +0000]
sync: add reference counting to timelines

If a timeline is destroyed while fences still hold pts on it, the reworked
fence release handler can cause the timeline to be freed before all it's points
are freed.

Change-Id: I1cd8ddb638eded7db9db446ff6b37f3dd165d6c4
Signed-off-by: Erik Gilling <konkers@android.com>

6 years agoRevert "staging: android: ram_console: honor dmesg_restrict"
Colin Cross [Thu, 2 Aug 2012 21:57:57 +0000]
Revert "staging: android: ram_console: honor dmesg_restrict"

This reverts commit dd09979346813357200adf71b07003fc0a778089.

6 years agoleds: triggers: send uevent when changing triggers
Colin Cross [Tue, 24 Jul 2012 01:08:15 +0000]
leds: triggers: send uevent when changing triggers

Some triggers create sysfs files when they are enabled.  Send a uevent
"change" notification whenever the trigger is changed to allow userspace
processes such as udev to modify permissions on the new files.

Change-Id: I31410cbc0f5c146f31c61326f8006e98b3b7201e
Signed-off-by: Colin Cross <ccross@android.com>

6 years agosync: add internal refcounting to fences
Erik Gilling [Mon, 23 Jul 2012 23:43:05 +0000]
sync: add internal refcounting to fences

If a fence is released while a timeline that one of it's pts is on is being
signaled, it is possible for that fence to be deleted before it is signaled.
This patch adds a refcount for internal references such as signaled pt
processing.

Change-Id: Ie8605e6fd2ac026c207220a03d84e1c1078ec719
Signed-off-by: Erik Gilling <konkers@android.com>

6 years agogpu: ion: Don't call ion_buffer_put on error path
Laura Abbott [Thu, 2 Aug 2012 01:06:18 +0000]
gpu: ion: Don't call ion_buffer_put on error path

If dma_buf_fd fails, the dma_buf needs to be cleaned up by
calling dma_buf_put. dma_buf_put will call ion_dma_buf_release
which in turn calls ion_buffer_put to clean up the buffer
reference. Calling ion_buffer_put after dma_buf_put drops the
reference count by one more which is incorrect. Fix this by
getting rid of the extra ion_buffer_put call.

Change-Id: Ieb3a7b781bf2dc299c45384dbf0a12d186adeb22
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>

6 years agopower: android: add /d/android-power
Todd Poynor [Wed, 1 Aug 2012 03:14:05 +0000]
power: android: add /d/android-power

Change-Id: I306ae5928bb5c32dc986811cfa3a6dd98519a2d7
Signed-off-by: Todd Poynor <toddpoynor@google.com>

6 years agopower: android battery: add generic android battery driver
Todd Poynor [Fri, 27 Jul 2012 18:27:33 +0000]
power: android battery: add generic android battery driver

Add a generic battery power supply and glue logic for talking to the
board battery driver.  This driver handles common chores such as:

* periodic battery level and health monitoring
* kernel log reporting and other debugging features for key
  properties provided by different charger, fuel gauge, etc.
  components
* ensure properties such as battery health are made available to
  userspace
* common processing for board-level battery/case temperature sensors
  and policy for charging status based on battery health

Based on work by himihee.seo@samsung.com, ms925.kim@samsung.com, and
joshua.chang@samsung.com.

Change-Id: I5fa8e8d68811d84820b7a130b0245ad2b5b6d36b
Signed-off-by: Todd Poynor <toddpoynor@google.com>

6 years agopower:smb347: change power supply status when online prop set
Todd Poynor [Sat, 28 Jul 2012 03:48:49 +0000]
power:smb347: change power supply status when online prop set

Ensure uevent sent to userspace when board file forces USB/mains
online.

Change-Id: I670d709bda862a0ab6c04c3f6a616581ca7a8ebc
Signed-off-by: Todd Poynor <toddpoynor@google.com>

6 years agogpu: ion: IOCTL return success when error occurs
Olav Haugan [Tue, 15 May 2012 21:40:11 +0000]
gpu: ion: IOCTL return success when error occurs

ION_IOC_MAP, ION_IOC_SHARE, and ION_IOC_IMPORT may return
success when an error occurs.

Add correct error handling to ION_IOC_MAP, ION_IOC_SHARE, and
ION_IOC_IMPORT.

Change-Id: I61c6b0c574da425604235b2d39e13e4a27f7b6f3
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>

6 years agogpu: ion: Add EXPORT_SYMBOL to functions
Olav Haugan [Wed, 25 Jan 2012 17:28:55 +0000]
gpu: ion: Add EXPORT_SYMBOL to functions

Several functions in the ion interface is missing
EXPORT_SYMBOL. This is needed to allow clients to
use these functions from kernel modules.

Add EXPORT_SYMBOL to functions that are supposed
to be exposed.

Change-Id: I25611f7c367fd131daf5fb652abbea77e89a3d06
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>

6 years agogpu: ion: Add missing argument to WARN call
Olav Haugan [Thu, 19 Apr 2012 17:20:22 +0000]
gpu: ion: Add missing argument to WARN call

The condition argument to the WARN call in ion_free and
ion_share_dma_buf are missing. Add the argument to
allow correct printing of warning message.

Change-Id: I9b233992d5034f8780296cae6b42d77699f14cce
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>

6 years agogpu: ion: do not ask for compound pages in system heap
Dima Zavin [Fri, 27 Jul 2012 22:29:55 +0000]
gpu: ion: do not ask for compound pages in system heap

Change-Id: If84b246ec984ee2ae7b0174c714c8ce7726a6ab1
Signed-off-by: Dima Zavin <dima@android.com>

6 years agopower: smb347: read all IRQSTAT registers to clear interrupts
Todd Poynor [Wed, 25 Jul 2012 23:57:46 +0000]
power: smb347: read all IRQSTAT registers to clear interrupts

Change-Id: I430bd0413a63e3d9c79dee95371862724f4aa124
Signed-off-by: Todd Poynor <toddpoynor@google.com>

6 years agopower: smb347-charger: reinitialize registers after usb suspend
Colin Cross [Tue, 24 Jul 2012 20:29:12 +0000]
power: smb347-charger: reinitialize registers after usb suspend

Enabling usb suspend mode seems to reset the registers, reprogram them
after changing the usb suspend bit.

Change-Id: I4b805705508f990a56ab7fb99beaaf20cb235f16
Signed-off-by: Colin Cross <ccross@android.com>

6 years agopower: smb347-charger: reset chip during init
Colin Cross [Tue, 24 Jul 2012 20:27:57 +0000]
power: smb347-charger: reset chip during init

Reset the charger chip during init.  It's going to reset it self during
normal operation every time the primary input is unplugged, so we might
as well reset it manually so it's always in a consistent state after
boot and after unplugging.

Change-Id: Ia50024ebb8fcd50eeef565ccea994076b3f04546
Signed-off-by: Colin Cross <ccross@android.com>

6 years agommc: sdio: Fix sdio_reset_comm for sync
Hosung Kim [Mon, 23 Jul 2012 08:33:17 +0000]
mmc: sdio: Fix sdio_reset_comm for sync

mmc_sdio_init_card function is doing necessary initialization

Change-Id: I7d2e432b2af8a76267378acba07e3e4e8fd1e6bc
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>

6 years agopower: smb347-charger: Add W/A about not charging when DCIN/USBIN connecting same...
HongMin Son [Mon, 23 Jul 2012 14:11:31 +0000]
power: smb347-charger: Add W/A about not charging when DCIN/USBIN connecting same time

Add W/A about not charging when DCIN/USBIN connecting same time
- USB Suspend mode set if DCIN/USBIN connection at the same time.

Change-Id: I375fdd3b265ea2ede4645fdc33b62def1fbe76a3
Signed-off-by: HongMin Son <hongmin.son@samsung.com>

6 years agoMerge branch 'dev/android-t114-3.4-rebased' of git://git-mirror:9418/kernel/experimen...
Varun Wadekar [Fri, 10 Aug 2012 10:38:00 +0000]
Merge branch 'dev/android-t114-3.4-rebased' of git://git-mirror:9418/kernel/experimental into android-t114-3.4-rebased

6 years agomisc: tegra-throughput: warn on short frames
Ilan Aelion [Tue, 7 Aug 2012 15:27:45 +0000]
misc: tegra-throughput: warn on short frames

issue a warning on flip events less than 1 microsecond apart.

Bug 1027664
Bug 1028850

Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/121810
(cherry picked from commit 6c0e907b437765fb9f7093599911b71a836d49a6)

Change-Id: Ie15256e35475d345b2ebe6ddb637ccc181fcb61e
Reviewed-on: http://git-master/r/122326
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Tested-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: host: invalidate FDC before context save
Nuno Subtil [Tue, 7 Aug 2012 05:11:01 +0000]
video: tegra: host: invalidate FDC before context save

Invalidate the FDC before submitting the context
save pushbuffer to ensure cache coherency across
both GPU cores.

Bug 1020291

Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/121945
(cherry picked from commit cef956d07ec717f4714f5101805bbe2f0f149e71)

Change-Id: I43ffee6a77122b4f2fe17f063dc6756c501e59c7
Reviewed-on: http://git-master/r/122323
Tested-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Donghan Ryu <dryu@nvidia.com>

6 years agousb: host: fix tegra_ehci_remove() warnings
Venu Byravarasu [Wed, 8 Aug 2012 11:59:36 +0000]
usb: host: fix tegra_ehci_remove() warnings

usb_put_hcd calls hcd_release which frees up memory allocated
for hcd. As iounmap is called after usb_put_hcd and it is trying
to access hcd->regs, getting warning messages during unload of
USB. Hence fixing it.

bug 1023362

Change-Id: Ic339395edad9a76a9eeae290eff3517d2c714477
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/122088
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Tested-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoUSB: otg: delay device disconnect
Krishna Yarlagadda [Wed, 8 Aug 2012 11:31:10 +0000]
USB: otg: delay device disconnect

Device disconnect during resume might fail if notification
clients for this device removal are not ready.
Disconnecting device after the resume is complete.

Bug 1024496

Change-Id: Ia806e177d2dd2b1b43d3fea7a4af45f0d4a93cd4
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/122079
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: config: tegra3: enable ipv4/ipv6 filters
Mohan T [Thu, 9 Aug 2012 04:21:11 +0000]
arm: config: tegra3: enable ipv4/ipv6 filters

Android jb need ip filters to be enabled
to track data uses.

Bug 1019233

Change-Id: I8073643a4a7c34e428c02682a3afc5a23fbcf344
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/122051
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agousb: gadget: tegra: fix compilation issue
Rakesh Bodla [Wed, 8 Aug 2012 08:44:53 +0000]
usb: gadget: tegra: fix compilation issue

Fixing the potential compilation this is
currently masked as CONFIG_USB_OTG_UTILS
is enabled.

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

6 years agoarm: tegra: usb_phy: remove duplicate code
Rakesh Bodla [Wed, 8 Aug 2012 05:45:31 +0000]
arm: tegra: usb_phy: remove duplicate code

Remove duplicate code.

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

6 years agoarm: tegra: usb_phy: fix null pointer dereference
Rakesh Bodla [Wed, 8 Aug 2012 09:06:13 +0000]
arm: tegra: usb_phy: fix null pointer dereference

Fixing the null pointer dereference crash. Also
modifying USB driver not to give up in case if there
is no avdd_usb regulator.

Bug 1029852

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

6 years agovideo: tegra: hdcp: Fix Locking Issue
Matt Wagner [Thu, 2 Aug 2012 22:49:50 +0000]
video: tegra: hdcp: Fix Locking Issue

Locking in nvhdcp was set up in such a way that we couldn't
change the state of the HDMI plug while negotiating the HDCP connection.

Another lock was added that is only taken when the state of the plug or
hdcp session are changed.  This enables correct failure if the plug is removed
during negotiation.

Bug 1024031

Reviewed-on: http://git-master/r/120546
(cherry picked from commit 51f746421b73f8f378bd7908b35fd6c79687e239)

Change-Id: Id9a9b09f2cd03a1b51e7334391f35fc076a1e1dd
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/121399
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agomisc: tegra-throughput: prevent race on init
Ilan Aelion [Sun, 5 Aug 2012 12:56:40 +0000]
misc: tegra-throughput: prevent race on init

prevent a race condition on initialization which could result in
multiple notifier registrations.

Bug 1027664

Change-Id: I2e7dcad159f631a7e244d43019169fdaf195bc34
(cherry picked from commit 06ad60cd85a221eec673654c73d55fba34455a3a)
Reviewed-on: http://git-master/r/121143
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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

6 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>

6 years agoRevert "media: video: tegra: fix sh532u buffer overflows"
Varun Wadekar [Thu, 9 Aug 2012 12:40:09 +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>

6 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>

6 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>

6 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>

6 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

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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

6 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

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>