6 years agoPM / Domains: Do not stop devices after restoring their states
Rafael J. Wysocki [Fri, 15 Jun 2012 22:02:34 +0000]
PM / Domains: Do not stop devices after restoring their states

While resuming a device belonging to a PM domain,
pm_genpd_runtime_resume() calls __pm_genpd_restore_device() to
restore its state, if necessary.  The latter starts the device,
using genpd_start_dev(), restores its state, using
genpd_restore_dev(), and then stops it, using genpd_stop_dev().
However, this last operation is not necessary, because the
device is supposed to be operational after pm_genpd_runtime_resume()
has returned and because of it pm_genpd_runtime_resume() has to
call genpd_start_dev() once again for the "restored" device, which
is inefficient.

To make things more efficient, remove the call to genpd_stop_dev()
from __pm_genpd_restore_device() and the direct call to
genpd_start_dev() from pm_genpd_runtime_resume().  [Of course,
genpd_start_dev() still has to be called by it for devices with the
power.irq_safe flag set, because __pm_genpd_restore_device() is not
executed for them.]

This change has been tested on the SH7372 Mackerel board.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
(cherry picked from commit 80de3d7f416f1accd03f2e519ead32d6fde4fcf4)

Change-Id: Id6999532ec29ba7ac3199301d3e54868ae181cce
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/145219
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: dc: enable cp with global alpha
Prashant Malani [Thu, 11 Oct 2012 01:50:57 +0000]
video: tegra: dc: enable cp with global alpha

When global alpha is enabled, color palette also
has to be enabled, for the change to take effect.

This also enabled global alpha for 11x

Bug 672060

Change-Id: Ic2759dd7f15fa58a134ac5dfbaa968096e8a750a
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/143417
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agobrcmfmac: Handling IRQ in ISR directly for non-OOB
Wei Ni [Wed, 26 Sep 2012 07:58:18 +0000]
brcmfmac: Handling IRQ in ISR directly for non-OOB

In case of inband interrupts, if we handle the interrupt in dpc thread,
two level of thread switching takes place to process wifi interrupts.
One in SDHCI driver and the other in Wifi driver. This may cause the system
instability.
Because the SDHCI calls sdio_irq_thread() to handle the irq, this thread locks
mmc host and calls wifi handler. It expects WiFi handler to be quick and
enables sdio interrupt from card at end. If wifi handler defers this work for
a different thread, sdio_irq_thread() will be stuck on next wifi interrupt
since mmc lock is not freed.

Handling the interrupt in ISR directly will prevent thread context switching
in wifi driver. It can fix the instability problems.

Change-Id: I1d0208f09d16d01a154d446f52f24356ebf7cddc
Signed-off-by: Wei Ni <wni@nvidia.com>
Reviewed-on: http://git-master/r/142591
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomfd: MAX77665: carry over platform data for each cell
Charlie Huang [Wed, 12 Sep 2012 02:03:15 +0000]
mfd: MAX77665: carry over platform data for each cell

Add feature to transfer design specific platform data from board
file(s) to the cell device drivers.

Change-Id: I788082a1606bd07d72835d81e39ef7cd04e67c1c
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
(cherry picked from commit e10e95036f2678aef17afe3b527fa4ec17866679)
Reviewed on http://git-master/r/139118
Reviewed-on: http://git-master/r/141852
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoARM: tegra: pluto: sensor: fix power down issue
Charlie Huang [Mon, 17 Sep 2012 01:16:22 +0000]
ARM: tegra: pluto: sensor: fix power down issue

Fixes the issue that the system will crash if the sensors are
powered on the 2nd time.

Change-Id: Iae8c24498a4e0f99e2892a8446204bb51ee8f401
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
(cherry picked from commit 5baf326afb8005d0a40df948b85d96839fa7894a)
Reviewed on http://git-master/r/133134
Reviewed-on: http://git-master/r/141850
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agovideo: tegra: host: Add SW WAR for tegra11
Wei Sun [Wed, 10 Oct 2012 23:33:04 +0000]
video: tegra: host: Add SW WAR for tegra11

Add WAR for bug 982750
Add comments for bug 976976
Add comments for bug 990395
Add Comments for bug 951938

Change-Id: Id01ddafc82b84ac488f249ebe7f024bcb80cf61a
Signed-off-by: Wei Sun <wsun@nvidia.com>
Reviewed-on: http://git-master/r/143385
(cherry picked from commit ecda3f6db53cc2238a270f0f8f46d01d4f1a7df0)
Reviewed-on: http://git-master/r/145546
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoRevert "video: tegra: host: temp increase the syncpt check period"
Terje Bergstrom [Thu, 18 Oct 2012 08:12:20 +0000]
Revert "video: tegra: host: temp increase the syncpt check period"

This reverts commit 7a4937502cbc8dd00531a1a73b7c88fb71a86577.

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

6 years agoCHROMEOS: config: disable DEBUG_LL
Rhyland Klein [Wed, 17 Oct 2012 16:14:10 +0000]
CHROMEOS: config: disable DEBUG_LL

Now that the kernel won't crash if DEBUG_LL is disabled and the
bootloader passes the 'D' in the uart scratch register to signal the
debug uart, disable the extra unnecessary kernel logging.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: Ic296993011aa0c1f8fc9dd155a946922633928e9
Reviewed-on: http://git-master/r/145297
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agomisc: nct: section mismatch fix
Bitan Biswas [Wed, 12 Sep 2012 09:45:04 +0000]
misc: nct: section mismatch fix

Fix section mismatch error for nct thermal sensor driver

Bug 1038578

Change-Id: I39c86896ab50a11b30c3b975b9d20190417bebb3
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/132797
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/145291
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: dalmore/pluto: Fix section mismatch warning
Animesh Kishore [Thu, 27 Sep 2012 05:28:52 +0000]
arm: tegra: dalmore/pluto: Fix section mismatch warning

Bug 1055400
Bug 1038578

Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/139220
(cherry picked from commit e94c0f27d4905934d354fb949573592c7f710231)

Change-Id: I09204704b6d4f1abbbead396f67e0b288c94a94a
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/145289
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoasoc: tegra: Have single platform data for VCMs
Nitin Pai [Wed, 29 Aug 2012 13:49:53 +0000]
asoc: tegra: Have single platform data for VCMs

Rename the file tegra_p1852_pdata.h to tegra_vcm_pdata.h for using
generically across all the VCM based platforms.
Added config structure to pass the DAP/DAS configuration for P852
Added support to configure the DAP/DAS on Tegra2.

Bug 1040171

Reviewed-on: http://git-master/r/128224
(cherry picked from commit fca5e1c5407f17d6860003ca4db4e27b459a0fbe)

Change-Id: I9dba53f6e182550b8267666a37533317d07433db

Signed-off-by: Nitin Pai <npai@nvidia.com>
Change-Id: I7ef9052fb32c680d1d3be623e61669000deccd2e
Reviewed-on: http://git-master/r/145263
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: p1852, e1853: enable TASK_SIZE_3G_LESS_24M
Sumeet Gupta [Wed, 17 Oct 2012 12:10:31 +0000]
arm: tegra: p1852, e1853: enable TASK_SIZE_3G_LESS_24M

Enabling this config for P1852 and E1853 gnu Linux configs.

Bug 1047425
Bug 1160254

Reviewed on: http://git-master/r/134408
Change-Id: Ie2e2bfb3bd21f8d048eff070f5887fc66a96955f
Signed-off-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-on: http://git-master/r/145246
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoPM / Domains: Use subsystem runtime suspend/resume callbacks by default
Rafael J. Wysocki [Fri, 15 Jun 2012 22:02:22 +0000]
PM / Domains: Use subsystem runtime suspend/resume callbacks by default

Currently, the default "save state" and "restore state" routines
for generic PM domains, pm_genpd_default_save_state() and
pm_genpd_default_restore_state(), respectively, only use runtime PM
callbacks provided by device drivers, but in general those callbacks
need not provide the entire necessary functionality.  Namely, in
general it may be necessary to execute subsystem (i.e. device type,
device class or bus type) callbacks that will carry out all of the
necessary operations.

For this reason, modify pm_genpd_default_save_state() and
pm_genpd_default_restore_state() to execute subsystem callbacks,
if they are provided, and fall back to driver callbacks otherwise.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
(cherry picked from commit 0b589741b8b83a33e25fb32bb714ea1b972af5aa)

Change-Id: I573c7f62ea6ebd24a4dc643eb69da73d4b543017
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/145218
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonor: Assigning static mapping for 64MB NOR Flash.
Sumeet Gupta [Wed, 17 Oct 2012 08:08:18 +0000]
nor: Assigning static mapping for 64MB NOR Flash.

VMALLOC_END has been pushed up by 16MB to accomodate NOR.

Non-static mapping hogs a lot of vmalloc space.

Bug 1036361
Bug 1160254

Rviewed-on: http://git-master/r/128178
Change-Id: I9913d5983721a0f35116a761131f7338ba26a0c8
Signed-off-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-on: http://git-master/r/145183
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarch: arm: tegra: regulator calls need the device name
Petlozu Pravareshwar [Wed, 17 Oct 2012 07:34:20 +0000]
arch: arm: tegra: regulator calls need the device name

Device name is passed to the regulator_get API.

Bug 1158664

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

6 years agousb: gadget: tegra:change condition for vbus check
Rakesh Bodla [Wed, 17 Oct 2012 06:06:21 +0000]
usb: gadget: tegra:change condition for vbus check

Changing the condition for vbus check. VBUS will be
present when OTG cable is connected, hence vbus
status will be reflected wrong. Correct status
is tracked through vbus_active variable.

Bug 1158853

Change-Id: Ic904beb5919ddafef5becf39ddac1767cdda79cd
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/145148
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoasoc: aic326x machine: fix coverity issue
Sri Krishna chowdary [Tue, 16 Oct 2012 13:33:02 +0000]
asoc: aic326x machine: fix coverity issue

Return if dam_ifc is negative as it cant be negative.

Bug 1046331

Change-Id: I8a09443a99bd215bb24f80a7d4836a32cbc3351e
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/144906
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoarm: tegra: kai: fix coverity issue
Sri Krishna chowdary [Tue, 16 Oct 2012 10:44:42 +0000]
arm: tegra: kai: fix coverity issue

Check return values of gpio_request
and gpio_direction_input/output for
panel, audio and touch.

Bug 1046331

Change-Id: I8af7865bcda8eb31d54b08fba948dd9d321e85c4
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/144830
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agousb: gadget: tegra: fix coverity issue
Sri Krishna chowdary [Fri, 12 Oct 2012 15:24:29 +0000]
usb: gadget: tegra: fix coverity issue

req cant be NULL if _req is not NULL

Bug 1046331

Change-Id: Ice984281fe3c670293a4ea80bd88a9aa014e645e
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/144108
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agousb: gadget: tegra: Add AHB prefetch buffer with IOMMU
Hiroshi Doyu [Thu, 11 Oct 2012 09:02:30 +0000]
usb: gadget: tegra: Add AHB prefetch buffer with IOMMU

With PLATFORM_ENABLE_IOMMU, IOMMU'able devices need to work with
IOMMU, where only IOMMU mapped pages are valid. AHB prefetcher for USB
tried to access(read) beyond IOMMU mapped range. To avoid unnecessary
DECERR from IOMMU(SMMU), 128 bytes are appended at the end of USB
buffers at dma_{map,unmap}_single() but cache maint is done with the
original size.

Bug 1049290

Change-Id: I5646c83541eac263f9180bc6ae64e05d1e7c8a51
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/143531
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agovideo: tegra: host: Disable keepalive for MSENC
Terje Bergstrom [Tue, 2 Oct 2012 12:57:56 +0000]
video: tegra: host: Disable keepalive for MSENC

Disable keepalive flag for MSENC. This allows power gating and clock
gating even when channel is open.

MSENC boot is also moved to finalize_poweron to boot it again always after
power gating.

Bug 1056631

Change-Id: Icdc5cfc564e71f58adc6b7cdd0bf66b05f849c7d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/140886
(cherry picked from commit eefcc8fa8f94c38890547b98af6613181c248777)
Reviewed-on: http://git-master/r/142697
Reviewed-by: Automatic_Commit_Validation_User

6 years agobrcmfmac: add out of band interrupt support
Franky Lin [Sat, 28 Apr 2012 01:56:59 +0000]
brcmfmac: add out of band interrupt support

Some sdio host controllers do not support real in band interrupt.
Software polling mode as a replacement is not fast enough for
high throughput and new features. Also some in band interrupts
do not support host wake up on embedded platform even when they
are real physical interrupts. Therefore out of band (oob)
interrupt mechanism is implemented for these scenarios.

To provide oob irq number and flags used for irq registration in
brcmfmac, a platform device contains irq resource must be
registered in board specific code.

Here is an example of platform device structure:
struct resource brcmf_sdio_res[] = {
{
.start = GPIO_BRCMF_SDIO_OOB_NUM,
.end = GPIO_BRCMF_SDIO_OOB_NUM,
.flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
}
};
struct platform_device brcmf_sdio_device = {
.name = "brcmf_sdio_pd",
.id = -1,
.num_resources = ARRAY_SIZE(brcmf_sdio_res),
.resource = brcmf_sdio_res,
};

(cherry picked from commit ba89bf1961bb991a5c6415bd8408a8cb61ee46dc)

Change-Id: I463b8eed2c22f142575c31e3c082fe401a15b8a1
Reviewed-by: pieter-paul giesberts <pieterpg@broadcom.com>
Reviewed-by: arend van spriel <arend@broadcom.com>
Signed-off-by: franky lin <frankyl@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Wei Ni <wni@nvidia.com>
Reviewed-on: http://git-master/r/142576
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agomedia: video: tegra: max77665 flash driver support
Charlie Huang [Wed, 12 Sep 2012 19:25:59 +0000]
media: video: tegra: max77665 flash driver support

This flash is a sub-device of the maxim 77665a chip. It supports
dual led output, with the features of torch/flash modes, timer out,
and over-voltage protection, etc.

bug 1035551

(cherry picked from commit 3d3341d2c3a693a00aa9fc9f123d8d9b51129513)
Reviewed-on: http://git-master/r/139111

Change-Id: I299502c4f4fdce751d760d6796492f0e7342606e
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/141859
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoARM: tegra: configs: add MAX77665 flash support
Charlie Huang [Wed, 26 Sep 2012 23:53:43 +0000]
ARM: tegra: configs: add MAX77665 flash support

bug 1035551

Change-Id: I4bd2b1d3a65731a0f8dc351d5feb1f4f47af2780
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
(cherry picked from commit 26ca5dbe241a3b6793e26e2e8289b2bb9cee0d91)
Reviewed-on: http://git-master/r/139132
Reviewed-on: http://git-master/r/141853
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: add config option for io_dpd
Vishal Singh [Tue, 16 Oct 2012 07:39:13 +0000]
ARM: tegra: add config option for io_dpd

Adding a temporary config option for allowing devices listed in
tegra_list_io_dpd[] to go into DPD state.
Since the pins under sdhci DPD groups are used for different
purposes on different platforms, this list should be either in
platform files or should be guarded by a config option. This change
does the latter for now, until a decision is made on this.

Bug 1036567.
Bug 1040511.

Change-Id: Ic2de96d9e506463f140d7a4e998c7a657c9593bc
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/141251
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoiommu/tegra: smmu: Use debugfs_create_dir for directory
Hiroshi Doyu [Fri, 14 Sep 2012 16:22:00 +0000]
iommu/tegra: smmu: Use debugfs_create_dir for directory

The commit c3b1a35 "debugfs: make sure that debugfs_create_file() gets
used only for regulars" doesn't allow to use debugfs_create_file() for
dir. Keep debugfs data in smmu_device instead of directory's i_private.

Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>

Conflicts:

drivers/iommu/tegra-smmu.c

Change-Id: I3c9e7889f19b2f9e53cb8ce124c66cc58b5f3c09
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/140591
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agodma: tegra: move smmu.h into SMMU driver
Stephen Warren [Tue, 4 Sep 2012 22:36:15 +0000]
dma: tegra: move smmu.h into SMMU driver

There's no need to place these defines into arch/arm/mach-tegra/include/.
Move them into the SMMU driver to clean up mach-tegra, as a pre-requisite
for single-zImage.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Cc: Hiroshi Doyu <hdoyu@nvidia.com>
Acked-by: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>

Conflicts:

drivers/iommu/tegra-smmu.c

Change-Id: I935fd9ea07d6bccd8c7b55d1333e222d23a8172f
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/140590
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoiommu/tegra: remove invalid reference to list iterator variable
Julia Lawall [Sun, 8 Jul 2012 11:37:42 +0000]
iommu/tegra: remove invalid reference to list iterator variable

If list_for_each_entry, etc complete a traversal of the
list, the iterator variable ends up pointing to an address
at an offset from the list head, and not a meaningful
structure.  Thus this value should not be used after the end
of the iterator.  Replace c->dev by dev, which is the value
that c->dev has been compared to.

This problem was found using Coccinelle (http://coccinelle.lip6.fr/).

Change-Id: Ic861eccf69869dd6a0301ed71dba2dbd2ebe4c23
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Hiroshi DOYU <hdoyu@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/140589
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: pinmux: don't use new name for t11x yet
Ray Poudrier [Thu, 18 Oct 2012 23:34:03 +0000]
ARM: tegra: pinmux: don't use new name for t11x yet

Change-Id: Ia24c3876448c03b42bd11fb32b950eb67488cb2a
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/145754
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoarm: tegra: rename pinmux device/driver name
Pritesh Raithatha [Tue, 16 Oct 2012 06:34:05 +0000]
arm: tegra: rename pinmux device/driver name

To avoid confusion/conflict with dt pinmux driver, rename internal
 pinmux device/driver name.

Bug 1003210

Change-Id: I7f061a893ad75727475cc9bf3436779a9b11047f
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/144786
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

6 years agoarm: tegra: cardhu: separate pinmux and gpio init
Pritesh Raithatha [Fri, 12 Oct 2012 14:19:15 +0000]
arm: tegra: cardhu: separate pinmux and gpio init

Bug 1003210

Change-Id: If26ee43f7ee37e48998ec91a4f163f3f35aebbc9
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/144101
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agopinctrl: tegra: set low power mode bank width to 2
Pritesh Raithatha [Mon, 15 Oct 2012 14:18:20 +0000]
pinctrl: tegra: set low power mode bank width to 2

Bug 1003210

Change-Id: I6a119bfd47ad94569cafd4fee9577d053bcffd31
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/144582
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

6 years agovideo: tegra: host: Enable MSENC power gating
Terje Bergstrom [Fri, 28 Sep 2012 07:53:07 +0000]
video: tegra: host: Enable MSENC power gating

Enable power gating for MSENC.

Bug 1056631

Change-Id: I1544f9e55a6f2c71b2fa285da9edc78ee82f458a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/139601
(cherry picked from commit 808e9b8710f2c3bfeee9f60473eed8e2422d9bf1)
Reviewed-on: http://git-master/r/142696
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: Use cbus for MSENC power sequence
Terje Bergstrom [Mon, 8 Oct 2012 05:09:32 +0000]
ARM: tegra: Use cbus for MSENC power sequence

MSENC requires a low enough PLLC clock to be able to be turned on for
power un-gating. If 3D or other fast unit is active at the same time,
PLLC is set to too high rate and MSENC cannot be turned on.

Use the cbus clock to allow clock framework to set the PLL to correct
rate.

Bug 1060834

Change-Id: Id83c33b9a5f2f29466cc55243310642a5f53fd99
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/142190
(cherry picked from commit 94c16a960d7649bdb4b6369ae2a1cdd3fa369d71)
Reviewed-on: http://git-master/r/144889
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agomedia: video: tegra: Port ad5816 focuser on pluto
Sudhir Vyas [Tue, 16 Oct 2012 12:37:24 +0000]
media: video: tegra: Port ad5816 focuser on pluto

Make ad5816 focuser up on pluto.

Bug 1056458

Change-Id: I79d95cb566549f6568a0bd882d5c337acaeba5b9
Reviewed-on: http://git-master/r/141771
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/144885
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoarm: tegra: pluto: Add ad5816 focuser support
Sudhir Vyas [Tue, 16 Oct 2012 11:11:52 +0000]
arm: tegra: pluto: Add ad5816 focuser support

Add focuser support for pluto.

Bug 1056458

Change-Id: Icd3c33a6da732a78aba4fe452e56d54192106171
Reviewed-on: http://git-master/r/141724
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/144835
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naren Bhat <nbhat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agodt: Document: correct tegra20/30 pinctrl slew-rate name
Pritesh Raithatha [Mon, 15 Oct 2012 14:24:32 +0000]
dt: Document: correct tegra20/30 pinctrl slew-rate name

change nvidia,slew_rate* to nvidia,slew-rate*

Bug 1003210

Change-Id: Ia85a9911c785adaa9066afea9924c25a56fc72dc
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/144585
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

6 years agoinput: misc: cm3217: add enable and disable
Shridhar Rasal [Mon, 15 Oct 2012 09:07:33 +0000]
input: misc: cm3217: add enable and disable

For 'enabled' sysfs provide enable and disable and
invoke respective suspend and resume PM. This functionality will
replace early suspend functionality.

bug 1063497

Change-Id: I391e8f4faa66639247cb265b025d8fe4e6428420
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/144509
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agousb: host: tegra: fix coverity issue
Sri Krishna chowdary [Fri, 12 Oct 2012 15:44:20 +0000]
usb: host: tegra: fix coverity issue

Dereference pointer after NULL check.

Bug 1046331

Change-Id: Ib4ca399fd6f81d29c27cb18207fa5da1b7d2c8d1
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/144111
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agopinctrl: tegra: correct bank for pingroup and drv pingroup
Pritesh Raithatha [Wed, 3 Oct 2012 13:31:49 +0000]
pinctrl: tegra: correct bank for pingroup and drv pingroup

Bug 1003210

Change-Id: Ie0d712a63715a73f110d679007acde4fdf87fb3d
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/144065
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoCHROMEOS: config: enable e-Crypt FS
Rhyland Klein [Mon, 15 Oct 2012 17:24:51 +0000]
CHROMEOS: config: enable e-Crypt FS

At some point ecrypt fs support was disabled. It is required for
Chromeos so enable it again.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I582601d8f0e6fcb7cc3281e6f76b375758f1682b
Reviewed-on: http://git-master/r/144647
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agoarm: tegra: uncompress: auto-detect without debug_ll
Jimmy Zhang [Wed, 10 Oct 2012 19:16:35 +0000]
arm: tegra: uncompress: auto-detect without debug_ll

Fixes a kernel crash when DEBUG_LL is not enabled, but the bootloader
still marks a uart port for debug using 'D' for auto detect.

Change-Id: I52146feac3d5a2a904bf43765ceab660c1f2ce89
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-on: http://git-master/r/143329
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jimmy Zhang <jimmzhang@nvidia.com>
Tested-by: Jimmy Zhang <jimmzhang@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agonet: wireless: bcmdhd: remove wifi chip retry detection loop
Nagarjuna Kristam [Fri, 12 Oct 2012 10:36:37 +0000]
net: wireless: bcmdhd: remove wifi chip retry detection loop

wifi retry chip detection loop uses dummy SDIO register un-register calls
to detect wifi chip. After successful detection of wifi chip, dummy SDIO
driver is un-registered and then dhd bus driver is register to perform wifi
initialization sequence. Sequential SDIO un-register and register calls can cause
race condition in SDIO driver.

Bug 1054985

Change-Id: Ifd3c9cf69af6b58c32cd0a34424b53c04e1fb0e7
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/144063
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agochromeos: disable TEGRA_AVP and MEDIASERVER
Rhyland Klein [Tue, 9 Oct 2012 17:36:23 +0000]
chromeos: disable TEGRA_AVP and MEDIASERVER

Disable TEGRA_AVP and MEDIASERVER as they seem to be deprecated now.

Change-Id: Id88cf53062d2f8acda86c62bc12127ff6b15aae7
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-on: http://git-master/r/142717
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: pcie: fix coverity issue
Sri Krishna chowdary [Mon, 8 Oct 2012 05:38:38 +0000]
arm: tegra: pcie: fix coverity issue

Check return value.
Deallocate irq properly.

Bug 1046331

Change-Id: I804f671bb04dac4876277ed9365bb2506b188f35
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/142197
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agobrcmfmac: load firmware based on chip id
Wei Ni [Fri, 28 Sep 2012 09:20:19 +0000]
brcmfmac: load firmware based on chip id

Choose appropriate firmware at runtime so that brcmfmac driver can be used for
both bcm4329 and bcm4330 chipset.

Change-Id: Ia035874dcb2eb0e01a0a1b8818e60c363c9d018e
Signed-off-by: Wei Ni <wni@nvidia.com>
Reviewed-on: http://git-master/r/139622
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: enterprise: enable wl18xx wireless module support
Rakesh Goyal [Tue, 28 Aug 2012 16:46:08 +0000]
ARM: tegra: enterprise: enable wl18xx wireless module support

Bug 990784
Change-Id: I173df3f7244e7d0b40ae5aad98c72885ff42fdab
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/129103
(cherry picked from commit 32b8cc820fc9f3709c23e6b383825d6cdb0a6085)
Reviewed-on: http://git-master/r/134792
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agowakeup: change formatting alignement
Shridhar Rasal [Tue, 16 Oct 2012 07:37:54 +0000]
wakeup: change formatting alignement

Just sets proper formatting aligment for wakeup_sources stats.

Change-Id: I4bf41e53e39b892e290de9ee2bfdb25573a205fc
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/144796
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agocrypto: tegra-se: fix coverity issue
Sri Krishna chowdary [Mon, 8 Oct 2012 06:08:52 +0000]
crypto: tegra-se: fix coverity issue

Dereference after NULL check.

Bug 1046331

Change-Id: I9438cf4aba92bec2c0aaccb5e272368a1bd99693
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/142204
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agomisc: Removed warnings from MAX1749 driver
Sumit Sharma [Mon, 15 Oct 2012 09:59:43 +0000]
misc: Removed warnings from MAX1749 driver

Removed compile time warnings from MAX1749 vibrator driver

Change-Id: I71521ffb1621fb46cbc51c45d0de7b99836b51d7
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/144526
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoChromeOS: config: renormalize splitconfig
Christopher Freeman [Fri, 12 Oct 2012 21:38:11 +0000]
ChromeOS: config: renormalize splitconfig

Update splitconfigs with new kconfig options

Change-Id: I9aa83fcabc886932447fe241b34c809374a35cc5
Signed-off-by: Christopher Freeman <cfreeman@nvidia.com>
Reviewed-on: http://git-master/r/144170
Reviewed-by: Rhyland Klein <rklein@nvidia.com>
Tested-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Andrew Chew <achew@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: mc: add config option for PTSA.
Krishna Reddy [Fri, 12 Oct 2012 00:48:10 +0000]
arm: tegra: mc: add config option for PTSA.

Add config option for MC PTSA enable/disable.
Move T11x specific registers to t11x file.

Change-Id: I48a7013937faffdf99b1f54135b0b06da961b156
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/143901
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agomac80211&nl80211: support to abort a scan request on tx
Wei Ni [Thu, 11 Oct 2012 09:35:02 +0000]
mac80211&nl80211: support to abort a scan request on tx

mac80211 & nl80211: add support to abort a scan request on tx

The original issue is the chromium issue:
http://code.google.com/p/chromium-os/issues/detail?id=11485

This fix comes from:
https://gerrit.chromium.org/gerrit/#change,5744
https://gerrit.chromium.org/gerrit/#change,5745

This change will not affect android/l4t.
Add this changes, so that we can support ChromeOs and Android both.

Change-Id: I8a98efcaa706952dd3f3d9872f26138d432d7b0c
Signed-off-by: Wei Ni <wni@nvidia.com>
Reviewed-on: http://git-master/r/143538
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rhyland Klein <rklein@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: cardhu: fix coverity issue
Sri Krishna chowdary [Sun, 14 Oct 2012 08:54:38 +0000]
arm: tegra: cardhu: fix coverity issue

check return values.

Bug 1046331

Change-Id: I216759d1f897c8d248430bbc208b2af459539b36
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/144376
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: cardhu: fix coverity issue
Sri Krishna chowdary [Sun, 14 Oct 2012 08:32:19 +0000]
arm: tegra: cardhu: fix coverity issue

Check return values from gpio_request and
gpio_direction_input.

Bug 1046331

Change-Id: Iea97537572242430bed42d730543f740d1f56b04
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/144375
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

6 years agoarm: tegra: clock: fix coverity issue
Sri Krishna chowdary [Thu, 11 Oct 2012 10:15:56 +0000]
arm: tegra: clock: fix coverity issue

Add Null check before pointer dereference.

Bug 1046331

Change-Id: I88c315671b8ca97ad70d579cc921b1dcccc06e71
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/143579
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agovideo: tegra: dsi: remove unsigned variable comparison with zero
Deepak Nibade [Thu, 20 Sep 2012 11:35:55 +0000]
video: tegra: dsi: remove unsigned variable comparison with zero

fix coverity issue
unsigned variable 'i' may result in infinite for loop
so change loop to 'while'

bug 1046331

Change-Id: I812845bcac3efda45101e8384ece132e1e6b8866
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/134067
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: dalmore: fix coverity issue
Sri Krishna chowdary [Sun, 14 Oct 2012 09:11:06 +0000]
arm: tegra: dalmore: fix coverity issue

Check return values.

Bug 1046331

Change-Id: I090515790bae8c450e00e258ac9b89ce516d37a3
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/144377
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agousb: otg: tegra: fix coverity issue
Sri Krishna chowdary [Sun, 14 Oct 2012 06:41:20 +0000]
usb: otg: tegra: fix coverity issue

sscanf reads int into host and host is checked
if it is less than 0. This suggests that host should
be int rather than unsigned int.

Bug 1046331

Change-Id: I8ac4d8113b0602625e2a5019f70f29797148ec5d
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/144373
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agomedia: video: tegra: pass device as argument in power_on
Mallikarjun Kasoju [Fri, 12 Oct 2012 16:04:17 +0000]
media: video: tegra: pass device as argument in power_on

modify power_on api to pass device as argument so that from
board files it can be used to get the regulator in place of NULL

Bug 1154495

Change-Id: I5164fa04a14ef0d405e6c9d51f42efc8e6ce14bf
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/143748
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra3: clock: fix coverity issue
Sri Krishna chowdary [Thu, 11 Oct 2012 10:48:16 +0000]
arm: tegra3: clock: fix coverity issue

Add null check before pointer dereference.

Bug 1046331

Change-Id: I76f2aa2f0b5bdf67b4c203b1f9d786281fab2a8b
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/143595
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agovideo: tegra: dc: fix memory leak during video playback
Deepak Nibade [Fri, 21 Sep 2012 11:55:47 +0000]
video: tegra: dc: fix memory leak during video playback

-flip_worker flips the windows and in next iteration old handles are
queued up and freed
-during 1080p video playback with hdmi connected, a call from
tegra_fb_blank disables window flag
-because of disabled window flag, old handles of one of the window are
not queued for deletion in next iteration
-so using old handle as condition of deletion marking instead of window
flag

bug 1028179

Reviewed-on: http://git-master/r/134388
(cherry picked from commit be51b49e6ec894ec4a9977fed5690b55144b3d71)

Change-Id: I1cabaad4fc0d7f7812e0a12a32774484fe7c86c6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143466
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoinput: add sysfs for enable and disable device.
Shridhar Rasal [Tue, 7 Aug 2012 09:22:12 +0000]
input: add sysfs for enable and disable device.

New 'enabled' sysfs added to en/disable input device from user space.

bug 1063749

Change-Id: Iea1773254dd9effbb5b618772d8673d1360d6247
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/130166
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: remove unused file.
Krishna Reddy [Fri, 12 Oct 2012 00:13:24 +0000]
arm: tegra: remove unused file.

Change-Id: Ifd2c3bbb1a21330273efb96388095eb641f45df5
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/143890
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: la: Program PTSA registers in LA module
Krishna Reddy [Fri, 28 Sep 2012 03:21:56 +0000]
arm: tegra: la: Program PTSA registers in LA module

Change-Id: Iaeac46499af6df3550bf000056b93cc474a9b483
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/139556
(cherry picked from commit 64900b9a27845b201002b07bf7b8537a682f3d38)
Reviewed-on: http://git-master/r/143786
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoarm: tegra: la:Add support to set initial static LA values
Krishna Reddy [Fri, 14 Sep 2012 06:32:14 +0000]
arm: tegra: la:Add support to set initial static LA values

Change-Id: I6820aeeb4105509f8ede185c4418c384ad0d91b3
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/138721
(cherry picked from commit e42ebbd79029066a30c0b94a3ad1c3055dde3e2f)
Reviewed-on: http://git-master/r/143785
Reviewed-by: Alex Waterman <alexw@nvidia.com>

6 years agoarm: tegra: la: Convert error message to WARN_ONCE
Krishna Reddy [Tue, 25 Sep 2012 21:48:00 +0000]
arm: tegra: la: Convert error message to WARN_ONCE

Change-Id: Ie11de7963ea9c9538d6c6a2db971c47f66eb0912
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/138720
(cherry picked from commit 8a9ab8c39e09ab7e9bea494b7f585a6cba7258dd)
Reviewed-on: http://git-master/r/143783
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: move uart debug port initialization into common file.
Laxman Dewangan [Thu, 11 Oct 2012 13:44:10 +0000]
ARM: tegra: move uart debug port initialization into common file.

There is lots of duplicate code for initializing
the debug port for all platform.
Move this to board-common file so that duplicate code
can be avoided.

Change-Id: I3e8a10cd3db4db21d6752a0b689136bfe9828197
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/143721
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoasoc: tegra: handle multiple registrations for switch device
Nikesh Oswal [Tue, 9 Oct 2012 13:31:38 +0000]
asoc: tegra: handle multiple registrations for switch device

Multiple machine drivers try to register the switch device,
this change ensures that switch device is registered only once

Bug 1002694

Change-Id: If23acb08aad36d5b4c466e7092e261b0bc18d02a
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/142681
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra11: Call cpu_pm callback in LP2 later
Bo Yan [Sun, 30 Sep 2012 00:06:54 +0000]
ARM: tegra11: Call cpu_pm callback in LP2 later

GIC function tegra_gic_notifier disables interrupt in CPU interface
for callback event CPU_PM_ENTER. Once interrupt is disabled in
CPU interface, wfi instruction can't be used to clock gate since
no interrupt can pass through the GIC to bring CPU out of clock
gating.

Move cpu_pm_enter and cpu_pm_exit closer to the final power gating
code, basically make sure all fallback to clock gating are outside
of cpu_pm_enter and cpu_pm_exit pair, i.e. no clock gating can happen
after interrupt pass through is disabled in CPU interface.

Change-Id: I36d56a0f5e83b86070c3a0a1bc60066e2d0892af
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/139957
(cherry picked from commit c661833556d9757899428e81bb738335ff742586)
Reviewed-on: http://git-master/r/143974
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11x: Fix the secondary CPU start up
Bo Yan [Tue, 25 Sep 2012 04:05:48 +0000]
ARM: tegra11x: Fix the secondary CPU start up

The secondary CPU startup sequence of t11x is different because
flow controller behavior has changed, so fix it accordingly

Change-Id: I26aa26593943fde0cf7b599b4fca04644715ca4a
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/138705
(cherry picked from commit 79ecf6b4ba3902b1b5bd79d8d4942884a8dc78eb)
Reviewed-on: http://git-master/r/143973
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11: clock: Enable dual cbus sourced by PLLC2/3
Alex Frid [Thu, 4 Oct 2012 23:51:51 +0000]
ARM: tegra11: clock: Enable dual cbus sourced by PLLC2/3

Restore dual c2bus/c3bus operations, removed initial floor settings
to re-enable bus scaling.

Change-Id: I97aa8951c8fd00c5e5a3d0a3c9f945762373438c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/141784
(cherry picked from commit 8636b4a7ed1efeffd0f0d36430065e55ec65b97b)
Reviewed-on: http://git-master/r/143972
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11: clock: Update PLLC2/C3 configuration
Alex Frid [Tue, 25 Sep 2012 21:50:06 +0000]
ARM: tegra11: clock: Update PLLC2/C3 configuration

- Lower vco min to 600MHz
- Do not allow multiples of 3 as post divider values
- Extend unlock frame number

Change-Id: I6cda72842f9258f43400d4213880e6e3e7b6febd
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/138754
(cherry picked from commit 8dea2e5438e76717931b34f5ee3d1f9a88703f0b)
Reviewed-on: http://git-master/r/143971
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoinput: misc: Invensense: Add TAI support.
Robert Collins [Wed, 3 Oct 2012 21:34:15 +0000]
input: misc: Invensense:  Add TAI support.

Change-Id: I461dee23d820af22e6d3295e8d6f0c0a13a269a8
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/141328
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agosensors: Invensense: Add debug register interface.
Robert Collins [Wed, 19 Sep 2012 16:46:10 +0000]
sensors: Invensense:  Add debug register interface.

Change-Id: I4d13fde5437e9b956609c89a28266a238713d513
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/133827
(cherry picked from commit e449744c9e16d7339b1c771c9f36118da23e3a52)
Reviewed-on: http://git-master/r/138749
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoconfigs: enable Invensense MPU
Erik Lilliebjerg [Wed, 15 Aug 2012 08:28:01 +0000]
configs: enable Invensense MPU

Change-Id: Ieeb0b533575e2bb0fc3ca470ce619f0e138bc073
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/132405
(cherry picked from commit b3809d3487784acf3b2f1703c3c5aa731457b873)
Reviewed-on: http://git-master/r/138747
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoarch: arm: board support for Invensense MPU
Graziano Misuraca [Thu, 13 Sep 2012 01:04:13 +0000]
arch: arm: board support for Invensense MPU

Add board support for Invensense MPU

Change-Id: Iefabb4e01f9d0772a3a037696fe82417a51f78fd
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/132404
(cherry picked from commit baea2bfc5696f2f044efc80f5b7a88dda061e3d8)
Reviewed-on: http://git-master/r/138746
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoinput: misc: Invensense MPU 5.0.1 driver
Robert Collins [Tue, 11 Sep 2012 23:59:16 +0000]
input: misc: Invensense MPU 5.0.1 driver

Change-Id: I6391dc455d615e63d6b15f0f537805c88c259a15
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/132403
(cherry picked from commit de2d18bbe47fca8d56c3e0717b9463a05a110c88)
Reviewed-on: http://git-master/r/138745
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agovideo: tegra: nvmap: Add pin, unpin trace events
Krishna Reddy [Thu, 11 Oct 2012 02:05:23 +0000]
video: tegra: nvmap: Add pin, unpin trace events

Change-Id: I62deda9d607476e3dc82428b872ad1a3e396e37e
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/143421
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agovideo: tegra: nvmap: fix pinning unalloc'd handles
Tuomas Tynkkynen [Mon, 13 Aug 2012 14:10:42 +0000]
video: tegra: nvmap: fix pinning unalloc'd handles

nvmap_pin_ids takes a list of handles to pin from userspace.
Unfortunately, it does not check that the handles are actually
allocated, which will trigger a BUG_ON later in pin_locked().

Bug 1023954

Change-Id: Iba4c53bc0a6c47b7f4f740a93e59b613dc3b95f6
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/131888
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agovideo: tegra: nvmap: fix cache_maint leak
Tuomas Tynkkynen [Mon, 3 Sep 2012 09:54:34 +0000]
video: tegra: nvmap: fix cache_maint leak

Under certain error conditions, nvmap's cache_maint would do an early
return while holding an incremented refcount and an allocated pte,
causing leaks.

Bug 1042888

Change-Id: Ie6d557f5678e7475cf46c1524a43ed464502e94c
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/131887
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoarm: tegra: mc: handle arb emem intr alone case
Krishna Reddy [Tue, 9 Oct 2012 02:05:51 +0000]
arm: tegra: mc: handle arb emem intr alone case

when the intrrupt is for arb emem alone, passing interrupt
through other error checks should be avoided.

Bug 1155067

Change-Id: I8c8f12b8951aab285ff4534b32fb28ccb2d365b1
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/143325
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: dc: change enable and hotplug_init arguments
Mallikarjun Kasoju [Thu, 11 Oct 2012 11:35:29 +0000]
video: tegra: dc: change enable and hotplug_init arguments

pass device as argument for enable and hotplug_init so that it
can be used in board files to get the regulator using device name.

Bug 1154495

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

6 years agoARM: tegra: m2601: Add m2601 defconfig
Ashutosh Patel [Mon, 8 Oct 2012 07:00:12 +0000]
ARM: tegra: m2601: Add m2601 defconfig

Add a defconfig file for M2601 board

Bug 1042952

Change-Id: I29588ffc42b610a55d87be891bfcf37caf69e926
Signed-off-by: Ashutosh Patel <ashutoshp@nvidia.com>
Reviewed-on: http://git-master/r/142207
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomedia: video: tegra: change imx091 sensor resolution
Frank Chen [Tue, 25 Sep 2012 18:16:21 +0000]
media: video: tegra: change imx091 sensor resolution

Update all the sensor modes to the standard
resolution size.

Bug 961418

Change-Id: I792733af741f9764bd848fda21f29e810270b47e
Signed-off-by: Frank Chen <frankc@nvidia.com>
(cherry picked from commit 0d9230af989fa8eb1c580870ac7696efee1ba569)
Reviewed-on: http://git-master/r/142091
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wei Chen <wechen@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: cardhu: add mem table.
Amit Kamath [Tue, 9 Oct 2012 07:27:36 +0000]
ARM: tegra: cardhu: add mem table.

Add memory table supporting pllm 528Mhz for Cardhu with
memory Samsung_1GB_K4P8G304EB-FGC2

Bug 928260

Change-Id: Ia863ee922dc52b7dc3c1e0e63f288a988b7d8076
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/141924
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: m2601: Add board support for m2601
Ashutosh Patel [Mon, 8 Oct 2012 05:06:48 +0000]
ARM: tegra: m2601: Add board support for m2601

M2601 is T30 based Automotive platform.

Changes done:
1. New board specific files for M2601 are added
2. Updated GMI,I2S,I2C,GPIO,UART,SDMMC,SPI,PCIE pinmux entries for
M2601.Tristated unused pins.
3. GMI,I2C,SDMMC,UART,SPI,PCIE,USB registered as platform
devices.Comment out LCD,HDMI interfaces.

Bug 1042952

Change-Id: I57167e427c33b4cb0ce6f7068de938d9c4dfb75f
Signed-off-by: Ashutosh Patel <ashutoshp@nvidia.com>
Reviewed-on: http://git-master/r/141872
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agovideo: tegra: host: add per device module-reg-read-write ioctl
Mayuresh Kulkarni [Wed, 10 Oct 2012 05:06:41 +0000]
video: tegra: host: add per device module-reg-read-write ioctl

- currently, the ioctl NVHOST_IOCTL_CTRL_MODULE_REGRDWR is
a part of nvhost-ctrl node
- however, it doesn't deal with host1x. infact it read/write
actual module registers
- for this kernel needs to maintain a list of all nvhost_devices
registered for a SoC. currently, this is encapsulated within
nvhost_bus which provides a iterator to walk these device list
- however, once we phase out nvhost_bus and adopt the platform_bus
we do not have a way to know the list of these devices
- this commit adds a new per-device ioctl for module register
read-write functionality
- all the new code should be using this new per device ioctl. the
old will be removed as soon as all the clients are ready to use
new ioctl

bug 1154790

Change-Id: I0552aec61a4506243461de82ac0cf6e4c1f3b220
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/141579
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoasoc:tegra: disable ext1 clock in suspend
Chandrakanth [Tue, 9 Oct 2012 11:29:52 +0000]
asoc:tegra: disable ext1 clock in suspend

disable ext1 clock in suspend call and enable in resume. disabling
ext1 clock in bias enable/disable is not sufficient now

BUG 1052180

Change-Id: Iff588ac92c2d8cfe62b7a6c597c68b9f1215f64c
Signed-off-by: Chandrakanth <cgorantla@nvidia.com>
Reviewed-on: http://git-master/r/139375
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agospi: tegra: fix coverity issue
Sri Krishna chowdary [Sun, 23 Sep 2012 09:06:12 +0000]
spi: tegra: fix coverity issue

Add null check before pointer dereference.

Bug 1046331

Change-Id: Ib3594542856b3668b759fbcc049191663b9e0ba1
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/134654
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: enable io direction macro for T114
aghuge [Fri, 5 Oct 2012 10:52:15 +0000]
ARM: tegra: enable io direction macro for T114

Reviewed-on: http://git-master/r/141923
(cherry picked from commit ff471b3fde278e116da427aafd85e0fd38e7f3f2)

Change-Id: I5cb5e18336e73455ca9f350ac701b3ea8769c5e3
Signed-off-by: aghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/143524
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11: Dalmore/Pluto: do not use dma mode for spi transfer
Laxman Dewangan [Mon, 1 Oct 2012 15:38:38 +0000]
ARM: tegra11: Dalmore/Pluto: do not use dma mode for spi transfer

The SPI controller produces the rx underrun error randomly
when used in apb dma mode.
Disabling the dma mode of spi transfer.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/140655
(cherry picked from commit 3dd4621f9255cdde2f213e66f4e48c23ce77ec16)

Change-Id: I855ed6c68288fd2817de8f15b063966c60a0538b
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143278
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra11: Dalmore/Pluto: Add spi controller data
Laxman Dewangan [Mon, 1 Oct 2012 11:35:43 +0000]
ARM: tegra11: Dalmore/Pluto: Add spi controller data

Adding spi controller data which configure the spi controller
specific to spi device.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/140616
(cherry picked from commit f81b7009966a57a928bcd8ab6b66c4e905e533a6)

Change-Id: I672957276b1c0c6f8747d190dbde8f4a4ad7261b
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143277
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: Dalmore/Pluto: remove spi clock initialization
Laxman Dewangan [Fri, 28 Sep 2012 15:18:09 +0000]
ARM: tegra: Dalmore/Pluto: remove spi clock initialization

remove spi clock initialization from board files as driver
take care of all require configuration.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/139734
(cherry picked from commit 44da485a9cd4c5d7946f569e1319b4ff8b658c96)

Change-Id: Ia3de79dfd2f0937719e767bff03d1acf455c9707
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143276
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: Dalmore/Pluto: enbale dma based transfer for spi
Kunal Agrawal [Wed, 26 Sep 2012 11:49:07 +0000]
ARM: tegra: Dalmore/Pluto: enbale dma based transfer for spi

Configuring spi platform data to enable dma based transfer.

Signed-off-by: Kunal Agrawal <kunala@nvidia.com>
Reviewed-on: http://git-master/r/138937
(cherry picked from commit f7428afd295022643d2c9c9837b780d5d418f801)

Change-Id: I837d24d24bfb562a69429930baecd61e7aecc7a8
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143275
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: Dalmore/Pluto: configure spi platform data
Laxman Dewangan [Mon, 24 Sep 2012 14:04:05 +0000]
ARM: tegra: Dalmore/Pluto: configure spi platform data

Configure spi platform data for:
- non dma based transfer.
- maximum packet size to fifo depth.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/134820
(cherry picked from commit 1697fc32a99c7c9205aa12ba7f6592410b59dd6b)

Change-Id: I9bf497571e1473855bedd8bb9577ac8165a0b10e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143274
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: pluto: pullup SPI4 data pins.
Linqiang Pu [Thu, 20 Sep 2012 03:40:13 +0000]
ARM: tegra: pluto: pullup SPI4 data pins.

Need to internal pullup data pins to make touch work on pluto.

Signed-off-by: Linqiang Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/133965
(cherry picked from commit 55e8e4e675df0bbb1f552d1dc2ed449bee4e852c)

Change-Id: I0f7178aa2e22cbf0b44ccced47ad0a58ef0ec284
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143273
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: dalmore: enable pullup on SPI4 pins
Xin Xie [Thu, 20 Sep 2012 04:48:54 +0000]
arm: tegra: dalmore: enable pullup on SPI4 pins

Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/133973
(cherry picked from commit f7bdc53ca1c22b8709ff39aefb227eab82023168)

Change-Id: I21f6ec319bff615bff50eafc1642b5cf7a434df1
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143272
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: pluto/dalmore: change SPI4 clk to 12MHz
Linqiang Pu [Sat, 22 Sep 2012 00:19:05 +0000]
ARM: tegra: pluto/dalmore: change SPI4 clk to 12MHz

we found data corruption randomly when running at 18MHz.
WARed by changing to 12MHz.

Signed-off-by: Linqiang Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/134529
(cherry picked from commit e32980563ca3b52a6f26e5b5b54367080508492b)

Change-Id: I35bd19766bfa5e3338887cbfdfc3034f64915775
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143271
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agospi: tegra11: add support for HW based CS
Laxman Dewangan [Mon, 1 Oct 2012 11:41:42 +0000]
spi: tegra11: add support for HW based CS

Add support for HW based CS and add configuration
for CS setup time and hold time.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/140617
(cherry picked from commit 90dcafb1414c8e3cb53bbdf518758210aa73f21b)

Change-Id: If746f74145d3cd0804bb8dccdd8f1d0e3c2ebf3b
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143270
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>