6 years agoarm: tegra: macallan: set the LDO5 to 2.8V
Hunk Lin [Sat, 11 May 2013 07:47:36 +0000]
arm: tegra: macallan: set the LDO5 to 2.8V

This rail is used for avdd of CAM2. Checked the datasheet of OV9772,
the avdd's typical value is 2.8V.

Bug 1287854

Change-Id: I9d38554f79d02cf1177c4a44c77b8b14d371e08a
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/227723
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoconfig: tegra[3,11]: mount devtmpfs before init
Mursalin Akon [Thu, 9 May 2013 16:00:34 +0000]
config: tegra[3,11]: mount devtmpfs before init

Without enabling mounting devtmpfs before init
from RFS, there is around 20 sec extra delay.

Bug 1286851

Change-Id: I7157ef59c2181dd639b7c1b52dd38ca18b0f6d52
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/227094
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoregulator: palmas: add config flags to configure regulator behavior
Laxman Dewangan [Thu, 9 May 2013 15:12:54 +0000]
regulator: palmas: add config flags to configure regulator behavior

Add the config variable on regulator init data to configure the rails
behavior like force off on suspend etc.

bug 1278567

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

6 years agonet: wireless: bcm4335: increase delay to avoid cmdTimeout
Om Prakash Singh [Mon, 29 Apr 2013 16:23:57 +0000]
net: wireless: bcm4335: increase delay to avoid cmdTimeout

increase delay before reading SBSDIO_FUNC1_SLEEPCSR
to wake sdio bus

Bug 1274359

Change-Id: I54c1bf199e2fe309d55ae52f0156c497b0c90144
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/226260
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agobrcmfmac: fix kthread_stop crash issue
Wei Ni [Thu, 22 Nov 2012 09:15:17 +0000]
brcmfmac: fix kthread_stop crash issue

When remove this module, there will call kthread_stop() to stop the
kernel thread. But sometimes, the thread will be exited by itself befor
calling kthread_stop, this will cause the crash.
I add a completion to fix this issue. If the kernel thread is exited by
itself, there will not call the ktherad_stop.

bug 1174020
bug 1179865

Change-Id: Iaea97cd57d63b0b64790017943860252b4080d75
Signed-off-by: Wei Ni <wni@nvidia.com>
Reviewed-on: http://git-master/r/165659
(cherry picked from commit c54aba042c92de7faaec7243c40ebb44b5117b00)
Reviewed-on: http://git-master/r/223009
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mursalin Akon <makon@nvidia.com>
Tested-by: Mursalin Akon <makon@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agoARM: tegra: dvfs: Add CL-DVFS platform flags
Alex Frid [Fri, 10 May 2013 02:28:32 +0000]
ARM: tegra: dvfs: Add CL-DVFS platform flags

Added flags entry to CL-DVFS platform data, and convert boolean I2C
output configuration entry into flag.

Change-Id: I22057e8e46d9c7db8737b78b6e2d3182ed9a9f15
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/227277
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: always use usec timer for persistent clock
Bo Yan [Sat, 27 Apr 2013 21:05:52 +0000]
ARM: tegra: always use usec timer for persistent clock

The 32K to 12M conversion is imprecise, this causes timer drift across
LP0 cycles. Use usec timer as persistent clock

Change-Id: Ib780eaf5661fcd12cbba2593bab8dd3f2f950641
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/223680
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Zilo Zhao <zzhao@nvidia.com>
Tested-by: Zilo Zhao <zzhao@nvidia.com>

6 years agousb: otg: tegra: no state change until otg resumes
Krishna Yarlagadda [Thu, 9 May 2013 11:17:48 +0000]
usb: otg: tegra: no state change until otg resumes

USB state change might involve removing ehci device which
should not be handled before drivers are resumed.
No state change while otg driver is still in suspend

Change-Id: Ib92c75ee3397a79b6e7770935f2004a9ad94fec1
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/227032
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>

6 years agoARM: tegra11: dvfs: Set maximum CPU voltage to 1.32V
Alex Frid [Thu, 9 May 2013 03:57:45 +0000]
ARM: tegra11: dvfs: Set maximum CPU voltage to 1.32V

Bug 1161126

Change-Id: Ib48def197e56e1cd243b869b40896e5aefffb4c0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/226945
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

6 years agovideo: tegra: host: Export actmon avg in sysfs
Arto Merilainen [Wed, 8 May 2013 05:52:18 +0000]
video: tegra: host: Export actmon avg in sysfs

This patch modifies 3d scaling profile to export actmon avg in
sysfs. The modification allows userspace governor to get the load
information without trusting debugfs.

Bug 1282779

Change-Id: Ifaebd48201ce33040be2c56309ec9bf38647f098
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/226583
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoarm: tegra: macallan: only register fuel gauge when using battery
Kerwin Wan [Tue, 7 May 2013 02:31:22 +0000]
arm: tegra: macallan: only register fuel gauge when using battery

Bug 1284421

Change-Id: I77051124f88ddc417bb99b994d0784c5d40d5411
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/225988
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra11: Add T40DC sku support
Alex Frid [Thu, 9 May 2013 04:35:33 +0000]
ARM: tegra11: Add T40DC sku support

Bug 1161126

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

6 years agoARM: tegra: dvfs: Remove debug read of CL-DVFS I2C space
Alex Frid [Wed, 13 Mar 2013 20:26:51 +0000]
ARM: tegra: dvfs: Remove debug read of CL-DVFS I2C space

Dual access to I2C registers from Cl-DVFS h/w and s/w running on cpu
is not allowed during CL-DVFS operations in closed loop. To prevent
possible collision with debugging/testing tools removed I2C divider
from CL-DVFS registers debugfs dump.

Change-Id: I22bebd22d308001ec425451fc4134256131d0b89
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/208945
(cherry picked from commit 3369942db6a252b824c1ebe7b93b978b3dafaeb7)
Reviewed-on: http://git-master/r/226909
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoARM: tegra11: pinmux: correct SDMMC3_CLK_LB_OUT and SDMMC3_CLK_LB_IN offset
Jay Cheng [Thu, 25 Apr 2013 12:14:02 +0000]
ARM: tegra11: pinmux: correct SDMMC3_CLK_LB_OUT and SDMMC3_CLK_LB_IN offset

Change-Id: Ia53a98a5dbf21e4a8779367edb6fba51614f02c7
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
Reviewed-on: http://git-master/r/222910
Reviewed-by: Andy Park <andyp@nvidia.com>
Tested-by: Andy Park <andyp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agousb: host: tegra: boost cpu frequency when bus is active
Rohith Seelaboyina [Thu, 9 May 2013 04:23:23 +0000]
usb: host: tegra: boost cpu frequency when bus is active

Boost cpu frequency (based upon TEGRA_EHCI_BOOST_CPU_FREQ)
when the usb bus is active and remove the boost when usb
bus is suspended.

Bug 1266414

Change-Id: Ic5b7b1ecc923caf7da458383112ed0e647448a57
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/226914
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agopower: max17048: get max17408 changes from rel-roth
Hayden Du [Wed, 8 May 2013 14:22:23 +0000]
power: max17048: get max17408 changes from rel-roth

this change include following cl form rel-roth
* 4661889 power: max17048: Fix SOC update
* 6039c5a power: max17048: Correcting the rcompseg value
* 1a3d63e power: max17048: update charge full status to GUI
* 0ab023f power: max17048: fix compilation warning
* ce48a3d power: max17048: schedule initial work immediatly
* 985f1af power: max17048: update only when soc changes
* c27312c power: max17048: display correct charging status
* 73cf40a power: max17048: resolve charging status update issue

bug 1283546

Change-Id: I4431d28f973f117b2bcbf29e95f6be8f183dcaec
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/226723
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: config: boost cpu frequency by 800
Rohith Seelaboyina [Wed, 24 Apr 2013 14:38:23 +0000]
ARM: tegra: config: boost cpu frequency by 800

set CONFIG_TEGRA_EHCI_BOOST_CPU_FREQ to 800.

Bug 1266414

Change-Id: Ida7850d22b2ca3f4545512cf0cbdc7e827a6eb3f
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/222526
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: usb: Add config option to increase cpu freq
Rohith Seelaboyina [Fri, 3 May 2013 11:01:27 +0000]
ARM: tegra: usb: Add config option to increase cpu freq

Adding an option to increase the cpu frequency
which can be used by the ehci driver.

Bug 1266414

Change-Id: I00f4251be3749800ac1f17ae6d430e37ffb1fe6b
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/222525
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: tegratab: Seamless display transition
Min-wuk Lee [Tue, 23 Apr 2013 00:50:29 +0000]
arm: tegra: tegratab: Seamless display transition

This change is for seamless display transition
on Tegratab between bootloader to kernel.

Bug 1246031
Bug 1274504

Change-Id: Ifc5cffd7767e2e859c71576f0015b660c2b1f94c
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/221821
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agousb: xhci: tegra: Correct RCTRL and TCTRL programming
Ajay Gupta [Fri, 3 May 2013 21:10:54 +0000]
usb: xhci: tegra: Correct RCTRL and TCTRL programming

Currently common PMC programming incorrectly programs TCTRL
and RCTRL values resulting in automatic connect/disconnect of
a pendrive from Kingston.
- Fixed RCTRL TCTRL logic in usb2.0 driver
- Fixed RCTRL TCTRL programming in xhci driver

Bug 1259555
Bug 1282360

Change-Id: Id8e340c3cd25d422919e962fc064bb345daa6c41
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/226413
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Tested-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agousb: xhci: tegra: TRCTRL/RCTRL programming
Krishna Yarlagadda [Wed, 8 May 2013 05:50:53 +0000]
usb: xhci: tegra: TRCTRL/RCTRL programming

TRCTRL/RCTRL values will always be zero due to a hw issue.
A WAR is in place and removing redundant code

Bug 1259555
Bug 1282360

Change-Id: If1153837fc0cc434810a8f126fcf9b7c9d670892
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/226628
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: usb: tegra: WAR for TCTRL/RCTRL
Krishna Yarlagadda [Wed, 8 May 2013 04:36:15 +0000]
ARM: usb: tegra: WAR for TCTRL/RCTRL

WAR for hw issue which occurs when both
synopsys and xusb are in use.
pmc override is required for TCTRL/RCTRL even when
pmc is not in control of bus.

Bug 1259555
Bug 1282360

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

6 years agoarm: tegra: remove __initdata keyword for bl_device's
Krishna Reddy [Wed, 8 May 2013 04:06:36 +0000]
arm: tegra: remove __initdata keyword for bl_device's

This device is accessed even after init section is removed.
This device can't be declared with  __initdata.
Bug 1247591

Change-Id: I04bd27dc73ca1305b5efe91a43b7ffda6b2ee042
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/226517
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agotegra: dc: hdmi: don't call tegra_dc_hpd in spinlock
Jon Mayo [Wed, 8 May 2013 01:10:11 +0000]
tegra: dc: hdmi: don't call tegra_dc_hpd in spinlock

Avoid calling gpio_get_value_cansleep() inside a held spinlock.

Change-Id: If0250a7a275cd8ad96de62432c83e0b948b359fd
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/226458
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: t114: disable CPA on t114
Krishna Reddy [Mon, 22 Apr 2013 23:37:06 +0000]
arm: tegra: t114: disable CPA on t114

CPA is not necessary on t114 as writecombine
memory accesses won't get data from cache

Change-Id: Iea1bc243898b6fd0bed733caa85479ed34a01b0c
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/221756
(cherry picked from commit faf6af925b38b1c1644b7e793843357118c09ad4)
Reviewed-on: http://git-master/r/224579
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agovideo: tegra: host: host1x clock scaling for vi
Terje Bergstrom [Mon, 11 Feb 2013 20:47:04 +0000]
video: tegra: host: host1x clock scaling for vi

Implement host1x clock scaling for vi driver. As actmon relies on
host1x clocks, we need to readjust the actmon history when host1x
clock is changed.

Bug 1278248

Change-Id: Ibcd3104c5fb674268d5bd54684874c2bd534a4b1
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/223066
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoworkqueue: fix spurious CPU locality WARN from process_one_work()
Tejun Heo [Sun, 22 Jul 2012 17:16:34 +0000]
workqueue: fix spurious CPU locality WARN from process_one_work()

25511a4776 "workqueue: reimplement CPU online rebinding to handle idle
workers" added CPU locality sanity check in process_one_work().  It
triggers if a worker is executing on a different CPU without UNBOUND
or REBIND set.

This works for all normal workers but rescuers can trigger this
spuriously when they're serving the unbound or a disassociated
global_cwq - rescuers don't have either flag set and thus its
gcwq->cpu can be a different value including %WORK_CPU_UNBOUND.

Fix it by additionally testing %GCWQ_DISASSOCIATED.

bug 1237774

Change-Id: I7ac841fb02f97c354f096df1715669acca0265b5
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
LKML-Refence: <20120721213656.GA7783@linux.vnet.ibm.com>
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/226758
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agotegra: dc: don't call tegra_dc_hpd in atomic context
Alexandre Courbot [Thu, 4 Apr 2013 18:37:16 +0000]
tegra: dc: don't call tegra_dc_hpd in atomic context

tegra_dc_hpd(), which uses gpio_get_value_cansleep(), is called from
tegra_dc_hdmi_resume() in atomic context. Move this call outside of the
atomic context to avoid potential lockup.

Change-Id: I983e58724727803c67a4145e11630746aff86a52
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-on: http://git-master/r/216593
(cherry picked from commit 65e0b90df3d17ae6d97234f61d1a4b4624d88feb)
Reviewed-on: http://git-master/r/226457
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: dsi: Fix clk cycle duration calculation
Vineel Kumar Reddy Kovvuri [Tue, 7 May 2013 11:16:30 +0000]
video: tegra: dsi: Fix clk cycle duration calculation

Fix clk cycle duration calculation.

Bug 1255929

Change-Id: I85e962f9cdd2e9989e3e197f32426e9ec1a93c0b
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/226171
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: tegratab: disable temp sensor
Harry Hong [Tue, 7 May 2013 10:28:41 +0000]
arm: tegra: tegratab: disable temp sensor

temp sensor has been removed since DVT baord.
So don't register if boardid is not E1569(EVT board)

bug 1278403

Change-Id: I8d2809f272716ae0db1d3791535f64517bbc1fe2
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/226147
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: macallan: set apply_uV for LDOs
Hunk Lin [Tue, 7 May 2013 09:51:18 +0000]
arm: tegra: macallan: set apply_uV for LDOs

apply_uV should be set if min == max, so change this flag for LDOs which
min == max.

Bug 1280145

Change-Id: I683b88c6ab011811a44a830550ef254f0e1ff609
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/226127
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: Tegra: Pluto: adjust SMPS45 tstep
Ming Wong [Mon, 6 May 2013 22:55:37 +0000]
ARM: Tegra: Pluto: adjust SMPS45 tstep

Changing SMPS45 tstep slew rate from 5mV/us to 2.5mV/us

Bug 1277313

Change-Id: Ifd43ac0699943b06e15aeb95e225140c9210e597
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/225899
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: macallan: enable dvdd of camera
Hunk Lin [Mon, 6 May 2013 13:54:51 +0000]
arm: tegra: macallan: enable dvdd of camera

As we are going to change the dvdd of camera to ldo4. So enable regulator
control in the board.

Bug 1280145

Change-Id: Ie4af9637507ff80bb170700727aea69773a863b0
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/225710
Reviewed-by: Hao Tang <htang@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11: clock: Add host1x shared bus
Alex Frid [Sat, 4 May 2013 03:08:12 +0000]
ARM: tegra11: clock: Add host1x shared bus

Change-Id: I01a49d7e810cd659be58a10afa5e7a95356df0a6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/225465
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: fuse: set fuse programming pulse to 12us
Ken Chang [Fri, 3 May 2013 06:32:26 +0000]
arm: tegra: fuse: set fuse programming pulse to 12us

The fuse programming pulse needs to be 12us for T114.
A cycle of fuse bit time is a period of OSC clock time,
thus FUSE_FUSETIME_PGM2_0 can be calculated based on the
OSC frequency of the specific board and how many cycles
needed with the specific OSC frequency.

The formula is FUSE_FUSETIME_PGM2_0 = CEIL(N * OSC in MHz)
where N = 12 for T114.

Bug 1273404

Change-Id: I8b4814fa16c500d6d371afac7738a8e9305c3843
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/225140
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agousb: xhci: tegra: enable refPLLE clock
Krishna Yarlagadda [Mon, 29 Apr 2013 08:59:11 +0000]
usb: xhci: tegra: enable refPLLE clock

ss/hs clocks depend on refPLLE clock
Make sure it is turned on before other clocks are used

Bug 1275799

Change-Id: Ice7715b80e535bffb0c2a233489b36556ea299e3
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Signed-off-by: Ajay Gupta <ajayga@nvidia.com>
Reviewed-on: http://git-master/r/223874
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agonet: wireless: bcmdhd: increase max cmd timeout count
Mohan T [Thu, 2 May 2013 04:16:54 +0000]
net: wireless: bcmdhd: increase max cmd timeout count

It seems BRCM chip is slow in processing commands when
there is huge command load from the host. In this
scenario we are getting more command timeouts.
Which is causing to generate a chip hang event.
So increase Max command timeout count to avoid Chips
hang event generation here.

Bug 1259834

Change-Id: I3777cb5b0fd5dcc806ccb2ddde1fafd00095d8a6
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/223819
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: enabling EDP_FRAMEWORK for macallan
Sivaram Nair [Mon, 6 May 2013 11:22:42 +0000]
ARM: tegra: enabling EDP_FRAMEWORK for macallan

Bug 1274376

Change-Id: Ia5ed7ec241b9dbae2e4265f1f84eef32b8ffa5b8
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/226233
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: add macallan psy_depletion board data
Sivaram Nair [Mon, 6 May 2013 11:24:13 +0000]
ARM: tegra: add macallan psy_depletion board data

Bug 1274376

Change-Id: I9e1245682dc8b43cc7350da65949e75c34b2a945
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/226232
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agopower: max17048: add ocv reading
Sivaram Nair [Mon, 6 May 2013 10:11:05 +0000]
power: max17048: add ocv reading

Bug 1274376

Change-Id: I14ec322b0a51dd8eb7c68af47c1e7e52408ce483
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/226231
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: adding macallan core client
Sivaram Nair [Mon, 6 May 2013 08:57:29 +0000]
ARM: tegra: adding macallan core client

Bug 1274376

Change-Id: I20c03a59b7e5b17b102e27b757c51cc1a13d5924
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/226230
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: add macallan sysedp manager
Sivaram Nair [Thu, 2 May 2013 13:00:11 +0000]
ARM: tegra: add macallan sysedp manager

Bug 1274376

Change-Id: Ic9347972b4d843935747d9e6be05bb937a1e1dcd
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/226229
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: pluto: adding psy_depletion board data
Sivaram Nair [Fri, 26 Apr 2013 09:27:18 +0000]
ARM: tegra: pluto: adding psy_depletion board data

Bug 1274376

Change-Id: Ib47c50b530e5a15c9679e81b33e121836edc5eca
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/226228
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoEDP: adding power-supply depletion driver
Sivaram Nair [Fri, 26 Apr 2013 06:36:17 +0000]
EDP: adding power-supply depletion driver

Power-supply depletion driver.

Bug 1274376

Change-Id: I1e18db9bb06a18bb1cc6446fe36ce8422bae67cf
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/226227
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agopower:max17042: remove battery depletion code
Sivaram Nair [Fri, 26 Apr 2013 12:09:10 +0000]
power:max17042: remove battery depletion code

Moving this into a separate drive

Bug 1274376

Change-Id: Ib9633968aa1b8a10e638b77448916a8384968490
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/226226
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: pluto: remove battery depletion data
Sivaram Nair [Fri, 26 Apr 2013 12:03:27 +0000]
ARM: tegra: pluto: remove battery depletion data

This will be replaced with the new common power-supply depletion
device's platform data

Bug 1274376

Change-Id: I375620d6e50ef8ae4390455eca066e37b8d1de2d
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/226225
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: pluto: restructuring system EDP code
Sivaram Nair [Mon, 6 May 2013 08:21:55 +0000]
ARM: tegra: pluto: restructuring system EDP code

Moving system EDP functions to board-pluto-power.c

Bug 1274376

Change-Id: I38aa90420026e89be8f8bb92f4f4bbc26a211c5f
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/226224
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoEDP: cosmetic restructuring
Sivaram Nair [Thu, 25 Apr 2013 08:35:59 +0000]
EDP: cosmetic restructuring

Renaming files to align with next set of changes

Bug 1274376

Change-Id: I3f8984f29165fcdd245b9ee8fb7499cc876b3fd6
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/226223
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: clock: Set EMC auto-cal interval from table
Alex Frid [Fri, 3 May 2013 00:58:08 +0000]
ARM: tegra: clock: Set EMC auto-cal interval from table

For EMC DVFS tables starting with rev 4.2 set auto-cal interval from
table after clock change.

Bug 1259352

Change-Id: Id9608278832cfe0895cf4172ae480f3d0eb8e347
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/225067
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: pluto: Update full cap to 2114.5mA
Chaitanya Bandi [Tue, 7 May 2013 05:02:51 +0000]
ARM: tegra: pluto: Update full cap to 2114.5mA

Bug 1281739

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

6 years agomisc: tegra-throughput: move fps node to sysfs
Ilan Aelion [Mon, 6 May 2013 23:06:29 +0000]
misc: tegra-throughput: move fps node to sysfs

Move node from debugfs to

    /sys/devices/virtual/misc/tegra-throughput/fps

Bug 1276548

Change-Id: I1a73f99922712e59d46fddc76707934fdd944de6
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/225902
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: fuse: error handling for FUSETIME_PGM2
Ken Chang [Mon, 6 May 2013 06:52:33 +0000]
arm: tegra: fuse: error handling for FUSETIME_PGM2

FUSETIME_PGM2 needs to be configured to the correct value before
programming the fuse. We should never use the default value and
assume it is correct if the returned value of pgm_cycles is zero.

Refuse to program the fuses by returning -EPERM for this case.

Bug 1273404

Change-Id: If46b932ee46bb95b11712559f54d337796b72062
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/225570
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: fuse: correct the register offset
Ken Chang [Fri, 3 May 2013 05:18:27 +0000]
arm: tegra: fuse: correct the register offset

For T114:
OSC_FREQ = CLK_RST_CONTROLLER_OSC_CTRL_0[31:28]
OSC_OVERRIDE_ENABLE = APBDEV_PMC_PLLP_WB0_OVERRIDE_0[8]

Bug 1273404

Change-Id: I3dbc93a825aef95040580f309a9cbc796afe6e1a
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/225135
Reviewed-by: Marc Delvaux <mdelvaux@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: dsi: Enable MIPI auto calibration
Vineel Kumar Reddy Kovvuri [Tue, 23 Apr 2013 10:03:34 +0000]
video: tegra: dsi: Enable MIPI auto calibration

Updated the auto calibration values.
Fixed call to register access function.

Bug 1166307
Bug 1283871

Change-Id: I39976bd3cbdcc09df682589c418b06281d7eec97
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/222028
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agommc: tegra: Consider zero trim value as valid
Naveen Kumar Arepalli [Fri, 3 May 2013 08:06:38 +0000]
mmc: tegra: Consider zero trim value as valid

Trim value of 0 is also valid and needs to be set explicitly as the
default trim value after reset could be non-zero in some cases.

Bug 1156152

Change-Id: I19148189082368a2bb21450478bcfc566c2e43ca
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/225170
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: t114: Update trim delay for eMMC DDR
Naveen Kumar Arepalli [Fri, 3 May 2013 06:05:25 +0000]
ARM: tegra: t114: Update trim delay for eMMC DDR

Set trim delay of 0 for eMMC DDR mode on dalmore, pluto,
roth and macallan.

Bug 1156152

Change-Id: Icf3e2786b4d97647e24b8d4c50a235c93ffae236
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/225165
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agovideo: tegra: nvmap: avoid tlb flush overhead related to arm errata 798181
Krishna Reddy [Wed, 1 May 2013 21:16:23 +0000]
video: tegra: nvmap: avoid tlb flush overhead related to arm errata 798181

The pte's setup by nvmap  during cache_maint and read/write operations
doesn't need to send IPI as a part of arm errata 798181. Use the new api
which avoids the IPI and overhead associated with it.
Bug 1272231

Change-Id: I9d65763a3948470893d250f16aef0c8173ee4350
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/224599
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoarm: smp: add tlb flush api to avoid 798181 errata overhead
Krishna Reddy [Wed, 1 May 2013 21:12:24 +0000]
arm: smp: add tlb flush api to avoid 798181 errata overhead

Bug 1272231

Change-Id: Ief53224f2b63a7e7bfa381f80031525ea28bab60
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/224596
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agomedia: video: tegra: OV7695 sensor kernel driver
kkim [Tue, 23 Apr 2013 05:54:06 +0000]
media: video: tegra: OV7695 sensor kernel driver

Bug 1269275

Change-Id: I2f7b9dded7ed5e06efd5875bc7990afc338ed3ce
Signed-off-by: kkim <kkim@nvidia.com>
Reviewed-on: http://git-master/r/222047
Reviewed-by: Jake Park <jakep@nvidia.com>
Tested-by: Jake Park <jakep@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: OV7695 tegratab board specific code
kkim [Tue, 23 Apr 2013 05:52:41 +0000]
arm: tegra: OV7695 tegratab board specific code

Bug 1269275

Change-Id: I1bc850986005569d903de4e6172f78f4089ac1e5
Signed-off-by: kkim <kkim@nvidia.com>
Reviewed-on: http://git-master/r/222046
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agopower: bq2419x: disable rtc alarm when rtc_alarm_time of charger pdata is 0
Hyongbin Kim [Mon, 22 Apr 2013 12:41:19 +0000]
power: bq2419x: disable rtc alarm when rtc_alarm_time of charger pdata is 0

Add option to disable rtc alarm set in bq2419x.
Disable rtc alarm when rtc_alarm_time is 0.

Bug 1242042

Change-Id: Iceeedbdb75283e5eb50da5915eb573e2b2afd74e
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/221584
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: tegratab: Use PMU reset when power off.
Hyongbin Kim [Mon, 22 Apr 2013 10:54:47 +0000]
ARM: tegra: tegratab: Use PMU reset when power off.

When user power off with charger connected, device should not be turned off.
Use PMU reset to goto bootloader and bootloader decide to power off or not
with checking charger connection.

Bug 1242042

Change-Id: I490268089d081a32bb918897a569a9285d47589d
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/221552
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agomfd: palmas: add PMU reset to be called from other driver.
Hyongbin Kim [Mon, 22 Apr 2013 10:45:57 +0000]
mfd: palmas: add PMU reset to be called from other driver.

In some case, device need to PMU reset instead of PMU power off.

Bug 1242042

Change-Id: I4981bcf8aa52e46a6b3a6bcd347aa5d9c0185973
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/221551
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: roth: add default rtc_alarm_time of charger pdata.
Hyongbin Kim [Mon, 22 Apr 2013 10:30:15 +0000]
ARM: tegra: roth: add default rtc_alarm_time of charger pdata.

bq2419x driver is changed to disable rtc alarm when rtc_alarm_time is 0.

Bug 1242042

Change-Id: I7315c92424566977be1d81e5106aee1c834277f8
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/221550
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: pluto: reduce system EDP cap to 14W
Sivaram Nair [Fri, 3 May 2013 17:48:04 +0000]
ARM: tegra: pluto: reduce system EDP cap to 14W

System failures are still noticed at 15W, so reduce the cap to 14W.

Bug 1275210

Change-Id: Ideba08004ee9b8024d1412abc38aaff696e2612b
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/225314
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agovideo: tegra: dc: use height for rotated bw calc
Jon Mayo [Tue, 5 Mar 2013 22:37:57 +0000]
video: tegra: dc: use height for rotated bw calc

Swap input width and height when calculating window bandwidth for rotated
windows.

Bug 1243957

Change-Id: I9f972e3dd7bcd8ca74596595a2066cb9d56de3b7
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/206438
(cherry picked from commit cf9b403efbb2c5f0ae825eb17b767571dadf2e80)
Reviewed-on: http://git-master/r/221317
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

6 years agoARM: tegra: pluto: Use battery info from command line
Chaitanya Bandi [Fri, 3 May 2013 10:53:22 +0000]
ARM: tegra: pluto: Use battery info from command line

Use battery presence information from kernel command line
and indicate through platform data to max77665 charger
and max17042 fuel guage.

Bug 1281739

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

6 years agopower: max77665: Get battery presence from pdata
Chaitanya Bandi [Fri, 3 May 2013 10:49:34 +0000]
power: max77665: Get battery presence from pdata

Battery presence will be obtained from platform data.
Removed battery presence detection through reading
temperature.

Bug 1281739

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

6 years agopower: max17042: Get battery presence from pdata
Chaitanya Bandi [Fri, 3 May 2013 10:43:00 +0000]
power: max17042: Get battery presence from pdata

Battery presence will be obtained from platform data.
Removed battery presence detection through reading
temperature.

Bug 1281739

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

6 years agoarm: mm: cpa: Fix redundant L2 flushes on t11x
Krishna Reddy [Tue, 18 Dec 2012 01:39:15 +0000]
arm: mm: cpa: Fix redundant L2 flushes on t11x

Bug 1198897

Change-Id: I2099a4ee8660fc8333cb9a6c54b9329a7e66d4e8
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/172090
(cherry picked from commit 55059981bc97372c34bed0901feada4ad9054f65)
Reviewed-on: http://git-master/r/224595
Reviewed-by: Abhinav Sinha <absinha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: nvmap: Fix redundant L2 flushes on t11x
Krishna Reddy [Tue, 18 Dec 2012 01:41:16 +0000]
video: tegra: nvmap: Fix redundant L2 flushes on t11x

Bug 1198897

Change-Id: I45ad1ce97bfe28a9c7e56b213072de8f3adaeeae
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/172089
(cherry picked from commit 9c34ab8114fd333ecdf7671911fa98b12c27c5d4)
Reviewed-on: http://git-master/r/224594
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Abhinav Sinha <absinha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: Tegra: Pluto: adjust SMPS123 tstep
Ming Wong [Wed, 1 May 2013 01:58:51 +0000]
ARM: Tegra: Pluto: adjust SMPS123 tstep

Changing SMPS123 tstep slew rate from 5mV/us to 2.5mV/us

Bug 1277313

Change-Id: I092a5c8943ab722b495ec935230e3dac7aa83f32
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/224467
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jay Cheng <jacheng@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoThermal: Add thermal events tracing (ftrace)
Timo Alho [Wed, 6 Mar 2013 17:37:25 +0000]
Thermal: Add thermal events tracing (ftrace)

Following two events in thermal framework are traced:
 - Call to handle_thermal_trip (thermal_zone_device name and temperature
   will be printed)
 - Call to thermal_cdev_update (thermal_cooling_device name and updated
   cooling state value will be printed)

Bug 1050412

Change-Id: If7e685ce26455820408d694fa720105ecae15469
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/207010
(cherry picked from commit c0e030667214f65b0ab49840081ea53d6df24d4a)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/225020
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra11: clock: Update emc efficiency
Alex Frid [Wed, 1 May 2013 04:05:03 +0000]
ARM: tegra11: clock: Update emc efficiency

Changed overall emc efficiency to 80% (from 100).
Moved iso share table to have all efficiency data in one place.

Change-Id: I4fef88c48b6c3f740e13f6dcec84cfc521b30ba1
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/224487
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Daniel Solomon <daniels@nvidia.com>
Tested-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agommc: tegra: Boost sclk and emc clk's for sdmmc4
Naveen Kumar Arepalli [Wed, 24 Apr 2013 07:53:10 +0000]
mmc: tegra: Boost sclk and emc clk's for sdmmc4

Boost emc clock to 100 MHz
Enable sclk for sdmmc4 and set 80MHz

Bug 1262190

Change-Id: Ibb5725ab1a65e57da52250c679bce9f41b181db9
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/222371
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: macallan: Change slew rate of vdd_cpu to 2.5mV/us
Hayden Du [Sat, 27 Apr 2013 09:29:31 +0000]
ARM: tegra: macallan: Change slew rate of vdd_cpu to 2.5mV/us

Changed rate of vdd_cpu to 2.5mV/us from 5.0mV/us due to undershoot
issue when voltage down scaling.
And adjusted sample rate of cl-dvfs to 11.5kHz according to slew rate.

Bug 1268516
Bug 1277890

Change-Id: I716e2c4e7862e4098d6ecccc8811f75d8e4e6300
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/223644
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agovideo: tegra: avoid null deref on nvdps read
Jon Mayo [Thu, 17 Jan 2013 17:21:41 +0000]
video: tegra: avoid null deref on nvdps read

When reading nvdps sysfs file, check mode to avoid a null dereference.

Bug 1032235

Change-Id: I27c125c887e7653d953cf15b4d96d889ef36652f
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/221329
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Philip Rakity <prakity@nvidia.com>
Reviewed-by: Philip Rakity <prakity@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra11: clock: add sdmmc4 to sclk
Naveen Kumar Arepalli [Thu, 18 Apr 2013 09:24:32 +0000]
ARM: tegra11: clock: add sdmmc4 to sclk

Add sdmmc4 to sclk as a client.
Increasing sclk freq helps sdmmc4 KPI.

Bug 1271529
Bug 1262190

Change-Id: I06b9e1f2e80e092e2ef866e1712e410174be5da3
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/220548
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: remove __initdata keyword for nvmap_device
Krishna Reddy [Mon, 22 Apr 2013 23:28:11 +0000]
arm: tegra: remove __initdata keyword for nvmap_device

nvmap_device was incorrectly marked as __initdata during
dalmore board files creation and it got carried forward to
boards that are created later onwards.
Bug 1247591

Change-Id: Id1f87b3d75e59d4846ee1227fee4ba0ff389007c
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/221754
(cherry picked from commit 2623f54a5f68e460c09641333dd780ceda7766c6)
Reviewed-on: http://git-master/r/224577
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: dalmore: remove __initdata keyword for dsi_p_wuxga_10_1_bl_device
Krishna Reddy [Tue, 23 Apr 2013 06:10:56 +0000]
arm: tegra: dalmore: remove __initdata keyword for dsi_p_wuxga_10_1_bl_device

This device is accessed even after init section is removed.
This device can't be declared with  __initdata.
Bug 1247591

Change-Id: Iee3bba93907ed9431f690d8223f7a44f710b5f68
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/221907
(cherry picked from commit d807730049fff6136347e94cfe4f337f3d7fcb3c)
Reviewed-on: http://git-master/r/224578
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Abhinav Sinha <absinha@nvidia.com>

6 years agousb: xhci: tegra: Fix handle for command ring empty and configure ep
joyw [Thu, 2 May 2013 04:35:47 +0000]
usb: xhci: tegra: Fix handle for command ring empty and configure ep

This patch is to have error handle when driver stop waiting cmd due to
"Signal" event. There are two issues that may happen when user try to stop
driver through "Signal".

1) Command ring empty, and this may cause HCD fetch a wrong dequeue trb
from cmd_ring for the next command.
2) No recourse clean up for configure ep. This may cause the next time
driver try to enable this endpoint fail.

This patch try to not inc_deq when command ring empty because the command that
going to stop is already finished. And wait for "stop cmd ring" complete.
Since this stop cmd is going to stop configure ep cmd, after "stop cmd ring"
complete indicate we can check configure ep status safely.

Bug 1271936

Change-Id: I858755a2717299ed17ea856cce89779726b87de6
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/224710
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: tegratab: speed up camera i2c clock
Jake Park [Mon, 22 Apr 2013 07:16:34 +0000]
arm: tegra: tegratab: speed up camera i2c clock

Changed camera i2c clock frequency from 100khz to 400khz to reduce
the i2c operation time.

Bug 1271714

Change-Id: Idfc503fb1f9e1b6e27e8f6d96a4f7ba697c2b6b0
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/221476
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: Tegra: Dalmore: At Fab05 Power tree
Graziano Misuraca [Tue, 23 Apr 2013 18:45:55 +0000]
ARM: Tegra: Dalmore: At Fab05 Power tree

Create separate power tree for Fab05 Dalmores.

Also correctly change the power-type for Fab02-
Fab05 dalmores to use the config2 power tree.

Bug 1259294

Change-Id: I9d9d1349c80febae8a647af6ad1a52fb4be0cdf5
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/222140
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agousb: xhci: tegra: sw WAR for correct TCTRL/RCTRL of USB2 pads
Ajay Gupta [Fri, 29 Mar 2013 22:19:15 +0000]
usb: xhci: tegra: sw WAR for correct TCTRL/RCTRL of USB2 pads

Also updated the programming of  XUSB_PADCTL_USB2_BIAS_PAD_CTL_0_0
as PD and PD_TRK should not always be set to '1'.

Bug 1259555
Bug 1275290

Change-Id: If2db465fa17bc7a54c0c2edfb58f132bbf9cc132
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/224608
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: EDP: init HPA02149AIYFFR
Hyungwoo Yang [Sun, 28 Apr 2013 04:40:18 +0000]
ARM: tegra: EDP: init HPA02149AIYFFR

This change init HPA02149AIYFFR which is used for battery EDP.

Bug 1240043

Change-Id: I62010bfb41fd63f958c2e50f1a7f512e68c250d9
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/222771
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoASoC: Tegra: Reset dcnt after each loop
Sumit Bhattacharya [Thu, 2 May 2013 15:46:54 +0000]
ASoC: Tegra: Reset dcnt after each loop

After each loop which decrements dcnt, dcnt should be reset to initial
value. Otherwise in failure condition next loop exit condition will
always fail.

Bug 1281310
Bug 1255915

Change-Id: I6b61f9bea8bee95d90fa05c4fb61a8b7c22be0b0
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/224923
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: clock: Add reset propagation delays
Alex Frid [Wed, 1 May 2013 20:14:44 +0000]
ARM: tegra: clock: Add reset propagation delays

Added explicit reset propagation delay in resume procedure.

Change-Id: I5ace9c33d5abccaf52eba5fe52482ab28a8060f9
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/224585
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoARM: tegra11: clock: Clean FIXME comments
Alex Frid [Sat, 27 Apr 2013 03:44:18 +0000]
ARM: tegra11: clock: Clean FIXME comments

Change-Id: Ia18d7d2493f53b55ae83ac1b27cfce07db8e00a0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/224584
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoARM: tegra11: power: Increase edp voltage thermal cap
Alex Frid [Wed, 1 May 2013 07:40:50 +0000]
ARM: tegra11: power: Increase edp voltage thermal cap

Since edp maximum voltage constraint is applied on top of CPU CL-DVFS
Vmax thermal profile, edp limit was re-characterized.

Bug 1270003

Change-Id: Ic8acb18429f89cd554342b1d7230fd49123ecd3a
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/224495
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: pluto: update unaligned_dma_buf_support properly
Rohith Seelaboyina [Tue, 30 Apr 2013 10:31:11 +0000]
ARM: tegra: pluto: update unaligned_dma_buf_support properly

update unaligned_dma_buf_support properly

Bug 1235943

Change-Id: I215b16a41af121b7cdc82188875f5052d5b473d7
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/224201
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoThermal: pid_thermal_gov: Skip unncessary throttle target calculation
Jinyoung Park [Mon, 29 Apr 2013 17:18:19 +0000]
Thermal: pid_thermal_gov: Skip unncessary throttle target calculation

Skip throttle target calculation if upper state and lower state are same.

Change-Id: I36d3ed7e324225ee03b3330f7ad80f0cd3e27457
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/223933
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: tegratab: support P1640.
Harry Hong [Mon, 29 Apr 2013 07:29:54 +0000]
ARM: tegra: tegratab: support P1640.

Changing keymap gpio and bt_en according to
P1640 board design.

bug 1278403

Change-Id: I83bf533faa39c725afd681a643c3cc90a7b61a34
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/223790
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agohwmon: ina230: support inverted polarity for shunt voltage
Hyungwoo Yang [Sat, 27 Apr 2013 21:39:16 +0000]
hwmon: ina230: support inverted polarity for shunt voltage

This change supports the case for polarity of shunt voltage is inverted.

Bug 1240043

Change-Id: Idfb87fd80694b61f1ec66be9aa815d7aedc95324
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/223682
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agogps_drv: remove error print
Rakesh Goyal [Wed, 24 Apr 2013 13:04:45 +0000]
gps_drv: remove error print

Remove error print as devproxy is now running in polling
mode and call this function frequently.

Bug 1250980

Change-Id: I5a41f205d18646ccc861a60c4ab3df0e7119d10e
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/222504
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegratab: enable OV7695 config
kkim [Tue, 23 Apr 2013 05:37:19 +0000]
ARM: tegratab: enable OV7695 config

Bug 1269275

Change-Id: I5b7aa09385a4a1d1e0c1ede6809e0cf70ca9e505
Signed-off-by: kkim <kkim@nvidia.com>
Reviewed-on: http://git-master/r/222045
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agovideo: tegra: host: improve FXDIV implementation
Ilan Aelion [Fri, 19 Apr 2013 22:41:04 +0000]
video: tegra: host: improve FXDIV implementation

Fixed point arithmetic is used in calculating 3d.emc clock rate
requests. Improve FXDIV implementation by using fls() rather than a
loop to derive count of leading zeros.

Bug 1268909

Change-Id: I26532bebe17d2233130d33d43b1b1ae707bd5876
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/221265
Reviewed-by: Paul Walmsley <pwalmsley@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: Tegra: tegratab: Update emc dvfs table
Yong Goo Yi [Tue, 30 Apr 2013 04:38:29 +0000]
ARM: Tegra: tegratab: Update emc dvfs table

Bug 1241146

Change-Id: I15637f4d31313015cb63d8b25cf76b998665a018
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/224119
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agodriver: sensor: change compass value from int to short
Robert Collins [Mon, 8 Apr 2013 17:35:11 +0000]
driver: sensor: change compass value from int to short

Bug 1266211

Change-Id: Ib4a9f9cd58bd526c0afd3d815b29f0a72defac79
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/217421
(cherry picked from commit 984398033a9f4c26454e2018ab025f52a115cf91)
Reviewed-on: http://git-master/r/216731
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Tested-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agotegratab: edit default LCD brightness to 60.
Hyongbin Kim [Wed, 24 Apr 2013 06:44:33 +0000]
tegratab: edit default LCD brightness to 60.

Reduce LCD brightness for power saving when charging and booting.

Change-Id: Icd00c5d3d2b1cfd2b0879580edc9e4d3d269cfee
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/222340
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: macallan: add HDMI electrical settings
Hayden Du [Wed, 1 May 2013 00:31:53 +0000]
ARM: tegra: macallan: add HDMI electrical settings

bug 1157049
bug 1259746

Change-Id: I0e19f104995e444bb12daef754c57d4f50f41c0f
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/224409
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>