5 years agommc: tegra: Implementation of new tuning algorithm
Pavan Kunapuli [Thu, 9 Jan 2014 11:46:13 +0000]
mmc: tegra: Implementation of new tuning algorithm

Implemented the new tuning algorithm that
- Removes the tap holes from auto tuning windows
- Adjust window ends with margins for Vmin for the corresponding freq
- Dynamically updates dvfs table entry if a new Vmin is found from
auto tuning calculations
- Calculates the best tap value from the windows after removing tap
holes and margin additions.

Disabling external loopback clock for SDMMC3 as per characterization
results.

Bug 1423429

Reviewed-on: http://git-master/r/359375
(cherry picked from commit 8f33c039e2a8551b04d9023702a94c49dd2fffac)

Change-Id: I49b8dca227ae9f40cbbcbc81a36130a693588056
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/363810
(cherry picked from commit e12f878c391eb732369313b53a1a94b5a673a8bc)
Reviewed-on: http://git-master/r/410189
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: dvfs: Predict required voltage for a given freq
Naveen Kumar Arepalli [Tue, 7 Jan 2014 04:48:53 +0000]
ARM: tegra: dvfs: Predict required voltage for a given freq

Export the tegra_dvfs_predict_millivolts interface to drivers to be
used during tuning and getting the minimum core voltage for a given
frequency.

Bug 1423429

Reviewed-on: http://git-master/r/359374
(cherry picked from commit 363ba00eab262307efc02880db06b1c5fb67fa92)

Change-Id: I9dbadd831fa2f5b940ffb305a25ab56de63eec6e
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/363809
(cherry picked from commit 1c92be1a06a6ccb944dbcc755dd3434e74ccaca1)
Reviewed-on: http://git-master/r/410188
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agolinux: ARM: tegra: Add tegra_dvfs_predict_millivolts
Naveen Kumar Arepalli [Thu, 23 Jan 2014 11:33:46 +0000]
linux: ARM: tegra: Add tegra_dvfs_predict_millivolts

Add tegra_dvfs_predict_millivolts function prototype

Bug 1423429

Reviewed-on: http://git-master/r/359373
(cherry picked from commit dab86eab4481e9801d4361a155a4d09ae5d44340)

Change-Id: I93e97f25919846bf37af9cefad2029151b5f1715
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/363808
(cherry picked from commit f299a1bcc3c6844c0d696233f1d80fddd01701c1)
Reviewed-on: http://git-master/r/410187
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agommc: tegra: Enable external loopback for SDMMC3
R Raj Kumar [Mon, 20 Jan 2014 15:27:15 +0000]
mmc: tegra: Enable external loopback for SDMMC3

Enabled external loopback for SDMMC3 for non-tunable modes.

Bug 1426947

Change-Id: I2c14bfc7d9cb21a44208cda88188836a3de61e77
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/360197
(cherry picked from commit 383d882f4e5e4799fc0ba65f9e2a428d9cc77bfd)
Reviewed-on: http://git-master/r/410186
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: dvfs: Add interface to set fmax at vmin
Alex Frid [Sat, 21 Dec 2013 06:01:00 +0000]
ARM: tegra: dvfs: Add interface to set fmax at vmin

Added interface to specify clock fmax/vmin limits at run-time. Calling
this interface updates frequencies in the respective DVFS table to be
consistent with the new limits (voltage ladder is preserved):

- for voltages below new vmin, the respective frequencies are shifted
below new fmax to the levels already present in the table; if the 1st
table entry has frequency above new fmax, all entries below vmin
are filled in with 1kHz (min rate used in DVFS tables).

- for voltages above new vmin, the respective frequencies are set at
or above new fmax (not necessarily present in DVFS table before)

- if new vmin is already in the table the respective frequency is set
to new fmax (not necessarily present in DVFS table before)

Since, such update may result in changing voltage requirement up at
the same clock frequency, the interface can be called only for clocks
that are allowed to override core voltage (SDMMC on tegra platforms),
and only if core voltage is already overridden to the level higher
than new vmin.

Bug 1423423
Bug 1423429

Change-Id: I4f61ea6e3f8b6792ed058509339e16bff1947104
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/350016
(cherry picked from commit e6d6c5612f9dd22519297912365e0e54e31785ba)
Reviewed-on: http://git-master/r/410185
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra12: dvfs: Use one SDMMC dvfs table
Alex Frid [Fri, 27 Dec 2013 05:25:19 +0000]
ARM: tegra12: dvfs: Use one SDMMC dvfs table

New SDMMC tunning algorithm will not require core voltage override
range: tuning is performed at one nominal voltage point. Respectively
removed support for 2 SDMMC tables selected based on override range
size.

Bug 1423429

Change-Id: Ibeea397351afad8fe23950a16e03e920f2d3f37f
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/350015
(cherry picked from commit 71eb3c0ad951c6c3c4a5dec55ab7dc1dc6cee7fe)
Reviewed-on: http://git-master/r/410184
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: fuse: added chip revision for T124
Jeetesh Burman [Wed, 14 May 2014 08:45:12 +0000]
ARM: tegra: fuse: added chip revision for T124

Chip revision for T124 was not present in struct chip_revision,
hence T124 chip revision added.

Bug 1486361

Change-Id: Icad37ed895b84bf94e6e868a38e4af1f5c115ee8
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/409312
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Mike Thompson <mikthompson@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agousb: phy: tegra: increase the timeout for phy clk
Preetham Chandru R [Mon, 21 Apr 2014 11:34:12 +0000]
usb: phy: tegra: increase the timeout for phy clk

Increase the timeout for phy clk to stabilize

Bug 1485579

Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: Ic73436dd5b74f327707b0c36ef0323d6decd9c67
Reviewed-on: http://git-master/r/408597
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: dtb: tegra12: jetson-tk1: update pmc values
Bibek Basu [Mon, 12 May 2014 07:19:49 +0000]
ARM: dtb: tegra12: jetson-tk1: update pmc values

Update PMC values to realistic values proven working
for Jetson-tk1.

Bug 1501662

Change-Id: I1d38da5665ec0e75e72bc89c7517fd3f139d2098
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/408037
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: tegra: pm: move err print to debug print
Bibek Basu [Mon, 12 May 2014 07:25:54 +0000]
arm: tegra: pm: move err print to debug print

Unwanted print, that too with err level is moved
to debug level

Bug 1501662

Change-Id: I0fbfa966ab69ec40dd4a218e4e03226ab197a8da
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/408038
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agocpufreq: remove race while accessing cur_policy
Bibek Basu [Fri, 9 May 2014 11:40:35 +0000]
cpufreq: remove race while accessing cur_policy

While accessing cur_policy during executing events
CPUFREQ_GOV_START, CPUFREQ_GOV_STOP, CPUFREQ_GOV_LIMITS
same mutex lock is not taken, dbs_data->mutex, which leads
to race and data corruption while running continious suspend
resume test.

Bug 1455519

Change-Id: I6b385578c791648681746b749d33f671d00154f3
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/407589
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agosound: tegra: ahub: add clock settings for T124
Bryan Wu [Wed, 16 Apr 2014 22:35:20 +0000]
sound: tegra: ahub: add clock settings for T124

Several additional audio clocks need to be initialized before
accessing any audio register, otherwise system will just hard hang.

Probably fastboot bootloader initialize these clocks, which actually
should be handled in driver. We found this issue for U-Boot bringup.

Bug 1482099

Change-Id: Ia7a7c0115bc92a4e98e6f337cf8efc7b2f7a72a0
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/408429
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra12: config: enable clock preinit code
Bryan Wu [Wed, 16 Apr 2014 22:56:36 +0000]
ARM: tegra12: config: enable clock preinit code

Enable clock preinit code by default for U-Boot.

Bug 1482099

Change-Id: I643cc04e20b1f9b6b71576fc7e8c1828901e2e6c
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/408428
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra12: add clock preinit code for U-Boot
Bryan Wu [Fri, 4 Apr 2014 20:52:26 +0000]
ARM: tegra12: add clock preinit code for U-Boot

U-Boot doesn't setup clock as NVTBoot or fastboot, so clocks need to
be preinit before our normal clock init.

Bug 1482099

Change-Id: I69734a47b7eb7af21c703aebcebc0c6735c6430c
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/408427
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agosoc: codecs: max98090: fix interrupt registration
Shreshtha Sahu [Mon, 21 Apr 2014 11:50:38 +0000]
soc: codecs: max98090: fix interrupt registration

This patch clears previous interrupt and installs interrupt
handler at the end of device probe. Also it enables jack
detection only after handler is installed. This prevents,
false/stale interrupt generation and hence device access
by interrupt handler even before device probe has completed.

Bug 1464724

Change-Id: Id3c37ef4800e35cfec540bb1584c9b1cc7f7172f
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/405899
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agovideo: tegra: host: fix memory leaks with firmware
Deepak Nibade [Wed, 26 Mar 2014 13:23:14 +0000]
video: tegra: host: fix memory leaks with firmware

Pointer variables to store fecs and gpccs firmwares are local
variables.
Once firmwares are copied to local buffer, we can release
them with release_firmware() call before returning from function.

Release fecs and gpccs firmwares after copying to
fix memroy leak

Bug 1484645

Change-Id: I118874d65e30b6966f83d35347132d8f764bab8d
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/387139
(cherry picked from commit d7cac8dd9a5d3f6cb44348a9698d0a6aefa80737)
Reviewed-on: http://git-master/r/407188
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Tested-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agotty: serial8250: add break handler quirk for tegra
Bibek Basu [Mon, 28 Apr 2014 05:29:24 +0000]
tty: serial8250: add break handler quirk for tegra

On tegra,after a break is issued, uart status register
generates FIFOE error rather than the next character
ready status. For that quirk is already present. Hook is added
for the quirk so that sysrq key combination works. This helps
in debugging soft hangs

Bug 1401397

Change-Id: I0131cfc986aba694ddc21d859685748843534611
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/401535
(cherry picked from commit c72b366e010b5cfbac6541eb339a0324b863ff17)
Reviewed-on: http://git-master/r/406398
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoPCIE: tegra: resume timing correction
Bibek Basu [Tue, 29 Apr 2014 09:11:31 +0000]
PCIE: tegra: resume timing correction

The time from +1.05V_RUN to PEX_L1_RST_L signal
(PEX_L1_RST_N on T124) should be 100ms minimum

Bug 1500840

Change-Id: I170ed3225f80b5ef0ccaf4b38565d3adf94a674a
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/402841
(cherry picked from commit d380528e5e865437681c21befc40de430b39f9a9)
Reviewed-on: http://git-master/r/406394
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agovideo: tegra: host: fix invalid pointer
Kirill Artamonov [Thu, 20 Mar 2014 12:34:57 +0000]
video: tegra: host: fix invalid pointer

Props to Mayank for spotting the bug

bug 1484677

Change-Id: I263f81b891a3321b074ba334747144bf6d1b4934
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/384381
(cherry picked from commit 440b03565fa18447a909fb42ca248954a4ac12f5)
Reviewed-on: http://git-master/r/406942
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

5 years agoARM: tegra: dtb: remove laguna string for jetson
Prabhu Kuttiyam [Tue, 6 May 2014 19:56:16 +0000]
ARM: tegra: dtb: remove laguna string for jetson

This commit removes laguna comptability strings for
jetson-tk1 boards.

bug 1509239

Change-Id: Ifef547aa19f479c3adc03cc7c3557aa9372e1cb2
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/406015
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jong Kim <jongk@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra: pm375: add jetson-tk1 references
Prabhu Kuttiyam [Tue, 6 May 2014 20:03:14 +0000]
ARM: tegra: pm375: add jetson-tk1 references

This commit adds jetson-tk1 compatible reference checks
to the architecture code.

bug 1509239

Change-Id: I859452a0c8705b6fda8e1739906eb78f2b0527b2
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/406016
Reviewed-by: Jong Kim <jongk@nvidia.com>
Reviewed-by: Sundeep Borra <sborra@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agogpu: nvgpu: Do not enable HCE priv mode l4t/l4t-r19.2 daily-2014.04.28.0_l4t/l4t-r19.2 tegra-l4t-r19.2
Terje Bergstrom [Fri, 18 Apr 2014 06:08:07 +0000]
gpu: nvgpu: Do not enable HCE priv mode

Do not enable HCE priv mode.

Bug 1501689

Change-Id: I3da0ed7c7c1d59ef3e2a8bc727ca531eb22bab11
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/398110
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

5 years agoARM: tegra: pm375: disable usb device mode
Preetham Chandru R [Tue, 15 Apr 2014 10:03:45 +0000]
ARM: tegra: pm375: disable usb device mode

Disable usb device mode for pm375 rev A-D

Bug 1495952

Change-Id: I553d3c05f9a8421ff4900999d9d6e5c21dc5e596
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/396368
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agoARM: tegra: powergate: suppress unwanted info
Bibek Basu [Mon, 14 Apr 2014 11:43:50 +0000]
ARM: tegra: powergate: suppress unwanted info

is_powered is a check and it should not throw
wrong information that powergating is not supported
for this SOC

Bug 1499524

Change-Id: Id2f0ff0d295d49b952fba571b17639723bbdec65
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/395835
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: laguna: correct vbus regulators
Preetham Chandru R [Tue, 15 Apr 2014 07:08:39 +0000]
ARM: tegra: laguna: correct vbus regulators

vbus regulators were configured wrongly for pm375.
This patch corrects the vbus regulators.

Change-Id: Ib49f95b3ea9d46cb97978d1433f4d05681d10f0a
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/396247
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

5 years agoARM: tegra12: enable CONFIG_TMPFS_POSIX_ACL
Eric Brower [Wed, 16 Apr 2014 04:13:21 +0000]
ARM: tegra12: enable CONFIG_TMPFS_POSIX_ACL

Enable POSIX ACL support for DEVTMPFS; this is
"optional but strongly recommended" by systemd and
required for proper operation of some Linux distributions.

Bug 1499849

Change-Id: I414316e6b231da34c97971cf0eecf699da3075b6
Signed-off-by: Eric Brower <ebrower@nvidia.com>
Reviewed-on: http://git-master/r/396806
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agousb: otg: tegra: sysfs-setting for gadget mode
Haribabu Narayanan [Tue, 4 Mar 2014 08:52:56 +0000]
usb: otg: tegra: sysfs-setting for gadget mode

Add ability to set the OTG port to device mode through sysfs.

Bug 1463801
Bug 1380254
Bug 1435985

Change-Id: I7bf5a3d8576e88ffb399a0bab2d43b446d6753c8
Signed-off-by: Haribabu Narayanan <hnarayanan@nvidia.com>
Reviewed-on: http://git-master/r/377073
(cherry picked from commit 8921a2c370014e997df95818802ceb487084fadb)
Reviewed-on: http://git-master/r/396367
Reviewed-by: Preetham Chandru <pchandru@nvidia.com>
Tested-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agoregulator: as3722: sd1 external control only during suspend
Bibek Basu [Fri, 11 Apr 2014 05:44:13 +0000]
regulator: as3722: sd1 external control only during suspend

If SD1 external control is enabled from boot, it has adverse
effect on power down cycle. Which can lead to long term product
stability. So enable SD1 external control only while going to
to suspend and disable while resuming

Bug 1495458

Change-Id: Ia65bf6f358d15604cea3914914188ce1725b4120
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/395039
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoASoc: Tegra: max98090: secondary mic only for t14x
Naveen Kumar S [Wed, 9 Apr 2014 11:41:03 +0000]
ASoc: Tegra: max98090: secondary mic only for t14x

Secondary MIC available in tegra14x platforms only. Hence adding
appropriate conditions.
Also, DMIC3 and DMIC4 are declared for max98091 and not max98090.

bug 1457218

Change-Id: Ieeaff6890a195a4620f80b17ea9a9e0a1ff975c9
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/394119
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoiommu/tegra: smmu: fix unaliged sg mapping
Hiroshi Doyu [Thu, 10 Apr 2014 06:43:00 +0000]
iommu/tegra: smmu: fix unaliged sg mapping

map_sg() miscaluculated the number of pages to map where 'offset' and
PAGE_ALIGN was ignored. This patch fixes the ext4 memory corruption
problem when USB is used. This patch was based on Nilesh More's hard
working journey to narrow down the root cause of this problem. This bug
was introduced by the commit:

  f46788a6f7d9 - iommu/tegra: smmu: Optimize smmu_iommu_map_sg()

Bug 1418514

Change-Id: I3492ca3aad48f63bc81e50886eefc32cb6a17a8b
Reported-by: Nilesh More <nmore@nvidia.com>
Tested-by: Nilesh More <nmore@nvidia.com>
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/394554
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nilesh More <nmore@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
(cherry picked from commit 7b4dac1d522cf48e4e6bd227ff235bffa82cb755)
Signed-off-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-on: http://git-master/r/394993

5 years agovideo: tegra: host: g20a: Add AELPG feature
Prashant Malani [Thu, 5 Dec 2013 22:27:29 +0000]
video: tegra: host: g20a: Add AELPG feature

Add basic functionality and helper routines for AELPG. Also,
enable AELPG during init.

Enabling adaptive elpg is needed for the data corruption
issues seen as per the bug reported below.
Bug 1458353

Change-Id: Ie6effc354dc1ade2a4baa2585984ff39d7c0660d
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/338873
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 2b235e3708857f12ee765a85ce7a61cc464ac98e)
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/394410
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agovideo: tegra: host: gk20a: add AELPG headers
Prashant Malani [Thu, 5 Dec 2013 22:03:05 +0000]
video: tegra: host: gk20a: add AELPG headers

Enabling adaptive elpg is needed for the data corruption
issues seen as per the bug reported below.
Bug 1458353

Change-Id: Ie285e7e7e3849e0b8cb263a67a5dfe7056150d51
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/338872
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
(cherry picked from commit b0b937165d49e3f57fa25815239e2a0f6f155527)
Reviewed-on: http://git-master/r/394409
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agopcie: host: tegra: re-enable MSI after resume
Peter Daifuku [Fri, 10 Jan 2014 23:57:28 +0000]
pcie: host: tegra: re-enable MSI after resume

Initialize core MSI data once and re-enable MSI
registers on resume, if MSI were enabled.

Bug 1478052

Change-Id: I3d3d7e21be121e38d5159302ec47aaff9dcf7525
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/354470
(cherry picked from commit 7908f31c3e7a5cfa9c053f89acc5691c6502e3a3)
Reviewed-on: http://git-master/r/394682
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: tegra12: enable dram temperature only for LPDDR2
Shreshtha Sahu [Mon, 24 Mar 2014 06:15:25 +0000]
arm: tegra12: enable dram temperature only for LPDDR2

This patch disables creating debugfs entry for non
LP DRAM variants. As currently two DRAM variants are
supported i.e. LPDDR2 and DDR3, so it enables dram
temperature entry only for LPDDR2.

Bug 1473611

Change-Id: I3b9ef616e5110a09f06522d761549f6db4bd578d
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/385488
(cherry picked from commit 4d0fa6f0c069d796de4b037f12b532c856742256)
Reviewed-on: http://git-master/r/393193
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agovideo: tegra: hdmi: WAR: emulate hdmi hotoplug
Jong Kim [Sat, 5 Apr 2014 00:32:38 +0000]
video: tegra: hdmi: WAR: emulate hdmi hotoplug

Emulate hotplug to make DVI monitors work through HDMI-to-DVI
dongle. In the last hdmi state, enabled_state, force trigger
hotplug for the HDMi go through clean power off, read EDID,
power on, and configure sequence.

bug 1495496

Change-Id: I0d9c3d7e5d1244d677a0d547c68c6cb9f961a956
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/392977
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

5 years agovideo: tegra: dc: get default mode from EDID
Jong Kim [Tue, 8 Apr 2014 17:39:16 +0000]
video: tegra: dc: get default mode from EDID

Override hard-coded default HDMI mode with the preferred mode
obtained from EDID read. Since the preferred mode is obtained
dynamically from EDID, the default hard-coded HDMI mode is set
to 640x480 @60Hz, which is universally supported.

bug 1495496

Change-Id: I19bc910758015927938fe5dde3e5359a78d905d4
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/393564
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

5 years agoARM: tegra: config: disable firmware loading
Preetham Chandru R [Tue, 25 Mar 2014 10:11:15 +0000]
ARM: tegra: config: disable firmware loading

disable firmware loading by Realtek 8169 driver.

Bug 1481697

Change-Id: Ie0413caf9029d5515d862429956c386f16082553
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/394645
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoASoC: codecs: max98090: correct DMIC names
Naveen Kumar S [Wed, 9 Apr 2014 11:07:39 +0000]
ASoC: codecs: max98090: correct DMIC names

DMIC1 and DIMC2 were renamed to DMICL and DMICR respectively.
Hence correcting the names accordingly.

bug 1457229

Change-Id: Iecff0cabb18743a8d399965fab320ac3683f622a
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/394109
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra: Add SW thermal throttling for Jetson
Sai Gurrappadi [Tue, 8 Apr 2014 21:23:14 +0000]
ARM: tegra: Add SW thermal throttling for Jetson

Enable cpu & gpu balanced cooling devices so that SW thermal throttling
gets enabled.

Bug 1496341

Change-Id: I28f7f9cda4aaa4fbe7d5eb6b7ebcee54a7f492a4
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/393645
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra12: Use runnable governor as default
Sai Gurrappadi [Tue, 8 Apr 2014 02:03:33 +0000]
ARM: tegra12: Use runnable governor as default

Switch cpuquiet to use the runnable_threads governor instead of the
balanced governor as the default governor.

Bug 1493183

Change-Id: Ie7519e1744bb620e54be7a9c9010290a72b941f9
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/393174
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra12: disable sata idle powergating
Bibek Basu [Tue, 1 Apr 2014 05:50:52 +0000]
ARM: tegra12: disable sata idle powergating

SATA idle powergating is broken. Thus disabling it.

Bug 1483608

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

5 years agotegra: T124: HDMI: fix pixel clock setting
Jong Kim [Thu, 27 Mar 2014 16:18:58 +0000]
tegra: T124: HDMI: fix pixel clock setting

- Enhance the HDMI pixel clock setting by determining a better parent
  clock rate.  Half resolutions for HDMI pclk are not used due to
  uneven duty cycle.
- Fix the divider value out of sync problem between two registers,
  DISP_DISP_CLOCK_CONTROL and CLK_RST_CONTROLLER_CLK_SOURCE_HDMI, due
  to the rounding difference.  The clk_set_rate() routine uses round-up,
  while the tegra_dc_program_mode() routine uses round-closest.  Due to
  the DVFS, the frequency determination can not exceed the requested
  rate and this means that round-up must be used for divider handling
  instead of round-closest.

bug 1420652

Change-Id: Ib32e79f96dcd272a392de7f852c3c0285f9c453a
Signed-off-by: Sungwook Kim <sungwookk@nvidia.com>
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/366390
(cherry picked from commit 6eb5d7e7b5dcd9a118649e5a8d02e35cf45a4fc6)
Reviewed-on: http://git-master/r/392419
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agovideo: tegra: Check DC connected status
Pankaj Dabade [Tue, 25 Mar 2014 11:34:58 +0000]
video: tegra: Check DC connected status

1. Prevent any operations from user-space and tty when no HDMI
device is connected. DC will stay powergated till hotplugged.
2. Virtual Terminal requests blank after blank timeout. If HDMI
isn't connected we shouldn't allow this operation.

bug 1487112
bug 1481748

Change-Id: I0bd97e62ca059513044bc49b8d8c045610268016
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/391152
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agomisc: nct : configure nct local hi/lo temp also
Bibek Basu [Thu, 3 Apr 2014 04:26:30 +0000]
misc: nct : configure nct local hi/lo temp also

configure nct local hi/lo temp also so
that action is taken if there is an increase
in local temp

Bug 1490524

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

5 years agoARM: tegra: enable nct interrupt for pm375 & laguna
Bibek Basu [Wed, 2 Apr 2014 11:53:27 +0000]
ARM: tegra: enable nct interrupt for pm375 & laguna

Enable nct alert interrupt for pm375

Bug 1490524

Change-Id: I473365b4d7c9ab26626dac73b9b15f2e708f2719
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/391648
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoPCIE: tegra: enable ASPM and disable L0s
Bibek Basu [Tue, 1 Apr 2014 08:41:20 +0000]
PCIE: tegra: enable ASPM and disable L0s

Enable ASPM feature for Tegra12 but keep L0s
disabled as its broken.

Bug 1483608

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

5 years agomisc: nct1008: avoid reading bogus temperature
Diwakar Tundlam [Tue, 4 Mar 2014 02:11:34 +0000]
misc: nct1008: avoid reading bogus temperature

Added a check for temperature above max value and return error when
that happens to avoid showing insane temperature values to user. Bogus
temperature readout happens rarely due to the NCT device still being
initialized and unprepared while interrupts happen.

Based on commit 707c55d46a9c9f3780caa64426efa8220be11a1e which was
reviewed-on: http://git-master/r/376832

Bug 1454792

Change-Id: I7f31f80f47abc197e6dda3d661dfb82e946ea039
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/392045
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agomisc: nct1008: use signed long for temp
Diwakar Tundlam [Thu, 20 Mar 2014 22:33:31 +0000]
misc: nct1008: use signed long for temp

Avoid setting signed temperature value into unsigned long pointer

Bug 1454792

Change-Id: I583f2296c294b6d499fcdf8e1b9338cce5b8344d
Reviewed-on: http://git-master/r/384655
(cherry picked from commit 72ccbb69fcf0375ce7a26db7c32dd3dd925a6f26)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/392044
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agomisc: nct1008: change overheat enable message
Diwakar Tundlam [Fri, 7 Mar 2014 01:47:19 +0000]
misc: nct1008: change overheat enable message

Avoid using the word 'warning' in the log message that reports
successful setup of the overheat warning message. This confuses
tests that scan for errors and warnings on console.

Also changed the level of the message to pr_debug.

Bug 1436329

Change-Id: Idbc6cc5eed42265a1487a9809969bce7edc7a620
Reviewed-on: http://git-master/r/378669
(cherry picked from commit 999acb87fffe01365485333ac28b160a34502efb)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/392043
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agovideo: tegra: host: gk20a: Check for free va fail
Terje Bergstrom [Tue, 4 Mar 2014 13:05:06 +0000]
video: tegra: host: gk20a: Check for free va fail

Return error if freeing virtual address space fails. Do not try to
free graphics context that has not been allocated.

Change-Id: I1c22650aae25038d56582e00b8906532ace482f1
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/382474
(cherry picked from commit 20a8917aaa7c6bbad3c74f5279fb8b142f858e77)
Reviewed-on: http://git-master/r/391823
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agovideo: tegra: fb: Keep old mode list l4t/l4t-r19.1 daily-2014.03.25.0_l4t/l4t-r19.1 tegra-l4t-r19.1
Pankaj Dabade [Thu, 20 Mar 2014 08:47:27 +0000]
video: tegra: fb: Keep old mode list

Keeping the old mode list and framebuffer console is storing a
video mode pointer pointing to one of the modes in modelist.
Adding enable function to enable DC when hotplug succeeds.

bug 1481759

Change-Id: I8164c0d318edc3cbc6f61481eda8c90daabe14a5
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/382507
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agoPCIE: tegra: run PCIE at GEN1 speed
Bibek Basu [Thu, 20 Mar 2014 10:55:26 +0000]
PCIE: tegra: run PCIE at GEN1 speed

To preserve power, run PCIE @ GEN1 speed.
This will introduce cap on pciex clock to 250Mhz

Bug 1483563

Change-Id: Iedc05870647368523070a8033e7cbba1e0bc2b43
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/384368
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agoARM: tegra: update hdmi tdms parameter for PM375
Bibek Basu [Fri, 21 Mar 2014 03:52:31 +0000]
ARM: tegra: update hdmi tdms parameter for PM375

update hdmi tdms parameter for PM375

Bug 1481888

Change-Id: Icd04f0d8a80ee84b8ba9a2441a841d7bd5954c3a
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/384776
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agoARM: tegra: laguna: configure ams gpio1 and gpio2
Bibek Basu [Fri, 21 Mar 2014 01:00:32 +0000]
ARM: tegra: laguna: configure ams gpio1 and gpio2

Configure ams gpio1 and 2 as bial pull-down from pdata

Bug 1485412

Change-Id: I8df5c6e79933e1c9c01f35ae7938bfd360fce88f
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/384705
Tested-by: Mike Thompson <mikthompson@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra: update PM375 pinmux setting
Bibek Basu [Wed, 19 Mar 2014 15:46:31 +0000]
ARM: tegra: update PM375 pinmux setting

Update PM375 pinmux by tristating the unusued
pins based on pinmux excel
T124_customer_pinmux_PM375_29Oct2013.xlsm

Bug 1483835

Change-Id: I1eaea4f5d40096d9a1d560f59561db2dce2dfda6
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/383907
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agoPCIE: tegra: limit mselect clk to 102Mhz
Bibek Basu [Thu, 20 Mar 2014 10:52:15 +0000]
PCIE: tegra: limit mselect clk to 102Mhz

This will put cap on power consumption in idle
If someone one to bup the clock, it can be done from
debugfs

Bug 1483563

Change-Id: I668193864fa26b108bec1c1f953f275847ee293c
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/384367
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agoARM: tegra12: enable SATA idle powergating
Bibek Basu [Wed, 19 Mar 2014 09:01:10 +0000]
ARM: tegra12: enable SATA idle powergating

Enable SATA idle powergating

Bug 1483608

Change-Id: I23d8675620c6ff844bda558a48c608aaebcf6e5a
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/383755
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

5 years agoARM: tegra: dont register unavailable sensors
Bibek Basu [Wed, 19 Mar 2014 06:48:59 +0000]
ARM: tegra: dont register unavailable sensors

PM375 does not have mpu, bmp, akm, wifi sensors.
So dont register those i2c devices

Bug 1483432

Change-Id: Ic91049b35ad65e558f5a4a292f36550eca51fd1c
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/383692
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agoARM: tegra: config: Enable GK20A devfreq for L4T
Prashant Malani [Thu, 20 Mar 2014 02:34:33 +0000]
ARM: tegra: config: Enable GK20A devfreq for L4T

Also disable gk20a perfmon, which was earlier enabled.

Bug 1484540

Change-Id: I539a60d45db1990df3db7dcc98da1d78a788c600
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/384149
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: gk20a: remove pmu dump stats
Prabhu Kuttiyam [Wed, 19 Mar 2014 01:11:37 +0000]
video: tegra: host: gk20a: remove pmu dump stats

This commit removes the dumping of pmu stats only
if the pmu exterr intr occurs.

bug 1458353

Change-Id: I0836da647abca64879991af9c280572477d1ce97
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/383442
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agoarm: tegra: HDMI: fix 720p low output swing for PM375
Jong Kim [Wed, 19 Mar 2014 01:16:25 +0000]
arm: tegra: HDMI: fix 720p low output swing for PM375

Fix 720p HDMI low output swing for PM375.

bug 1481888

Change-Id: Ide0e8a9d02213b3a2e59e3f5ad614f9c2e423139
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/383441
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agovideo: tegra: gk20a: do not set error notifier during debugging
Kirill Artamonov [Thu, 27 Feb 2014 12:02:06 +0000]
video: tegra: gk20a: do not set error notifier during debugging

Do not set error notifier on exceptions handled by attached
SM debugger.

bug 1468586
bug 1470992

Change-Id: I9c35b098ade022df7c2745a4f974ef0d1a7fad58
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
Reviewed-on: http://git-master/r/377866
(cherry picked from commit e30f88aa7fbb56a703a50a445ae6761bcb0d5e99)
Reviewed-on: http://git-master/r/383228
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: host: gk20a: add missing returns
Mayank Kaushik [Mon, 3 Mar 2014 17:34:40 +0000]
video: tegra: host: gk20a: add missing returns

Bug 1375360

Change-Id: I20562349a45185e97ee2a3a1c9e3262ed302d76a
Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com>
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
Reviewed-on: http://git-master/r/376657
(cherry picked from commit af817f4a70c04203622a8d56068ed72f28dfe66b)
Reviewed-on: http://git-master/r/383227
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra: dtb: Add new file to support gpio-keys
Jeetesh Burman [Mon, 17 Mar 2014 09:14:15 +0000]
ARM: tegra: dtb: Add new file to support gpio-keys

Many GPIOs registered as interrupt are not applicable for PM375,
new file added for PM375 to support GPIOs which are applicable for
PM375.

Added file: tegra124-pm375-gpio-keys.dtsi

Bug 1475519

Change-Id: Ic7cdae2afa43751b3ba045f08c62dbb2c36b6562
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/382467
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra: config: disable BLUEDROID_PM
Jeetesh Burman [Tue, 18 Feb 2014 09:13:34 +0000]
ARM: tegra: config: disable BLUEDROID_PM

Disable BLUEDROID_PM in L4T defconfig.

Bug 1457135

Change-Id: I027e83cde9a37e244c473b35179cf1fe529ed9af
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/368728
Cherry-picked from 1217dac9195728b160e01749a222882d7519386c
Reviewed-on: http://git-master/r/376564
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra124: pm375: add pcie_usb_vbus consumer
Preetham Chandru R [Mon, 17 Mar 2014 07:14:25 +0000]
ARM: tegra124: pm375: add pcie_usb_vbus consumer

Bug 1466561

Change-Id: I4522495ed4d8d0ef39c4e3747f1e4413999b6633
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/382433
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: pm375 : Enable utmi1
Preetham Chandru R [Thu, 13 Mar 2014 11:35:50 +0000]
ARM: tegra: pm375 : Enable utmi1

Enable usb port included in the mPCIe

Bug 1466561

Change-Id: I0aaa655652bb7c6f27a082b0cd3909cbb4334057
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/381487
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

5 years agovideo: tegra: gpu debugger
Ken Adams [Thu, 27 Feb 2014 21:57:26 +0000]
video: tegra: gpu debugger

Add a control to manage SMPC context switch mode.
This is needed in reaction to the recent security
change which disabled set_falcon[5] etc.

Bug 1375360

Change-Id: Ia9d1a97a1b89b48538010d74207ff4d1b8852083
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/375772
(cherry picked from commit c3c7d8b60f62bc276d0e773994ea6e0a4d9422cb)
Reviewed-on: http://git-master/r/382743
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agovideo: tegra: host: gk20a implement priv access map
Ken Adams [Tue, 25 Feb 2014 00:30:00 +0000]
video: tegra: host: gk20a implement priv access map

This change enables a whitelist for priv register accesses on gk20a
through the set_falcon[4] path (used by usermode drivers).

Bug 1375360

Change-Id: I18274097fddaab0a15a8ad59f1d23f9e974a50e7
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/375651
(cherry picked from commit afd7fec44674af2569ac6443cf245e25786cc335)
Reviewed-on: http://git-master/r/376912
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agovideo: tegra: host: gk20a: Fix deferred mmu fault
Arto Merilainen [Fri, 7 Mar 2014 07:03:47 +0000]
video: tegra: host: gk20a: Fix deferred mmu fault

Deferred MMU fault did not clear stored mmu_fault_engines variable
and this caused the MMU fault handler to handle subsequent MMU fault
as a fake fault.

This patch modifies the code so that we clear the mmu_fault_engines
variable if we need to continue fault handling on channel tear down.

Bug 1472328

Change-Id: Iabec72575072b207aef1b05ef2f661d7dc8f3c40
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/378792
(cherry picked from commit 25d1566063ae030124c28780fb825e982a5a24e2)
Reviewed-on: http://git-master/r/381534
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoarm: tegra: add emc dvfs table for PM375
Bibek Basu [Mon, 17 Mar 2014 07:29:01 +0000]
arm: tegra: add emc dvfs table for PM375

Add EMC DVFS table for PM375

Bug 1454434

Change-Id: I83ef7cfcf65f5d1a4b7e7a711e6373e249439e34
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/382438
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agoarm: tegra: HDMI: fix 1080p low output swing for PM375
Jong Kim [Mon, 17 Mar 2014 23:05:55 +0000]
arm: tegra: HDMI: fix 1080p low output swing for PM375

Fix 1080p HDMI low output swing for PM375.

bug 1481888

Change-Id: Iad850d2e674a4f4fe3cc32020bba99004dc85eaf
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/382693
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Dan Coggin <dcoggin@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

5 years agoarm: tegra124: PM375: update soc0 machine name
Prabhu Kuttiyam [Fri, 14 Mar 2014 00:50:56 +0000]
arm: tegra124: PM375: update soc0 machine name

This commit adds a new machine name for PM375 boards.

bug 1395699

Change-Id: Ia07b86a03e2457b192095b0bb01cc7ee900641d7
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/381774
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra: dtb: add new compatible string
Prabhu Kuttiyam [Fri, 14 Mar 2014 00:47:54 +0000]
ARM: tegra: dtb: add new compatible string

This commit adds a new compatible string for pm375.
This string can be used in board init files to differentiate
between other boards.

bug 1395699

Change-Id: I8d1bcac377a730ac25c0a4d4814e510be4136384
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/381773
Reviewed-by: Eric Brower <ebrower@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra: pm375: enable thermal sensor
Bibek Basu [Fri, 7 Mar 2014 06:05:08 +0000]
ARM: tegra: pm375: enable thermal sensor

Enable thermal nct sensors for PM375

Bug 1476224

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

5 years agoarm: tegra: HDMI: set 1080p as default mode
Jong Kim [Fri, 14 Mar 2014 01:21:49 +0000]
arm: tegra: HDMI: set 1080p as default mode

Set 1920x1080 as default HDMI FBcon mode.
1080p is the current working common denominator for FBcon and
X11 without any anormally.
This change is the step 1 of ultimate fix for HDMI/DISPB clock
setting which is required for HDMI mode change from Ubuntu
desktop GUI.

bug 1395699

Change-Id: I6773b7dc1218491aa9fd9fe63903fbed2376cb14
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/381781
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

5 years agovideo: tegra: hdmi: unpowergate dc if powergated
Pankaj Dabade [Wed, 12 Mar 2014 11:55:27 +0000]
video: tegra: hdmi: unpowergate dc if powergated

Need to unpowergate DC before updating monitor specs.
updating monitorspecs triggers NEW_MODELIST call chain. This
will trigger pan display.

bug 1478898

Change-Id: If4a4616e63c2293d6b1bd6824123bfedf6520721
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/380343
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jong Kim <jongk@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoRM: tegra: config: disable PREPOWER_WIFI
Jeetesh Burman [Fri, 7 Mar 2014 05:09:56 +0000]
RM: tegra: config: disable PREPOWER_WIFI

Disable PREPOWER_WIFI from L4T defconfig.

Bug 1466881

Change-Id: Ie9db9632c0720e26ef13a5db14ac23c5a3260900
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/378745
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoarm: tegra: HDMI: set 720p as default mode
Jong Kim [Tue, 11 Mar 2014 18:41:13 +0000]
arm: tegra: HDMI: set 720p as default mode

Set 1280x720 as default HDMI FBcon mode.

bug 1395699

Change-Id: I7d7e865f417a1d8e8d97cfed6e6aa1c4333cd7ad
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/380451
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

5 years agoARM: tegra: dtb: add DT support for xusb
Preetham Chandru R [Thu, 6 Mar 2014 16:27:11 +0000]
ARM: tegra: dtb: add DT support for xusb

Bug 1466561

Change-Id: I4ce0962a48465a0423c883b41103bdc885ceaa0d
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/378429
GVS: Gerrit_Virtual_Submit
Reviewed-by: Joy Wang <joyw@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoarm: tegra124: PM375: update port config for xusb
Preetham Chandru R [Thu, 6 Mar 2014 13:45:46 +0000]
arm: tegra124: PM375: update port config for xusb

Bug 1466561

Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Change-Id: I950c55361e305f10944a2210a5b30a69dea52397
Reviewed-on: http://git-master/r/377877
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoiommu/tegra: smmu: remove sanity checks during dev notifications.
Krishna Reddy [Sat, 8 Feb 2014 00:49:48 +0000]
iommu/tegra: smmu: remove sanity checks during dev notifications.

arm_iommu_detach_device doesn't reset mapping to NULL.
remove sanity checks during device  notifications to avoid
incorrect warning messages.

Bug 1446597

Change-Id: I7a49cd9ba464a1007260260b5fe41113db0b7689
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/365172
(cherry picked from commit 246a182ef16776f9db88559b5b3c3d7b07ebd8cd)
Reviewed-on: http://git-master/r/375600
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoiommu: tegra: correct device attach/detach
Sri Krishna chowdary [Thu, 30 Jan 2014 09:29:49 +0000]
iommu: tegra: correct device attach/detach

attach/detach a device only if registered to use smmu

Bug 1446597

Change-Id: I99be7eb3ddeff8b9f8ec61dc06b09eeb66bbd1d6
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/361928
(cherry picked from commit 25e4750235628bc03dca21c0cbf30fe267761a93)
Reviewed-on: http://git-master/r/375599
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agodriver: vi: tegra_camera: correct pdev->id for DT
Bryan Wu [Fri, 21 Feb 2014 18:45:03 +0000]
driver: vi: tegra_camera: correct pdev->id for DT

DT will initialize the pdev->id as -1 for both vi.0 and vi.1. This
will cause several subtle issues since checking pdev->id is used a
in VI and Tegra V4L2 camera drivers.

Set the pdev->id as the right value during probing for DT case. Then
no change is need for others

drivers/video/tegra/host/vi/vi.c change was cherry picked from commit
b9de88f6b2362532edbab617fd2d824b83fcf059

Bug 1463966

Change-Id: I8adf124c4d3489e9c06abbecb6d3587437954c50
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/373000
(cherry picked from commit 4ca388fb943d17c7f7e8992fba04aac38714fdb2)
Reviewed-on: http://git-master/r/378471
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoSATA: tegra: handle gpio correctly
Bibek Basu [Thu, 6 Mar 2014 04:34:35 +0000]
SATA: tegra: handle gpio correctly

Handle port expander gpio correctly

Bug 1454434

Change-Id: I19a76ea70dc95aefad8db2a6b4f4f0cd05edfcda
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/378192
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoHID: usbhid: disable autosuspend for usb Keyboards
Petlozu Pravareshwar [Wed, 22 Jan 2014 12:35:30 +0000]
HID: usbhid: disable autosuspend for usb Keyboards

This change will disable the autosuspend for KBs.
This is to avoid the lag observed on the screen
while we type the characters.

Bug 1390065

Change-Id: Ic6f2247bf4e4fa2332329cd3e8dac15aad56354c
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Signed-off-by: Eric Brower <ebrower@nvidia.com>
Reviewed-on: http://git-master/r/358743
(cherry picked from commit 8d49c2b57d7edf721933bda082374f8bcf7915c2)
Reviewed-on: http://git-master/r/378119
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agovideo: tegra: host: Do not access cmdbuf_ext if NULL
Terje Bergstrom [Thu, 6 Feb 2014 09:18:03 +0000]
video: tegra: host: Do not access cmdbuf_ext if NULL

Fix dereferencing cmdbuf_ext even when it's NULL.

Bug 1452279
Bug 1452227

Change-Id: Iabd98ea6e6aab0b2cf8e04287d43361dee9aa699
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/364298
(cherry picked from commit 3d20989565ab3d34dea52f49bb3928d33427dca9)
Reviewed-on: http://git-master/r/377630
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agovideo: tegra: dc: select right windows for update
Pankaj Dabade [Wed, 5 Mar 2014 05:40:03 +0000]
video: tegra: dc: select right windows for update

Use win->idx instead of windows table index to select right window
for tegra_dc_update_windows and tegra_dc_windows_are_clean funcs.

bug 1467186

Change-Id: I2e0f660556ad175205f173ca28195ac788eca08b
Signed-off-by: Jong Kim <jongk@nvidia.com>
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/377514
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agol4t: kernel: Enable DEVTMPS config option
Arun G [Fri, 28 Feb 2014 22:51:30 +0000]
l4t: kernel: Enable DEVTMPS config option

Turn on CONFIG_DEVTMPFS and CONFIG_DEVTMPFS_MOUNT to
populate /dev nodes dynamically when devices are attached.

bug 1408020

Change-Id: If114019772cff529716575456ad6dd71e871ba5d
Signed-off-by: Arun G <arg@nvidia.com>
Reviewed-on: http://git-master/r/376171
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agomach-tegra: change fb size to support 4K
Yogish Kulkarni [Mon, 3 Mar 2014 14:03:42 +0000]
mach-tegra: change fb size to support 4K

Change fb memory size to support 4K resolution

Change-Id: I9bae86724d8c569a124939faed0b136778080a44
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/376261
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoTegra12x: defconfig: Add HDMI audio device
Rahool [Fri, 28 Feb 2014 06:49:51 +0000]
Tegra12x: defconfig: Add HDMI audio device

Add HDMI audio device

Bug: 1470703

Signed-off-by: Rahool Paliwal <rpaliwal@nvidia.com>
Change-Id: Ic289366f9a25853fb6faa2537790242c97e1c33b
Reviewed-on: http://git-master/r/375851
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Kaustubh Purandare <kpurandare@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agovideo: tegra: host: Reduce debug leve of ctx load
Terje Bergstrom [Wed, 26 Feb 2014 05:41:38 +0000]
video: tegra: host: Reduce debug leve of ctx load

A ctxsw firmware load debug message was with log level warning. That
is the expected behavior, so change the message to debug level.

Bug 1461370

Change-Id: Ibaaa2c18d04751dafe7a1e7fa280b8ecb23a4a70
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/374649
Cherry-picked from aa568f47dd80a5a922e5d768951e0bb734d14a87
Reviewed-on: http://git-master/r/375474
Reviewed-by: Jeetesh Burman <jburman@nvidia.com>
Tested-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agopcie: host: tegra: enable second root port
Bibek Basu [Tue, 25 Feb 2014 16:53:22 +0000]
pcie: host: tegra: enable second root port

Enable second root port for the x2, x1 configuration

Bug 1468239

Change-Id: I8e4b59940bc148d883c129cecc614a0173874219
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/374341
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra: pm375: update the minor rev of pmic
Bibek Basu [Tue, 25 Feb 2014 17:09:02 +0000]
ARM: tegra: pm375: update the minor rev of pmic

Update the  minor revision of pmic based in board_id

Bug 1454434

Change-Id: I986aa1183ff8aa06962f151f40aa2575b3901f6e
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/374342
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: host: gk20a: Do not defer ELPG init
Naveen Kumar S [Fri, 21 Feb 2014 11:44:38 +0000]
video: tegra: host: gk20a: Do not defer ELPG init

Currently the second phase of PMU initialisation runs asynchronously
with other code. This optimises the boot-up time, however, it may
cause unexpected race in PMU code as some functions are called while
the ELPG is still being initialised.

This patch modifies the ELPG initialisation to happen synchronously
as part of power on sequence.

Bug 1456985
Bug 1460116
Bug 1458353

Change-Id: Ic979b3e054a17c0bc6979da2cf03d98f8d416c26
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/368702
(cherry picked from commit 4100add7d80ff68669cec4f8f47b26e232dc7da5)
Reviewed-on: http://git-master/r/372853
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agovideo: tegra: dc: check DC suspend state
Pankaj Dabade [Fri, 14 Feb 2014 06:04:23 +0000]
video: tegra: dc: check DC suspend state

Check DC suspended state before updating window.
DC suspend function will disable dc but will only change
suspend status to true, while the enable status will
remain true. DC will be enabled by dc resume function.

bug 1452204

Change-Id: I55d44c8e84fd7025459dca1f9cec5a462aa1c842
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/363764
(cherry picked from commit 9bb217d8c2c7c55cc54c6a2281429ba169f7ddb6)
Reviewed-on: http://git-master/r/372681
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoUndo"video: tegra: gk20a: Fix protected elpg race"
Prabhu Kuttiyam [Thu, 20 Feb 2014 21:40:17 +0000]
Undo"video: tegra: gk20a: Fix protected elpg race"

This reverts commit 6e3a8322adfdfc07e045fc874242e7cbd8ec8553.

Change-Id: I206bcd01d716d81b222491ac7d8f5c156070bbe0
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/370167
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

5 years agovideo: tegra: host: gk20a: fix pmu sequencing
Eric Eells [Tue, 18 Feb 2014 23:32:30 +0000]
video: tegra: host: gk20a: fix pmu sequencing

Currently the access to pmu->pmu_seq_tbl is not
synchronized resulting in possble multiple uses
of the same sequence.

Bug 1458524

Change-Id: I50acf3a7c0988a11131e903e7b93cea478dc69a8
Reviewed-on: http://git-master/r/367488
(cherry picked from commit cb2c2c2e1c8da73dd062b195104077246347302d)
Signed-off-by: Eric Eells <eeells@nvidia.com>
Reviewed-on: http://git-master/r/370078
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agoarm: tegra: add emc dvfs table for PM359
Naveen Kumar S [Fri, 17 Jan 2014 09:18:46 +0000]
arm: tegra: add emc dvfs table for PM359

Add EMC DVFS table for Laguna-ERS-S (PM359)

bug 1354315
bug 1461523

Change-Id: Ida20f7797589559498db04df144e91e7c65f0588
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/357059
(cherry picked from commit 64cc409ccef04dfc0722c7dc3df4c0a37417240a)
Reviewed-on: http://git-master/r/368223
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agopcie: host: tegra: Fix Invalid IRQ warning for RP
Jay Agarwal [Mon, 10 Feb 2014 07:11:07 +0000]
pcie: host: tegra: Fix Invalid IRQ warning for RP

Initialize IRQ_LINE to non-zero before enumeration
to avoid warning for invalid IRQ.

Bug 1453145

Change-Id: Ifbed98cb15f4f57a77bdc59dff225ae7fbaa3684
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/365334
(cherry picked from commit aa2e12682fc91a25184b4f468644e008c5047274)
Reviewed-on: http://git-master/r/369131
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>