5 years agoARM: tegra11: dvfs: Update T40T frequency limits
Alex Frid [Thu, 18 Jul 2013 19:18:21 +0000]
ARM: tegra11: dvfs: Update T40T frequency limits

Change-Id: I25851ce78f034ac592a0bd39ded1444f0a7e230d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250901
(cherry picked from commit 37debd44cbe1c325ab1b806415d5889ad3f2d7b9)
Reviewed-on: http://git-master/r/254679
(cherry picked from commit 23c414a032c76d1f0eebcb99f77668f31962a51f)
Reviewed-on: http://git-master/r/264650
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: clock: Add cbus fine granularity region
Alex Frid [Tue, 16 Jul 2013 19:43:15 +0000]
ARM: tegra11: clock: Add cbus fine granularity region

Added fine granularity region to cbus possible rates. In this region
requested cbus rate is not clipped to dvfs steps, but rounded to fine
granularity resolution. The latter is set as 12MHz, and the region is
defined as 5 resolution steps below the top dvfs rate, assuming this
top rate is reachable on the particular chip bin/sku.

Change-Id: Id111b074c39a0a314d57da8ce628f3dbbf385b73
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/249902
(cherry picked from commit 51b5403fcc8d7052a311428614f9877deebfd6da)
Reviewed-on: http://git-master/r/254678
(cherry picked from commit 586d86439988ae394a48c175628e177b1a30310b)
Reviewed-on: http://git-master/r/264649
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: dvfs: Update T40T tables and limits
Alex Frid [Fri, 12 Jul 2013 02:50:22 +0000]
ARM: tegra11: dvfs: Update T40T tables and limits

Updated dvfs and edp tables, clock and voltage limits for T40T part.

Change-Id: I99649b1ac7347424d668e9a7cb3862bb32f55c6b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/248952
(cherry picked from commit e34558cae80c71a24de4cf604de454d4d0abebaf)
Reviewed-on: http://git-master/r/254677
(cherry picked from commit 397dccea22b7d315c83eba8e043b0d50cdfe56c0)
Reviewed-on: http://git-master/r/264648
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: power: Add T40T core edp tables
Alex Frid [Sat, 13 Jul 2013 05:22:28 +0000]
ARM: tegra11: power: Add T40T core edp tables

Change-Id: I7cabf0fdd0c031a01a0db730508d258679052a96
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/248951
(cherry picked from commit 545c35478282a246dd1b3c1e6bfa75654733a581)
Reviewed-on: http://git-master/r/254676
(cherry picked from commit 9cb0abce1501a317ce35320f2ad82009be86655f)
Reviewed-on: http://git-master/r/264647
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: dvfs: Don't throttle T40T nominal voltage
Alex Frid [Sat, 13 Jul 2013 03:36:22 +0000]
ARM: tegra11: dvfs: Don't throttle T40T nominal voltage

On T40T parts removed throttling of nominal voltage by boot core edp.
Used the latter to specify detached mode (boot, disable, suspend)
limits.

Change-Id: If6ab57785c22ffb9622998aaf9d06bfe36496949
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/248950
(cherry picked from commit e4db337e073099f997010e4c923f47320729dcc7)
Reviewed-on: http://git-master/r/254675
(cherry picked from commit 74431ca47827a53d072499366a58a3afb8f11ed0)
Reviewed-on: http://git-master/r/264646
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: Fix uninitialized variable in uncompress.h
Dan Willemsen [Tue, 3 Sep 2013 07:58:18 +0000]
ARM: tegra: Fix uninitialized variable in uncompress.h

If none of the debug uarts are configured, set uart to NULL by
initializing the uart_id.

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

5 years agoiommu/tegra: smmu: fix incorrect allocation size of struct smmu_device
Eric Miao [Tue, 3 Sep 2013 03:53:16 +0000]
iommu/tegra: smmu: fix incorrect allocation size of struct smmu_device

Change-Id: Id74a769aa71478942075a8daa7130736d066c530
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/269287
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agopalmas: obtain IRQ from palmas_irq_get_virq
Ajay Nandakumar [Wed, 28 Aug 2013 05:02:01 +0000]
palmas: obtain IRQ from palmas_irq_get_virq

obtain interrupts through palmas_irq_get_virq instead of
platform_get_irq for MFD palmas drivers.

Change-Id: I66791b6adcb2c7f365d5b90d7b76c6d3ad66c8c6
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/267068
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agonvhost: Updates for devfreq API change
Ajay Nandakumar [Wed, 28 Aug 2013 07:37:46 +0000]
nvhost: Updates for devfreq API change

Bug 1327616

Change-Id: Ia4d794ac665a6e32ee69ff45ab8c90b2f1d4309d
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/267134
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agoARM: tegra: Move debug uart mapping out of that static mappings
Dan Willemsen [Sat, 31 Aug 2013 23:11:33 +0000]
ARM: tegra: Move debug uart mapping out of that static mappings

This ensures that we can't overlap with the static mappings.

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

5 years agoRevert "USB: EHCI: Fix resume signalling on remote wakeup"
Dan Willemsen [Sat, 31 Aug 2013 20:02:27 +0000]
Revert "USB: EHCI: Fix resume signalling on remote wakeup"

This reverts commit c65b5f6ade7209fc5eda9f0779de4ee254a6bb78.

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

5 years agoARM: tegra: Enable new PWM driver in tegra12 clocks
Dan Willemsen [Fri, 30 Aug 2013 00:49:13 +0000]
ARM: tegra: Enable new PWM driver in tegra12 clocks

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Change-Id: Ib930fd42e60144e0a658d0786f7b9803833bbe14
Reviewed-on: http://git-master/r/268207

5 years agoARM: tegra: Add tegra_cpu_car_ops for Tegra12
Dan Willemsen [Fri, 30 Aug 2013 00:17:25 +0000]
ARM: tegra: Add tegra_cpu_car_ops for Tegra12

Copied from tegra11

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Change-Id: I70ca30c9a69a14f9a7d3cd4c4fed4cbcd16d91a5
Reviewed-on: http://git-master/r/268209
Reviewed-by: Automatic_Commit_Validation_User

5 years agodrivers: switch: Don't give write permission
Shridhar Rasal [Mon, 26 Aug 2013 09:39:55 +0000]
drivers: switch: Don't give write permission

To avoid bogus warning "Write permission without 'store'"
change attributes for file.

Change-Id: Ie2fb8ba12df632dfd04c8cf2d31ece203ed8f14b
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/266012
Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Tested-by: Ajay Nandakumar M <anandakumarm@nvidia.com>

5 years agovideo: tegra: hdmi: Don't give write permission
Shridhar Rasal [Mon, 26 Aug 2013 09:43:00 +0000]
video: tegra: hdmi: Don't give write permission

To avoid bogus warning "Write permission without 'store'"
change attributes for file and don't give write permission to
read-only files.

Change-Id: Iec73d4ddd06a402ce76ccfb6639e683ba974b9bb
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/266013
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Tested-by: Ajay Nandakumar M <anandakumarm@nvidia.com>

5 years agoARM: tegra: dalmore: enable regulator constraints
Laxman Dewangan [Wed, 5 Jun 2013 11:23:16 +0000]
ARM: tegra: dalmore: enable regulator constraints

Enable full regulator constraints so that the rail which does not
have any user and not always-ON can be disable after kernel boot
complete.

bug 1219076

Change-Id: Ifddb9f2ac28ace03bb6757c79e868460f69aa876
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/235868
(cherry picked from commit 5c2f87b962fec138cd03820cf45648f0c0ab53d6)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I67eba64f36ba2d1bd8e84cf294947c9da31bb1b3
Reviewed-on: http://git-master/r/267067
Reviewed-by: Automatic_Commit_Validation_User

5 years agovideo: tegra: host: check if job list is empty
Ajay Nandakumar [Tue, 27 Aug 2013 17:13:06 +0000]
video: tegra: host: check if job list is empty

Check the list before accessing the job, otherwise causing an crash
due to invalid pointer access.

Bug 1327616

Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I84ad5d824a92b6132e2265c9ea78f0065c1fdb55
Reviewed-on: http://git-master/r/266826
Reviewed-by: Automatic_Commit_Validation_User

5 years agofixup! video: tegra: host: Add gk20a driver for Tegra12
Dan Willemsen [Tue, 27 Aug 2013 21:08:32 +0000]
fixup! video: tegra: host: Add gk20a driver for Tegra12

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

5 years agofixup! video: tegra: host: fix ardbeg build
Dan Willemsen [Tue, 27 Aug 2013 21:03:50 +0000]
fixup! video: tegra: host: fix ardbeg build

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

5 years agoFix build issues from linux-3.7-rc1 merge.
Nitin Kumbhar [Thu, 22 Nov 2012 09:29:31 +0000]
Fix build issues from linux-3.7-rc1 merge.

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

5 years agov3.10: fixup ardbeg tps51632 api
Dan Willemsen [Mon, 26 Aug 2013 19:31:08 +0000]
v3.10: fixup ardbeg tps51632 api

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

5 years agoarm: tegra: ardbeg: fix-ups for k340 cherrypicks
Nitin Kumbhar [Sat, 22 Jun 2013 08:19:54 +0000]
arm: tegra: ardbeg: fix-ups for k340 cherrypicks

- Update PALMAS_REG_INIT to handle removal of tstep
- Use config_flags for ldo8/ldo5 tracking

Change-Id: I095d4c7c13324e220ec50c61d979d3c802adbe56
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>

5 years agoiommu/tegra: smmu: fix build issues of k340 cherrypicks
Nitin Kumbhar [Sat, 22 Jun 2013 13:15:09 +0000]
iommu/tegra: smmu: fix build issues of k340 cherrypicks

Change-Id: I9b5bd7d91e7c4e9543e448cca696e2d674a916a1
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>

5 years agoHACK: Disable HDA driver, causing suspend/resume failures
Dan Willemsen [Tue, 19 Feb 2013 19:29:01 +0000]
HACK: Disable HDA driver, causing suspend/resume failures

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

5 years agoHACK: Turn off ALSA SoC Tegra support
Dan Willemsen [Thu, 31 Jan 2013 07:57:38 +0000]
HACK: Turn off ALSA SoC Tegra support

Fails to boot

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

5 years agoARM: config: Disable SD8797 and SD8897 for T124
Dan Willemsen [Mon, 26 Aug 2013 06:54:07 +0000]
ARM: config: Disable SD8797 and SD8897 for T124

These don't build on 3.10 right now.

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

5 years agoARM: config: Disable TRACEDUMP
Dan Willemsen [Thu, 22 Aug 2013 21:13:05 +0000]
ARM: config: Disable TRACEDUMP

Doesn't compile with some of the API changes in 3.10. Specifically this
one: ae63b31e4d0e2ec09c569306ea46f664508ef717

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

5 years agoARM: tegra12: clock: use updated tegra_emc_apply_efficiency definition
Nitin Kumbhar [Sat, 22 Jun 2013 13:13:27 +0000]
ARM: tegra12: clock: use updated tegra_emc_apply_efficiency definition

Change-Id: Ia7162b279c3e631dc4a2ee3dd50320502a1deec5
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>

5 years agonet: wireless: Update SD8797 driver for 3.10
Dan Willemsen [Mon, 26 Aug 2013 05:09:05 +0000]
net: wireless: Update SD8797 driver for 3.10

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

5 years agoARM: dts: Remove T114 versions of Ardbeg & Laguna
Dan Willemsen [Mon, 26 Aug 2013 05:01:10 +0000]
ARM: dts: Remove T114 versions of Ardbeg & Laguna

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

5 years agovideo: tegra: fix build issues of k340 cherrypicks
Nitin Kumbhar [Sat, 22 Jun 2013 13:18:22 +0000]
video: tegra: fix build issues of k340 cherrypicks

- Use updated nvhost_memmgr_pin()/nvhost_memmgr_unpin()
- Use renamed header file nvmap_priv.h instead of nvmap.h

Change-Id: Ie716956e29c3fdc5d64c99bfe4f0332b8fe95c01
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agousb: phy: Turn off -Werror for tegra-otg
Dan Willemsen [Mon, 26 Aug 2013 04:23:00 +0000]
usb: phy: Turn off -Werror for tegra-otg

Until the regulator_* APIs are checked for return values

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

5 years agofixup! staging: iio: adc: Add Palma gpadc support
Dan Willemsen [Mon, 26 Aug 2013 03:38:15 +0000]
fixup! staging: iio: adc: Add Palma gpadc support

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

5 years agoRevert "regulator: tps51632: add dt parsing for ramp delay"
Dan Willemsen [Mon, 26 Aug 2013 03:35:52 +0000]
Revert "regulator: tps51632: add dt parsing for ramp delay"

This reverts commit f0f4c8a5f1943fd6dbf14e976f4b271da1966e41. This
parameter isn't in the upstream driver.

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

5 years agomedia: video: tegra: Disable -Werror
Dan Willemsen [Mon, 26 Aug 2013 02:35:44 +0000]
media: video: tegra: Disable -Werror

It's not enabled in android-tegra-nv-3.8, disable it here.

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

5 years agoARM: tegra: pluto: enable HS UART through DT
Ajay Nandakumar [Tue, 4 Jun 2013 12:38:09 +0000]
ARM: tegra: pluto: enable HS UART through DT

-Enabling HS UART 0,1,2 through device tree for Dalmore.
-Enable HS UART3 using board platform data if requested
from odm-data.

Bug 1299472

Change-Id: Ib1a2ebf52558147b527677a390e266ba6ac84918
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/235461
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: Disable -Werror
Dan Willemsen [Mon, 26 Aug 2013 02:03:18 +0000]
ARM: tegra: Disable -Werror

It's disabled in android-tegra-nv-3.8, disable it here too

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

5 years agoPartial Revert "tegra: fixup: fix issues after K3.4 cherry-picks"
Dan Willemsen [Sat, 24 Aug 2013 21:52:43 +0000]
Partial Revert "tegra: fixup: fix issues after K3.4 cherry-picks"

This partially reverts commit e94d2d45256f2739ffe32afe35754a9d017d472b,
which was reverted in android-tegra-nv-3.8 by a merge.

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

5 years agoARM: tegra11: power: Cap core voltage on deficient regulator
Alex Frid [Sun, 30 Jun 2013 07:46:46 +0000]
ARM: tegra11: power: Cap core voltage on deficient regulator

If core regulator is not able to supply 6A or above current, cap core
voltage at default 1.12V.

Bug 1316883

Change-Id: Id6ecf6712a13b85656a007f300cf77ee538322c4
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/243726
(cherry picked from commit 9dd352e214373db624ae27b5a7d7a10e09910e3e)
Reviewed-on: http://git-master/r/245969
(cherry picked from commit ffc3e9e9750f98ab0c73b0998e22168d4d058403)
Reviewed-on: http://git-master/r/264547
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: t124: Allow tegra-nvmap device to register
Bibek Basu [Tue, 20 Aug 2013 11:17:34 +0000]
ARM: t124: Allow tegra-nvmap device to register

If CONFIG_TEGRA_DC is disabled, kernel panics because
nvmap_probe is not happening.

Bug 1343356

Change-Id: Ia801780a5bed4b91ed7b9600267c69df8dd8f424
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/263864
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Tested-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agodrivers: video: tegra: detect platform at runtime
Chetan Kumar N G [Thu, 27 Jun 2013 17:55:34 +0000]
drivers: video: tegra: detect platform at runtime

This change is a part of the effort to enable runtime
platform detection and reduce compile-time conditionals.

Bug 1333554

Change-Id: Ie70edf370e361a07f58b610d58bc09eebe156ffd
Signed-off-by: Chetan Kumar N G <chetankumarn@nvidia.com>
Reviewed-on: http://git-master/r/264030
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

5 years agovideo: tegra: nvmap: validate args in get_params
Krishna Reddy [Thu, 22 Aug 2013 17:22:44 +0000]
video: tegra: nvmap: validate args in get_params

few minor checks as well.

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

5 years agoregulator: core: add support to set startup delay from platform
Laxman Dewangan [Wed, 7 Aug 2013 09:24:25 +0000]
regulator: core: add support to set startup delay from platform

The startup delay of rail depends on the PMIC design and the platform
design. The startup delay is provided based on PMIC datasheet through
regulator callback.

Add support to provide the platform specific startup delay during
regulator registration through regulator constraints.

The actual delay will be taken from constraints and if it is zero
then based on datasheet.

bug 1317941

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

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

5 years agoregulator: add support for rail to be off during boot
Laxman Dewangan [Wed, 31 Jul 2013 13:48:12 +0000]
regulator: add support for rail to be off during boot

Add option "boot_off" if any rail is require to be OFF
during booting of system.

bug 1326594

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

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

5 years agoiommu/tegra: smmu: fix dma_map_linear_attrs to handle phys address > 32-bit
Krishna Reddy [Tue, 13 Aug 2013 23:00:23 +0000]
iommu/tegra: smmu: fix dma_map_linear_attrs to handle phys address > 32-bit

Bug 1341658

Change-Id: I0eb5a3f5179da580600a5e75664c6b7da3b4c895
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/265319
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>

5 years agovideo: tegra: host: detect platform at runtime
Chetan Kumar N G [Thu, 27 Jun 2013 17:51:41 +0000]
video: tegra: host: detect platform at runtime

This change is a part of the effort to enable runtime
platform detection and reduce compile-time conditionals.

Bug 1333554

Change-Id: Id45b6f136f37f691742d40aa2a40131a4e5b7b3c
Signed-off-by: Chetan Kumar N G <chetankumarn@nvidia.com>
Reviewed-on: http://git-master/r/264031
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra: pluto: add kbc support through DT on pluto
Ashwini Ghuge [Tue, 13 Aug 2013 09:40:47 +0000]
ARM: tegra: pluto: add kbc support through DT on pluto

Added kbc support through DT on pluto but not
enabled yet.

Bug 1173844

Change-Id: Ie8c58625ec56ee74d6b1b587c4776f3e9122af1c
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/264793
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoregulator: max15569: Add regulator driver.
Ashwin Joshi [Tue, 6 Aug 2013 12:15:05 +0000]
regulator: max15569: Add regulator driver.

Add regulator driver for max15569 chip. This chip is present on
automotive platform.

Bug 1319925

Change-Id: Ib02f94376ee3560c2891b78ec355c3f246b00dd4
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/262306
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: pinmux: Fix pinmux for SDMMC2B
Ashwin Joshi [Tue, 6 Aug 2013 12:13:07 +0000]
ARM: tegra: pinmux: Fix pinmux for SDMMC2B

Fix pinmux table entries for SDMMC2B. These are required for automotive
board.

Bug 1319925

Change-Id: Ie7bc1fcceadc48f2436db6a7e249f41baf3ce8f5
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/262301
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: config: tegra12: Add defconfig for vcm30_t124
Ashwin Joshi [Tue, 6 Aug 2013 12:10:59 +0000]
arm: config: tegra12: Add defconfig for vcm30_t124

Add defconfig file for vcm30_t124 which is an automotive platform for
T124.

Bug 1319925

Change-Id: I30bc34453402bc142781ae041e8c0326f827ddc4
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/262296
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agovideo: tegra: nvmap: rename the nvmap_get_dmabuf
Krishna Reddy [Thu, 22 Aug 2013 02:14:19 +0000]
video: tegra: nvmap: rename the nvmap_get_dmabuf

rename nvmap_get_dmabuf to nvmap_dmabuf_export to be more explicit
on what it is intended for.
Bug 1290869

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

5 years agovideo: tegra: nvmap: implement dmabuf_mmap
Krishna Reddy [Thu, 22 Aug 2013 01:46:15 +0000]
video: tegra: nvmap: implement dmabuf_mmap

Bug 1290869

Change-Id: Ia768662ea3b26341c6acb52a1091fb5fe3d4a14b
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/264664
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: host: Use nvmap_pin only for default ASID
Terje Bergstrom [Tue, 20 Aug 2013 07:55:46 +0000]
video: tegra: host: Use nvmap_pin only for default ASID

Retrieve the default ASID via tegra_smmu_get_asid(). If we're mapping
buffer to a non-default ASID, skip the nvmap_pin() path and map via
DMA Mapping API.

Bug 1351530

Change-Id: I5078033e71f759901e6e4bd8a27ede5f1d5fbc37
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/263758
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra: loki: remove unused variable
Laxman Dewangan [Thu, 22 Aug 2013 13:16:45 +0000]
ARM: tegra: loki: remove unused variable

Remove unused variable to remove the compilation warning.

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

5 years agoARM: tegra: move i2c registration to DT
Laxman Dewangan [Thu, 22 Aug 2013 12:43:53 +0000]
ARM: tegra: move i2c registration to DT

Move I2C registratioon to DT for the Ardbeg, TN8, Loki and Laguna.

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

5 years agoARM: tegra: make i2c driver as tegra12-i2c for T124
Laxman Dewangan [Thu, 22 Aug 2013 11:22:48 +0000]
ARM: tegra: make i2c driver as tegra12-i2c for T124

Make Tegra I2C driver name as tegra12-i2c for the T124 SoCs.

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

5 years agoARM: tegra: clock: I2C does not require fast clock for T124
Laxman Dewangan [Thu, 22 Aug 2013 11:03:16 +0000]
ARM: tegra: clock: I2C does not require fast clock for T124

Removing the fast clock entry for I2C as it does not require
fast clock on T124.

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

5 years agocrypto: tegra-se:Correct RSA context save sequence
Shravani Dingari [Thu, 22 Aug 2013 08:56:53 +0000]
crypto: tegra-se:Correct RSA context save sequence

While saving LP0 context, save RSA modulus first and
then RSA exponent

Bug 1346862

Change-Id: Ib3c6d30cb492c112dcfef5128399d5fe807e8129
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/264776
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoArdbeg: Add LDO8 tracking flag for TI PMIC Ardbeg
Terry Wang [Wed, 21 Aug 2013 09:03:41 +0000]
Ardbeg: Add LDO8 tracking flag for TI PMIC Ardbeg

The change is for Ardbeg with TI PMIC E1735.
Add flag to enable LDO8 tracking and to disable LDO8 tracking in LP0.

Bug 1317293

Change-Id: I37aeaee0e21ae41b44592725dad1a10892b19f9f
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/264223
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoi2c: tegra: add compatible and platform id for Tegra124
Laxman Dewangan [Thu, 22 Aug 2013 10:58:26 +0000]
i2c: tegra: add compatible and platform id for Tegra124

Add compatible and platform id for T124 I2C and keeping
the HW chip specific paramter is same as T14x.

Change-Id: Ic222abf1c8835850b6ff1e794c4cb0e67ac34352
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/264891
Reviewed-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>

5 years agoARM: tegra: enable GPIO from DT for all T124 platform
Laxman Dewangan [Thu, 22 Aug 2013 10:46:54 +0000]
ARM: tegra: enable GPIO from DT for all T124 platform

Enable GPIO from DT for all T124 platform.

Change-Id: Ib2e39b982bd02762d3c27cd8a6a857f63418cfae
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/264890
Reviewed-by: Hayden Du <haydend@nvidia.com>

5 years agoarm: tegra12x: iomap: fix VDE base address
Varun Wadekar [Tue, 20 Aug 2013 05:30:06 +0000]
arm: tegra12x: iomap: fix VDE base address

Bug 1348346

Change-Id: I7ab61cf803e9596ae970ce6c97780e1b015a5b4a
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/264175
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: config: enable sata tegra12_defconf
Bibek Basu [Wed, 14 Aug 2013 10:45:36 +0000]
ARM: tegra: config: enable sata tegra12_defconf

Enable sata in L4T defconfig for t124
SATA_AHCI_TEGRA

Bug 1275005

Change-Id: Idedf09be0d3c96e08454f9c100eb92649b85a52f
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/263259
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: dma-mapping: Fix IOVA end addr check strictly
Hiroshi Doyu [Thu, 22 Aug 2013 18:52:33 +0000]
ARM: dma-mapping: Fix IOVA end addr check strictly

At IOVA area allocation, its end address check isn't enough strict in
the case of __alloc_iova_at().

Bug 1353121
Bug 1343762

Change-Id: Iebb1b100313ff70c23bbf262dddddfde1a52727b
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/265018
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agovideo: tegra: nvmap: Export dmabuf for all handles
Alex Waterman [Thu, 18 Jul 2013 00:27:16 +0000]
video: tegra: nvmap: Export dmabuf for all handles

Export a dma_buf object for all handles during allocation. Ref counting
for the underlying dma_buf follows the creation of nvmap_handle_refs.

Bug 1290869

Change-Id: I738e83ccd5063f6eb14b1baaa24868f6a19a572e
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/264089
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra12: dvfs: Move GPU voltage limits to cvb table
Alex Frid [Thu, 22 Aug 2013 04:31:41 +0000]
ARM: tegra12: dvfs: Move GPU voltage limits to cvb table

Moved specifications of GPU minimum and maximum voltages to cvb table.
The former was defined as bin independent gpu rail limit - kept it as
a base for voltage statistic; that latter was defined as sku-dependent
nominal voltage - removed the respective definitions/API completely,
since cvb table is sku/bin dependent.

Bug 1273253

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

5 years agoARM: tegra: dvfs: Use common cvb dvfs structure
Alex Frid [Thu, 22 Aug 2013 04:06:45 +0000]
ARM: tegra: dvfs: Use common cvb dvfs structure

Used common cvb dvfs structure to specify CPU, GPU and core dvfs data.

Bug 1273253

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

5 years agoARM: tegra12: dvfs: Use GPU speedo in cvb algorithm
Alex Frid [Thu, 22 Aug 2013 03:27:17 +0000]
ARM: tegra12: dvfs: Use GPU speedo in cvb algorithm

Bug 1273253

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

5 years agoARM: tegra: Disable pre-si features at run time
Jeff Smith [Wed, 14 Nov 2012 18:13:47 +0000]
ARM: tegra: Disable pre-si features at run time

Disable the the remainder of the silicon only features at
run time instead of the Kconfig file. This change covers
THERMAL_THROTTLE, EDP_LIMITS and DYNAMIC_PWRDET.

Change HZ to 100 for all pre-si configs, not just FPGA. We
cannot change this field at run time. A faster tick doesn't
help sim or Qt CPUs go faster.

This change is a part of the effort to enable runtime
platform detection and reduce compile-time conditionals.

Bug 1333554

Change-Id: I24a865bf192347e487c743fdae3a3369e3ba89d1
Signed-off-by: Jeff Smith <jsmith@nvidia.com>
Signed-off-by: Chetan Kumar N G <chetankumarn@nvidia.com>
Reviewed-on: http://git-master/r/264034
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

5 years agoARM: tegra: clock: Re-factor core bus limit structures
Alex Frid [Sun, 21 Jul 2013 07:06:21 +0000]
ARM: tegra: clock: Re-factor core bus limit structures

Combined core_bus_cap_table and core_bus_floor_table structures into
one core_bus_limit_table structure.

Change-Id: I9531d7c765597d79e73aa1d9391972b9f436e26b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/251671
(cherry picked from commit 6ccb58d5a588475c4de846e6565781d80f94b325)
Reviewed-on: http://git-master/r/254753
(cherry picked from commit 2789b867935bcf17de96ec324cdb40bc5ccdbc62)
Reviewed-on: http://git-master/r/264678
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: clock: Add gpu sysfs floor
Alex Frid [Thu, 18 Jul 2013 06:45:45 +0000]
ARM: tegra11: clock: Add gpu sysfs floor

Change-Id: Id1df835e0b60da703b67fc289b2ed21087f2c0c3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250928
(cherry picked from commit dff57ab9fba624e009ddc4763dd371c8835561ab)
Reviewed-on: http://git-master/r/254752
(cherry picked from commit 601df453fb0e338df66d799cc2dd495765c13254)
Reviewed-on: http://git-master/r/264677
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: clock: Add emc and host1x sysfs floors
Alex Frid [Wed, 17 Jul 2013 21:23:25 +0000]
ARM: tegra11: clock: Add emc and host1x sysfs floors

Change-Id: Ib00775ecbded79cb865cdeaed8e05ba2e06e486a
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250417
(cherry picked from commit 03dc8a991ab22e4cd0e048b3157b6f63a0ddc27f)
Reviewed-on: http://git-master/r/254751
(cherry picked from commit 1d3b6927079e3cf6ec91c3a957756e764684172a)
Reviewed-on: http://git-master/r/264676
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: clock: Add sysfs interface for bus floors
Alex Frid [Wed, 17 Jul 2013 05:47:55 +0000]
ARM: tegra: clock: Add sysfs interface for bus floors

Added mechanism to install sysfs objects for tegra shared bus floors.
Currently no floor objects are installed.

Change-Id: I4940b096fe7013f09213813b18b1cfe71fce9336
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250416
(cherry picked from commit ec8651cf8f8822253dc6a6221a390ea79568a638)
Reviewed-on: http://git-master/r/254750
(cherry picked from commit 5eba5ed2d405fb99787fed57e33f4cbc17b44ce0)
Reviewed-on: http://git-master/r/264675
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Decouple nominal and detached voltages
Alex Frid [Sat, 13 Jul 2013 02:58:41 +0000]
ARM: tegra: dvfs: Decouple nominal and detached voltages

DVFS rail nominal voltage is minimum voltage required to run all
associated clocks at maximum allowed rates. DVFS rail can be detached
from clocks during initial boot, on suspend entry/exit, or when
voltage scaling is disabled. So far, rail voltage in any detached mode
was set to nominal level. This commit introduced separate voltages for
each detached mode. If any of these levels is not specified, backward
compatible nominal voltage is used.

Since, suspend voltage may now be different from nominal (below), it
is important for dvfs to suspend after suspend edp rate caps are set,
and resume before edp. Hence, priorities of dvfs suspend notifiers
were adjusted accordingly.

Change-Id: I17bf2d5ee30a8278b7c838280e730761608db249
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/248949
(cherry picked from commit 2303fe049be0cd8361588b80491d9143737ce6b1)
Reviewed-on: http://git-master/r/254674
(cherry picked from commit ce542a286a998083be69ebad542366d50cdb0e42)
Reviewed-on: http://git-master/r/264548
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agovideo: tegra: nvmap: support passing handle as arg
Krishna Reddy [Wed, 21 Aug 2013 22:19:22 +0000]
video: tegra: nvmap: support passing handle as arg

add supoprt for pin/unpin/mmap/munmap/kmap/kunmap operations
to pass handle as arg.
Bug 1290869

Change-Id: I6e3dfe7e55fe103233e94248c3bf09f4013cdadc
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/264609
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>

5 years agovideo: tegra: nvmap: allow NULL client pointer
Krishna Reddy [Wed, 21 Aug 2013 21:46:20 +0000]
video: tegra: nvmap: allow NULL client pointer

allow NULL client pointer during pin/unpin.
prepare for dmabuf support.
Bug 1290869

Change-Id: Ib3961d6ae99a62ec3a4f77a7604b268c768980cc
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/264599
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>

5 years agovideo: tegra: nvmap: remove dev from nvmap_client
Krishna Reddy [Wed, 21 Aug 2013 21:31:35 +0000]
video: tegra: nvmap: remove dev from nvmap_client

prepare for dmabuf support.
Bug 1290869

Change-Id: I791f341ea20b4e90082a3199844919d176064c68
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/264592
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>

5 years agovideo: tegra: nvmap: remove share from client
Krishna Reddy [Wed, 21 Aug 2013 21:09:51 +0000]
video: tegra: nvmap: remove share from client

prepare for dmabuf support.
Bug 1290869

Change-Id: Ie7b413d495244ec64275e2123d9e1c20c9ab38cc
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/264576
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>

5 years agoarm: tegra11: config: disable CONFIG_MACH_CERES
Naveen Kumar S [Thu, 22 Aug 2013 05:53:37 +0000]
arm: tegra11: config: disable CONFIG_MACH_CERES

Ceres is a T14x board and hence tegra11_defconfig doesn't need
CONFIG_MACH_CERES to be enabled.

bug 1349695

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

5 years agovideo: tegra: host: Use freq list from profile
Arto Merilainen [Fri, 10 May 2013 11:12:04 +0000]
video: tegra: host: Use freq list from profile

This patch modifies the power-on-demand governor to take the
frequency list from the device profile instead of creating own.

Bug 1330780

Change-Id: Ie614a12cb6808f61a78d4d97c2ee0dae0ff90a61
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/263238
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: Add devfreq freq tables
Arto Merilainen [Mon, 29 Apr 2013 12:24:15 +0000]
video: tegra: host: Add devfreq freq tables

This patch adds support for generating a frequency table of
supported frequencies for devfreq.

Bug 1330780

Change-Id: I700654921a926f8ea2100ea1bd401ad8d24ee76b
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/263237
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: gk20a: Unify devfreq profile
Arto Merilainen [Mon, 29 Jul 2013 11:15:15 +0000]
video: tegra: host: gk20a: Unify devfreq profile

This patch unifies the gk20a devfreq profile to behave similarly as the
generic device profile (i.e. devfreq is initialised only if a governor is
specified). The patch also removes duplicate type from headers.

Bug 1330780

Change-Id: I41b6c16a43704b67287fbb6d0c7d787744403f21
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/263236
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: gk20a: Implement round rate
Arto Merilainen [Tue, 30 Jul 2013 06:21:12 +0000]
video: tegra: host: gk20a: Implement round rate

We need to round rate often while doing clock scaling. This patch
adds support for rounding GPU clock rates.

Bug 1330780

Change-Id: I8b43e4a1fa12ac77c9bd5341125b4bb2b5ba1fd4
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/263235
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: gk20a: Read cooling freqs
Arto Merilainen [Thu, 1 Aug 2013 13:09:30 +0000]
video: tegra: host: gk20a: Read cooling freqs

This patch modifies the gk20a clock code to read cooling frequencies
from the DVFS.

Bug 1330780

Change-Id: I6fdbb7eb590c617b7d511f6cdece09f69d43b75c
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/263234
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra: Change GPU freq unit from Mhz to Hz
Hyungwoo Yang [Thu, 22 Aug 2013 00:00:23 +0000]
ARM: tegra: Change GPU freq unit from Mhz to Hz

GPU interface has changed its frequency unit from Mhz to Hz.

Bug 1340657

Change-Id: I12d67294688a3cf712b65a821e3a80c6de29de02
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/264632
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Tested-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: gk20a: Use Hz in clk iface
Arto Merilainen [Thu, 1 Aug 2013 08:53:22 +0000]
video: tegra: host: gk20a: Use Hz in clk iface

gk20a clock interface used PLL frequency in MHz in set_rate(),
get_rate() and round_rate(). The common way to deliver clock
frequencies is to give the frequency in Hz for the unit directly.
This patch makes the necessary changes to the clock code to allow
more consistent usage of gk20a clock.

Bug 1340657
Bug 1330780

Change-Id: I32edbf4da2b85fd7808d9e44876f03156306b3e7
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/263233
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: gk20a: Read load from perfmon
Arto Merilainen [Mon, 29 Jul 2013 11:38:10 +0000]
video: tegra: host: gk20a: Read load from perfmon

The code used GPU load counters directly to estimate load value.
However, this solution does not work well due to wrapping.

This patch modifies the pmu code to activate perfmon on PMU
always. Perfmon automatically samples load counters to determine
normalised load value and stores this value into dmem. The code
modifies PMU driver to read normalised load directly from dmem.

Bug 1330780

Change-Id: Ib6b871bbb8d9adca3e4c2d6de32b39a00de7101e
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/263232
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra: PMC DT support
Bitan Biswas [Fri, 19 Jul 2013 20:59:06 +0000]
ARM: tegra: PMC DT support

PMC DT support changes are as follows:
 - Downstream code needs local changes in addition
   to upstream PMC DT support change to compile fine.
   Common clock framework (CCF) is not enabled downstream
   today as a result we cannot switch to upstream version
   of the function set_power_timers today.
 - All PMC platform data from board files is not available
   in DT bindings upstream. Using the board passed
   values in such cases to ensure that functionality
   is intact.
 - Further, if DT attribute values do not match
   board platform data settings the board setting
   is used for the time being.

bug 1173104

Change-Id: Ife63ab84178c5aa4371bfee188ce919a99f651fc
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/263727

5 years agousb: otg: tegra: detect device cable through pmu
Rohith Seelaboyina [Wed, 21 Aug 2013 04:38:05 +0000]
usb: otg: tegra: detect device cable through pmu

Device cable and OTG cable should be detected through pmu
as extcon framework notifies when change is detected
in either vbus or id, registering for notifications to only
one of them will lead to handling notifications for
unwanted events.

Bug 1345401

Change-Id: I0da42fbf715bbcf32bf3741ab045997c43cebf77
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/263872
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: dts: tegra: add the PM configurations of PMC
Joseph Lo [Wed, 3 Apr 2013 11:31:52 +0000]
ARM: dts: tegra: add the PM configurations of PMC

Adding the PM configuration of PMC when the platform support suspend
function.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit a44a019d45820eaeeb449450caa9e43f1f00a09b)

bug 1173104

Change-Id: Ifb6a03ae1c4e73eda6dde4e7d792613497ccde2c
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/263726

5 years agoARM: dt: tegra: add bindings of power management configurations for PMC
Joseph Lo [Wed, 3 Apr 2013 11:31:46 +0000]
ARM: dt: tegra: add bindings of power management configurations for PMC

The PMC mostly controls the entry and exit of the system from different
sleep modes. Different platform or system may have different
configurations. The power management configurations of PMC is
represented as some properties. The system needs to define the
properties when the system supports deep sleep mode (i.e. suspend).

Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit 4b51ccbc469facb7b589a71c2a4ae47d3e425d02)

bug 1173104

Change-Id: Ib9c6430ffd39a4794898c3790bac176878a0474f
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/263723

5 years agoARM: tegra: moving the CPU power timer function to PMC driver
Joseph Lo [Wed, 3 Apr 2013 11:31:28 +0000]
ARM: tegra: moving the CPU power timer function to PMC driver

The CPU power timer set up function was related to PMC register. Now moving
it to PMC driver. And it also help to clean up the PM related code later.

The timer was calculated based on the input clock of PMC. In this patch, we
also get the clock from DT.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit 0337c3e0c3cbbb3a4f411c292f52fcc314abae67)

bug 1173104

Change-Id: I03a80b2c0cfcb5223b1b113f395ef3899eafd06e
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/263722

5 years agoARM: tegra: add clock source of PMC to device trees
Joseph Lo [Wed, 3 Apr 2013 11:31:27 +0000]
ARM: tegra: add clock source of PMC to device trees

Adding the bindings of the clock source of PMC in DT.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit 7021d1220584ab1e6efd3d59da47b65674d9896a)

bug 1173104

Change-Id: I29af11f2bfd60d6e16a67bf27112d35d2cca8125
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/263721

5 years agoARM: tegra: pmc: add specific compatible DT string for Tegra30 and Tegra114
Joseph Lo [Tue, 26 Feb 2013 16:27:42 +0000]
ARM: tegra: pmc: add specific compatible DT string for Tegra30 and Tegra114

The PMC HW is not 100% compatible across all Tegra series. We need to
specify each of them in the DT match table.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit 88c4aba92bc57334119bcff58ac87152c3f2981e)

bug 1173104

Change-Id: If9c0324b37f48406104969e70a7dc360980794aa
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/263719

5 years agoARM: tegra12: clock: Disable VDE clock during init on Si
Somasundaram S [Mon, 19 Aug 2013 15:21:32 +0000]
ARM: tegra12: clock: Disable VDE clock during init on Si

Change-Id: I811d13e4a5ac4fa852e69d4391234f2fc5584f49
Signed-off-by: Somasundaram S <somasundaram@nvidia.com>
Reviewed-on: http://git-master/r/263386
Tested-by: Somu Sundaram <somasundarams@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: laguna: add delay for fixed regulator
Bibek Basu [Tue, 13 Aug 2013 09:32:46 +0000]
ARM: tegra: laguna: add delay for fixed regulator

add delay after fixed regulator initialization.
This prevents the race in accessing hdmi & audio
i2c before enabling the fixed regulator.

Bug 1342355

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

5 years agotty: serial: full GCOV_PROFILE
Konsta Holtta [Tue, 20 Aug 2013 05:56:31 +0000]
tty: serial: full GCOV_PROFILE

Enable GCOV profiling in serial when enabled in defconfig.

Bug 1227962

Change-Id: I13a2ad9dfa3a8e5a58059bd7f5a207036f3d3d8e
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/264343
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra: pcie: Fix LP0 functionality
Jay Agarwal [Thu, 8 Aug 2013 12:31:41 +0000]
ARM: tegra: pcie: Fix LP0 functionality

Remove unnecessary Flag to allow complete
PADS initialization in resume

Bug 1344668

Change-Id: I7bb56c51bb15338a3c8cb32aa534c7085388b242
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/263691
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>

5 years agoARM: tegra12: clock: Add "PERIPH_ON_APB" flag
Alex Frid [Wed, 21 Aug 2013 19:30:49 +0000]
ARM: tegra12: clock: Add "PERIPH_ON_APB" flag

Added "PERIPH_ON_APB" flag to SDMMC clocks.

Bug 1348234

Change-Id: Ibfa0197ace50985e2fb2d71f7b6253df8354850c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/264529
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: ardbeg: Update SDMMC1,3 pad settings
Pavan Kunapuli [Wed, 14 Aug 2013 07:28:29 +0000]
ARM: tegra: ardbeg: Update SDMMC1,3 pad settings

Updating SDMMC1 and SDMMC3 pad settings based on the characterization
results.

Bug 1347531

Change-Id: Ib612a5866e158dd9df524b5bacb43a9cd4b1a4b3
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/264391
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>