7 years agoarm: tegra: p1852: Add i2s/tdm mode selection
Nitin Pai [Wed, 30 May 2012 10:56:25 +0000]
arm: tegra: p1852: Add i2s/tdm mode selection

Added code to select i2s vs tdm mode.
Added tdm-pcm-audio device defination.
Changed the pcm driver to use tdm-pcm-audio device.
Added fields to pass the pcm driver name to ASoC.
Added P1852_TDM config to KConfig and Linux defconfig

Bug 948478

Change-Id: I82fa03ab947cc615089e0a3107fb53901a1c00cd
Signed-off-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-on: http://git-master/r/105383
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agomedia: video: nvavp: Add audio channel support
Vandana Salve [Thu, 3 May 2012 10:37:48 +0000]
media: video: nvavp: Add audio channel support

Added support for audio channel.
Push buffers can be submitted on audio channel.

bug 964514

Change-Id: Ib13b6ed41678e9dcc170fddc64ab4646f960838b
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/97534
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>

7 years agoregulator: tps62360: fix stylistic issue and optimize code
Laxman Dewangan [Tue, 8 May 2012 11:35:58 +0000]
regulator: tps62360: fix stylistic issue and optimize code

Fix multiple stylistic issue like:
- The print message should be not break into multiple line.
- line gap after variable declaration and statement.
- checkpatch error.
- some typo.

Some enhancement on error message printing to print error value
also along with proper text.

Avoid voltage_base conversion to microvolts every time.
Put init functions in init section.
Using efficient function inplace of calling multiple function
to reduce the code size.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 2935fb18aa1e75e6afaab3303cdd1a4ac62be63e)

Change-Id: I988938f8f8cc6fb5355e32bd6ac25d95db94913c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/105831
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoregulator: tps62360: Provide settling time for voltage change
Laxman Dewangan [Mon, 7 May 2012 12:38:26 +0000]
regulator: tps62360: Provide settling time for voltage change

Settling time is require when there is voltage output change.
Implement set_voltage_time_sel() callback which returns delay time
for voltage change to settle down to new value.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit a60cfce051dd5e22329df1018d278bf3e52d82bc)

Change-Id: I522df8a72595622fd99cc46043c34610434d932f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/105830
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoregulator: tps62360: enable register cache
Laxman Dewangan [Mon, 7 May 2012 12:38:25 +0000]
regulator: tps62360: enable register cache

Enable cache of device register using regmap cache RBTREE.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 16ea003bd1c95ea55a0b88187ce7cbeaca760fcf)

Change-Id: If747dd18a488d500f8295f903c8da92c241c293e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/105829
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoregulator: tps62360: Convert to devm_regmap_init_i2c()
Axel Lin [Sat, 7 Apr 2012 15:29:56 +0000]
regulator: tps62360: Convert to devm_regmap_init_i2c()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 9a4bdd87a29bf297d9046410b011d726d51c3999)

Change-Id: Ic7cca64e14b2b2e812140c8d368279b615da074f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/105828
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoregulator: Add support for tps62362 and tps62363 in tps62360-regulator driver
Axel Lin [Mon, 2 Apr 2012 10:19:28 +0000]
regulator: Add support for tps62362 and tps62363 in tps62360-regulator driver

According to the datasheet[1], tps62360 is register compatible with tps62362.
tps62361B is register compatible with tps62363.
Thus this patch adds support for tps62362 and tps62363.

[1] http://www.ti.com/litv/pdf/slvsau9b

Change-Id: I62cdede0755d7decedeb7b1ef08e216a0dad3a12
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(Cherry-picked from mainline commit d1cf4f6)

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: Ib9c4a63f06182c0ed2c1f27d9bf63342aa8474bc
Reviewed-on: http://git-master/r/105827
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoregulator: Remove unused name and client fields from struct tps62360_chip
Axel Lin [Wed, 28 Mar 2012 02:06:45 +0000]
regulator: Remove unused name and client fields from struct tps62360_chip

The client field of struct tps62360_chip is not used after converting to regmap.
The name field of struct tps62360_chip is not used in this driver.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from mainline commit c60f1718f508a40964c149f1139b4eaaae825fd3)

Change-Id: If7b0606b60bd887bc20ecbdaf5cafa6ccba8ff77
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/105826
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoregulator: tps62360: Remove pointless test for unsigned less than zero
Axel Lin [Tue, 7 Feb 2012 03:06:20 +0000]
regulator: tps62360: Remove pointless test for unsigned less than zero

The variable 'selector' is a 'unsigned int', so it can never be less than zero.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 46783a046e13588f0459271ad6db9785fa8dcb8b)

Change-Id: I920b1628016b7d1c0b626497f24210c5c1f549ab
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/105825
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoarm: tegra: usb: fix UTMIP auto suspend issues
Rakesh Bodla [Thu, 31 May 2012 16:02:23 +0000]
arm: tegra: usb: fix UTMIP auto suspend issues

Fixing the UTMIP auto suspend issues.

Bug 992463
Bug 989400

Change-Id: Ia0d536cd66081b263f7f2bde5debcc600dcef22a
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/105692
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoARM: Tegra: P1852: changed pad strengths
Mohit Kataria [Thu, 31 May 2012 05:00:28 +0000]
ARM: Tegra: P1852: changed pad strengths

changed pad strengths to the values provided
by syseng.

Bug 978870

Change-Id: I23afc8235065ce8ab950dc92dc40e7df5f835989
Signed-off-by: Mohit Kataria <mkataria@nvidia.com>
Reviewed-on: http://git-master/r/105578
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: enterprise: add gpio for pmu msecure
Tom Cherry [Tue, 22 May 2012 02:03:49 +0000]
arm: tegra: enterprise: add gpio for pmu msecure

Bug 986402

Change-Id: Icf06b136c602639fc84ea822db8cf54078ace5fd
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/104270
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agortc: tps80031: add msecure support
Tom Cherry [Tue, 22 May 2012 01:38:13 +0000]
rtc: tps80031: add msecure support

Bug 986402

Change-Id: Id12540e31f8d7d9a04d764ed012310a685eafb8d
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/104269
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: tegra: cleanup wake header usage
Bitan Biswas [Tue, 29 May 2012 16:45:25 +0000]
ARM: tegra: cleanup wake header usage

Removed unused wake header file from Tegra board files

bug 980993

Change-Id: I61d919a2dc5b98caaca612b990fd1a7d06e76ae2
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/103622
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: Tegra: changed pingroups
Mohit Kataria [Thu, 31 May 2012 04:47:09 +0000]
ARM: Tegra: changed pingroups

Changed pingroups with proper bit fields
provided in TRM.

Bug 978870

Change-Id: Ie02ff14448103c70e27149ac95cd487d33ab52c0
Signed-off-by: Mohit Kataria <mkataria@nvidia.com>
Reviewed-on: http://git-master/r/103353
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: Enable config NVMAP_CACHE_MAINT_BY_SET_WAYS.
Krishna Reddy [Wed, 23 May 2012 23:03:14 +0000]
arm: tegra: Enable config NVMAP_CACHE_MAINT_BY_SET_WAYS.

Change-Id: Ia6dccfbd0464bc088dfcb05cc16e7f2ad35a9783
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/104291
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agovideo: tegra: Config option for cache maint by set/ways.
Krishna Reddy [Wed, 23 May 2012 23:00:07 +0000]
video: tegra: Config option for cache maint by set/ways.

Add config option to enable/disable cache maintenance by set/ways.

Change-Id: Ie795e19650b2c05cd4789dbc1e8f04f9edc70bf1
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/104290
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

7 years agoARM: tegra: kai: Remove tegra_gpio_enable/disable
Ashwini Ghuge [Wed, 16 May 2012 11:17:53 +0000]
ARM: tegra: kai: Remove tegra_gpio_enable/disable

Removing tegra_gpio_enable and disable calls
from board files as they are supported thorugh
set direction calls in the driver

Bug 984439

Change-Id: I4ec51c8eb68c373b7cec6903bf52539cd520b227
Reviewed-on: http://git-master/r/102813
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: pci: Support for dock hot plug
Jay Agarwal [Wed, 30 May 2012 13:30:33 +0000]
arm: tegra: pci: Support for dock hot plug

PCIE dock detection is done using GPIO for cardhu
e1291 board. Currently supporting only hotplug
disconnect when all pcie devices will be stopped
and will not work on hotplug connect later.

Bug 912743
Bug 955043
Bug 946385

Change-Id: Ibb2869c12e193be5e6e7e057e149e7699598a061
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/87315
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoserial: tegra: disable interrupt when changing configuration
Laxman Dewangan [Wed, 23 May 2012 11:46:59 +0000]
serial: tegra: disable interrupt when changing configuration

Disable the interrupts when the baudrate or any uart
configuration. This will avoid the interrupt to be call
when configuration is getting change.

bug 984164
bug 969087

Change-Id: Id008964773237726a0ec4a04c428d3975bf3ebd9
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/104476
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Yu (Engrg-SW) <davyu@nvidia.com>
Tested-by: David Yu (Engrg-SW) <davyu@nvidia.com>

7 years agoASoC: tegra: remove compilation warning
Juha Tukkinen [Wed, 30 May 2012 14:04:48 +0000]
ASoC: tegra: remove compilation warning

Ensure i2s_client_bits and i2s_audio_bits do not get used
uninitialized.

Bug 949219

Change-Id: Ibdd7f2598278639388d2c2afb5843f2471375ea2
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/105426
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>

7 years agovideo: tegra: host: Remove nvhost dsi driver
Terje Bergstrom [Mon, 28 May 2012 12:49:54 +0000]
video: tegra: host: Remove nvhost dsi driver

Remove nvhost dsi driver. Real dsi driver is in tegradc.

Bug 982965

Change-Id: I86044ba586d796ae8d049471a154dcf37bd0e6ed
Reviewed-on: http://git-master/r/104975
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agoARM: tegra: ventana: get rid of gpio enable/disable calls
Sanjay Singh Rawat [Mon, 28 May 2012 09:09:07 +0000]
ARM: tegra: ventana: get rid of gpio enable/disable calls

Gpio direction setting and freeing functions will do the needful now.

Bug 984440

Change-Id: I598cfbda4ac1d8fe7a61fe070abc92c5179807e9
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/104493
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: power: Go to G-CPU if minimum 1 is requested
Alex Frid [Sat, 12 May 2012 07:16:31 +0000]
ARM: tegra: power: Go to G-CPU if minimum 1 is requested

On Tegra3 switch and stay on G-CPU if minimum 1 is requested via
PM QoS interface. Allow return to LP-CPU only if request is at
default 0 level.

Change-Id: Ie1a732fe6c6a1dcd2f7e78be01e32dcc5a7993a6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/102120
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoPM QoS: Set minimum online cpus default to zero
Alex Frid [Sat, 12 May 2012 06:39:24 +0000]
PM QoS: Set minimum online cpus default to zero

Change default PM QoS request value for minimum online cpus
parameter from 1 to 0. This is consistent with all other
PM_QOS_MAX type parameters, and allow to differentiate request
for 1 CPU and "no request".

Change-Id: I548449d0b7a443b77f7f065e1e1f10dffc5587ed
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/102119
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agovideo: tegra: host: Use correct units in default timeout
Terje Bergstrom [Tue, 29 May 2012 04:51:49 +0000]
video: tegra: host: Use correct units in default timeout

Convert the jiffies to msecs when assigning a channel the default
timeout.

Change-Id: If9b6fb7c695e9621a0c50d99d4d1362b6dd214b6
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/105022
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoasoc: codecs: ALC5639/40: Change to reduce codec pwr in lp0
Manoj Gangwal [Thu, 24 May 2012 14:00:36 +0000]
asoc: codecs: ALC5639/40: Change to reduce codec pwr in lp0

Bug 964287

1) Add support for resetting the codec while entering in lp0
   state to save codec power in lpo for KAI.
2) Fix for cache sync.
3) Add index sync functionality.

Change-Id: I04039eb55944bfe7f06e6a1405ac3c810c5688a1
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/104480
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoarm: tegra: usb: add null ulpi baseband ops
Rakesh Bodla [Wed, 30 May 2012 11:48:54 +0000]
arm: tegra: usb: add null ulpi baseband ops

Adding the implementation of null ulpi
 baseband ops.

Bug 991485

Change-Id: Ic5ed9b2143650a07528189c80c5b6b8b8a9657c7
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/105398
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agomedia: video: tegra: space correction
Preetham Chandru [Tue, 29 May 2012 16:11:59 +0000]
media: video: tegra: space correction

A space is missing between the words 'an' and 'independent'
in the print statement:
dev_info(&info->i2c_client->dev,
"%s no regulator found for %s. "
"This board may not have an"
"independent %s regulator.\n",
__func__, info->vreg[j].vreg_name,
info->vreg[j].vreg_name);

Bug 991768
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>

Change-Id: Idde809c162b3b32c1db57436273af1810f03000a
Reviewed-on: http://git-master/r/105157
Tested-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agovideo: tegra: host: Fix error case memory leaks
Terje Bergstrom [Tue, 29 May 2012 15:30:16 +0000]
video: tegra: host: Fix error case memory leaks

When a submit fails, the related nvhost_job is not freed. Add an
explicit free. Also, 3D is mapping the save buffer, but it is not
unmapped.

Bug 991972

Change-Id: Ie335adb5e64f54557e76d12dfb6a9a1557781e8d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/105152
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agoARM: tegra: usb: enable pmu vbus interrupts
Krishna Yarlagadda [Tue, 29 May 2012 14:39:34 +0000]
ARM: tegra: usb: enable pmu vbus interrupts

Enable pmu vbus interrupt for Enterprise and Whistler
to save power by turning off controller clock

Change-Id: I691bdd76ca71d63d98f83e2a3a18bbfcfc16a473
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/105150
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: usb: fix suspend resume issues of ULPI phy
Venu Byravarasu [Tue, 29 May 2012 07:42:21 +0000]
arm: tegra: usb: fix suspend resume issues of ULPI phy

Fixing suspend resume issues observed with ULPI phy during
entering/exiting LP0 on enterprise.

bug 989510

Change-Id: Iaf5da7597281b5e1a78df7bdf32c46422cb5c6ef
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/104959
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agomedia: video: ov2710: add sensor group hold
Pablo Ceballos [Thu, 22 Mar 2012 21:59:56 +0000]
media: video: ov2710: add sensor group hold

Implements a group hold so that the gain, frame length, and
coarse time can all be written in one ioctl call

Also fixes AEC manual control register value

Also implements bulk i2c send in the same way as ov5650

Bug 953910

Change-Id: Iaa2e8ac6c0156564920696afaa099321db6314f6
Signed-off-by: Pablo Ceballos <pceballos@nvidia.com>
Reviewed-on: http://git-master/r/94380
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoarm: tegra: kai: disable hotplug for usb instance 1
Hunk Lin [Wed, 30 May 2012 05:56:29 +0000]
arm: tegra: kai: disable hotplug for usb instance 1

Kai's USB1 instance is used for modem, so disabling
the hotplug.

Bug 989441
Bug 989400

Change-Id: Ia1e84a727f8343a55d6afc5360b35e5afed6947c
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/105315
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoarm: tegra: cardhu: pm298: do not enable wakeup for interrupt keys
Johnny Qiu [Sat, 28 Apr 2012 08:37:11 +0000]
arm: tegra: cardhu: pm298: do not enable wakeup for interrupt keys

Bug 975433

MAX77663 driver hasn't implemented irq_set_wake(). Actually its
interrupt always wakes up AP. Set wakeup = false to reduce warning
messages in kernel

Change-Id: If3e44fea359e363bd99ec415f7be3c4b3945205e
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/100000
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoi2c: tegra: Fix possible race condition.
Laxman Dewangan [Wed, 7 Mar 2012 06:41:41 +0000]
i2c: tegra: Fix possible race condition.

on tegra3, the i2c communication start immediately
after writing the tx fifo. And hence there is possibility
to complete the transfer and generates done interrupt before
actually sw updates their local pointers/count.
This patch will make sure that pointers/count can
get updated before data written into the fifo.

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

Change-Id: I8e974b83b5306ec3363d4ca31ce1b539a498ca08
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/99997
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agosdhci: tegra: Do not exceed platform voltage limits
naveenk [Fri, 25 May 2012 09:36:34 +0000]
sdhci: tegra: Do not exceed platform voltage limits

check for platform limits before setting the voltage

Bug 979504

Change-Id: Iea78be15d6a0eea0f4344c9b78ff9366f4759af8
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/104711
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: resolve compilation time warnings
Sanjay Singh Rawat [Mon, 28 May 2012 07:20:58 +0000]
arm: tegra: resolve compilation time warnings

Warnings removed are related to unused variables/labels,
structure/argument type mismatch, copyright update, function return
type mismatch and wrong C coding style.

Bug 949219

Change-Id: Ib748d12d5ab3cfc35118be28c29983081cca6cbb
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/103770
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoarm: tegra: pcie: resolve flaw in lp0 save state
Jay Agarwal [Fri, 18 May 2012 06:46:28 +0000]
arm: tegra: pcie: resolve flaw in lp0 save state

1. Restoring control register correctly.
2. Enabling clock clamping while resume

Bug 959642

Change-Id: Ic97306b4dfed0e131274aa93b35dba3f906e55be
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/103127
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agovideo: tegra: host: Dump sync queue in debug dump
Terje Bergstrom [Mon, 28 May 2012 11:06:05 +0000]
video: tegra: host: Dump sync queue in debug dump

Dump contents of sync queue when debug dump is requested, either
because of a stuck sync point, or when the debugfs entry is accessed.

Exclude FIFO from normal debugfs dump. Dumping FIFO is invasive and
actually changes how the channel behaves. It's safe to dump only when
system is in fault condition.

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

7 years agovideo: tegra: host: Throttle lower priority jobs
Terje Bergstrom [Mon, 28 May 2012 08:56:54 +0000]
video: tegra: host: Throttle lower priority jobs

Implement per channel counter for jobs in each priority level. If
there are jobs active with higher priority than the one being
submitted, throttle.

Bug 926690

Change-Id: I5fed341e3f248325873b31d1c53bf57bf0a78074
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/104939
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

7 years agovideo: tegra: nvmap: Remove nvhost specific APIs
Terje Bergstrom [Thu, 24 May 2012 11:18:28 +0000]
video: tegra: nvmap: Remove nvhost specific APIs

Remove nvmap_pin_array() and nvmap_patch_word() and their utility
functions.

Bug 965206

Change-Id: I217a427934b0b99b5252b33ab3ac4eaaa8c7e076
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/104451
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agoARM: tegra: Add config for new focuser ad5816
Sudhir Vyas [Thu, 17 May 2012 15:20:14 +0000]
ARM: tegra: Add config for new focuser ad5816

Add config param for new focuser ad5816 driver
in tegra3 defconfig.

Bug 947792

Change-Id: Ie34a982ac120abd7c9f980c9f038a734845b6f02
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/103143
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoARM: tegra: Add ad5816 focuser board support
Sudhir Vyas [Thu, 17 May 2012 14:32:22 +0000]
ARM: tegra: Add ad5816 focuser board support

- Add support for new focuser ad5816 driver to
cardhu boards.
- Add regulator for new focuser ad5816.

Bug 947792

Change-Id: I62e89e9188d307704098e2d4e88d276914836d70
Signed-off-by: Sudhir vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/103138
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: cardhu: disable hotplug for usb instance 1
Rakesh Bodla [Fri, 25 May 2012 12:45:01 +0000]
arm: tegra: cardhu: disable hotplug for usb instance 1

USB 1 instance is used for modem, so disabling
the hotplug.

Bug 989441
Bug 989400

Change-Id: I94ad80e75f5b1f5d2cdb009e0d474943e11393e3
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/104748
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: usb_phy: fix remote wakeup issues
Rakesh Bodla [Fri, 25 May 2012 12:44:18 +0000]
arm: tegra: usb_phy: fix remote wakeup issues

This change fixes remote wakeup issues
when usb line is in suspend state.

Bug 989441
Bug 989400

Change-Id: I90a417c1d0a5e273c87a079133bb0ca1b4d18041
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/104747
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agousb: ehci: tegra: fix remote wakeup issues
Rakesh Bodla [Fri, 25 May 2012 12:40:07 +0000]
usb: ehci: tegra: fix remote wakeup issues

This change fixes remote wakeup issues
when usb line is in suspend state.

Bug 989441
Bug 989400

Change-Id: I97982943d5521470b83ed87b83ab8703c4e9c260
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/104746
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoarm: tegra: p1852: Instantiated TDM mode driver
Nitin Pai [Tue, 22 May 2012 14:26:35 +0000]
arm: tegra: p1852: Instantiated TDM mode driver

Instantiated TDM mode driver.
Changed clock values for TDM mode.

Bug 948478

Change-Id: I64fb6c6f3ff0d573494656ae04f29323a41da50a
Signed-off-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-on: http://git-master/r/103895
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoASoC: Tegra: Add support for AVP rendering
Sumit Bhattacharya [Fri, 20 Apr 2012 12:11:16 +0000]
ASoC: Tegra: Add support for AVP rendering

Add alsa controls to specify which alsa device is used by AVP to render
audio. Also add support for disabling DMA interrupt when AVP renders
audio. Also add couple of alsa controls to query DMA channel ID and
DMA buffer physical address.

Bug 968814
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: If593329db72bf00d97f7433f5c54e13500281253
Reviewed-on: http://git-master/r/97916
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: clock: Update secondary pll dividers resume
Prashant Gaikwad [Fri, 25 May 2012 05:18:09 +0000]
ARM: tegra: clock: Update secondary pll dividers resume

During resume from LP0 on Tegra2 always enable pll secondary dividers
before clocks restoration (to make sure clock sources are enabled).
Restore actual secondary dividers settings after clocks are restored.

Bug 965928
Bug 953030

Change-Id: Id0cd99b601f90ad9fe8452817810969e41002199
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>

Reviewed on http://git-master/r/#change,104661
(cherry picked from commit 6350d1fd475373779cf5110403717b2c84e723ba)

Change-Id: Ic50477603b97a99d2ac2c926df1728faa107b108
Reviewed-on: http://git-master/r/104668
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoarm: tegra: cardhu: remove unused pinmux setting
Rakesh Goyal [Thu, 24 May 2012 13:33:11 +0000]
arm: tegra: cardhu: remove unused pinmux setting

Remove unsued pinmux for pn544 nfc which was introduced in
http://git-master/r/#change,62746

Bug 978207

Change-Id: I7724e9c17c8c5717e07fbc9e091f26f6e81cb422
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/104468
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agospi: tegra: use functions to avoid duplicated code
Laxman Dewangan [Thu, 24 May 2012 12:56:54 +0000]
spi: tegra: use functions to avoid duplicated code

The dma allocation method for receive and transmit is
same and so instead of duplicating the same code for
rx and tx, making the function to have common code and
using the function for dma allocation.
This reduces duplicated code.

Change-Id: Ibe15eec896bc581bda8c68572eb1425c3bf6a7b2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/104465
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agospi: tegra: use devm_* for resource allocation
Laxman Dewangan [Thu, 24 May 2012 10:47:29 +0000]
spi: tegra: use devm_* for resource allocation

Using of devm_* function for resource allocation does not require
to free resource on code and hence it reduces code sizes.

Change-Id: Id6f0ba3cde2f351d5668ed28b098e5a829716a30
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/104464
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agospi: tegra: fix fifo_depth to 32.
Laxman Dewangan [Thu, 24 May 2012 12:52:29 +0000]
spi: tegra: fix fifo_depth to 32.

Slink controller have the fifo depth of 32 words in
rx and tx side. But some of places it was taken the
value as 4. Fixing this to 32 words.

Change-Id: I262127c59241ce75d4385464c21ee733a48b1475
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/104463
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agovideo: tegra: host: Replace nvmap structs with own
Terje Bergstrom [Thu, 24 May 2012 12:06:58 +0000]
video: tegra: host: Replace nvmap structs with own

Replace usage of nvmap_pinarray_elem with own nvhost_reloc and
nvhost_reloc_shift structs.

Bug 965206

Change-Id: I90618d8a34d79156d8880d9925dadbf416353811
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/104450
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

7 years agoASoC: tegra: treat compilation warning as error
Sanjay Singh Rawat [Thu, 24 May 2012 11:09:37 +0000]
ASoC: tegra: treat compilation warning as error

Bug 949219

Change-Id: Ic8976b008772220299369369427a80dd370df596
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/104419
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: host: Merge waitchk and relocation
Terje Bergstrom [Thu, 24 May 2012 08:30:30 +0000]
video: tegra: host: Merge waitchk and relocation

Job pinning and relocation already maps the gather buffers to
kernel memory. Move waitchk to be done at the same time so that we
do not need to re-map the memory to patch expired waits.

Bug 965206

Change-Id: I23634b501a45de080200e57d3debf267b39fea38
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/104415
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

7 years agoASoC: resolve compilation time warnings
Sanjay Singh Rawat [Tue, 22 May 2012 04:57:38 +0000]
ASoC: resolve compilation time warnings

Bug 949219

Change-Id: If7b4dd928cc5a808fd1a674bcc5f31c9a396a043
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/103772
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: kai: configure gpio direction for bluesleep
Om Prakash Singh [Mon, 21 May 2012 13:38:09 +0000]
arm: tegra: kai: configure gpio direction for bluesleep

Bug 986813

Change-Id: Iaca0465041af3442da8e052e3efec1efa60d0d79
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/103632
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: cardhu: Remove tegra_gpio_enb/disable
Ashwini Ghuge [Wed, 16 May 2012 11:43:28 +0000]
ARM: tegra: cardhu: Remove tegra_gpio_enb/disable

Removing tegra_gpio_enable and disable calls
from board files as they are supported through
set direction calls in the driver

Bug 984439

Change-Id: I51b17389dbb17b0e94e1635ec6d68acd01c743b4
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/102529
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoArm: Tegra3: clocks: Disabled SSCCENTER bit for plle
Mohit Kataria [Tue, 24 Apr 2012 07:33:54 +0000]
Arm: Tegra3: clocks: Disabled SSCCENTER bit for plle

Disabled SSCCENTRE bit for plle as per golden register
(value provided by syseng)

Bug 942384 978870

Change-Id: I3c2f8e8e220015b58f0c8bcbaac4e9998a5b6dcd
Reviewed-on: http://git-master/r/98381
Signed-off-by: Mohit Kataria <mkataria@nvidia.com>
Reviewed-on: http://git-master/r/102408
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoRevert "Revert "arm: tegra3: change min_rate for clocks""
Hunk Lin [Thu, 24 May 2012 02:09:22 +0000]
Revert "Revert "arm: tegra3: change min_rate for clocks""

This reverts commit 18ed77b122dd1fbb9a6a5373da36ab32d0f0cee1.
The noisy audio playback on Tegra3 with secure-OS issue is fixed by
updating TL's SDK to 1.08. Change min_rate for clocks back to 12Mhz.

Bug 939415

Change-Id: Ib0daf98faa85cc7cbc1dbfd4bf458427f914d830
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/104317
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoRevert "video: tegra: host: t30: use max 2d clock"
Wen Yi [Thu, 24 May 2012 00:41:03 +0000]
Revert "video: tegra: host: t30: use max 2d clock"

This reverts commit 5bdd03b21f625d0a07c66e4894b79e557287a3a1.

The reverted commit kept vcore at 1.2 volts whenever 2D engine is on
and increased power consumption for use cases that utilize 2D but
doesn't require its full speed.

Bug 979545

Change-Id: I4297ab1fb83558501ff620952284c8590dc5f1dd
Signed-off-by: Wen Yi <wyi@nvidia.com>
Reviewed-on: http://git-master/r/104293
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Tested-by: Donghan Ryu <dryu@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agotegra: usb: disable interrupts when locking
Sang-Hun Lee [Tue, 15 May 2012 23:04:41 +0000]
tegra: usb: disable interrupts when locking

Problem description:
 - tegra_udc_irq uses udc->lock
 - Some functions running in the process context was not disabling
   interrupts when locking udc->lock
 - If a function gets interrupted by tegra_udc_irq after locking
   udc->lock, a deadlock occurs, as tegra_udc_irq would also try to
   lock

Fix description:
 - Use an interruption disabling variant of spin_lock

Bug 983958

Change-Id: Ib774847212da64f1f727a207a4821860ffa7b4a8
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/102693
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoarm: tegra: ahci/sata: Add SATA driver
Yen Lin [Tue, 13 Mar 2012 00:07:58 +0000]
arm: tegra: ahci/sata: Add SATA driver

Upgrade the Tegra 3 SATA driver to support kernel 3.1.

The driver supports runtime_pm when doing power-gating during idle.

A new CONFIG_TEGRA_SATA_IDLE_POWERGATE is provided to enable/disable
power-gating during idle.

When sata clocks (sata, sata-oob and pll_e clocks) are in the
core_dvfs_table[] table, CONFIG_TEGRA_SATA_IDLE_POWERGATE must not
be enabled.

Currently, sata clocks are in the core_dvfs_table[]. Those clocks
will not be in that table in the future. By then,
CONFIG_TEGRA_SATA_IDLE_POWERGATE can then be enabled.

Change-Id: I15b585713bfd891f8827fd028b21bf3e5c2b80d9
Signed-off-by: Yen Lin <yelin@nvidia.com>
Reviewed-on: http://git-master/r/89614
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agovideo: tegra: nvmap: Fix debug allocations data shown.
Krishna Reddy [Wed, 23 May 2012 21:58:52 +0000]
video: tegra: nvmap: Fix debug allocations data shown.

Debug allocations data for iovmm has carvout allocations
also and vice versa. Fixed it to show only iovmm for iovmm
and carveout for carveout.
Add missing "FLAGS" print for iovmm allocations.

Change-Id: I0fd271be24d0d2d3924ca473fd32476776fdcf84
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/104246
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agotf_driver: integrate latest TL release:
Marvin Zhang [Tue, 3 Apr 2012 19:53:58 +0000]
tf_driver: integrate latest TL release:

Tegra 2 version: TF_TEGRA2_AA01.09.34784
Tegra 3 version: TF_TEGRA3_AB01.08.34931

Add dynamic support for UART used by the Secure World trace driver.
The files are from the Tegra 3 version of SDK.

Bug 960201.

Change-Id: I14c3cfc35f81d3a37981e82760c2a2259164a904
Signed-off-by: Marvin Zhang <mzhang@nvidia.com>
Reviewed-on: http://git-master/r/94306
(cherry picked from commit 173b55aa4d30fc3771719093d675972fca600cd3)
Reviewed-on: http://git-master/r/104037
Reviewed-by: Chris Johnson <cwj@nvidia.com>
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
Tested-by: Karan Jhavar <kjhavar@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agovideo: tegra: nvmap: Clean up carveout to iovmm conversion.
Krishna Reddy [Tue, 22 May 2012 22:46:04 +0000]
video: tegra: nvmap: Clean up carveout to iovmm conversion.

Clean up carveout to iovmm conversion code.
Fixed bug in converting iovmm requests to carveout.

Change-Id: I35a5238c955d0478f0e1a295e501bae9ee52b0a8
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/103991
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agovideo: tegra: nvmap: Change function declaration order.
Krishna Reddy [Tue, 22 May 2012 18:36:03 +0000]
video: tegra: nvmap: Change function declaration order.

Change function declaration order to avoid multiple
CONFIG_TEGRA_NVMAP #ifdef's.

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

7 years agoCHROMEOS: add chrome kernel infrastructure
Rhyland Klein [Mon, 21 May 2012 16:39:38 +0000]
CHROMEOS: add chrome kernel infrastructure

The ChromeOS build environment expects to build the kernel using a splitconfig.
This change adds the scripts and configs required to satisfy this requirement.
Right now the chromeos-tegra3 config is the only supported configuration using
the splitconfigs.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I21ac515261a03bdbe1c79bbd6cd02a6e34c82ef9
Reviewed-on: http://git-master/r/103683
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agousb: otg: tegra: enhance tegra otg driver
Rakesh Bodla [Mon, 21 May 2012 11:06:19 +0000]
usb: otg: tegra: enhance tegra otg driver

Following enhancements are done:
a. Removed unnecessary apis.
b. Update the new platform data structures.
c. Removed unnecessary function call overheads.

Bug 887361

Change-Id: I148f2c0adb617c6f3100b84854bbd4ed1e953ecd
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/103601
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agousb: gadget: tegra: update udc driver to use common phy
Rakesh Bodla [Mon, 21 May 2012 11:05:11 +0000]
usb: gadget: tegra: update udc driver to use common phy

Update the udc driver to use common phy.

Bug 887361

Change-Id: I013c3df22fd7d41718debb96dc8db78f56d73bd1
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/103600
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agousb: host: tegra: update ehci to use common phy
Rakesh Bodla [Tue, 22 May 2012 06:01:14 +0000]
usb: host: tegra: update ehci to use common phy

Following enhancements are done:
a. Update driver with common phy interface
b. Make host driver independent of phy type and
   remove unnecessary CONFIG variables.

Bug 887361

Change-Id: Ibafa37a048df4377b73029039b04d04a53020bd4
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/103599
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoarm: tegra: usb_phy: add common phy interface
Rakesh Bodla [Thu, 24 May 2012 09:29:34 +0000]
arm: tegra: usb_phy: add common phy interface

Refactored the phy interface to scale multiple usb
phy hardware versions and for ease of maintenance.

Bug 887361

Change-Id: I08ea9e728f760ca123af7777d3ffabbd71a1aa99
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/103598
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agousb: tegra: modify USB platform data structures
Rakesh Bodla [Thu, 24 May 2012 09:29:02 +0000]
usb: tegra: modify USB platform data structures

Modify USB structures of platform data. Based on the new
platform data structures modifying the initialization in
board files.

Bug 887361

Change-Id: Ie6347a078c9a596a4debe21a353e127ddde35220
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/103597
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agovideo: tegra: host: Improve timing of syncpt wait
Terje Bergstrom [Tue, 22 May 2012 08:28:12 +0000]
video: tegra: host: Improve timing of syncpt wait

nvhost_syncpt_wait_timeout() relies on sync point interrupt to
signal reaching the sync point value. With low timeout values, the
resolution is not good enough and an error is returned even when
the value is reached.

Update syncpoint value from hardware when doing a sync point wait and
do an explicit check for reaching the value even if wait returns a
timeout.

bug 984166
bug 986788
bug 987597

Change-Id: I640e32cdcdfa66b8977eac273dd32f62bd72abd6
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/103827
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agomedia: video: tegra: Add ad5816 focuser driver
Sudhir Vyas [Thu, 17 May 2012 13:21:37 +0000]
media: video: tegra: Add ad5816 focuser driver

- Implement new focuser ad5816 driver.
- Complies to latest NVC framework.

Bug 947792

Change-Id: I1661de027062d2a9b4112fd24dc255d810c7afa0
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/103131
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agousb: gadget: android: add the handler for ptp class requests
Rakesh Bodla [Wed, 16 May 2012 14:02:28 +0000]
usb: gadget: android: add the handler for ptp class requests

Adding the handler for control requests of ptp
function driver.

Bug 980195

Change-Id: I3ddfc44d7ec4a98d29c7358be1f1d34799f92be9
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/103007
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agovideo: tegra: host: rewrite nvhost_job_pin/unpin APIs
Mayuresh Kulkarni [Mon, 9 Apr 2012 06:51:24 +0000]
video: tegra: host: rewrite nvhost_job_pin/unpin APIs

- remove usage of custom interface of nvmap to patch the relocs and
  and pin the gathers/relocs
- convert code that references nvmap_handle to nvmap_handle_ref
- add logic to pin and map only unique gathers and relocs
- rename nvhost_channel_gather to nvhost_job_gather, because it's
  used in nvhost_job code only

Bug 965206

Change-Id: Iaa7fbac9e4a7b08c0a7c1e184b8dd3566e1edfe2
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/95299
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agoasoc: tegra: utils: fix for multiple instances of extern1 clock.
Ankit Gupta [Wed, 23 May 2012 06:25:13 +0000]
asoc: tegra: utils: fix for multiple instances of extern1 clock.

The extern1 codec clock was not getting switched off whenever
codec goes below BIAS_OFF level. Moreover, there were two
instances of extern1 clock whenever codec was on. Reason behind
this was that, those codecs for which probe function was called
and were not present on board, turned on their extern1 clock, but
clean up routine (for switch device register failure) was not able
to turn off the clock. With this change, a conditional check is
put to turn off the clock.

(Bug 984678)
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>

Change-Id: I585ecf73c0cabca856592dcd84e67588dfe13beb
Reviewed-on: http://git-master/r/104073
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Ankit Gupta (Engrg-SW) <ankitgupta@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agomfd: tps80031: turn on backup battery charger circuit
Tom Cherry [Fri, 18 May 2012 21:00:51 +0000]
mfd: tps80031: turn on backup battery charger circuit

The backup battery for the RTC circuit needs to be manually turned
on.  This change turns it on when the driver is first probed, off
during LP0 to prevent excess power draw, and back on again upon
resume.

Bug 986402

Change-Id: Id4768929d6a73546662806f04d98d714997174b0
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/103425
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: Enable arm errata 764369
Krishna Reddy [Wed, 23 May 2012 17:00:51 +0000]
arm: tegra: Enable arm errata 764369

Enable arm errata 764369 for TEGRA_2x and 3x.
Bug 981223
Bug 885467

Change-Id: Ie013dc1ed4f1417a72dda72ea2d079a6534c3933
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/104181
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agonvmap: Use linux conventions.
Krishna Reddy [Tue, 22 May 2012 18:19:37 +0000]
nvmap: Use linux conventions.

Avoid multiple CONFIG_TEGRA_NVMAP ifdefs.

Change-Id: Ic186a8203d8b2291d3d39ce8b612b33bee16f531
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/103937
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agonet: wireless: bcm4329: Fix GCC 4.6 warning
Dan Willemsen [Thu, 8 Mar 2012 02:11:54 +0000]
net: wireless: bcm4329: Fix GCC 4.6 warning

This module has -Werror turned on, so this was causing the build to
break on GCC 4.6:

drivers/net/wireless/bcm4329/wl_iw.c: In function 'wl_iw_set_pmksa':
drivers/net/wireless/bcm4329/wl_iw.c:5149:5: error: array subscript is above array bounds [-Werror=array-bounds]
drivers/net/wireless/bcm4329/wl_iw.c:5152:5: error: array subscript is above array bounds [-Werror=array-bounds]

It's a partial 'backport' of a change made to the bcmdhd driver:

commit 09a8dc7361d0e603d9935ec7f736fabaa2e6dc7a
net: wireless: bcmdhd: Combined P2P fix

Change-Id: Ie62ad82f884c213553772ac91eaf85e17a807503
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/88694
GVS: Gerrit_Virtual_Submit
Reviewed-by: Stephen Warren <swarren@nvidia.com>

7 years agovideo: tegra: detect fbmem alignment on probe
Jon Mayo [Wed, 23 May 2012 00:24:27 +0000]
video: tegra: detect fbmem alignment on probe

Detect the stride size used by the bootloader.
If DC is not enabled, fallback to a default stride size.

Bug 973111

Change-Id: If04647ddf04a44987cd841062ff30e03fa4d6a02
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/104031
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoasoc: tegra: P1852 machine: Add TDM mode settings
Nitin Pai [Tue, 22 May 2012 06:34:15 +0000]
asoc: tegra: P1852 machine: Add TDM mode settings

Pass TDM mode variables for CPU dai.
Codec Id is not passed properly, hence use dual instances
of the dai_link operations.

Bug 948478

Change-Id: I13188d5001b8f9c2f2f67ee7a9d3bec89311037d
Signed-off-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-on: http://git-master/r/103793
Reviewed-by: Nitin Pai <npai@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agospi: tegra: synchronize PPSB late write
Laxman Dewangan [Wed, 23 May 2012 13:38:23 +0000]
spi: tegra: synchronize PPSB late write

When any write is made to PPSB register, it take time
to actual happen in the register due to ARM-PPSB design.
Delay or readback is required to make sure that write is
completed. There is no worst case guaranteed delay and hence
doing the register read to make write completes actually.

Change-Id: Iefd25115e1a9f02c64e83f11a4e249ad9d086d16
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/102207
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agospi: tegra: cleanup in runtime_pm implementation.
Laxman Dewangan [Wed, 23 May 2012 07:30:01 +0000]
spi: tegra: cleanup in runtime_pm implementation.

Cleaning up runtime pm implementation for the driver.
There is lots of duplicate code which is not require as
it is handled in the runtime framework.

Change-Id: I4494cdd3518cbcb90f24fb3387f38c9859b4f957
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/102206
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agoarm: tegra: cardhu: add TEGRA_CARDHU_DUAL_DSI_PANEL config option
Preetham Chandru [Mon, 16 Apr 2012 10:01:56 +0000]
arm: tegra: cardhu: add TEGRA_CARDHU_DUAL_DSI_PANEL config option

add TEGRA_CARDHU_DUAL_DSI_PANEL config option to enable or disable dual
dsi panel in cardhu

Bug 935764
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>

Change-Id: I9a93386c046f5845a3dcf55c575de6b8e67f188d
Reviewed-on: http://git-master/r/96706
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agovideo: tegra: dsi: enable dsi panel B
Preetham Chandru [Mon, 16 Apr 2012 07:48:57 +0000]
video: tegra: dsi: enable dsi panel B

Enable dsi panel B by setting the first bit
in APB_MISC_GP_MIPI_PAD_CTRL_0 register.

Bug 935764
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: I9e958e0c9d9e934edf77688fd6a987b5e863392b
Reviewed-on: http://git-master/r/96672
Reviewed-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agovideo: tegra: remove free memory check
Kirill Artamonov [Mon, 30 Jan 2012 21:08:37 +0000]
video: tegra: remove free memory check

Used free memory check in allocation policy is not working,
because it doesn't calculate available physical memory size in
same way as android oom killer.

It also breaks kernel build if swapping is enabled.

Remove free memory check from allocation policy.

Change-Id: I214d1829451f313dbace967e87ed4111e688865d
Reviewed-on: http://git-master/r/85227
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: kai: change thermal sensor to nct72
Chandler Zhang [Fri, 4 May 2012 03:35:44 +0000]
arm: tegra: kai: change thermal sensor to nct72

Kai board uses OnSemi NCT72 thermal sensor.
NCT72 is pin and register compatible to NCT1008.
Change the i2c device id from "nct1008" to "nct72" to avoid
confusion.

Bug 961970

Reviewed-on: http://git-master/r/100466
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
(cherry picked from commit 07ed4a320ff7e18e615270e0e15bd4212e6a7c9f)

Change-Id: I6ef858d27b1b1f35ddd071542bb22caed2e776ab
Reviewed-on: http://git-master/r/103582
Tested-by: Daniel Fu <danifu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agomisc: nct1008: add id for nct72
Chandler Zhang [Fri, 4 May 2012 02:32:36 +0000]
misc: nct1008: add id for nct72

Add id for nct1008 compatible thermal sensor:
NCT72

Bug 961970

Change-Id: I792af664f73b6d1c8317a35c66330cf571cf3aba
Reviewed-on: http://git-master/r/100465
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
[danifu@nvidia.com: resolved conflicits in nct1008.c]
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/103581
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: dc: Open-up HDMI mode filter
Shashank Sharma [Tue, 8 May 2012 09:40:42 +0000]
video: tegra: dc: Open-up HDMI mode filter

We support dynamic pixel-clock setting now, so open HDMI mode
filter by not rejecting a mode due to pixel clock mismatch. If the
mode's requested pixclock is within the suppoted range, check few
constraints of hardware and allow it.

Add aspect ratio check to reject modes with awkward aspect ratio.

Bug 967458
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>

Change-Id: Ife474dbfe4137a000a4a43b0e1ff72847f2a8b0a
Reviewed-on: http://git-master/r/96163
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoasoc: tegra: Add TDM mode support
Nitin Pai [Tue, 24 Apr 2012 10:27:51 +0000]
asoc: tegra: Add TDM mode support

Added TDM mode support in I2S driver.
Added support functions in AHUB to pass audio/client bits.
Added support functions in AHUB to pass audio/client channels.
Fixed the stopping of I2S/TDM by clearing the fifo.

Bug 948478

Signed-off-by: Nitin Pai <npai@nvidia.com>
Change-Id: I560f4ab5b71e4833931934275272a094241241fe
Reviewed-on: http://git-master/r/103840
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agomedia: video: tegra: Do not use nvmap private header
Terje Bergstrom [Mon, 21 May 2012 18:15:26 +0000]
media: video: tegra: Do not use nvmap private header

Do not include nvmap private header. The needed function is available
in the public header.

Bug 965206

Change-Id: I2ff752c66e66f64e8c518711aecf6f54dc152d41
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/103676
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agovideo: tegra: host: move function pointers to nvhost_driver
Mayuresh Kulkarni [Wed, 16 May 2012 08:26:28 +0000]
video: tegra: host: move function pointers to nvhost_driver

- currently, function pointers are inside nvhost_device
- these functions abstract the device specific implementation
of a functionality per SoC
- move them to nvhost_driver so that nvhost_device can be
instantiated from arch code using board files/device trees
- add support to use single driver for multiple devices using
concept of id_table. this will be useful in supporting
multiple SoC devices binding single driver
- also add some notes about how device name is expected

Bug 871237

Change-Id: I4c75d7121d26c3bdc50f058e0d144d89ca0edbd9
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/100985
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agovideo: tegra: nvmap: Export nvmap_duplicate_handle_id
Terje Bergstrom [Mon, 21 May 2012 18:14:03 +0000]
video: tegra: nvmap: Export nvmap_duplicate_handle_id

Export nvmap_duplicate_handle_id() for usage by other drivers. It is
already being used in nvavp and tegradc, and nvhost needs it to be
able to move the relocation code to inside nvhost.

Bug 965206

Change-Id: I3f818d1faa967886e834aa457a99dfdb61bc6b85
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/103587
Reviewed-by: Automatic_Commit_Validation_User

7 years agommc: returning correct mmc test case number
Vishal Singh [Fri, 18 May 2012 13:45:56 +0000]
mmc: returning correct mmc test case number

mmc_test currently shows test case number as 0 for all test cases.
Correcting this to depict the correct test case number.

Bug 976137.

Change-Id: Ifa7bdd08d537ef20a3303594938a771e823d4e3b
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/103368
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agomedia: video: tegra: fix nvc power management
Anton Kondratenko [Thu, 17 May 2012 19:31:09 +0000]
media: video: tegra: fix nvc power management

NVC focuser code was not up to date with the latest changes
related to power management in upper layers. This change is to fix it.

Bug 968003

Change-Id: I362fa062039eaa06c4f67644eac7ee2db0bf7d6b
Signed-off-by: Anton Kondratenko <akondratenko@nvidia.com>
Reviewed-on: http://git-master/r/103188
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>