5 years agoARM: tegra: panel: Remove size definition in panel file
Chao Xu [Sat, 11 Jan 2014 00:01:13 +0000]
ARM: tegra: panel: Remove size definition in panel file

Kernel should pickup the right size from EDID.

Bug 1389863

Change-Id: Ief16b4d0fdb0a3c0247ffdb3bcb156d29be8a307
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/354468

5 years agovideo: tegra: dp: Use EDID screen size
Chao Xu [Fri, 10 Jan 2014 23:57:11 +0000]
video: tegra: dp: Use EDID screen size

Use the screen size specified in EDID. Vendor might choose to
specify aspect rations instead. So leave the choice to panel
file to decide if use the value.

Bug 1389863

Change-Id: I52c78aa02a0d9cf7be08ffdf6eb159362f486a8a
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/354467

5 years agomedia: platform: nvavp: correct ref count on dmabuf
Vandana Salve [Mon, 13 Jan 2014 07:32:35 +0000]
media: platform: nvavp: correct ref count on dmabuf

Fix missing ref drop on dmabuf while unmapping
iova address

bug 1371298

Change-Id: Ia8b5927ecd02dd0b4935ac50d1d279be3cd0278f
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/354939
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoarm: mm: cpa: only if CONFIG_CPA defined
Peter Daifuku [Thu, 9 Jan 2014 01:57:51 +0000]
arm: mm: cpa: only if CONFIG_CPA defined

Enable cpa functions only if CONFIG_CPA defined

Bug 1426356

Change-Id: I93acad16e18ac03d5b9bbbc953c0b05a18ab86ac
Reviewed-on: http://git-master/r/353514
GVS: Gerrit_Virtual_Submit
Tested-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agovideo: host: tegra_vi: add check tegra_vi for NULL
Bryan Wu [Thu, 9 Jan 2014 19:30:42 +0000]
video: host: tegra_vi: add check tegra_vi for NULL

commit 2d767dccc494f6c503ceac68efa2fe474c5f8d74 will cause kernel oops
when removing tegra_camera module from kernel.

The root cause is tegra_camera V4L2 driver doesn't use
pdata->private_data, which is NULL in this case. So it will cause NULL
pointer access when calling functions in tegra_vi.c.

Add check pointer of tegra_vi for NULL to fix this issue.

Bug 1437413

Change-Id: I4b5189a711e1477509f5f3dbefa98c685a8b94df
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/353891
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: implement gk20a timeout control interface
Kirill Artamonov [Mon, 16 Dec 2013 12:28:21 +0000]
video: tegra: host: implement gk20a timeout control interface

Implement per-channel scheduling timeout handling for gk20a.

Reuse nvhost timeout control interface for gk20a channels.

Disable timeout check if /d/gk20a/timeouts_enabled is set to
false.

bug 1355640
bug 1402282
bug 1415315

Change-Id: Iff953ed89ab1f2096e5f799038d853c034527e9d
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/345840
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoarm: tegra: fix warning to enable -Werror
Ajay Nandakumar [Fri, 10 Jan 2014 17:19:30 +0000]
arm: tegra: fix warning to enable -Werror

Fix various warnings to enable -Werror option.

Bug 1211919

Change-Id: I913728fd3f2cbac0243b4e116c53cb035ed17f35
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/354292
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agousb: tegra: wake enable at suspend
Suresh Mangipudi [Fri, 10 Jan 2014 10:16:08 +0000]
usb: tegra: wake enable at suspend

enable_irq_wake call moved from probe function to suspend.
Resume function has disable_irq_wake call

Bug 992448

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

5 years agostaging: iio: light: treat build warnings as error
Sri Krishna chowdary [Fri, 10 Jan 2014 06:01:52 +0000]
staging: iio: light: treat build warnings as error

- Makefile: enable Werror flag to treat compile time warnings as errors
- max44005: fix unchecked return value in set_led_drive_strength
- tcs3772: IIO_CHAN_INFO_RAW_SEPERATE_BIT is not defined on 3.10.
  Replace it with IIO_CHAN_INFO_RAW instead.

Bug 1211919

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

5 years agoARM: tegra: Use GEN1_I2C at 400 Khz
Chaitanya Bandi [Fri, 10 Jan 2014 04:44:45 +0000]
ARM: tegra: Use GEN1_I2C at 400 Khz

Use GEN1_I2c at 400Khz in ardbeg, loki, tn8 platforms

Bug 1422522

Change-Id: I1b978b4653fcac06110607eb8e6701f89b5948b7
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/352193
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: bq27441: Do not initialize if already done
Chaitanya Bandi [Fri, 10 Jan 2014 08:39:42 +0000]
power: bq27441: Do not initialize if already done

Added support in bq27441 driver such that the device
is not initialized if already done.

Bug 1344962

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

5 years agoTegra12: ARM: Ardbeg: reduce PMC_WAKE_DELAY
Krishna Sitaraman [Thu, 8 Aug 2013 18:45:21 +0000]
Tegra12: ARM: Ardbeg: reduce PMC_WAKE_DELAY

PMC_WAKE_DELAY reduced to 10 32kHz cycles.

Bug 1329050

Change-Id: Iac6b05d1da59083eed8dd1493154a040d9bd0951
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/354709
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: make pinmux node to be always enable for Tegra124
Laxman Dewangan [Fri, 10 Jan 2014 07:11:27 +0000]
ARM: tegra: make pinmux node to be always enable for Tegra124

Make status of pinmux node of Tegra124 to be always enable so that
pinctrl will get register from DT always for all Tegra124 platforms.

This will remove the need to enabling pinmux from platform specific dts
file.

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

5 years agoARM: tegra: make pinmux node to be always enable for Tegra114
Laxman Dewangan [Fri, 10 Jan 2014 06:52:15 +0000]
ARM: tegra: make pinmux node to be always enable for Tegra114

Make status of pinmux node of Tegra114 to be always enable so that
pinctrl will get register from DT always for all Tegra114 platforms.

This will remove the need to enabling pinmux from platform specific dts
file.

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

5 years agoARM: tegra: remove API which requires to register pinctrl from board file.
Laxman Dewangan [Fri, 10 Jan 2014 06:49:53 +0000]
ARM: tegra: remove API which requires to register pinctrl from board file.

As pinctrl registration is moved to DT for all platforms, it is
not require to have function/code to register pinctrl from board
files. Removing the same.

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

5 years agoi2c: mux: pca954x: pass deselect mux when it is register from DT
Laxman Dewangan [Fri, 10 Jan 2014 13:20:54 +0000]
i2c: mux: pca954x: pass deselect mux when it is register from DT

If device is registered from DT then pass the deslect_mux callback
always to register the bus adpater. i2c-mux core driver parse
the required propery from child bus node and enable deselct-mux
accordingly.

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

5 years agoi2c: mux-core: add deselect property on child node
Laxman Dewangan [Fri, 10 Jan 2014 13:18:19 +0000]
i2c: mux-core: add deselect property on child node

Add deselect enable property on the child node of the
mux bus.

If child node of mux device have this property then deselect
option will be enabled.

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

5 years agoi2c: tegra: remove bus number aliasing with node
Laxman Dewangan [Fri, 10 Jan 2014 13:16:15 +0000]
i2c: tegra: remove bus number aliasing with node

Tegra I2C aliases the i2c node with bus number. As the i2c-core
framework supports the aliasing of bus number with device node,
it is not require to have this in driver code. Hence removing this
part of code.

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

5 years agoMerge timers from upstream in to 3.10
Ajay Nandakumar [Mon, 13 Jan 2014 06:54:35 +0000]
Merge timers from upstream in to 3.10

The changes include :
  . relocation of sched_clock framework to kernel/time from
    arch/arm/kernel.

  . support for more than 32 bit counters by sched clock framwork.

Bug 1399318

Change-Id: I3d9b8455d4b2c173f9f7934e1b17aa2b19a42d18
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agosched_clock: document 4Mhz vs 1Mhz decision
Stephen Boyd [Thu, 7 Nov 2013 01:00:01 +0000]
sched_clock: document 4Mhz vs 1Mhz decision

Bo Shen sent a patch to change this to 1Mhz instead of 4Mhz but according
to Russell King the use of 4Mhz was intentional.  Add a comment to this
effect so that others don't try to change the code as well.

Bug 1399318

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Bo Shen <voice.shen@atmel.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
(cherry picked from commit 21e79dee7fe571f59aca2d946032736b0d89ef46)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: If9755b79575739f8be1a4a221a05b34f19ef4b78

5 years agosched_clock: Remove sched_clock_func() hook
Stephen Boyd [Thu, 18 Jul 2013 23:21:19 +0000]
sched_clock: Remove sched_clock_func() hook

Nobody is using sched_clock_func() anymore now that sched_clock
supports up to 64 bits. Remove the hook so that new code only
uses sched_clock_register().

Bug 1399318

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit b4042ceaabbd913bc5b397ddd1e396eeb312d72f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I893740dddcb2ded37acecf0ce87f7f6bcce0cfe8

5 years agoclocksource: Extract max nsec calculation into separate function
Stephen Boyd [Thu, 18 Jul 2013 23:21:14 +0000]
clocksource: Extract max nsec calculation into separate function

We need to calculate the same number in the clocksource code and
the sched_clock code, so extract this code into its own function.
We also drop the min_t and just use min() because the two types
are the same.

Bug 1399318

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit 87d8b9eb7eb6669aad6435a51e9862362141ba76)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: Id1208090d9fcc282a162ce6fdb5e4a64d0b33907

5 years agosched_clock: Add support for >32 bit sched_clock
Stephen Boyd [Thu, 18 Jul 2013 23:21:17 +0000]
sched_clock: Add support for >32 bit sched_clock

The ARM architected system counter has at least 56 usable bits.
Add support for counters with more than 32 bits to the generic
sched_clock implementation so we can increase the time between
wakeups due to dealing with wrap-around on these devices while
benefiting from the irqtime accounting and suspend/resume
handling that the generic sched_clock code already has. On my
system using 56 bits over 32 bits changes the wraparound time
from a few minutes to an hour. For faster running counters (GHz
range) this is even more important because we may not be able to
execute the timer in time to deal with the wraparound if only 32
bits are used.

We choose a maxsec value of 3600 seconds because we assume no
system will go idle for more than an hour. In the future we may
need to increase this value.

Note: All users should switch over to the 64-bit read function so
we can remove setup_sched_clock() in favor of sched_clock_register().

Bug 1399318

Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit e7e3ff1bfe9c42ee31172e9afdc0383a9e595e29)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I7c20d4185232868b362368f034c97337e48b0dc8

5 years agosched_clock: Use an hrtimer instead of timer
Stephen Boyd [Thu, 18 Jul 2013 23:21:16 +0000]
sched_clock: Use an hrtimer instead of timer

In the next patch we're going to increase the number of bits that
the generic sched_clock can handle to be greater than 32. With
more than 32 bits the wraparound time can be larger than what can
fit into the units that msecs_to_jiffies takes (unsigned int).
Luckily, the wraparound is initially calculated in nanoseconds
which we can easily use with hrtimers, so switch to using an
hrtimer.

Bug 1399318

Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
[jstultz: Fixup hrtimer intitialization order issue]
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit a08ca5d1089da03724f96fa0870c64968e66765b)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I17a9bd3140e7f41f0985c070a14eea17696b3770

5 years agosched_clock: Use seqcount instead of rolling our own
Stephen Boyd [Thu, 18 Jul 2013 23:21:15 +0000]
sched_clock: Use seqcount instead of rolling our own

We're going to increase the cyc value to 64 bits in the near
future. Doing that is going to break the custom seqcount
implementation in the sched_clock code because 64 bit numbers
aren't guaranteed to be atomic. Replace the cyc_copy with a
seqcount to avoid this problem.

Bug 1399318

Cc: Russell King <linux@arm.linux.org.uk>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit 85c3d2dd15be4d577a37ffb8bbbd019fc8e3280a)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: Iff7ec4aca829452c5b51576dae9437a37ed8f619

5 years agosched_clock: Fix integer overflow
Baruch Siach [Wed, 17 Jul 2013 09:46:53 +0000]
sched_clock: Fix integer overflow

The expression '(1 << 32)' happens to evaluate as 0 on ARM, but
it evaluates as 1 on xtensa and x86_64. This zeros sched_clock_mask,
and breaks sched_clock().

Set the type of 1 to 'unsigned long long' to get the value we need.

Bug 1399318

Reported-by: Max Filippov <jcmvbkbc@gmail.com>
Tested-by: Max Filippov <jcmvbkbc@gmail.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit 53c035204253efe373d9ff166fae6147e8c693b6)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I9bbe733430f9f7850e4073feef4265f626e6dc8f

5 years agoARM: sched_clock: Load cycle count after epoch stabilizes
Stephen Boyd [Mon, 17 Jun 2013 22:40:58 +0000]
ARM: sched_clock: Load cycle count after epoch stabilizes

There is a small race between when the cycle count is read from
the hardware and when the epoch stabilizes. Consider this
scenario:

 CPU0                           CPU1
 ----                           ----
 cyc = read_sched_clock()
 cyc_to_sched_clock()
                                 update_sched_clock()
                                  ...
                                  cd.epoch_cyc = cyc;
  epoch_cyc = cd.epoch_cyc;
  ...
  epoch_ns + cyc_to_ns((cyc - epoch_cyc)

The cyc on cpu0 was read before the epoch changed. But we
calculate the nanoseconds based on the new epoch by subtracting
the new epoch from the old cycle count. Since epoch is most likely
larger than the old cycle count we calculate a large number that
will be converted to nanoseconds and added to epoch_ns, causing
time to jump forward too much.

Fix this problem by reading the hardware after the epoch has
stabilized.

Bug 1399318

Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit 336ae1180df5f69b9e0fb6561bec01c5f64361cf)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I50aedb0eb050206de4ab20505e84a561ec1ca0fb

5 years agoarch_timer: Move to generic sched_clock framework
Stephen Boyd [Thu, 18 Jul 2013 23:21:18 +0000]
arch_timer: Move to generic sched_clock framework

Register with the generic sched_clock framework now that it
supports 64 bits. This fixes two problems with the current
sched_clock support for machines using the architected timers.
First off, we don't subtract the start value from subsequent
sched_clock calls so we can potentially start off with
sched_clock returning gigantic numbers. Second, there is no
support for suspend/resume handling so problems such as discussed
in 6a4dae5 (ARM: 7565/1: sched: stop sched_clock() during
suspend, 2012-10-23) can happen without this patch. Finally, it
allows us to move the sched_clock setup into drivers clocksource
out of the arch ports.

Bug 1399318

Cc: Christopher Covington <cov@codeaurora.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit 65cd4f6c99c1170bd0114dbd71b978012ea44d28)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I77dde73ba0c325c67275e72220419fd47faf4206

5 years agosched_clock: Make ARM's sched_clock generic for all architectures
Stephen Boyd [Sun, 2 Jun 2013 06:39:40 +0000]
sched_clock: Make ARM's sched_clock generic for all architectures

Nothing about the sched_clock implementation in the ARM port is
specific to the architecture. Generalize the code so that other
architectures can use it by selecting GENERIC_SCHED_CLOCK.

Bug 1399318

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
[jstultz: Merge minor collisions with other patches in my tree]
Signed-off-by: John Stultz <john.stultz@linaro.org>

(cherry picked from commit 38ff87f77af0b5a93fc8581cff1d6e5692ab8970)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: Iaac325635344ef4adee8fa0f9ca11aee089bce0f

5 years agoARM: sched_clock: Return suspended count earlier
Stephen Boyd [Sun, 2 Jun 2013 06:39:39 +0000]
ARM: sched_clock: Return suspended count earlier

If we're suspended and sched_clock() is called we're going to
read the hardware one more time and throw away that value and
return back the cached value we saved during the suspend
callback. This is wasteful. Let's short circuit all that and
return the cached value as early as possible if we're suspended.

Bug 1399318

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit ffbfb5e316f0db486798ccf1db36a577ffe79637)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I618d4d0c03b8ff5e5da47940fc5cfa66bc5145b1

5 years agoARM: sched_clock: Remove unused needs_suspend member
Stephen Boyd [Sun, 2 Jun 2013 06:39:38 +0000]
ARM: sched_clock: Remove unused needs_suspend member

The needs_suspend member is unused now that we always do the
suspend/resume handling (see 6a4dae5 (ARM: 7565/1: sched: stop
sched_clock() during suspend, 2012-10-23)).

Bug 1399318

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit 5a9b5855c248d0298eac4d5490c7bc11c2f1983b)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I53f53b1ad46b6c7d8fa75147f7ddccb322d95482

5 years agoRevert "Revert "ARM: arch_timer: use full 64-bit counter for sched_clock""
Ajay Nandakumar [Thu, 9 Jan 2014 17:45:25 +0000]
Revert "Revert "ARM: arch_timer: use full 64-bit counter for sched_clock""

This reverts commit 60df2b1853f0df4251318ad1d3b741e0f9984e55.

The change is reverted since changes from upstream are available
that provides the actual solution for bug mentioned below.

The upstream patches solve this bug by introducing support for
more than 32 bit counters by sched clock framework.

Bug 1399318

Change-Id: I1a7b20dcbf6c2e73a4a7e3446a5dcb72f4172236
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/353860
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: gadget: tegra: Update extcon state properly
Rohith Seelaboyina [Wed, 8 Jan 2014 05:44:44 +0000]
usb: gadget: tegra: Update extcon state properly

Update extcon state only when cable is removed/connected
physically. This change removes the extra notifications
to extcon notified even though cable is connected.

Bug 1415580

Change-Id: I0647762b1abf95e2cd34264239d756f07da7a239
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/353067
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoAsoc: ALC5639: Do not put codec in OFF state when idle
Manoj Gangwal [Fri, 10 Jan 2014 09:30:46 +0000]
Asoc: ALC5639: Do not put codec in OFF state when idle

Headset detection is happening through codec.
So this change will avoid codec to go in OFF
state if not in use. Codec will be in standby
mode in idle state.

Bug 1423334
Bug 1422595
Bug 1422552

Change-Id: Ic0ed57d35686c5ce063bf7980e6fb65c514edc06
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/354178
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Simon Je <sje@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

5 years agoarm: tegra: loki:remove extra hdmi reg definitions
siddardha naraharisetti [Fri, 20 Dec 2013 23:28:15 +0000]
arm: tegra: loki:remove extra hdmi reg definitions

Only for foster we need HDMI as primary display.
change the dev_name for all hdmi related consumers to tegradc.0
only for foster, these consumers are not needed for other loki variants

Bug 1407836

Change-Id: Idabe6555f841b06edd0905015f1702516660dfc5
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
Reviewed-on: http://git-master/r/348231
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoARM: tegra: loki: fix power tree for a03
Ray Poudrier [Fri, 10 Jan 2014 02:28:27 +0000]
ARM: tegra: loki: fix power tree for a03

Previously did an equate. Need to apply new
power tree for all new boards.

Bug 1429817

Change-Id: If829d2994e8bfb79b9a63bc207cc4ee2d92c4f50
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/354037

5 years agoARM: tegra12: clock: Update EMC init priorities
Alex Frid [Wed, 8 Jan 2014 23:38:25 +0000]
ARM: tegra12: clock: Update EMC init priorities

Assigned to EMC DVFS table from NCT or board files higher priority
than DTB-supplied table.

Change-Id: I4ef8a86c3ddf9edf3c9b2532e42f314c99765af3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/353482
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoRevert "input: touch: raydium: V61.7 code drop"
Xiaohui Tao [Fri, 10 Jan 2014 22:19:34 +0000]
Revert "input: touch: raydium: V61.7 code drop"

This reverts commit 168a30189073179c1394e2ec8b19de8c6341cd20.

Change-Id: Iaaaf62c0b2382c8809394212726e5ff468decfec
Reviewed-on: http://git-master/r/354423
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: tegra: loki: Enable FAST init mode for smps9
Anshul Jain [Fri, 10 Jan 2014 19:19:22 +0000]
arm: tegra: loki: Enable FAST init mode for smps9

Bug 1315200

Change-Id: I5eb3d625d853a33341151e2158f5387436468e75
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/351982
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoARM: DT: tn8: Move battery to separate dtsi
Graziano Misuraca [Wed, 8 Jan 2014 19:51:36 +0000]
ARM: DT: tn8: Move battery to separate dtsi

Change-Id: I7605b3f78af6d3d9dc07d2a51d2fee3feb763a37
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/353383
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agovideo: tegra: host: Lower initial GPU rate
Alex Frid [Tue, 5 Nov 2013 05:06:30 +0000]
video: tegra: host: Lower initial GPU rate

Set initial GPCPLL rate to 504MHz - half of minimum VCO rate.
Respectively initialize GPU bus rate to half of GPCPLL rate - 252MHz
(was - maximum GPU rate supported).

These changes made sure that initial GPU voltage is low enough for
tegra SiMon to evaluate GPU state on boot even on the slowest part.

Bug 1343366

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

5 years agoARM: tegra: dvfs: Update DFLL bypass detection
Alex Frid [Tue, 7 Jan 2014 21:25:06 +0000]
ARM: tegra: dvfs: Update DFLL bypass detection

With multiple Tegra12 platforms support in one kernel image, using
DFLL bypass config option is not sufficient to properly differentiate
platforms with DFLL bypass. Added platform data check to DFLL bypass
detection interface.

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

5 years agoarm: tegra: dt: add back 924mhz to E1780 emc dvfs
Ryane Luo [Fri, 3 Jan 2014 03:27:38 +0000]
arm: tegra: dt: add back 924mhz to E1780 emc dvfs

Bug 1340913

Change-Id: I65e253fa934693cad01c7755df817d8e14d71d33
Signed-off-by: Ryane Luo <ryanel@nvidia.com>
Reviewed-on: http://git-master/r/351590
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: nvmap: don't set VM_IO flag
Krishna Reddy [Tue, 7 Jan 2014 19:28:07 +0000]
video: tegra: nvmap: don't set VM_IO flag

Don't set VM_IO flag as memory allocated by NvMap is not really IO.
Don't set VM_MIXEDMAP flag as NvMap allocated memory is either all
struct page * or pure PFN. For PFN memory, set VM_PFNMAP flag.

Bug 1433646

Change-Id: I626f1f1507547821aa9d5d3f4e2828ba567e953f
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/352819

5 years agovideo: tegra: dp: Turn off pll_dp when unused
Daniel Solomon [Thu, 9 Jan 2014 03:50:54 +0000]
video: tegra: dp: Turn off pll_dp when unused

Currently pll_dp is enabled in dp_setup_clk and
is never disabled. Instead, enable/disable
pll_dp along with the DP driver.

Change-Id: I51052b028482f9492a39468411c01ba2082618b0
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/304570
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoarm: tegra124: laguna: remove non-existent pin pff1
Naveen Kumar S [Wed, 8 Jan 2014 06:20:21 +0000]
arm: tegra124: laguna: remove non-existent pin pff1

Delete declaration of non-existent pin "pff1" in dts file.
It is supposed to be usb_vbus_en2_pff1.

bug 1430089

Change-Id: Iabbdb9fbd096ee3b1e4de340755fbcbda0e63041
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/353079
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agovideo: tegra: host: Dump GPU status before recovery
Terje Bergstrom [Thu, 9 Jan 2014 11:21:46 +0000]
video: tegra: host: Dump GPU status before recovery

Dump GPU status before invoking recovery procedure. This way we will
see the status of GPU at the point of failure, not at the point when
we're already doing recovery.

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

5 years agovideo: tegra: host: WFI channels before suspend
Terje Bergstrom [Fri, 13 Dec 2013 12:27:26 +0000]
video: tegra: host: WFI channels before suspend

Insert a WFI to channels before suspending.

Bug 1155990

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

5 years agovideo: tegra: host: Use KEPLER_C syncpt incr
Terje Bergstrom [Tue, 17 Dec 2013 06:52:32 +0000]
video: tegra: host: Use KEPLER_C syncpt incr

If channel is used for KEPLER_C, use its syncpoint increment with a
condition instead of host increment.

Bug 1155990

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

5 years agovideo: tegra: host: Map registers directly in gk20a driver
Lauri Peltonen [Fri, 3 Jan 2014 09:50:54 +0000]
video: tegra: host: Map registers directly in gk20a driver

No need to use the nvhost_client_device_get_resources utility function.
This removes a dependency between gk20a and nvhost drivers.

Bug 1434573

Change-Id: Ifa4681917e27f5648268835a90c425d5f4871d75
Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com>
Reviewed-on: http://git-master/r/352043
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: Build gk20a driver independently from nvhost
Lauri Peltonen [Fri, 3 Jan 2014 09:55:18 +0000]
video: tegra: host: Build gk20a driver independently from nvhost

Look at CONFIG_GK20A rather than CONFIG_TEGRA_GK20A or
CONFIG_TEGRA_GRHOST when deciding whether to build the gk20a driver.

Bug 1434573

Change-Id: I21f103a7b50971ec27fb8561841c6db826cf9b06
Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com>
Reviewed-on: http://git-master/r/352044
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: Separate gk20a configs
Lauri Peltonen [Thu, 2 Jan 2014 13:29:57 +0000]
video: tegra: host: Separate gk20a configs

Remove "TEGRA_" from the gk20a specific configs, and move those configs
to a separate Kconfig file under the gk20a directory.

Also replace the config names under arch/arm/configs - it would be
tedious to do this kind of renaming in separate patches.

Bug 1434573

Change-Id: Ib802382badd405e0ece4d573c1bf9b5c5f08ad19
Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com>
Reviewed-on: http://git-master/r/352041
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoStylus: merge kernel code of detecting pen
Leavitt Zhang [Mon, 25 Nov 2013 05:37:27 +0000]
Stylus: merge kernel code of detecting pen

Add 2 gpio keys for tn8 only.
Separate tn8 dt files from e1780.
------------------------------
commit 4012682d01e5c7538ccf9b259547d082b62aafe9
Author: Youngjin Kim <nkim@nvidia.com>
    Change stylus pen detect hall sensor GPIO for P1640-A01 revision.
    Change-Id: I50549fd168a03946e3370e6d23d61203e299d0d6
    Reviewed-on: http://git-master/r/237187

commit ad89dd3f769058560a5e5576c503cbd5af954a8d
Author: Youngjin Kim <nkim@nvidia.com>
    ARM: tegra: tegratab: add lid and pen detect switch support
    Change-Id: Idd0bc903354970352b0f451595249d1209569924
    Reviewed-on: http://git-master/r/224883
------------------------------

Bug 1380492

Change-Id: I9aa85424359a05b4cafbaa157b668c56e4430f97
Signed-off-by: Leavitt Zhang <leavittz@nvidia.com>
Reviewed-on: http://git-master/r/336063
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agomedia: platform: tegra: fix coverity issues
Deepak Nibade [Thu, 9 Jan 2014 14:16:46 +0000]
media: platform: tegra: fix coverity issues

- fix out-of-bounds read
Coverity id : 25412
Coverity id : 25413
- fix uninitialized variable
Coverity id : 25148
- fix logically dead code
Coverity id : 25056
- fix read from pointer after free
Coverity id : 25178

Bug 1416640

Change-Id: I1c5a5e8438c1cd7658c29873677470ecdc9a6bc1
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/353192
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: Remove registration of BQ2471x
Chaitanya Bandi [Mon, 6 Jan 2014 08:32:13 +0000]
ARM: tegra: Remove registration of BQ2471x

Removed the registration of Bq2471x in ardbeg
as it is not be used.

Bug 1426719

Change-Id: I8f3ca75f1b5edcfe4cf9ef1fa531e7216d556d7a
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/352168
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: config: enable I2C on all tegra config
Laxman Dewangan [Thu, 9 Jan 2014 12:05:20 +0000]
ARM: tegra: config: enable I2C on all tegra config

Enable CONFIG_I2C on all Tegra defconfig as I2C support is
require for all Tegra platforms.

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

5 years agoARM: tegra: move pinmux table to DT for vcm30-t124
Laxman Dewangan [Wed, 8 Jan 2014 09:52:19 +0000]
ARM: tegra: move pinmux table to DT for vcm30-t124

Move pinmux table to DT for vcm30-t124.
Also move the pca registration to board-vcm30_t124-power.c
to get rid of file board-vcm30_t124-pinmux.c.

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

5 years agoARM: tegra: move pinmux table to DT for Loki
Laxman Dewangan [Wed, 8 Jan 2014 09:24:28 +0000]
ARM: tegra: move pinmux table to DT for Loki

Move pinmux table to DT for Loki.

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

5 years agoARM: tegra: move pinmux table to DT for bonaire
Laxman Dewangan [Wed, 8 Jan 2014 08:50:57 +0000]
ARM: tegra: move pinmux table to DT for bonaire

Move pinmux table to DT for bonaire.

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

5 years agoARM: dts: fix incorrect dts/dtsi file names.
Min-wuk Lee [Fri, 10 Jan 2014 01:50:27 +0000]
ARM: dts: fix incorrect dts/dtsi file names.

A few tegra dts and dtsi file names begin with
tegar. Fix this typo.

Bug 1371533
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>

Change-Id: I7cb0ae7e63d9c69fcf95fe2527a37b66dda2a39b
Reviewed-on: http://git-master/r/354025
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoUSB: cdc-acm: fix data reordering issue
Yu-An Shih [Wed, 8 Jan 2014 03:35:25 +0000]
USB: cdc-acm: fix data reordering issue

There is a race condition between acm_tty_unthrottle and
acm_process_read_urb; new data can be added to the tty buffer
before the data queued when throttled.

Bug 1436086

Change-Id: I76364cc69fb718e34ae646497591ddc8a717e6e1
Signed-off-by: Yu-An Shih <yshih@nvidia.com>
Reviewed-on: http://git-master/r/353617
Reviewed-by: Steve Lin <stlin@nvidia.com>
Tested-by: Steve Lin <stlin@nvidia.com>

5 years agohid: nvidia: Map home and back in kernel
Jun Yan [Tue, 31 Dec 2013 03:24:48 +0000]
hid: nvidia: Map home and back in kernel

This is to support recovery kernel, where we
don't have Android keymapping but totally relying
on "real" KEY_HOME/KEY_BACK.

Bug 1431870

Change-Id: Ib3185bc230b65b5e25094caf3a61fa45ed2b835b
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/350820
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoARM: tegra: tn8: load EMC table from DT for TN8
Leo He [Thu, 26 Dec 2013 15:01:47 +0000]
ARM: tegra: tn8: load EMC table from DT for TN8

bug 1430981

Change-Id: I1ed7f62d7779375abbb5b9469c96c34ce96f58e6
Signed-off-by: Leo He <leoh@nvidia.com>
Reviewed-on: http://git-master/r/349772
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hunk Lin <hulin@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra12: clock: Allow cbus one-point DVFS table
Alex Frid [Tue, 7 Jan 2014 05:16:35 +0000]
ARM: tegra12: clock: Allow cbus one-point DVFS table

Accepted as valid shared cbus DVFS table with only one operational
frequency (at least 2 were required before this commit).

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

5 years agoARM: tegra12: power: Print speedo values info
Alex Frid [Fri, 3 Jan 2014 04:47:54 +0000]
ARM: tegra12: power: Print speedo values info

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

5 years agoBuild Change for Invensense V5.2.0 code drop
Xiaohui Tao [Wed, 8 Jan 2014 22:47:52 +0000]
Build Change for Invensense V5.2.0 code drop

Change-Id: I9b613be7f9939440e106fcab9929867878c0ce52
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/353462
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoInvensense V5.2.0 code drop for K310/KK
Xiaohui Tao [Wed, 8 Jan 2014 22:31:34 +0000]
Invensense V5.2.0 code drop for K310/KK

Change-Id: I166b0dc65bb90edd582bb0121a59683a9ce2a4af
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/353453
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoinput: touch: raydium: V61.7 code drop
Xiaohui Tao [Fri, 3 Jan 2014 22:36:31 +0000]
input: touch: raydium: V61.7 code drop

[1] Fix report pointer bug
[2] Modify pointer specifier for all printf-like function
[3] Add protection in KRL_CMD_WRITE_W_COUNT
[4] Fix GPIO sensor select bug
[5] Fix slowscan function bug
[6] Refine some statements
[7] Enhance stability of idle mode on Pismo (64-bit platform)
[8] Fix Raydium_selftest bug (result in touch not work)

Change-Id: Ibc71e4178bd7b90abb2ea1397b4ee59b4d7dc498
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/351894
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoboard: loki: remove touch clock loki ffd fab >= a3
Robert Collins [Tue, 3 Dec 2013 23:33:10 +0000]
board: loki: remove touch clock loki ffd fab >= a3

Remove touch clock initialization for loki ffd fab a3 or higher
Move clock from tegra clock to external xtal.

Bug 1429817

Change-Id: I89182211f7831f240681867f282d6487f29f3223
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
Reviewed-on: http://git-master/r/337965
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoarm: tegra12: loki: INA config for P2560 A03
Anshul Jain [Fri, 27 Dec 2013 06:10:28 +0000]
arm: tegra12: loki: INA config for P2560 A03

Change for configuring the right resistor settings of
P2530 A03 boards.

Bug 1429817

Change-Id: Icac2af3d36868fb6297696035081e0211f6a728f
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/350013
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoARM: tegra: Register lc709203f FG fo loki
Chaitanya Bandi [Thu, 9 Jan 2014 05:21:58 +0000]
ARM: tegra: Register lc709203f FG fo loki

Registered lc709203f FG for loki device through
device tree.

Bug 1388336

Change-Id: Ie44d2ebcd5dc6f537e4d50525242862e62fad236
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/353579
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agopower: lc709203f: Add DT support for lc709203f
Chaitanya Bandi [Wed, 8 Jan 2014 05:34:09 +0000]
power: lc709203f: Add DT support for lc709203f

Added device tree support for lc709203f driver.

Bug 1388336

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

5 years agopower: bq27441: Check for slave presence in probe
Chaitanya Bandi [Tue, 31 Dec 2013 07:28:00 +0000]
power: bq27441: Check for slave presence in probe

Added support to check for slave presence through an
I2C transfer  in driver probe. Driver will exit if
the slave is not detected.

Change-Id: Ib741b6f5070e62f78b49d6b895d6d1b6f899a6ea
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/350908
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoARM: tegra: panel: Update panel file to support norrin
Chao Xu [Wed, 8 Jan 2014 22:41:17 +0000]
ARM: tegra: panel: Update panel file to support norrin

Change-Id: I5cff883aa597b9e081dd32fbc0cd6d6630ad7713
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/353472
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agotn8-ffd: Support for NCT thermistor and tdiode
Robert Shih [Tue, 31 Dec 2013 22:25:24 +0000]
tn8-ffd: Support for NCT thermistor and tdiode

GPADC_IN1 for system(thermistor)
GPADC_IN3 for AP(diode)
GPADC_IN5 for battery

Bug 1429331

Change-Id: I4d5b3c2b3481c86b3bf821e5e1c98cf1c32de3cc
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/351070
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra: ardbeg: disable TX_PU to save power
Chao Xu [Tue, 7 Jan 2014 19:50:55 +0000]
ARM: tegra: ardbeg: disable TX_PU to save power

This is the new prod value.

bug 1382354

Change-Id: I5efb1885c12740d3e09831b331a659f5f1c735fc
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/352833
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Xue Dong <xdong@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>

5 years agovideo: tegra: dp: Honor tx_pu_disable flag for FLT
Chao Xu [Tue, 7 Jan 2014 19:48:20 +0000]
video: tegra: dp: Honor tx_pu_disable flag for FLT

Bug 1382354

Change-Id: Ic40be761a5fdc672bab89d82d2456a5ca20d76dd
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/352832
GVS: Gerrit_Virtual_Submit
Reviewed-by: Xue Dong <xdong@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>

5 years agommc: tegra: race during sdhci probe
Bibek Basu [Tue, 7 Jan 2014 09:58:26 +0000]
mmc: tegra: race during sdhci probe

delayed_clk_gate_wrk function has to be set before
calling sdhci_add_host. Otherwise the timer_function
will be empty and the race can cause kernel panic

Bug 1432964

Change-Id: I0ec921c3588c8368d1119d7b3089c82cc6c08e1e
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/352674
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agopower: battery-gauge:read battery temp from FG
Venkat Reddy Talla [Wed, 8 Jan 2014 07:09:58 +0000]
power: battery-gauge:read battery temp from FG

 add support to read battery temperature using Fuel
 gauge driver.

Change-Id: I2f82c8f70f032ea811fd16077f3c647d66344e70
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/353145
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: bq27441:add api to battery-gauge ops
Venkat Reddy Talla [Wed, 8 Jan 2014 07:04:53 +0000]
power: bq27441:add api to battery-gauge ops

 provide callback api to battery-gauge driver to read battery
 temperature.bq27441 FG provides register to read battery
 temp value.

 Bug 1355405

Change-Id: Iced5ef1093564acffd5f26fc4da7c784da1dd414
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/353144
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: bq2419x:implement thermal charging
Venkat Reddy Talla [Wed, 8 Jan 2014 07:00:41 +0000]
power: bq2419x:implement thermal charging

 thermal manager keeps monitoring battery temp
 value and changes battery charger input current limit
 configuration accordingly.

 Bug 1355405

Change-Id: I7cd9eb4388f6869c8145a8e936f78cdcee7d54ec
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/353143
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: dts: loki:support for thermal based charging
Venkat Reddy Talla [Wed, 8 Jan 2014 06:53:09 +0000]
ARM: dts: loki:support for thermal based charging

 pass temperature polling time period and
 enable thermal monitor parameter required to
 add support for enabling temperature based
 charging.

 Bug 1355405

Change-Id: Icaf4498226fbc784473b41aeb117865b2914227b
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/353142
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: DT: tn8/pop: Move sensors into separate dtsi
Graziano Misuraca [Wed, 8 Jan 2014 20:01:15 +0000]
ARM: DT: tn8/pop: Move sensors into separate dtsi

Bug 1434403

Change-Id: I422b3d3b85a8f6df588b3376005dcd5bd3e36fa6
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/353388
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm: tegra: configure clk_32 from as3722 gpio5
Mallikarjun Kasoju [Mon, 6 Jan 2014 11:59:17 +0000]
arm: tegra: configure clk_32 from as3722 gpio5

Change-Id: I3d43669da3ba20b1b94817f8497d15ca4c4c15e1
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/352245
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopinctrl: as3722: set pin mode to output
Mallikarjun Kasoju [Thu, 26 Dec 2013 17:55:51 +0000]
pinctrl: as3722: set pin mode to output

If pins are used for function output like pwm, clk32k,
power good etc then set it as output mode by default.

Change-Id: I3ec3066f34c8a360f55bf6187f177509f79c6c06
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/349796
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/352238
Reviewed-by: Automatic_Commit_Validation_User

5 years agommc: tegra: Verify return status of clock APIs
R Raj Kumar [Wed, 8 Jan 2014 11:12:41 +0000]
mmc: tegra: Verify return status of clock APIs

Added debug prints for verifying the return status of
clock APIs that are used in the sdhci driver.

Bug 1424839

Change-Id: Ifd5999314a2809d8995f9640bc730f1797ed8dee
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/353275
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoARM: tegra12: vcm30t124: Update defconfig
Ashwin Joshi [Tue, 7 Jan 2014 07:51:07 +0000]
ARM: tegra12: vcm30t124: Update defconfig

Update defconfig to disable CONFIG_TEGRA_CORE_CAP as this is not
required for automotive board.

Bug 1410210

Change-Id: I3255f6dfd622823df8bb432604f3b0216cb01a89
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/352595
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoARM: tegra12: Add config option for core caps
Ashwin Joshi [Tue, 7 Jan 2014 07:50:13 +0000]
ARM: tegra12: Add config option for core caps

Add this new option to initialize core caps conditionally

Bug 1410210

Change-Id: I1488a0b9c3722e7878e6cc9db86db8e4e54f4941
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/352594
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoARM: tegra12: dvfs: Init core caps conditionally
Ashwin Joshi [Tue, 7 Jan 2014 07:48:07 +0000]
ARM: tegra12: dvfs: Init core caps conditionally

Initialize core caps if CONFIG_TEGRA_CORE_CAP is enabled.

Bug 1410210

Change-Id: I04d0af63e62690a77e309435a618c303b264b840
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/352593
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoARM: tegra: fuse: Logically dead code
Sumit Singh [Wed, 18 Dec 2013 11:01:18 +0000]
ARM: tegra: fuse: Logically dead code

Coverity id : 25059

Bug 1416640

Change-Id: Ic4550e23595c8d64bcb0291a9086c8549d0d6d55
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/347001
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm: dts: tn8: add hdmi regulators' phandle
Min-wuk Lee [Fri, 3 Jan 2014 11:23:25 +0000]
arm: dts: tn8: add hdmi regulators' phandle

Add hdmi regulators' phandle in device tree
to get regulator in device driver layer.
In addition, fix right property name for
default emc clk rate.

Bug 1371533
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>

Change-Id: I3f5ca45bfe84672ee54f1a33169381a7607bfda9
Reviewed-on: http://git-master/r/351726
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoASoC: spdif: Add DAPM widgets and routes
Songhee Baek [Wed, 11 Dec 2013 07:48:11 +0000]
ASoC: spdif: Add DAPM widgets and routes

This is for adding DAPM widgets and routes to use
DAPM.

Bug 1423733

Change-Id: I526f2d6b6c00a1a2d06859693c3e748344133e3f
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/344096
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>

5 years agomfd: as3722: disable auto power on when AC OK
Laxman Dewangan [Tue, 24 Dec 2013 06:45:11 +0000]
mfd: as3722: disable auto power on when AC OK

On ams AS3722, power on when AC OK is enabled by default.
Making this option as disable by default and enable only
when platform need this explicitly.

Change-Id: I103d62ab9170c96b00ce8b58235afb8d24ba5e63
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/349290
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>

5 years agoARM: tegra: move pinmux table to DT for Pismo
Laxman Dewangan [Wed, 8 Jan 2014 06:49:45 +0000]
ARM: tegra: move pinmux table to DT for Pismo

Move pinmux configuration on Pismo to DT.

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

5 years agoARM: tegra: move pinmux table to DT for Roth
Laxman Dewangan [Wed, 8 Jan 2014 05:54:44 +0000]
ARM: tegra: move pinmux table to DT for Roth

Move pinmux configuration on Roth to DT.

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

5 years agoARM: tegra: move pinmux table to DT for Macallan
Laxman Dewangan [Tue, 7 Jan 2014 13:52:18 +0000]
ARM: tegra: move pinmux table to DT for Macallan

Move pinmux configuration on Macallan to DT.

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

5 years agosecurity: tlk_driver: delete TLK_{GENERIC|EXTENDED}_SMC macros
Varun Wadekar [Thu, 2 Jan 2014 06:36:40 +0000]
security: tlk_driver: delete TLK_{GENERIC|EXTENDED}_SMC macros

Generic cleanup to remove unnecessary macros.

Change-Id: Ia5d8c89622b9689c0c0a2658495cb4d33a2da7f5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/351304

5 years agotegra: p1761: enable OC4 soc_therm HW throttle
Timo Alho [Tue, 7 Jan 2014 10:21:52 +0000]
tegra: p1761: enable OC4 soc_therm HW throttle

This patch enables OC4 HW throttle for P1761 TN8 platform. INA power
monitor sensor is driving the OC4 soc_therm input to throttle GPU&CPU
when safe battery current limits are exceeded.

For now, the battery OC limit is set to 6450mA

Bug 1339846

Change-Id: I8767adea4ee82226deba2b7ccf72a5f6e8f6115f
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/352695
Reviewed-by: Steve Rogers <srogers@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoarm:tegra:loki: min. cpu_timer for ffd fab >= a3
siddardha naraharisetti [Fri, 27 Dec 2013 02:16:41 +0000]
arm:tegra:loki: min. cpu_timer for ffd fab >= a3

reduce cpu_power_good_timer for loki ffd fab >= a3, which are
using the new OVR part

Bug 1429817

Change-Id: I0abc93da3d59016282576f1988201f59a533b168
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
Reviewed-on: http://git-master/r/349948
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agovideo: tegra: dc: fail flips for disconnected devs
Rakesh Iyer [Wed, 8 Jan 2014 19:25:06 +0000]
video: tegra: dc: fail flips for disconnected devs

Fail flips when devices are disconnected.

Bug 1410629.

Change-Id: Ie5c6574d7ad367a401d13cb5f7cec01feda7f4e1
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/353375
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>