5 years agostaging: iio: light: stm8t143: Add sensor driver
Sri Krishna chowdary [Mon, 23 Sep 2013 16:43:09 +0000]
staging: iio: light: stm8t143: Add sensor driver

Add STM8T143 proximity sensor support.

Bug 1362876

Change-Id: I694f569d46af033a0312c5611cacee58071c9772
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/277917
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit 8ed91b4423ad3982ebbd6cbdf019c005df60c989)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomfd: palmas: remove clock initialisation from core driver
Laxman Dewangan [Sat, 28 Sep 2013 09:34:30 +0000]
mfd: palmas: remove clock initialisation from core driver

The new driver get added to support the clock functionality of Palmas
devices.

Hence removing the clock initialisation from the mfd driver.

Change-Id: Ie93914928c0f2e16386310bf1b8cc94a463f23af
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/279804
(cherry picked from commit 0192a8f272f2a17dcdcd2e6165d1caf1d68c9cc9)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: config: enable CLK_PALMAS
Laxman Dewangan [Fri, 27 Sep 2013 11:37:56 +0000]
ARM: tegra: config: enable CLK_PALMAS

Enable CLK_PALMAS to supports clock from Palmas devices.

Change-Id: I8af130c4b03f019d55a275c3c05668d5cc8b7c93
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/279803
Reviewed-by: Automatic_Commit_Validation_User
(cherry picked from commit 45e9601557a285f63bfcdeb0ce6b7b31d72914ca)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoclk: palmas: add clock driver
Laxman Dewangan [Fri, 27 Sep 2013 11:37:13 +0000]
clk: palmas: add clock driver

Add Palmas clock driver to control 32KHz clock from Palmas
device.

Change-Id: I4f684e17da0c96f3fba0cd52b35c995ef7c86930
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/279802
(cherry picked from commit b092feb064baf85bc238bfbb57c476e7e31b3f93)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomfd: palmas: rename SLEEP_REQSTR_ID* to EXTERNAL_REQSTR_ID*
Laxman Dewangan [Fri, 27 Sep 2013 12:16:41 +0000]
mfd: palmas: rename SLEEP_REQSTR_ID* to EXTERNAL_REQSTR_ID*

Renames PALMAS_SLEEP_REQSTR_ID_* enums for sleep requestor to
PALMAS_EXTERNAL_REQSTR_ID_* as external requestor which matches
with functionality.

Change-Id: I0196b6078bae4d3483acb7422139f6e0c2918511
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/279813
(cherry picked from commit 48182ed096c3ceefc3913210cb54b27a0fa0a9f5)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: create battery based DTS file for TN8
Laxman Dewangan [Fri, 27 Sep 2013 10:37:09 +0000]
ARM: tegra: create battery based DTS file for TN8

Create battery based DTS file for TN8 so it should be selected
when battery is present on system.

Change-Id: I3acdab25b3c45c53a8f24358d99cfd433c9b2659
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/279783
Reviewed-by: Hayden Du <haydend@nvidia.com>
(cherry picked from commit 66f94cc2a1d86f6ca649b36faf6fb072eb18bd74)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: dc: detach from dmabuf
Alex Waterman [Fri, 27 Sep 2013 17:02:25 +0000]
video: tegra: dc: detach from dmabuf

Make sure we detach from the dmabuf before we put the dmabuf.
Otherwise we leak the underlying attachment structure.

Bug 1354774

Change-Id: Ic36221813e3ece41f189ef6083ed52dd71bbe90f
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/279875
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
(cherry picked from commit 9d23e72cc69da6e702a3bb7788db67febac292eb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomedia: platform: tegra: nvavp: add detach from dmabuf
Krishna Reddy [Fri, 27 Sep 2013 18:22:32 +0000]
media: platform: tegra: nvavp: add detach from dmabuf

fix dma_buf_attachment leak resulting from not calling
dma_buf_detach.
also correct error handling.
Bug 1354774

Change-Id: Ia663ce22b1e2ab3ec94cdbf1b37e4b7da8c58bc3
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/279900
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>
(cherry picked from commit e4577f710ed750e06b34b22549086daff77a24e8)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: dc: add detach from dmabuf
Krishna Reddy [Fri, 27 Sep 2013 18:09:15 +0000]
video: tegra: dc: add detach from dmabuf

fix dma_buf_attachment leaks resulting from not calling
dma_buf_detach.
Bug 1354774

Change-Id: If70a42042d14890159c6d2bc0d2abc0e84c3fedd
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/279896
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>
(cherry picked from commit a7fd458faa32e343f500cc71accd424224c4b3a1)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoCpuquiet: Fix min_cpus == 1 not forcing G cluster
Sai Gurrappadi [Wed, 4 Sep 2013 00:57:14 +0000]
Cpuquiet: Fix min_cpus == 1 not forcing G cluster

Refactored the logic that decides when to cluster switch
in order to enforce cluster switching priority given
different constraints. Following is the priority

highest to lowest priority:

  - no_lp sysfs node: -1 = LP; 1 = G; 0 = no constraint
  - min_cpus = 1 forces G cluster
  - frequency changes when on a single core

Bug 1348717

Change-Id: I9a4951808f1916a1929180c45a7dd58640c62a66
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/277346
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
(cherry picked from commit c59c0b45244c9e6fc7e2c264b11ac82424e19c24)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: gk20a: Use gpu_ref reference clock
Kaz Fukuoka [Thu, 26 Sep 2013 01:28:13 +0000]
video: tegra: gk20a: Use gpu_ref reference clock

Instaed of hard coding 12MHz, use gpu_ref in the kernel
clock tree as a reference clock of GPCPLL.

bug 1372375

Change-Id: I021e4973f8a62794b75ee19c9fa6505c9e74e1a4
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/279115
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 3b570b7f9b6144413f8432226329b2abc13a686b)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: Tegra12: Clock: Update CPU DFLL dvfs table
Krishna Sitaraman [Mon, 23 Sep 2013 23:04:51 +0000]
ARM: Tegra12: Clock:  Update CPU DFLL dvfs table

Update CPU DFLL dvfs table to match with the latest released
characterization data.

Bug 1342499

Change-Id: Ie087d4cd7b1b349d74c08fcd536daea1937d9f14
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/278037
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>
(cherry picked from commit cb77d9d0942ac68f047ee92436b0a5c41a9bc3a0)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: set memmgr type to nvmap
Krishna Reddy [Wed, 25 Sep 2013 18:36:15 +0000]
video: tegra: host: set memmgr type to nvmap

set memmgr type to nvmap if CONFIG_NVMAP_USE_FD_FOR_HANDLE is
enabled.

Change-Id: Ib9ae9bc855f7e6b98303a4082c68717d97b97a92
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/278989
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 567f03ca9f0f1de8a242dea22c042e2a2587c6fa)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: dvfs: Add GPU thermal dvfs table to debugfs
Alex Frid [Thu, 26 Sep 2013 04:37:57 +0000]
ARM: tegra: dvfs: Add GPU thermal dvfs table to debugfs

Bug 1273253

Change-Id: I4434f39434d505a1601b5f9275588b822302a937
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/279198
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 010f3fc5eb62ce35ad5d7c3ef191736d6d4afc55)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: Check thermal in GPU bus rate round
Alex Frid [Sat, 21 Sep 2013 06:22:29 +0000]
ARM: tegra12: clock: Check thermal in GPU bus rate round

Accounted for voltage dependency on temperature when rounding cbus
rate. Although cbus round rate operation is used for c2bus, c3bus,
c4bus, and gbus, only the latter is actually affected by thermal check,
since thermal dvfs is supported for GPU only.

Bug 1273253

Change-Id: I5b25e4ba22adeb911eea586e2586ced273e12d3b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/278104
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit e092a9fd3bb4ef5b25dbc4f165a8d37d8d46087f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: dvfs: Add dvfs thermal dependency
Alex Frid [Fri, 13 Sep 2013 03:15:41 +0000]
ARM: tegra: dvfs: Add dvfs thermal dependency

Added temperature dependency to dynamic voltage scaling. When thermal
dvfs table is installed for the particular clock, voltage required to
run at any frequency is no longer assumed constant (i.e., worst case)
across entire operational temperature range, but determined according
to temperature index set by thermal dvfs cooling device.

The following limitations are enforced by current implementation:
- thermal dvfs is applied only when rail is in pll mode (in dfll mode
voltage on temperature dependency is taken care of by dfll h/w).
- tabulated voltages at any temperature must increase monotonically
with frequency (monotonicity is not expected at iso frequency across
temperature ranges).
- voltage for any frequency/temperature combination must be within the
respective rail minimum/maximum limits
- thermal dvfs is supported, for now, only on GPU clocks

Bug 1273253

Change-Id: I4cf2ff1ae862c32c2d2fc57b9b4c98e316539024
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/278103
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit e0baf0bf9a692894e49c4d59c15a52f2fd405aa6)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: ardbeg: Add Marvell platform data
Nagarjuna Kristam [Fri, 27 Sep 2013 04:22:38 +0000]
arm: tegra: ardbeg: Add Marvell platform data

Add Marvell platform data, to control Wifi power and wake GPIO

Bug 1375751

Change-Id: I0ab9d25ef540d1b034568d2d817e05243a889005
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/279653
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 918930abd6c09c3d0d5c296b1d2d580ed1392447)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: tegratab: remove __initdata keyword for bl device of 7" panel
Johnny Qiu [Thu, 26 Sep 2013 10:32:08 +0000]
arm: tegra: tegratab: remove __initdata keyword for bl device of 7" panel

Backlight device cannot be declared using __initdata since it will
be accessed after init section.

Bug 1367960

Change-Id: I7e175fa6f7518788dfd491c6cfc03ba06375e15a
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/279309
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 42ca070d9cc9fb34bc0cf6187c4b990e6d4df4c6)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: remove warnings timer.c and cpu_timer_arch.c
Philip Rakity [Thu, 5 Sep 2013 11:29:52 +0000]
ARM: tegra: remove warnings timer.c and cpu_timer_arch.c

remove readl and writel from cpu_timer_arch (not used)

readl and writel code is in timer.h -- use it
remove unused variable

Change-Id: I2286b66c356ebb7970d00921c852f63a0d014528
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/270782
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 374c02ad51a822c7997e03b3b6c640ea660b4b65)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: gk20a: Use nvhost set rate
Arto Merilainen [Fri, 27 Sep 2013 07:17:40 +0000]
video: tegra: host: gk20a: Use nvhost set rate

EMC scaling used clk_set_rate() function. However, nvhost acm retains
information about the current frequency and based on devfreq
suggestion and userspace requests it sends a request to clock
framework. Therefore our current approach lead acm to restore invalid
clock when channel is closing.

This patch modifies the code to use nvhost acm framework for setting
EMC clock.

Bug 1374521

Change-Id: Ib24b4a5cf64c0ba8216461d40e7708b28d2505bf
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/279739
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit d41472e79d6d814c5806d8a29e73682ba9420ef4)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoEDP: psy depletion: use flush_delayed_work
Philip Rakity [Wed, 25 Sep 2013 11:42:31 +0000]
EDP: psy depletion: use flush_delayed_work

flush_delayed_work should be used rather then
flush_delay_work_sync.

flush_delayed_work_sync just calls flush_delayed_work.
see workqueue.h

/nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c
In function 'capacity_set':
nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c:280:2:
warning: 'flush_delayed_work_sync' is deprecated
(declared at
/nvidia/DEV_KERNEL/kernel/include/linux/workqueue.h:454)
[-Wdeprecated-declarations]

/nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c:
In function 'vsysmin_set'
/nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c:297:2:
warning: 'flush_delayed_work_sync' is deprecated
(declared at
/nvidia/DEV_KERNEL/kernel/include/linux/workqueue.h:454)
[-Wdeprecated-declarations]

Change-Id: Ib6ee73feb40560aa5eb9b8941047e5313ac3aaa9
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/278887
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
(cherry picked from commit 1ad8994d893cf805e84988a4f1077250f90957bb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomisc: tegra-throughput: Use notifiers
Arto Merilainen [Wed, 25 Sep 2013 12:39:34 +0000]
misc: tegra-throughput: Use notifiers

We used to deliver this information by calling directly a function
inside nvhost_pod. This is not suitable for our needs as we want
to be able to use the same governor with several different (graphics)
devices in the same system.

This patch modifies tegra-throughput to use notifier chain for
delivering information about changed throughput hint.

Bug 1364804

Change-Id: Ic71fbb684d8c5562d20ba76a5911fae2442d9c1f
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/279737
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit acc9be5e07406ac90a9d05eb5682a2702f083aff)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Enable VIC scaling
Arto Merilainen [Wed, 25 Sep 2013 08:43:55 +0000]
video: tegra: host: Enable VIC scaling

This patch enables VIC scaling - including EMC scaling based on VIC.
We use the nvhost_pod governor that is used also for scaling
gr3d/gk20a. Load measurement is based on VIC actmon.

Bug 1364804

Change-Id: If3d80454167044fb5bc7269395d9fb7d7341ac96
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/278933
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit b7500a307bf2c3ae2a09e8068ff654526fbbadeb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Add VIC support to nvhost_pod
Arto Merilainen [Wed, 25 Sep 2013 11:41:13 +0000]
video: tegra: host: Add VIC support to nvhost_pod

nvhost_pod has traditionally been used in 3d scaling. We now want
to use the same scaling policy to scale VIC03. At this point we
enable only scaling based on actmon value.

Bug 1364804

Change-Id: I37ff51a5e2b5dedb8c943a3e7008e88dc46ebf42
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
(cherry picked from commit fcb0a30c8aa9d62315bf07adb6c851527f6e1658)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: nvmap: dmabuf stash tracking
Alex Waterman [Tue, 3 Sep 2013 16:26:17 +0000]
video: tegra: nvmap: dmabuf stash tracking

Add a debugfs node to track and display stashed allocations.

Bug 1356091

Change-Id: Ib5c1407bff23e8b65f3d1d8944d57c35dfd00bd2
Signed-off-by: Alex Waterman <alexw@nvidia.com>
(cherry picked from commit 74695ae5eefa383579fe3598fa7bbb4d7536f3da)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomisc: tegra-throughput: Use notifiers
Arto Merilainen [Wed, 25 Sep 2013 12:39:34 +0000]
misc: tegra-throughput: Use notifiers

We used to deliver this information by calling directly a function
inside nvhost_pod. This is not suitable for our needs as we want
to be able to use the same governor with several different (graphics)
devices in the same system.

This patch modifies tegra-throughput to use notifier chain for
delivering information about changed throughput hint.

Bug 1364804

Change-Id: Ifce1c84ae68cdcf54b00402efa80aee0b220bc9e
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
(cherry picked from commit 9f10cf7082055f81c201ab5f5574c2f8fe8c6795)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Support linear EMC scaling
Arto Merilainen [Wed, 25 Sep 2013 11:05:47 +0000]
video: tegra: host: Support linear EMC scaling

Some units have strict linear relationship between unit clock and
required memory bandwidth, however, currently automatic EMC
relationship computation expects a non-linear relationship. This
patch adds a flag to nvhost device data to indicate if the
EMC should be scaled based using linear relationship.

Bug 1364804

Change-Id: I68fbb06de33fdeeb1c0e3c6b1db1f69c99e0e14e
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
(cherry picked from commit 9897a5854b24a48d0acace8e4371cdefa44253a4)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: pcie: Some general fixes
Jay Agarwal [Thu, 19 Sep 2013 12:56:28 +0000]
ARM: tegra: pcie: Some general fixes

1. Make Deassert reset line programming common
   for both T30 and T124
2. Program all thresholds for clock gating
3. Remove redundant code to enable bus mastering
   and accepting memory and IO requests

Bug 1354396
Bug 1228219

Change-Id: I0e1cadacdd2c65bb8563ef2ebe94c6cb84efeb9a
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/276582
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
(cherry picked from commit 1413e1e04fa90e19bcb075c092a80c9bd0d615e3)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: ardbeg: Enable SDR104 mode for SD
R Raj Kumar [Fri, 20 Sep 2013 10:11:13 +0000]
ARM: tegra: ardbeg: Enable SDR104 mode for SD

Enable SDR104 mode for SD.
Enable POR frequency for SD on E1780.

Bug 1340258

Change-Id: I23b625bcce4be5fd9833e5eec4c3ffaf5916a8ca
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/277152
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
(cherry picked from commit 0794b21578d47eea1f80a5bb8754d907c0574d03)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agommc: tegra: Handle retune request case in tuning
R Raj Kumar [Thu, 19 Sep 2013 09:17:28 +0000]
mmc: tegra: Handle retune request case in tuning

Need to handle retune request case also in the tuning procedure.
We set retune flag if we remove (un-plug) SD card.
So, tuning should be done next time when SD card is inserted.

Bug 1371498

Change-Id: I1c1232313aefe835f9c71dac10a2fe2034853d2a
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
(cherry picked from commit f40e0a66661685b5d8c2260e2bca4281526f33b8)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Use only possible freqs
Arto Merilainen [Wed, 25 Sep 2013 08:38:53 +0000]
video: tegra: host: Use only possible freqs

The generic devfreq profile used DVFS table for determining possible
frequencies. However, the table may not be consistent with the minimum
frequency of the device and the table may include duplicate frequencies
in the beginning and the end.

This patch adds necessary logic to rule out the bad frequencies.

Bug 1364804

Change-Id: Ifeb43319c2cd0c46bed562e3db6ce0d0a8e5e922
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
(cherry picked from commit 13476b652b0f576e22bf83380481f8ec0215c2b8)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agosecurity: tlk_driver: serialize calls to tlk
James Zhao [Wed, 25 Sep 2013 21:10:00 +0000]
security: tlk_driver: serialize calls to tlk

Add mutex lock to serialize all ioctls that will
result in a smc call to tlk.

bug 1340442
bug 1340471

Change-Id: Ie2cc1e21dcff0a78c971aad0c230f71d1f2b1c49
Signed-off-by: James Zhao <jamesz@nvidia.com>
(cherry picked from commit 2a9da9d1c1e717d7f44befb0ca84cbca413b9e3f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: gk20a: Disable GPU bus clock in power-off
Alex Frid [Fri, 20 Sep 2013 05:11:10 +0000]
video: tegra: gk20a: Disable GPU bus clock in power-off

When gk20a is powered off, disable gbus shared user clock and re-enable
it on resume. Still keep direct control of GPCPLL in place as a backup
to prevent system hang in case when gbus clock clients do not balance
enable/disable controls.

Bug 1364240

Change-Id: I50bc1dc10b4b2a405e2c969a08a8ef4ad75de241
Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit 8338eecc4f1775006d106879cc02f582f6fa243a)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: nvmap: remove nvmap_handle_address_user_id API
Krishna Reddy [Thu, 26 Sep 2013 20:27:22 +0000]
video: tegra: nvmap: remove nvmap_handle_address_user_id API

this API is obsolete and no longer necessary.

Change-Id: I45fa9d48a7e242f745ce944d0dc74795964cefac
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit d96cf686f0054d79731f80651935e149c6bfeb24)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomedia: platform: tegra: nvavp: replace nvmap_handle_address_user_id
Krishna Reddy [Thu, 26 Sep 2013 20:23:37 +0000]
media: platform: tegra: nvavp: replace nvmap_handle_address_user_id

replace nvmap_handle_address_user_id with dmabuf API.

Change-Id: Ie1fc8e9ed50431208bdbf65ca869c0ccccaa9e75
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit 77c602909a7634930aa63a594948340095ded660)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: nvmap: convert some of NvMap API to private
Krishna Reddy [Thu, 26 Sep 2013 19:11:55 +0000]
video: tegra: nvmap: convert some of NvMap API to private

convert nvmap_create_client/_dmabuf_export_from_ref/_ref_to_id,
nvmap_pin/_unpin into private API.
remove obsolete API nvmap_ref_to_user_id/_get_addr_from_user_id
as well.

Change-Id: I18025307d9d819d6c19df6dc558a03febd6fef14
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit 0d0c64fc93436c0671672d2a6b55d64b55db8b50)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: Enable GPU bus retention
Alex Frid [Fri, 20 Sep 2013 02:56:15 +0000]
ARM: tegra12: clock: Enable GPU bus retention

Change-Id: I3b3bf69932bf3e6106ff303d36d7691fc358b83f
Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit 08ad24fbd1f8e0c34e74e15c50b30b0556abe67b)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: dvfs: Add thermal dvfs cooling device ops
Alex Frid [Thu, 12 Sep 2013 04:49:19 +0000]
ARM: tegra: dvfs: Add thermal dvfs cooling device ops

Added thermal dvfs cooling device operations to support voltage and
frequency scaling with temperature. Renamed tegra_dvfs_rail_cooling_ops
to tegra_dvfs_vmin_cooling_ops to differentiate with newly added
tegra_dvfs_vts_cooling_ops.

Bug 1273253

Change-Id: I7f8f9082d683883920e80d1e68331f4c0f1a53c6
Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit 13790063b65041f1cf171ad058b8f9b4df8ca1b6)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: remove 312Mhz due to memqual failure
Xue Dong [Thu, 26 Sep 2013 22:34:40 +0000]
arm: tegra: remove 312Mhz due to memqual failure

Change-Id: Ic1ff0cf3eb9aada54fdf0c803c430439ce598dfc
Signed-off-by: Xue Dong <xdong@nvidia.com>
(cherry picked from commit 714fffcab30ed95018c03df4743de00a9c8a2d61)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: loki: enable EMC dvfs support
siddardha naraharisetti [Fri, 6 Sep 2013 21:04:20 +0000]
arm: tegra: loki: enable EMC dvfs support

added loki emc dvfs tables and enabled emc dvfs support

Bug 1363896

Change-Id: Ibb95e5d442aa23b1e11a03a88c1e150ab16e69d5
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
(cherry picked from commit 6ade3fbf0366f29c71d346c0239a0fc01e44d529)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: nvmap: support using Fd's for handle
Krishna Reddy [Thu, 5 Sep 2013 22:43:33 +0000]
video: tegra: nvmap: support using Fd's for handle

support to return Fd's to user space instead of kernel virtual
address.

Change-Id: I25f4d883b88ccd249889eeacab99d0c71c25ae81
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/271085
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
(cherry picked from commit c9d5edf8c7a72313c117fd5eb2cb57e727ba3986)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: nvhost header update
Ken Adams [Thu, 26 Sep 2013 15:43:38 +0000]
video: tegra: nvhost header update

Synchronizes hw_* header updates.

Change-Id: Ia1b977389fc5ac9aa078c81a0c7026c657a441a9
Signed-off-by: Ken Adams <kadams@nvidia.com>
(cherry picked from commit 67273edfd554572bb62a8652d3783d7ce4d82644)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: Add reset propagation delays
Kaz Fukuoka [Wed, 25 Sep 2013 01:07:42 +0000]
ARM: tegra12: clock: Add reset propagation delays

Added explicit reset propagation delay in resume procedure.

Ported from Tegra14 Change-Id: I25b8e124599a177691cff3c868909bff382e5373

Change-Id: I50b6ac00a9dcc682852dc5387d172893d4335a55
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
(cherry picked from commit 9f06263084eff3e0b513fec2475a173c11846223)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: dc: Do not enable fb on Android
Michael Frydrych [Thu, 26 Sep 2013 14:02:50 +0000]
video: tegra: dc: Do not enable fb on Android

Fixes WAR implemented in dc925c2dff so that it
explicitly disables fb window on Android and enables
the fb window otherwise.

Bug 1356757

Change-Id: I931063cd9042b2cc2884d448731f0972da277af1
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/279371
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit 002c090e13f234f52b77782720a90633aac2b75f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: dvfs: Handle zero GPU rail voltage
Alex Frid [Fri, 20 Sep 2013 05:45:09 +0000]
ARM: tegra: dvfs: Handle zero GPU rail voltage

Preserved voltage of the rail with in-band enable / disable control
when all clocks associated with dvfs rail are disabled, and "0"
voltage is requested. The rail will be turned off via explicit call
to regulator interface - applicable to GPU rail.

No changes if "0" voltage is requested for rail with side-band control,
and jump-to-zero property - CPU rail: allow to pass "0" through,
mainly for statistical purpose. Added warning and preserve voltage
if "0" requested for core rail - must never happen (core system clocks
are never disabled at run-time).

Change-Id: I724ea9373d0731d6f115ecde1e3b8dd8e7ff2884
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/278180
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit fab7582bcae0c63a645aa2cbb9e1e001b4b5603c)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: Support shared bus rate retention
Alex Frid [Thu, 19 Sep 2013 22:08:33 +0000]
ARM: tegra12: clock: Support shared bus rate retention

Added Tegra12 shared bus rate retention mechanism: do not scale bus
clock to minimum rate if there is no rate request from shared users;
instead keep current bus rate.

This mechanism allows to reduce voltage scaling and pll re-locking
steps during shared bus on/off transitions provided underlying physical
clock is disabled when all floor and bandwidth users are disabled. It
should not be used with always-on buses like emc or system clock. For
now, retention is not enabled on any Tegra12 shared buses.

Change-Id: I9bc611311d0a801f11c094154a09d3456322395e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/278178
Tested-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 2e9524c6c42fc92bec83f032d6fe3571748e2059)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomedia:platform:tegra: reduce delay in ar0261.
Amey Asgaonkar [Wed, 18 Sep 2013 22:16:49 +0000]
media:platform:tegra: reduce delay in ar0261.

This change reduces the two delay in ar0261 driver
from 100 ms to 10 ms.

Bug 1366970

Change-Id: I8fd4a288ff0e3496f7d2ac6650b628cae8c71fb0
Signed-off-by: Amey Asgaonkar <aasgaonkar@nvidia.com>
(cherry picked from commit f48ad6a07c0cb9b5479ef69928b82ff4966723eb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomedia: platform: tegra: ov5693: update fuseid read
Phil Breczinski [Mon, 16 Sep 2013 23:39:33 +0000]
media: platform: tegra: ov5693: update fuseid read

Update ov5693's fuse ID read ioctl handling to match
the standard.

Bug 1369367

Change-Id: I600bd459ca4c8315b4f2bfe243a3e36e5ffc8aa7
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
(cherry picked from commit 84654e65576d0c9d735d889959786c8883678689)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: dc: Fix HDMI powergating issue
Chao Xu [Tue, 24 Sep 2013 23:14:45 +0000]
video: tegra: dc: Fix HDMI powergating issue

Setting DISPB connected state after pending HPD is handled so DC won't
powergate DIPB accidentally.

Bug 1364348

Change-Id: Ib71267a73c205d1957972d462987e8f4cb542712
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/278533
Reviewed-by: Automatic_Commit_Validation_User
(cherry picked from commit d6bee34206954a33f3245dea13d39c35b5fb9a5f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: Fix shared user request calculation
Kaz Fukuoka [Wed, 18 Sep 2013 21:22:44 +0000]
ARM: tegra12: clock: Fix shared user request calculation

Fixed rate request calculation for shared users with non 1:1 bus to
user rate ratio. No harm was done so far since there are no such users
defined on Tegra12.

Ported from Tegra14 Change-Id: I8895b90a65df04607b610a95bcdf304de46a29ad

Change-Id: I58fdaa4e340950d27254fa0545302f035571d0e6
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
(cherry picked from commit 0ba6719cd905b14a630b47006518b4ba4191d45c)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: emc: fix compiler warnings
Philip Rakity [Tue, 3 Sep 2013 18:39:53 +0000]
arm: tegra: emc:  fix compiler warnings

/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'emc_writel':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:373:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'long unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'emc0_writel':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:377:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'long unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'emc1_writel':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:381:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'long unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'emc_readl':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:385:2:
warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:104:19: note: expected 'void const volatile *' but argument is of type 'long unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'mc_writel':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:389:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'long unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'mc_readl':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:393:2:
warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:104:19: note: expected 'void const volatile *' but argument is of type 'long unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'ccfifo_writel':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:398:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:399:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'set_over_temp_timing':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:496:2:
warning: passing argument 2 of '__raw_writel' discards 'const' qualifier from pointer target type [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'void const *'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:497:2:
warning: passing argument 2 of '__raw_writel' discards 'const' qualifier from pointer target type [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'void const *'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:498:2:
warning: passing argument 2 of '__raw_writel' discards 'const' qualifier from pointer target type [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'void const *'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'do_clock_change':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:616:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:617:2:
warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:104:19: note: expected 'void const volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'emc_set_clock':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:673:3:
warning: passing argument 2 of '__raw_writel' discards 'const' qualifier from pointer target type [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'void const *'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:677:4:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:679:4:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:731:5:
warning: passing argument 2 of '__raw_writel' discards 'const' qualifier from pointer target type [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'void const *'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:746:5:
warning: passing argument 2 of '__raw_writel' discards 'const' qualifier from pointer target type [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'void const *'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'emc_get_timing':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:788:4:
warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:104:19:
note: expected 'void const volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:790:4:
warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:104:19:
note: expected 'void const volatile *' but argument is of type 'unsigned int'

Change-Id: Iff0d3cb0992523942ba03b188569b1c61fd757be
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/269683
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 093ca058efce1e83c6d8e4ebca19fbf5be4d3977)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

Conflicts:
arch/arm/mach-tegra/tegra11_emc.c

5 years agovideo: tegra: nvmap: Stashing depends on IOMMU API
Alex Waterman [Fri, 20 Sep 2013 17:55:34 +0000]
video: tegra: nvmap: Stashing depends on IOMMU API

The stashing code in nvmap has a dependency on the IOMMU API. This
patch adds the dependency to the Kconfig for nvmap.

Bug 1356091

Change-Id: I6bac4ee7384e4a7acd2273c5048881990b94c1f5
Signed-off-by: Alex Waterman <alexw@nvidia.com>
(cherry picked from commit b6fdd2f0836cbecde35dddc234f2a3a5de2f0cf4)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: nvmap: cleanup: Remove unused variable
Alex Waterman [Mon, 23 Sep 2013 19:32:28 +0000]
video: tegra: nvmap: cleanup: Remove unused variable

Change-Id: Ia58610d813b552fc2cf7bc5d95f52431b4e3d8a1
Signed-off-by: Alex Waterman <alexw@nvidia.com>
(cherry picked from commit 98613a040b44f6ef9ec744e199279cd51ad84ec7)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: remove nvmap client creation
Krishna Reddy [Wed, 25 Sep 2013 00:09:57 +0000]
video: tegra: host: remove nvmap client creation

remove nvmap client creation, which is no longer
necessary.

Change-Id: Ice0a966408e49aa930ff8ce473836334c4a414af
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/278552
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
(cherry picked from commit f4e9d74fb9a2a0b79606cbceafd08c81f4b8d7fb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: add sdmmc3,4 to emc
Naveen Kumar Arepalli [Tue, 24 Sep 2013 12:17:30 +0000]
ARM: tegra12: clock: add sdmmc3,4 to emc

Add sdmmc3 and sdmmc4 to emc as a client.
Increasing emc freq helps sdmmc3 and sdmmc4 KPI.

Bug 1259830

Change-Id: Ie806aace782966c7c81665a29bfcfeb84d43e425
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
(cherry picked from commit a9ef6a6c1ea272054154f8b8aa793da27fe989d9)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: ardbeg: Enable HS200 mode for eMMC
Naveen Kumar Arepalli [Thu, 19 Sep 2013 09:32:43 +0000]
ARM: tegra: ardbeg: Enable HS200 mode for eMMC

-Enable HS200 mode for eMMC
-Enable POR frequency for eMMC on E1780

Bug 1259830

Change-Id: Ia0695d213f0c4020d48ccf673728a7e44fc2d545
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
(cherry picked from commit 67169f277e90012aef5dcd423508eeda72b4bca6)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agopower: reset: palmas: add DT support
Laxman Dewangan [Thu, 26 Sep 2013 11:03:46 +0000]
power: reset: palmas: add DT support

Add DT support on palmas power-off driver.

Change-Id: Ie1ab874ae2b49f9e564101d70b24862a2c7a910e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 808d2d9c09ba2e125659642d66ededab8cd99ca9)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agopalmas: regulator: do not support charge-pump regulator for non-tps80036
Laxman Dewangan [Thu, 26 Sep 2013 07:55:34 +0000]
palmas: regulator: do not support charge-pump regulator for non-tps80036

Bypass the regulator registration of CHARGE_PUMP regulator for non-tps80036
Palmas devices.

Change-Id: Ie5ed3b8619f7825a77aac7b0a72b5a932feea868
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/279230
(cherry picked from commit 2ae7fd6b43fe0df6bccd13530e568baeda574c60)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomfd: palmas: add support for DT
Laxman Dewangan [Thu, 26 Sep 2013 07:31:43 +0000]
mfd: palmas: add support for DT

Add DT support for Palmas mfd driver.

Change-Id: Id96e62031790c77d9e9ee333068e49901c0126e3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 4897d990b665cc27cc3645ea437a51585cabaab0)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomfd: palmas: cleanup error path
Laxman Dewangan [Thu, 26 Sep 2013 07:23:39 +0000]
mfd: palmas: cleanup error path

Fix the resource leak and clean the error path.

Change-Id: I4b5697ab2cedb8bd7cc00a49e572071d7c91ab8d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 62c91240337bed836e654a685d81e326b71e4b5c)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoextcon: palmas: add extcon connection name property for DT
Laxman Dewangan [Thu, 26 Sep 2013 09:56:00 +0000]
extcon: palmas: add extcon connection name property for DT

Add property to set the extcon connection name so that the name
can be configure from DT.

Change-Id: Ifdee07cb60d2e29a764eea31989954ca5f4e2300
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/279285
(cherry picked from commit ed979fecab6c4edfe2d3eb8452aee029f6c3e580)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agofury: add default dts for project fury
Hayden Du [Thu, 26 Sep 2013 03:54:37 +0000]
fury: add default dts for project fury

Change-Id: I12b868aae65493790d579340d7ad0b1851ab9aaa
Signed-off-by: Hayden Du <haydend@nvidia.com>
(cherry picked from commit 0c73453d229391d73ea76563391fd3b6e436af04)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: gk20a: add elpg_enable sysfs node
Prashant Malani [Tue, 17 Sep 2013 21:31:57 +0000]
video: tegra: gk20a: add elpg_enable sysfs node

Add the ability to toggle elpg on/off at runtime.

Bug 1365937

Change-Id: I2cae49f0eddd116406c50e87a61b6cfab49c4fdf
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
(cherry picked from commit beb42c16d939d2df932dcd174ba38b888ad93b46)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: Remove board specific data
Ashwin Joshi [Tue, 1 Oct 2013 07:30:44 +0000]
ARM: tegra: Remove board specific data

Remove board specific data from common code. It should be set in board
file or passed through a DT.

Bug 1371545

Change-Id: I435bbefd83a9d007b670fcd098dd65e43c6b2fa8
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/280630
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: Ardbeg: Update SATA platform data
Ashwin Joshi [Tue, 1 Oct 2013 07:32:15 +0000]
ARM: tegra: Ardbeg: Update SATA platform data

Pass all board specific data for SATA from board file. Earlier it was
set in common code, moved it to board file.

Bug 1371545

Change-Id: Ice2642e3ee57cad5821224f4607b14559c4a785e
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/280631
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: mm: fix mm merge conflict
Adeel Raza [Tue, 1 Oct 2013 00:23:43 +0000]
arm: mm: fix mm merge conflict

Bug 1379902

Change-Id: I7e9419dbe2ea2386cee27343f419a8c2d383c706
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/280487
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

5 years agoMerge 3.8 changes up to main-promo-2013.09.30-C1.1
Dan Willemsen [Tue, 1 Oct 2013 18:20:23 +0000]
Merge 3.8 changes up to main-promo-2013.09.30-C1.1

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years ago!FIXUP:power: fix compilation issues
Ajay Nandakumar [Tue, 1 Oct 2013 14:04:52 +0000]
!FIXUP:power: fix compilation issues

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

5 years agommc: core: Enable secure sanitize for eMMC4.5
R Raj Kumar [Wed, 4 Sep 2013 13:08:28 +0000]
mmc: core: Enable secure sanitize for eMMC4.5

Enabled secure sanitize operation for eMMC4.5 devices.

Bug 1360376

Reviewed-on: http://git-master/r/270113
(cherry picked from commit 038d9880a2b9ab322e2f76d82e752ff23f95f3ee)
Change-Id: I79de7263803ea9026050b3cf2386d4e5d3013b8a

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Change-Id: I86c49d339cc415321c49a31f88c1ce4a30ff36df
Reviewed-on: http://git-master/r/277625
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit 9bf2b9a4cac4c7f8ccfbce014e495288b57f4dc3)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: phy:Do not enable pmc during id unplug
Rakesh Bodla [Mon, 2 Sep 2013 05:40:03 +0000]
ARM: tegra: phy:Do not enable pmc during id unplug

Do not enable pmc when id cable is unplugged
from the system.

Bug 1357517

Change-Id: I6e8adae9da6b15ac44987f8169d7607194983a50
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/268916
(cherry picked from commit 19b2ee63c2b55973b7e01898d2b2feb194192851)
Reviewed-on: http://git-master/r/276614
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit efae144ed3807fe41cde9b57cd23a6017f8c52a8)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: nvmap: remove obsolete NvMap API
Krishna Reddy [Wed, 25 Sep 2013 21:01:45 +0000]
video: tegra: nvmap: remove obsolete NvMap API

remove obsolete NvMap API nvmap_mmap/_munmap/_kmap/_kunmap,
nvmap_sg_table/_free_sg_table/_set_host_private/_get_host_private,
nvmap_flush_deferred_cache/duplicate_handle_user_id and
nvmap_get_handle_user_id/_put_handle_user_id.
remove unused macros as well from public header.

Change-Id: Ib8ceacb892a8a648543b4ce1b86f2331aa0d5190
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/279025
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
(cherry picked from commit 7c46dee98669e2b08b5e5f72b0be93c9a82c0f5d)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: nvmap: remove nvmap_alloc/__free API
Krishna Reddy [Wed, 25 Sep 2013 20:51:41 +0000]
video: tegra: nvmap: remove nvmap_alloc/__free API

remove the obsolete nvmap_alloc/_free API from public
header and convert these to private for internal use in NvMap.
remove unused _nvmap_free API as well.

Change-Id: I0f3e9ce3bcbdfd425d255bbdde62683fac17809b
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/279022
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
(cherry picked from commit 4645b20750a5ae56a03a416d7b358a280a9c6fa3)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agohwmon: ina230: convert suspend/resume to dev_pm_ops
Laxman Dewangan [Wed, 25 Sep 2013 10:59:33 +0000]
hwmon: ina230: convert suspend/resume to dev_pm_ops

In place of implement the suspend/resume in legacy way,
converting it to dev_pm_ops.

This will fix the following warning:
i2c-core: driver [ina230] using legacy suspend method
i2c-core: driver [ina230] using legacy resume method

Change-Id: Ibdd0323fdb2eabb3e83054482ee89ab95795d192
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/278860
GVS: Gerrit_Virtual_Submit
(cherry picked from commit b873084131c6ec10de6abe3e203bf66a1189eb4e)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agodrivers: misc: therm_est: remove shutdown function
Sri Krishna chowdary [Tue, 10 Sep 2013 09:01:40 +0000]
drivers: misc: therm_est: remove shutdown function

Bug 1332127

Change-Id: Idad3bb293e972718485af932ff3e88e1fd5c4250
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/272440
(cherry picked from commit a2b0ae56425c0bd73e83559323e79e0a234d52cd)
Reviewed-on: http://git-master/r/278891
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit 3de10e2e3e1dcb8ff405471ea42a0366bd238f82)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: mm: Invalid pte for DEBUG_PAGEALLOC
Hiroshi Doyu [Wed, 25 Sep 2013 12:23:40 +0000]
ARM: mm: Invalid pte for DEBUG_PAGEALLOC

Invalid pte temporary for debug instead of using read-only page. This
could oops at illegal read too.

Bug 1365298

Change-Id: Ibe3f0f969cb1b1c16cd9fda26d029d8179f2c3b4
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/278900
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit f2a12070ed983b4f2fce1610c59fb86bfc8a57b9)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: mm: Add pte_mk{,in}valid()
Hiroshi Doyu [Wed, 25 Sep 2013 12:21:35 +0000]
ARM: mm: Add pte_mk{,in}valid()

Add accessors to make pte {,in}valid.

Bug 1365298

Change-Id: I4070791cd00cca4c17d550a004aa5df9dd4e0065
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/278899
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit 73dceb29e1d69524e79d54d0391f2bec1cf5d573)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoRevert "ARM: tegra: t124: Disable smmu for sdmmc"
Hiroshi Doyu [Wed, 25 Sep 2013 17:52:13 +0000]
Revert "ARM: tegra: t124: Disable smmu for sdmmc"

This reverts commit 7cf79307649e150d59163cc3d0c8efa173ed3c77.

No point to disable IOMMU for SDMMC.

Bug 1374895

Change-Id: I07338c6c7975c5a055092ddfd2bf53762fed712b
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/278981
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit 181221542ed96bbb882b1e91247a8cd6d04436ca)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomedia: v4l2: remove videobuf2-dma-nvmap.c
Bryan Wu [Tue, 24 Sep 2013 23:17:53 +0000]
media: v4l2: remove videobuf2-dma-nvmap.c

NvMap is not really necessary for v4l2-core. Remove the dependencies
on NvMap and delete related driver videobuf2-dma-nvmap.c.

Change-Id: I1d8ab709baf262c2127a7fdaa007e5794b193b1e
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/278536
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit 174ec53c55e4236a3214152a1b4179764f0e898f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomedia: tegra: use videobuf2-dma-contig.c driver for V4L2
Bryan Wu [Tue, 23 Jul 2013 21:00:00 +0000]
media: tegra: use videobuf2-dma-contig.c driver for V4L2

videobuf2-dma-contig.c driver works fine with Tegra V4L2 driver, so
we don't need to use our own nvmap version of that.

This patch convert Tegra V4L2 driver to use videobuf2-dma-contig.c.

Change-Id: I85348d557fe0171cfce02d6b15a9aad254f62f36
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/278535
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit 7b9440482a663444e9befc616e03e3d7d74664ef)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra11: clock: Move auto-refresh control to CCFIFO
Alex Frid [Sun, 19 May 2013 06:23:27 +0000]
ARM: tegra11: clock: Move auto-refresh control to CCFIFO

Disabled/Enabled auto-refresh during EMC clock change using CCFIFO
mechanism.

Bug 1339693

Change-Id: I00fc1cc4fe4668ed84c1e7a4e105ebbb684b0ca5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/230986
(cherry picked from commit 2c25e71aa46170784809683c2457a885d704373f)
Reviewed-on: http://git-master/r/275554
(cherry picked from commit 1abf6e4757cd5afabe7c3069ff1db60709314fb8)
Reviewed-on: http://git-master/r/277519
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit fc32b7e487d05c26c28e51343cc3d13066327434)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: dc: remove nvmap client creation
Krishna Reddy [Tue, 24 Sep 2013 23:59:53 +0000]
video: tegra: dc: remove nvmap client creation

remove nvmap client creation, which is no longer
necessary.

Change-Id: Ia90a1b5eb948bacbfe00ed9403e656519a31e547
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/278551
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Robert Morell <rmorell@nvidia.com>
(cherry picked from commit 39a3fcc0d2c39ce9fdb728e3f88830ef4d1ae81e)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: gk20a: Remove unused debugfs entries
Kaz Fukuoka [Tue, 24 Sep 2013 17:36:26 +0000]
video: tegra: gk20a: Remove unused debugfs entries

Removed the following obsolete debugfs entries.
- /d/gk20a/cap
- /d/gk20a/cap_thermal
- /d/gk20a/init

Change-Id: Ibf16163983cfa20cfc6d5601053545db9f1754c6
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/278427
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 3c43e41145739bc67a26cc455239de9c2ce654ca)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra12: nvmap: enable nvmap marshal
Krishna Reddy [Wed, 25 Sep 2013 05:49:14 +0000]
arm: tegra12: nvmap: enable nvmap marshal

Change-Id: I9483ec0698cd54e4a1435f52763a6241d6475da4
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/278744
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
(cherry picked from commit bf2dbaf856b83885bb0a3a74df8ccdb185076d1d)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: Increase enable time of LDO6
Jeetesh Burman [Tue, 24 Sep 2013 04:28:53 +0000]
ARM: tegra: Increase enable time of LDO6

NCT temperature sensor is powered from LDO6 and it is
observed that it is required to have 1000 microseconds
enable time for regulator to work sensor properly.

Configuring LDO6 rail's enable time to 1000 microseconds.

Bug 1365575

Change-Id: I71def3c1e2c707e6e319573784ab6fc8e94c1e74
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/278132
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 0bd8cc9a0c9b39ea1e4fe1ec88ad28b35967a17b)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: Tegra: Dalmore: Added dvdd supply in dalmore
Jeetesh Burman [Fri, 23 Aug 2013 11:43:50 +0000]
ARM: Tegra: Dalmore: Added dvdd supply in dalmore

Added dvdd supply for device 2-0010 to camera OV9772 module
in dalmore board specific file, so that while trying to get
regulator for device 2-0010 with supply dvdd, won't throw
error message.

Bug 1199043

Change-Id: I262402506bfe4ae9effb905b28cb181058c3b110
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/265520
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 99637f5084e01b0a274b41abc19cb89c4d8fc375)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra Fix warnings in compiling pm.c
Philip Rakity [Thu, 5 Sep 2013 10:24:06 +0000]
ARM: tegra Fix warnings in compiling pm.c

remove unnecesssary typecast in pmc_read/write
remove typecast printk for phys_addr_t

Change-Id: I161ddb3f34ae5bb54845fb9bac507a125f5ebddb
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/270754
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 246be84a48c706e19e8bcb1c5c4127f89d8761e3)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: remove warnings on board roth
Philip Rakity [Thu, 5 Sep 2013 12:33:51 +0000]
ARM: tegra: remove warnings on board roth

remove unused variables
move definitions to before code to avoid ISO error

Change-Id: Ied020a11a3b01caa7d091a0c1fb8d25adc2071f0
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/270821
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit eb3c3d4e1f1cbb5e7b1163bbe04a9f31214ec99b)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: ardbeg/loki: Set sdmmc autocal offsets
Pavan Kunapuli [Mon, 16 Sep 2013 15:25:12 +0000]
ARM: tegra: ardbeg/loki: Set sdmmc autocal offsets

Passing 1.8V and 3.3V auto calibration offsets and the UHS modes
in which 1.8V calibration offsets need to be set.

Bug 1347531

Change-Id: Id6762301d474e2c2e6f70d2e8e837bf2b9831a0e
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/275198
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit 2f0a934c2851b4faabc542dff3a069a3c84730c1)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agommc: tegra: Do calibration after uhs mode setting
Pavan Kunapuli [Mon, 16 Sep 2013 15:12:54 +0000]
mmc: tegra: Do calibration after uhs mode setting

To handle overshoot/undershoot in some modes, auto calibration needs
to be run with different offsets. Adding support to run calibration
if required after setting uhs mode.

Bug 1347531

Change-Id: I4b7a72618e5614ff4ebe8ed3baf03c18d3b9e3ca
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/275197
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit 51144fd4c76cf837af41b880effc98c0883e7ec2)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: dsi: Update dvfs during OSidle
Animesh Kishore [Tue, 24 Sep 2013 07:13:09 +0000]
video: tegra: dsi: Update dvfs during OSidle

Bug 1372849

Change-Id: I783730ae6ec6cf565ad1655dfd885299b5501ea1
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/278272
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit 8804ab60c8aee8c7b00943337c29f8212a65ff0e)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: laguna: Add irq entry for DP
Animesh Kishore [Fri, 20 Sep 2013 14:15:39 +0000]
arm: tegra: laguna: Add irq entry for DP

Bug 1371504

Change-Id: I9581a0186c0e8a50fcde0c2688d92f5285b104b4
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/277229
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit 2eccfc0f958dfb9920b5d9bc4f53e8c0c1c05e7e)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: loki: Enable Hall Effect Sensor
Ankita Garg [Tue, 10 Sep 2013 00:33:14 +0000]
ARM: tegra: loki: Enable Hall Effect Sensor

Bug 1346464

Change-Id: I5516049a3bccb5a10feab9dcc62b1bc1d7fbb593
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/272233
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit dc01e43f1ee1f45aa82723fdda078f2b1065ef8c)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: dp: Implement irq handler and hpd
Animesh Kishore [Fri, 20 Sep 2013 14:18:09 +0000]
video: tegra: dp: Implement irq handler and hpd

1. Implement interrupt handler
2. Wait for hpd plug before auxilary transaction

Bug 1371504

Change-Id: I290a34926b17f2f74c926db664d46a488e0a14e8
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/277230
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit 272069a43f18fbd1d812549b25bfbaf17a4f91eb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: laguna: Add pinmux for DP
Animesh Kishore [Fri, 20 Sep 2013 14:14:23 +0000]
arm: tegra: laguna: Add pinmux for DP

Bug 1371504

Change-Id: Ic95e4024ab35311e3ccb9d79d4488703b697675a
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/277228
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit 71b1762a64600dd3ee381a35a1a962c4a8ec9d6a)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: config: Removed RM31080A from L4T defconfig
Jeetesh Burman [Wed, 11 Sep 2013 06:31:26 +0000]
arm: config: Removed RM31080A from L4T defconfig

Since CONFIG_TOUCHSCREEN_RM31080A is not required for l4t
defconfig, so removing this config from l4t defconfig.

Bug 1353958

Change-Id: I450e9726d27ef689cca96458265ecf3664197d54
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/272960
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 2f185311fc50ec9ee648e431387354cd87c8ad63)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: pinmux: update Fsafe options for T124
Ashwini Ghuge [Mon, 23 Sep 2013 12:12:25 +0000]
ARM: tegra: pinmux: update Fsafe options for T124

Bug1319925

Change-Id: I6d3c9100fbcffb4434817e5a3f64063101b69570
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/277880
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit abc86efc9035c8c2e7cb781a373fd8a2a9c4d772)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agofs: eventpoll fix unused variable warning
Philip Rakity [Thu, 19 Sep 2013 13:13:45 +0000]
fs: eventpoll fix unused variable warning

/nvidia/DEV_KERNEL/kernel/fs/eventpoll.c:
In function 'get_epoll_file_task':
/nvidia/DEV_KERNEL/kernel/fs/eventpoll.c:1682:21:
warning: unused variable 'whead' [-Wunused-variable]

Change-Id: I605474bff372c6dae0603caa26b33e1c62f07ab5
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/276697
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit f82a5acac38fdd91ba5e1fa35cf31c67048dfdaf)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: configs: build bq2477x by default
Andy Park [Wed, 11 Sep 2013 23:55:55 +0000]
arm: configs: build bq2477x by default

BQ24773 is the default battery charger on ardbeg PMIC. Enabling the
build by default.

Bug 1344257

Change-Id: I4dc50f19add294a3be60d1c012c94ecc65b825fb
Signed-off-by: Andy Park <andyp@nvidia.com>
Reviewed-on: http://git-master/r/273408
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit b2b4e49466c6004de376261423f8b0376d298008)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoregulator: as3722: fix unused var warning
Philip Rakity [Tue, 24 Sep 2013 11:54:58 +0000]
regulator: as3722: fix unused var warning

/nvidia/DEV_KERNEL/kernel/drivers/regulator/as3722-regulator.c:
In function 'as3722_ldo3_set_mode':
/nvidia/DEV_KERNEL/kernel/drivers/regulator/as3722-regulator.c:404:6:
warning: unused variable 'val' [-Wunused-variable]

Change-Id: I1b96a5750b6589adc4d9a3d76cd3848f466811b9
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/278344
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 7887902cf31f4ea819c41f34c4a3099a50b43b52)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: fury: add NCT chip id to /sys
Chun Xu [Wed, 18 Sep 2013 12:54:44 +0000]
arm: tegra: fury: add NCT chip id to /sys

Read

accelerometer_id
charger_id
compass_id
gps_id
gyroscope_id
lcd_id
light_id
touch_id

from NCT into /sys/kernel/tegra_nct/.

Bug 1361476

Change-Id: Ieac5b33cfd0c8dfaae7cc8512a56de9451ff91b7
Signed-off-by: Chun Xu <chunx@nvidia.com>
Reviewed-on: http://git-master/r/276301
Reviewed-on: http://git-master/r/277607
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 0677f7650d3007f617cb1da97411d45ecd96282d)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>