7 years agoARM: tegra: usb: enable pmu vbus interrupts
Krishna Yarlagadda [Fri, 1 Jun 2012 11:16:43 +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>

Conflicts:

drivers/usb/otg/tegra-otg.c

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 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: 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 agousb: otg: tegra: fix device registration in tegra_start_host
Varun Wadekar [Fri, 1 Jun 2012 06:43:51 +0000]
usb: otg: tegra: fix device registration in tegra_start_host

Change-Id: I865a8b4ef8d7213534d74fce66f9d3c766c0471e
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agousb: otg: tegra: enhance tegra otg driver
Rakesh Bodla [Thu, 31 May 2012 11:17:47 +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
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agousb: gadget: tegra: update udc driver to use common phy
Rakesh Bodla [Thu, 31 May 2012 11:10:12 +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
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agousb: host: tegra: update ehci to use common phy
Rakesh Bodla [Thu, 31 May 2012 11:08:36 +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
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

Change-Id: I996297d74cef248aa8572f32bc9105c487ca48fc

7 years agoarm: tegra: usb_phy: add common phy interface
Rakesh Bodla [Thu, 31 May 2012 11:02:14 +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, 31 May 2012 10:30:06 +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: I49c9ea9888f743408f4f86005b8ed368b98500e7
Reviewed-on: http://git-master/r/103597

Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agousb: otg: tegra: Change suspend resume logic
Rakesh Bodla [Thu, 31 May 2012 06:43:40 +0000]
usb: otg: tegra: Change suspend resume logic

Changed the suspend resume logic as per new
UDC driver. Also, added few debug prints.

Bug 887361

Reviewed-on: http://git-master/r/99450

Change-Id: I36ec1f160e8b4db54b5bd2153bdbf1c4fae1cc2a
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: configs: tegra: enable tegra udc driver
Rakesh Bodla [Fri, 4 May 2012 09:24:04 +0000]
arm: configs: tegra: enable tegra udc driver

Enable tegra udc driver.

Bug 887361

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

7 years agoarm: tegra: update the udc driver name
Rakesh Bodla [Thu, 31 May 2012 06:40:48 +0000]
arm: tegra: update the udc driver name

Update the clocks structure to use new udc driver
name. Also, update the device structure.

Bug 887361

Reviewed-on: http://git-master/r/99448

Change-Id: I0fd846ab177e8651f285bcb9796361d30967b830
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agousb: tegra: add USB device controller driver for tegra chip
Rakesh Bodla [Thu, 31 May 2012 06:22:37 +0000]
usb: tegra: add USB device controller driver for tegra chip

Add High-speed USB device controller driver for tegra chips.
This can work in OTG device mode with tegra OTG driver.
Driver currently supports only UMTIP PHY.

Bug 887361

Change-Id: I63774a44e3bb607c93007b170ba8b811f96e43f8
Reviewed-on: http://git-master/r/97918
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: board-files: remove usage of TEGRA_GPIO_TO_IRQ
Dan Willemsen [Wed, 30 May 2012 04:52:31 +0000]
arm: tegra: board-files: remove usage of TEGRA_GPIO_TO_IRQ

we've moved to IRQ domains, and need to use gpio_to_irq
instead of TEGRA_GPIO_TO_IRQ to get correct results.

See commit 6f74dc9bc8de41f3de474a7269a70921e773c40f

Change-Id: Ieb7c3e5d2a9bd0f4c83881b16fbd617babf41950
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/106362
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "Revert "drivers: video: tegra: Implement HOST1X syncpt init""
Mayuresh Kulkarni [Fri, 18 May 2012 14:06:58 +0000]
Revert "Revert "drivers: video: tegra: Implement HOST1X syncpt init""

This reverts commit ce432259da867ee2799cc689fb6c17b258c0f922.

Change-Id: If7b1612806c1857f8fa8161bf731067feca80d18
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/106766
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: gpio: delete TEGRA_GPIO_TO_IRQ macro
Dan Willemsen [Wed, 4 Jan 2012 08:39:37 +0000]
ARM: tegra: gpio: delete TEGRA_GPIO_TO_IRQ macro

Change-Id: Ia7321d276010f1e35c2f5f59fda8f9c6446f645e
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/106367

7 years agofixup: gpio: tegra: Iterate over the correct number of banks
Stephen Warren [Fri, 16 Mar 2012 23:37:24 +0000]
fixup: gpio: tegra: Iterate over the correct number of banks

[DW: Missed in the 3.4 merge]

When Tegra30 support was added to the Tegra GPIO driver, a few places
which iterated over all banks were not converted to use the variable
tegra_gpio_bank_count rather than hard-coding the bank count. Fix this.

Change-Id: Ic9a8ad150ba4d029456f00a80ab4b2c619029a6a
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/106366
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: wakeups: Refactor
Dan Willemsen [Wed, 30 May 2012 07:36:39 +0000]
ARM: tegra: wakeups: Refactor

TODO: Share code between T2 & T3.

Move irq->wake translation to the driver layer, this lets us split out
the tegra_irq_to_wake gpio searching to a tegra_gpio_to_wake function.

tegra_pm_irq_set_wake: the tegra_*_to_wake() functions can never return
-EALREADY or -ENOTSUPP (even before this change)

This has a side effect of removing usage of TEGRA_GPIO_TO_IRQ, which is
deprecated.

Change-Id: I07c00952997db9f1597fd0a1caadbf4dfe1b5045
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/106365
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agofixup: gpio: tegra: Parameterize the number of banks
Stephen Warren [Thu, 19 Jan 2012 08:16:35 +0000]
fixup: gpio: tegra: Parameterize the number of banks

[DW: This was missed with the merge]

Tegra20's GPIO controller has 7 banks, and Tegra30's controller has 8
banks. Allow the number of banks to be configured at run-time by the
device tree.

Change-Id: I2fdaf936e41f42ee478e32f3c2e206158a6e2993
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/106364
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: Tegra3: defconfig: disable wakelocks
Syed Rafiuddin [Wed, 30 May 2012 09:37:47 +0000]
ARM: Tegra3: defconfig: disable wakelocks

Change-Id: I9b24aee9cc9b4a25ee074ebafd93b5c93445575c
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/104056
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoMerge commit 'v3.4' into android-tegra-nv-3.4
Varun Wadekar [Mon, 4 Jun 2012 10:43:38 +0000]
Merge commit 'v3.4' into android-tegra-nv-3.4

7 years agoInput: synaptics_i2c_rmi: Fix merge
Prashant Gaikwad [Mon, 4 Jun 2012 08:13:19 +0000]
Input: synaptics_i2c_rmi: Fix merge

Change-Id: Iac3c7c01b4b571d5a7787f8c6c21ddd9adee92b1
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/106152
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@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 [Wed, 30 May 2012 11:03:00 +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>

Conflicts:

sound/soc/tegra/tegra_wm8903.c

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 [Wed, 30 May 2012 11:01:16 +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>

Conflicts:

drivers/spi/spi-tegra.c

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 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 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 agoRevert "Revert "arm: tegra3: change min_rate for clocks""
Hunk Lin [Wed, 30 May 2012 10:33:40 +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

Conflicts:

arch/arm/mach-tegra/tegra3_clocks.c

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 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 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 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 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 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>

7 years agortc: tps6591x: Limiting years in the 0 - 99 range
Venu Byravarasu [Wed, 16 May 2012 10:15:45 +0000]
rtc: tps6591x: Limiting years in the 0 - 99 range

As RTC can store year in the 0 - 99 range only,
handling it accordingly

bug 985890

Change-Id: Idcfb29028f482283ae2658579a3283c7d4f230f1
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/102798
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agovideo: tegra: dc: remove bandwidth efficiency
Venkata (Muni) Anda [Thu, 22 Mar 2012 01:40:45 +0000]
video: tegra: dc: remove bandwidth efficiency

Remove the efficiency factor in the bandwidth calculation.
Clock API will take care off setting the right clock based factoring the
efficiency.

Change-Id: I2b549197778b5afaf1aab3cc87a84debb08172e8
Reviewed-on: http://git-master/r/91659
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/103682
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoarm: tegra: Added support for TDM mode params
Nitin Pai [Mon, 21 May 2012 10:39:43 +0000]
arm: tegra: Added support for TDM mode params

Added TDM mode params to be passed from platform to the machine driver

Bug 948478

Change-Id: I909db0ceebde002fcebcf7635cebe98c6a74142d
Signed-off-by: Nitin Pai <npai@nvidia.com>
Reviewed-on: http://git-master/r/103594
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoARM: tegra: clock: Account for memory BW efficiency
Alex Frid [Wed, 30 May 2012 07:31:35 +0000]
ARM: tegra: clock: Account for memory BW efficiency

Account for memory efficiency when processing requests from Tegra3
EMC shared bandwidth users. Do not round requests from these users
until they are aggregated.

The respective debugfs node: /d/tegra_emc/efficiency (in %).

Bug 952739

Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit 86929087f68c4366d6179101eb9a6a6473a4f084)

Change-Id: I4acdd89f44de1401ce5dad8fc4936932df014458
Reviewed-on: http://git-master/r/103499
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit

Conflicts:

arch/arm/mach-tegra/tegra3_clocks.c

7 years agoARM: tegra: clock: Share Tegra3 camera EMC bandwidth
Alex Frid [Wed, 30 May 2012 07:28:30 +0000]
ARM: tegra: clock: Share Tegra3 camera EMC bandwidth

Change Tegra3 camera EMC shared user mode from SHARED_FLOOR to
SHARED_BW and combine requests from ISO clients (camera and display,
which is already in SHARED_BW mode).

Bug 652739

Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit f1107ea4fe229d9807c1fba79a003753d0a8be7f)

Change-Id: If5b7f578060a646df1794dde8c9be2944d88e942
Reviewed-on: http://git-master/r/103498
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit

Conflicts:

arch/arm/mach-tegra/tegra3_clocks.c

7 years agovideo: tegra: dc: Enable GCOV for dc/ext code
Chao Xu [Fri, 18 May 2012 17:01:47 +0000]
video: tegra: dc: Enable GCOV for dc/ext code

Change-Id: Ie6d425f06911008d77c2ed87dc7b40611755ee6a
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/103396
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agoarm: tegra: apbdmaio: Add dma_sync* calls
Pradeep Kumar [Fri, 18 May 2012 10:46:37 +0000]
arm: tegra: apbdmaio: Add dma_sync* calls

Add dma_sync* calls to make memory coherent between
CPU and Device.

Bug 983988

Change-Id: I40c514e01130762a12833c3ab7e0613f984870c6
Signed-off-by: Pradeep Kumar <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/103336
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoarm: thermal: Removed nonTEGRA_THERMAL_SYSFS logic
Joshua Primero [Thu, 17 May 2012 19:17:15 +0000]
arm: thermal: Removed nonTEGRA_THERMAL_SYSFS logic

All throttling must go through the Linux thermal sysfs
framework now.

Change-Id: Ia871e0b06e548d5d82211a65979bea52a6c28fb0
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/103183
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: thermal: removed TEGRA_THERMAL_SYSFS
Joshua Primero [Thu, 17 May 2012 19:19:01 +0000]
arm: tegra: thermal: removed TEGRA_THERMAL_SYSFS

Removed the CONFIG_TEGRA_THERMAL_SYSFS option. Any
throttling activities must go through the Linux
thermal sysfs framework now via CONFIG_THERMAL.

Change-Id: Ibe680d82d3225994e6bebcfe75a0f058e567e35c
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/103182
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: vfp: ensure preemption is disabled when enabling VFP access
Will Deacon [Wed, 30 May 2012 07:00:06 +0000]
ARM: vfp: ensure preemption is disabled when enabling VFP access

The vfp_enable function enables access to the VFP co-processor register
space (cp10 and cp11) on the current CPU and must be called with
preemption disabled. Unfortunately, the vfp_init late initcall does not
disable preemption and can lead to an oops during boot if thread
migration occurs at the wrong time and we end up attempting to access
the FPSID on a CPU with VFP access disabled.

This patch fixes the initcall to call vfp_enable from a non-preemptible
context on each CPU and adds a BUG_ON(preemptible) to ensure that any
similar problems are easily spotted in the future.

originally from
http://git.kernel.org/?p=linux/kernel/git/will/linux.git;a=commit;h=468c963e0210bf8108b17cf75066f25f39cabb56

Change-Id: I26fff8abe4c18bd3291613f70d0228aa2313811a
Reported-by: Hyungwoo Yang <hwoo.yang@gmail.com>
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Reviewed-on: http://git-master/r/102315
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Conflicts:

arch/arm/vfp/vfpmodule.c

7 years agoRevert "ARM: vfp: Prevent process migration"
Hyungwoo Yang [Mon, 14 May 2012 22:34:42 +0000]
Revert "ARM: vfp: Prevent process migration"

This reverts commit 68667feb8eae225f1293a7044c989ab0bba8dbd1.

Change-Id: I59023f2d83392465f7a989693b67cef96d565ed9
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/102314
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoarm: tegra: governor: change governor using cpufreq interface
Puneet Saxena [Tue, 17 Apr 2012 13:19:17 +0000]
arm: tegra: governor:  change governor using cpufreq interface

Older code sets "conservative" governor in early-suspend
using sysfs entries.This implementation changes governor
in early-suspend using cpufreq interfaces.

bug 871958

Change-Id: I721afb6184982a063dc5f330da31f8fb88481cfd
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/100849
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: Tegra: P1852: changed nor timing regs and freq
Mohit Kataria [Fri, 18 May 2012 12:11:29 +0000]
ARM: Tegra: P1852: changed nor timing regs  and freq

Nor frequency and timing registers changed as per
values provided by syseng

Bug 978870

Change-Id: I18313c7df6265ddd4140d264ac2751ed8f1982df
Reviewed-on: http://git-master/r/103355
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Mohit Kataria <mkataria@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agopower: smb349: support for self-powered devices
Chandler Zhang [Mon, 14 May 2012 09:56:48 +0000]
power: smb349: support for self-powered devices

Some self-powered devices doesn't strictly follow USB spec that
has 5V Vbus to upstream cannot work with mux on the data lines.

The MAX4983 mux routes the data lines to SMB349 rather than the
Tegra chip when PGOOD polarity is low-active and DCIN is 5V.

Change PGOOD not to invert polarity for the devices that has 5V to
upstream.

Bug 981761

Change-Id: Ic67ec66ce8936d9a9d5d2df7bca2ff7f9c65b147
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/103526
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: dc: Change the definitions in display feature table.
Kevin Huang [Thu, 17 May 2012 22:23:51 +0000]
video: tegra: dc: Change the definitions in display feature table.

Change-Id: I13f0f7502aea7f43b2ddff12e9664c22a1d9bd21
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/103210
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoarm: tegra: xmm: pm qos for modem enumeration
Vinayak Pane [Thu, 5 Apr 2012 02:25:34 +0000]
arm: tegra: xmm: pm qos for modem enumeration

XMM modem first enumeration has timing requirement, so khubd
should perform enum within 1 second. An issue is seen sometimes
when the hub events are not sent on time (on fully loaded system)
and then khubd timesout. This patch adds PM QOS request to bump up
the cpu frequency for 2 seconds.

Bug 946027

Change-Id: I1a43c043d42cfa442517a2a7ad8d69a934d4ab47
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/102697
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: xmm: simultaneous L3 to L0 wakeup
Vinayak Pane [Fri, 27 Apr 2012 22:01:05 +0000]
arm: tegra: xmm: simultaneous L3 to L0 wakeup

In AP initiated L3->L0 wakeup xmm power state is set BBXMM_PS_L3TOL0
but if CP is also trying to wakeup then ipc_ap_wake_irq with falling
edge treats it incorrectly as CP wakeup pending - new race condition.

Adding a check to fix this scenario for both L3 and L3TOL0 states.

Bug 966077

Change-Id: I3af3538b48745588f17e4c13a3e23e4033f21821
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/102698
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agovideo: tegra: dc: Init hdmi's platform data and fb
Shashank Sharma [Fri, 18 May 2012 14:32:57 +0000]
video: tegra: dc: Init hdmi's platform data and fb

1. Change hdmi platform data structure's xres and yres values.
   These values were made same as LVDS panel (1366x768). LVDS
   runs fix display mode,but HDMI can switch to different modes.
   The new values (640x480) are corresponding to HDMI's fallback
   mode resolution.

2. Map bootloader's framebuffer content to fb1 also, to
   initialize fb1's content, and to avoid black & white
   strips when hdmi gets enabled but has no content in fb.

It sometimes causes inconsistency on fb_console mapped on HDMI.

Bug: 930136
Change-Id: Iecf0d8c1cdd6a1baec2aec9c5dded3d73d1347e1
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-on: http://git-master/r/103381
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoARM: tegra: disable wakelock config directive
Sanjay Singh Rawat [Fri, 25 May 2012 05:12:59 +0000]
ARM: tegra: disable wakelock config directive

Bug 976783

Change-Id: I6883f3d2633ec8c3bdca2d8e699e1e157533de11
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/104665
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra3: defconfig: enable HDA
Ravindra Lokhande [Fri, 25 May 2012 09:36:00 +0000]
ARM: tegra3: defconfig: enable HDA

Enable Tegra HDA driver

bug 982420

Change-Id: I6710f77859800584ea7fdb0464e46a3a6a77efc0
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/104708
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: headsmp: fix bad merge
Prashant Gaikwad [Thu, 24 May 2012 09:52:02 +0000]
ARM: tegra: headsmp: fix bad merge

Change-Id: I9549fc7daca4cee358adb40895a6b09091ec8733
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/104388
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoMerge branch 'android-tegra-nv-3.4-main' into android-tegra-nv-3.4
Varun Wadekar [Fri, 25 May 2012 07:16:18 +0000]
Merge branch 'android-tegra-nv-3.4-main' into android-tegra-nv-3.4

7 years agortc: rtc-tps6586x: enable irq before enabling alarms
Varun Wadekar [Fri, 25 May 2012 06:52:50 +0000]
rtc: rtc-tps6586x: enable irq before enabling alarms

Specifically enable the rtc irq before enabling alarms.

Change-Id: Ieffa18905ca110f5679835c9b7b1483efd1943c5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoInput: Use monotonic time for event time stamps.
Arve Hjønnevåg [Fri, 17 Oct 2008 22:28:08 +0000]
Input: Use monotonic time for event time stamps.

Since wall time can jump backwards, it cannot be used to determine if one
event occured before another or for how long a key was pressed.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: Id9e75ad5ef0e56ec6bc8b1f1594a71412317f93c
Reviewed-on: http://git-master/r/97840
Tested-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "SUNRPC: create unix gid cache per network namespace"
Varun Wadekar [Fri, 25 May 2012 04:45:32 +0000]
Revert "SUNRPC: create unix gid cache per network namespace"

This reverts commit 73393232d6a425b6bb4cee590e3e66fc52532a15 since
it causes a crash in net/sunrpc/cache.c:cache_clean() during bootup.

Conflicts:

net/sunrpc/netns.h
net/sunrpc/sunrpc_syms.c

Change-Id: Ib696def45046024db2a04a379667b1e97c55979b
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "Revert "SUNRPC: create unix gid cache per network namespace""
Varun Wadekar [Fri, 25 May 2012 04:39:50 +0000]
Revert "Revert "SUNRPC: create unix gid cache per network namespace""

This reverts commit 86d491f2a8f33dcffa388f5e44dc7905fc156c95.

7 years agoRevert "EHCI: keep track of ports being resumed and indicate in hub_status_data"
Varun Wadekar [Fri, 25 May 2012 04:38:55 +0000]
Revert "EHCI: keep track of ports being resumed and indicate in hub_status_data"

This reverts commit a448e4dc25303fe551e4dafe16c8c7c34f1b9d82 as it breaks
bootup on Ventana.

Conflicts:

drivers/usb/host/ehci-tegra.c

Change-Id: I7300cc2d061fba8bad5d969fa3deb36c69e26689
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "Revert "EHCI: keep track of ports being resumed and indicate in hub_status_data""
Varun Wadekar [Fri, 25 May 2012 04:30:39 +0000]
Revert "Revert "EHCI: keep track of ports being resumed and indicate in hub_status_data""

This reverts commit 79972f9677dd651fdeaf7b343a905b20e731f31f.

7 years agoRevert "Input: add infrastructure for selecting clockid for event time stamps"
Varun Wadekar [Fri, 25 May 2012 04:29:28 +0000]
Revert "Input: add infrastructure for selecting clockid for event time stamps"

This reverts commit a80b83b7b8456e9b475346c2e01d7e210883208c to get Android
to process input events.

Conflicts:

include/linux/input.h

Change-Id: I862947c2134344226a0b60964771a2345f4532e7
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "Revert "Input: add infrastructure for selecting clockid for event time stamps""
Varun Wadekar [Fri, 25 May 2012 04:24:48 +0000]
Revert "Revert "Input: add infrastructure for selecting clockid for event time stamps""

This reverts commit 0fbe99f35b72318edf753c13011ff9f7f27998c0.

Conflicts:

drivers/input/evdev.c

Change-Id: I0eb4362008afa882ed31d377d7f40ef3ca18a03e
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "ARM: 7405/1: kexec: call platform_cpu_kill on the killer rather than the...
Varun Wadekar [Fri, 25 May 2012 04:21:15 +0000]
Revert "ARM: 7405/1: kexec: call platform_cpu_kill on the killer rather than the victim"

This reverts commit 6fa99b7f80b4a7ed2cf616eae393bb6d9d51ba8f as this breaks cpu reboot.

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "Revert "ARM: 7405/1: kexec: call platform_cpu_kill on the killer rather than...
Varun Wadekar [Fri, 25 May 2012 04:20:15 +0000]
Revert "Revert "ARM: 7405/1: kexec: call platform_cpu_kill on the killer rather than the victim""

This reverts commit 3f014f1d49721355a49bf952907349f4dea56ee3.

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agotegra:cpuidle:remove flow-controller programming
Prashant Gaikwad [Thu, 24 May 2012 09:10:37 +0000]
tegra:cpuidle:remove flow-controller programming

bug 937980

Remove some legacy flow-controller programming from LP3 entry and exit
paths. Also remove data synchronization barrier instruction after wfi
to improve scaling across cores.

Signed-off-by: satya popuri <spopuri@nvidia.com>
Reviewed-on: http://git-master/r/86451

(cherry picked from commit f88ee65418126365fc10af3d3771bba5d2e41d57)

Conflicts:

arch/arm/mach-tegra/sleep.S

Change-Id: I26d700c4bc0ed73e5fed528be524b3d04226f8af
Reviewed-on: http://git-master/r/104375
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Tested-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agommc: host: sdhci-tegra: get platform_data from tegra_host
Varun Wadekar [Thu, 24 May 2012 12:40:08 +0000]
mmc: host: sdhci-tegra: get platform_data from tegra_host

Change-Id: I943ddf4ce9bf68b14327cc729c19ec630fa3c647
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>