7 years agodmaengine/dw_dmac: Reconfigure interrupt and chan_cfg register on resume
Viresh Kumar [Thu, 17 Nov 2011 10:31:29 +0000]
dmaengine/dw_dmac: Reconfigure interrupt and chan_cfg register on resume

In S2R all DMA registers are reset by hardware and thus they are required to be
reprogrammed. The channels which aren't reprogrammed are channel configuration
and interrupt enable registers, which are currently programmed at chan_alloc
time.

This patch creates another routine to initialize a channel. It will try to
initialize channel on every dwc_dostart() call. If channel is already
initialised then it simply returns, otherwise it configures registers.

This routine will also initialize registers on wakeup from S2R, as we mark
channels as uninitialized on suspend.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
cherry-picked from mainline 61e183f8306934a9f66557f69f1f0f56f18dca06

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

7 years agodmaengine: consolidate initialization of cookies
Russell King - ARM Linux [Tue, 6 Mar 2012 22:35:47 +0000]
dmaengine: consolidate initialization of cookies

Provide a common function to initialize a channels cookie values.

Change-Id: Idc822d69971d7a6d26ffea8809df4825b87020e5
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
[imx-sdma.c & mxs-dma.c]
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
(cherry picked from mainline commit
d3ee98cdcd6198ea1cf75c603178acc8a805b69b)

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

7 years agodmaengine: consolidate tx_status functions
Russell King - ARM Linux [Tue, 6 Mar 2012 22:35:27 +0000]
dmaengine: consolidate tx_status functions

Now that we have the completed cookie in the dma_chan structure, we
can consolidate the tx_status functions by providing a function to set
the txstate structure and returning the DMA status.  We also provide
a separate helper to set the residue for cookies which are still in
progress.

Change-Id: I4b7672bbd17d072bfde348d04481c8db48e814c4
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
[imx-sdma.c & mxs-dma.c]
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
(cherry picked from mainline commit
96a2af41c78b1fbb1f567a3486bdc63f7b31c5fd)

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

7 years agodmaengine: provide a common function for completing a dma descriptor
Russell King - ARM Linux [Tue, 6 Mar 2012 22:35:07 +0000]
dmaengine: provide a common function for completing a dma descriptor

Provide a common function to do the cookie mechanics for completing
a DMA descriptor.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
[imx-sdma.c & mxs-dma.c]
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Cherry-picked from mainline commit
f7fbce07c6ce26a25b4e0cb5f241c361fde87901

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

7 years agodmaengine: consolidate assignment of DMA cookies
Russell King - ARM Linux [Tue, 6 Mar 2012 22:34:46 +0000]
dmaengine: consolidate assignment of DMA cookies

Everyone deals with assigning DMA cookies in the same way (it's part of
the API so they should be), so lets consolidate the common code into a
helper function to avoid this duplication.

Change-Id: I730882ff0f84f9ae42dd137a8926b7ae10868370
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
[imx-sdma.c & mxs-dma.c]
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
(cherry picked from mainline commit 884485e1f12dcd39390f042e772cdbefc9ebb750)

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

7 years agodmaengine: add private header file
Russell King - ARM Linux [Tue, 6 Mar 2012 22:34:26 +0000]
dmaengine: add private header file

Add a local private header file to contain definitions and declarations
which should only be used by DMA engine drivers.

We also fix linux/dmaengine.h to use LINUX_DMAENGINE_H to guard against
multiple inclusion.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
[imx-sdma.c & mxs-dma.c]
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
(cherry picked from mainline commit d2ebfb335b0426deb1a4fb14e4e926d81ecd8235)

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

7 years agodmaengine: move last completed cookie into generic dma_chan structure
Russell King - ARM Linux [Tue, 6 Mar 2012 22:34:06 +0000]
dmaengine: move last completed cookie into generic dma_chan structure

Every DMA engine implementation declares a last completed dma cookie
in their private dma channel structures.  This is pointless, and
forces driver specific code.  Move this out into the common dma_chan
structure.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
[imx-sdma.c & mxs-dma.c]
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
cherry-picked from mainline
4d4e58de32a192fea65ab84509d17d199bd291c8

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

7 years agomfd: max8907c: Do not use I2C_M_NOSTART in first message
Laxman Dewangan [Thu, 29 Mar 2012 09:54:51 +0000]
mfd: max8907c: Do not use I2C_M_NOSTART in first message

It is not recommended to use the flag I2C_M_NOSTART in first
message.

The documentation kernel/Documentation/i2c/i2c-proocol says:
Flag I2C_M_NOSTART:
    In a combined transaction, no 'S Addr Wr/Rd [A]' is generated at some
    point. For example, setting I2C_M_NOSTART on the second partial message
    generates something like:
      S Addr Rd [A] [Data] NA Data [A] P
    If you set the I2C_M_NOSTART variable for the first partial message,
    we do not generate Addr, but we do generate the startbit S. This will
    probably confuse all other clients on your bus, so don't try this.

Change-Id: I8a8a4f6f91a1b53b6d443588ab18704cf100fd50
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/93187
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>

7 years agotegra: hdmi: Add 1080p timing table
Hao Tang [Thu, 22 Mar 2012 06:59:46 +0000]
tegra: hdmi: Add 1080p timing table

Bug 949759

Add new 1080p timing support, or 1080p playback is not available on
some monitors like Acer H243HX

Change-Id: I8a8a3a5b2de71d5a56dad233f953e09176f85b76
Signed-off-by: Hao Tang <htang@nvidia.com>
Reviewed-on: http://git-master/r/91732
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agotegra: p1852: Register tegra WDT platform device
Manoj Chourasia [Tue, 20 Mar 2012 11:46:39 +0000]
tegra: p1852: Register tegra WDT platform device

bug 924362

Change-Id: I878a845d5c78b2f8c0f5882f8c0a97b3842ac883
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/91224
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoi2c: tegra: Fix to avoid possible race condition
Chaitanya Bandi [Fri, 16 Mar 2012 12:17:35 +0000]
i2c: tegra: Fix to avoid possible race condition

Because of race condition between isr and tx fifo fill,
duplicate data is being written. So added locking to make
Tx fifo fill as atomic.

Change-Id: Ia99466adadfb6d86a6f238ec4cd0aa13bd36e434
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/90870
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoi2c: tegra: Avoid duplicate write into Tx fifo
Chaitanya Bandi [Mon, 12 Mar 2012 10:48:07 +0000]
i2c: tegra: Avoid duplicate write into Tx fifo

Dvc I2C_DONE_INTR_EN interrupt bit is always enable into dvc
control register3. During normal transaction on dvc i2c bus
sometimes one transaction written two times in TX fifo buffer
because of triggered dvc interrupt. This is causing to corrupt
the next transaction header and send wrong address over dvc
i2c bus. To solve this issue dvc i2c interrupt has to disable
during filling of Tx fifo and enable after that.

Updated the following things in code:
(1) Add the code to mask/unmask I2C_DONE_INTR_EN into dvc control reg3
writing into Tx Fifo register.
(2) Put delay before resetting the controller

Hand-picked this change from: http://git-master/r/#change,39997
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>

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

7 years agotegra: p1852: correcting the GPIO to use for therm_alert
Vishal Singh [Tue, 27 Mar 2012 12:20:02 +0000]
tegra: p1852: correcting the GPIO to use for therm_alert

Currently the GPIO that we are trying to use for therm_alert is
GPIO_PW2 which is incorrect. The GPIO we ought to use is GPIO_PW3.

Bug 920368.

(cherry picked from commit ad4714c486c6a734681287ea4d85869f05704397)
Change-Id: If1a8cf4b8cdbdd69f2d01f4c292775d413384bc0
Reviewed-on: http://git-master/r/#change,74273
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/91730
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: enterprise: use proper backlight clk_div for A03/A04 android-tegra-nv-3.1 tegra-l4t-er-2012-04-02 tegra-l4t-r15-beta
Tom Cherry [Tue, 20 Mar 2012 23:59:51 +0000]
arm: tegra: enterprise: use proper backlight clk_div for A03/A04

The new TPS61160A part asks for the control PWM signal to be between
5kHZ and 100kHz.  This change sets clk_div to 0x1D for a 5kHz signal.

This change also installs a linear table for
enterprise_bl_output_measured_a03.

Bug 956246

Reviewed-on: http://git-master/r/91606
(cherry picked from commit 32a67cf7b1c8223abe8de7d88b4bcd1906cda0a2)

Change-Id: Ic7907cfae6f918ef055add33615822ef8c5e0ec6
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/93051
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: emc scaling for enterprise
Wen Yi [Thu, 22 Mar 2012 20:53:16 +0000]
arm: tegra: emc scaling for enterprise

Need to include A01 board for emc scaling.

Bug 957981

Reviewed-on: http://git-master/r/91877
(cherry picked from commit 2dff127a133056b4229b8d7a4e8328959873f3c8)

Change-Id: I9c615b13adf4375ee0742b817361b0d6326afccd
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/93050
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agotty: serial: core: Fix console resume for PORT_TEGRA
Pradeep Kumar [Wed, 28 Mar 2012 11:48:55 +0000]
tty: serial: core: Fix console resume for PORT_TEGRA

WAR to enable console prints when console service is not started
for port type TEGRA.

Bug 958959

Change-Id: I51e582d16195171f1f8bae9324e2ddece4638281
Signed-off-by: Pradeep Kumar <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/92814
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Tested-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: tegra: enterprise: Add A03/A04 support
Tom Cherry [Thu, 1 Mar 2012 01:39:50 +0000]
ARM: tegra: enterprise: Add A03/A04 support

Bug 939799

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

Change-Id: I67b26958862b8b60217c2750fe0b2eef3013d9b3
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/92409
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agousb: ehci: tegra: add suspend_fail flag
Rakesh Bodla [Mon, 26 Mar 2012 11:19:21 +0000]
usb: ehci: tegra: add suspend_fail flag

Adding the suspend_fail flag to proprogate the
bus suspend failure to the ehci suspend. This
ensure the proper synchronization between two
suspend calls.

Bug 932020

Reviewed-on: http://git-master/r/92286
(cherry picked from commit 9548deb7f4dfda95067731744b3122a47be3f654)
Change-Id: I00cc062888fcf7085be7aa3556ae500e0e457cd1
Reviewed-on: http://git-master/r/93130
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoasoc: tegra: ALC5640 machine: Fix i2s for BT Sco
Manoj Gangwal [Wed, 28 Mar 2012 12:43:27 +0000]
asoc: tegra: ALC5640 machine: Fix i2s for BT Sco

fix i2s for BT Sco.

Bug 936626

Change-Id: Iaf1d1a230fcb37d45d9deaaf1dae780f5870e99f
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/92860
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoASoC: wm8903: resolve compilation time warnings
Sanjay Singh Rawat [Wed, 28 Mar 2012 13:43:20 +0000]
ASoC: wm8903: resolve compilation time warnings

bug 949219

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

7 years agousb: otg: tegra: code clean up
Venu Byravarasu [Wed, 28 Mar 2012 12:39:14 +0000]
usb: otg: tegra: code clean up

Modified multiple if conditions to switch case.
Included a new OTG state case: undefined

Change-Id: Iba4cf1a79b8c220fc873966bd8a89f43a5648863
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/92832
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agousb: host: tegra: code clean up
Venu Byravarasu [Wed, 28 Mar 2012 12:00:05 +0000]
usb: host: tegra: code clean up

With this patch:
1. Renamed structure and function names to be more meaningful.
2. Removed unnecessary local variables.

Change-Id: I0684d840c1b8c606c1643e1e2517e083be825787
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/92817
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agop1852: Enable uart4 and remove spi4
Manoj Chourasia [Tue, 20 Mar 2012 13:14:46 +0000]
p1852: Enable uart4 and remove spi4

+ Enable uart4 and remove spi4
+ use SPI2 instead of SPI1 as initial pinmux for gpio x5/6

bug 933971

Reviewed-on: http://git-master/r/78718
(cherry picked from commit 7135fbe5edf7357384dc92b613ea46dc927d6b06)

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

7 years agovideo: tegra: dc: remove obsolete overlay interface
Jon Mayo [Wed, 28 Mar 2012 00:18:48 +0000]
video: tegra: dc: remove obsolete overlay interface

Remove old overlay interface, it is replaced with TEGRA_DC_EXTENSIONS
External functions made static now that overlay.c no longer needs them.

Change-Id: I5d080ceb19ad90d3b5cc4bf20494c967687293a5
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/92661
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>
Reviewed-by: Markus Holtmanns <mholtmanns@nvidia.com>

7 years agopower: smb349: resolve compilation time warnings
Sanjay Singh Rawat [Tue, 27 Mar 2012 12:34:13 +0000]
power: smb349: resolve compilation time warnings

bug 949219

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

7 years agoi2c: tegra: Correct 10bit address configuration
Laxman Dewangan [Tue, 27 Mar 2012 12:19:06 +0000]
i2c: tegra: Correct 10bit address configuration

The slave address of device to be configured in packet
header as follows:
7 bit address: PacketHeader3[7:1]
10 bit address: PacketHeader3[9:0]

Fixing the code to make packet header3 properly.

Change-Id: I1797066d23ada5d4d7b14710201a1fb17566b78b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/92556
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Andy Carman <acarman@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

7 years agoinput: keyboard: remove interrupt_key driver
Laxman Dewangan [Mon, 26 Mar 2012 14:06:53 +0000]
input: keyboard: remove interrupt_key driver

Removing interrupt key driver as this duplicates the
gpio_keys driver. Desired functionality can be achieve
through the gpio_keys.

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

7 years agoARM: tegra: config: Remove CONFIG_KEYBOARD_INTERRUPT
Laxman Dewangan [Mon, 26 Mar 2012 14:05:26 +0000]
ARM: tegra: config: Remove CONFIG_KEYBOARD_INTERRUPT

Remove config variable CONFIG_KEYBOARD_INTERRUPT as same
functionality can be achieve through the gpio_keys.

Change-Id: Ice898c9abe9f4eba2e82459b22f309cb36347123
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/92461
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: cardhu/Kai: Use gpio_keys driver for int key
Laxman Dewangan [Mon, 26 Mar 2012 14:00:40 +0000]
ARM: tegra: cardhu/Kai: Use gpio_keys driver for int key

gpio_keys driver support for the key which can generates only
interrupt and not mapped to any gpio functionality.
Using this feature to support the onkey which generates interrupt
only when key is pressed.

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

7 years agommc: resolve compilation time warnings
Sanjay Singh Rawat [Mon, 26 Mar 2012 12:20:42 +0000]
mmc: resolve compilation time warnings

bug 949219

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

7 years agoARM: tegra: Cardhu: Support for E1198-A03
Laxman Dewangan [Mon, 26 Mar 2012 11:01:19 +0000]
ARM: tegra: Cardhu: Support for E1198-A03

Adding support for E1198-A03 which have different regulators
and the identification of regulators are done based on board
sku id.

Change-Id: Iee76d2bc493308da5346011232db32b933fd8625
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/92284
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agovideo: tegra: host: Remove pre-check in syncpt wait
Terje Bergstrom [Mon, 26 Mar 2012 11:07:41 +0000]
video: tegra: host: Remove pre-check in syncpt wait

Remove the check and debug dump for cases where we compare against
an old syncpt value. Also removes an extra check that is already done
by wait_event_interruptible_timeout();

Bug 941327

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

7 years agovideo: tegra: nvmap: Refactor page pool code.
Krishna Reddy [Thu, 22 Mar 2012 22:25:19 +0000]
video: tegra: nvmap: Refactor page pool code.

Refactor page pool code.
Add page pool support for all memory types.
Add support to enable/disable page pools.
Add support to allow configuring page pool size.

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

7 years agousb: gadget: fsl_udc_core: Properly return the self-powered bit
ahcheng [Wed, 22 Feb 2012 09:26:09 +0000]
usb: gadget: fsl_udc_core: Properly return the self-powered bit

This patch fixes the GetStatus always reports self powered.
As per USB compliance update, a device that is actively drawing
more than 100mA from USB must report itself as bus-powered in
the GetStatus(DEVICE) call.

Bug 928340

Change-Id: Iefd1577a2ff2f301add98b14a402ed8eacc3aa28
Signed-off-by: ahcheng <ahcheng@nvidia.com>
Reviewed-on: http://git-master/r/91404
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: include: make module space configurable
Mursalin Akon [Tue, 31 Jan 2012 01:20:44 +0000]
arm: include: make module space configurable

Make the module space a configurable option.
The default value remains 16. The main goal
of this CL is to enable large module, such as
resman module of nvidia.

Change-Id: I8a775a6a23c1a75562917d8ab8e4bbe29f08d7e5
Signed-off-by: Mursalin Akon <makon@nvidia.com>
(cherry picked from commit 40aaad75bd32822137033fc7972d41ee30ff7bc9)
Reviewed-on: http://git-master/r/91322
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agomtd: chips: support for the new CFI version 1.5 and write buffer programming
Manoj Chourasia [Mon, 26 Mar 2012 09:10:56 +0000]
mtd: chips: support for the new CFI version 1.5 and write buffer programming

This patch add CFI version 1.5 support. It replaces
classic word programming by write buffer programming
and sets the FFS write size to 512 bytes.

The patch taken from spansion

bug 906309

Reviewed-on: http://git-master/r/89412
(cherry picked from commit 733c7ef4b9bdc52ac95095436a5cf83aa0296da5)

Change-Id: I63cbd0bad077e055d6efd4e2b4c7d26c608d1b66
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/91307
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agommc:host: add pm_caps and pm_flags to platform data
Mursalin Akon [Sat, 17 Mar 2012 00:59:14 +0000]
mmc:host: add pm_caps and pm_flags to platform data

Initialize pm_caps and pm_flags through platform
data.

Bug 956238

Change-Id: I400f6e92541fa2e63ccc7f829e204d5eef4697fc
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/90790
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agonet:wireless:bcmdhd: Add BCM4330 chip ID
Mursalin Akon [Thu, 15 Mar 2012 22:22:16 +0000]
net:wireless:bcmdhd: Add BCM4330 chip ID

Add ID of BCM4330 to supported chips.
Remove ID of BCM4329 as it is not supported.

Bug 956238

Change-Id: I5c9e809245161d76c3decab3e5252ce111a2a07d
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/90657
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agoARM: tegra: Fix Synaptics setup compilation warning
Juha Tukkinen [Wed, 14 Mar 2012 11:44:35 +0000]
ARM: tegra: Fix Synaptics setup compilation warning

Fix Synaptics touchpad GPIO setup compilation warning and add freeing of
resources when unconfiguring.

Change-Id: Idc98dd622cc969ac55f8c6a945317d657a6b7222
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/90046
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

7 years agortc: tps80031: Enable RTC interrupt appropriately
Venu Byravarasu [Wed, 15 Feb 2012 07:39:02 +0000]
rtc: tps80031: Enable RTC interrupt appropriately

Observed interrupt not getting enabled properly.
hence fixing it.

bug 937221

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

7 years agovideo: tegra: host: do not assume 3d channel opened by user space
Mayuresh Kulkarni [Tue, 27 Mar 2012 09:24:47 +0000]
video: tegra: host: do not assume 3d channel opened by user space

- if user space does not open 3d channel, 3d scaling
algorithm is not initialized. so return safely when
3d scaling is disabled
- also do not call nvhost_module_suspend() explicitly
for host1x client modules. nvhost_channel_suspend()
takes care to suspend the module if ref count = 0
- call nvhost_module_suspend() only for host1x device
as it does not use actual hardware channel

Bug 953451

Change-Id: Iba2b771b71d9b41c8ed978112566181872c56259
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/92506
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Peer Chen <pchen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Emily Jiang <ejiang@nvidia.com>

7 years agoASoC: Tegra wm8903 machine: Remove regulator error message
Preetham Chandru [Mon, 26 Mar 2012 15:08:55 +0000]
ASoC: Tegra wm8903 machine: Remove regulator error message

Few boards which uses wm8903 has independent regulators
for spk and mic while others do not have it.
For the boards which do not have independent regulators
we should avoid getting their regulators otherwise we
would get the following error messages:
"tegra-snd-wm8903 tegra-snd-wm8903.0: No speaker regulator found"
"tegra-snd-wm8903 tegra-snd-wm8903.0: No digital mic regulator found"

Bug 956562
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Change-Id: Ide1ce141b5d45d56e834dc82a7cf5a7adc6c3e80
Reviewed-on: http://git-master/r/91548
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agousb: gadget: fsl_udc: Remove regulator error message
Preetham Chandru [Tue, 27 Mar 2012 08:23:55 +0000]
usb: gadget: fsl_udc: Remove regulator error message

Print only a warning message if usb_bat_chg regulator is not registered.
Some boards do not support usb charging and for such boards
usb_bat_chg regulator will not be registered.
Hence print only a warning message in such cases.

Bug 956558
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Change-Id: I64c727f122c09d3865d649f3529b053bc65615ad
Reviewed-on: http://git-master/r/91521
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM:tegra:pcie:Avoid commenting PM noirq calls
Jay Agarwal [Mon, 26 Mar 2012 14:23:23 +0000]
ARM:tegra:pcie:Avoid commenting PM noirq calls

1. disable read write operation while suspend/resume
   noirq operation is performed to avoid hang
2. implement dev pm_ops for pcie tegra driver
3. use a backup buffer to save config space of
   all pcie devices to avoid legacy PM calls.

Change-Id: I2d39f69a865b48e1e51ce2cd466e24007718a8b6
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/90617
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Penny Chiu <pchiu@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Krishna Thota <kthota@nvidia.com>
Reviewed-by: Emily Jiang <ejiang@nvidia.com>

7 years agoARM:tegra:pcie: fix pcie power management
Jay Agarwal [Fri, 2 Mar 2012 18:38:07 +0000]
ARM:tegra:pcie: fix pcie power management

1. disable pci devices asynchronous suspend/resume.
2. correct resume function of tegra pcie driver.
3. enable clock clamping
4. require noirq suspend/resume calls to be commented

Bug 790141
Bug 947673

Change-Id: I49ebba43f296c3c38bc960d7db5fe847232e29a8
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/87316
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Penny Chiu <pchiu@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Krishna Thota <kthota@nvidia.com>

7 years agoarm: tegra: baseband: wake lock on both BB_RST_OUT pol
Frederic Bossy [Fri, 23 Mar 2012 22:05:19 +0000]
arm: tegra: baseband: wake lock on both BB_RST_OUT pol

bug 947710

Change-Id: If06de72d3880055c219e5ded892bb8cf956d774a
Signed-off-by: Frederic Bossy <fbossy@nvidia.com>
Reviewed-on: http://git-master/r/92066
Reviewed-by: Steve Lin <stlin@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoARM: tegra: cardhu: Fixed DSI panel issue on PM269.
Kevin Huang [Mon, 3 Oct 2011 21:16:47 +0000]
ARM: tegra: cardhu: Fixed DSI panel issue on PM269.

Bug 953155

Change-Id: I9fbb87f17e590971d5a0bf313e740e8b3b4c890b
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/91871
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: Enable speculative line fill in SCU.
Krishna Reddy [Thu, 22 Mar 2012 17:31:35 +0000]
arm: tegra: Enable speculative line fill in SCU.

Enable speculative line fill in SCU.
Bug 947861

Change-Id: I2db7515c47715160a4e559931e178b41c01a1744
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/91834
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

7 years agoarm:tegra[3]:config: turn off MMC_EMBEDDED_SDIO
Mursalin Akon [Fri, 16 Mar 2012 18:40:36 +0000]
arm:tegra[3]:config: turn off MMC_EMBEDDED_SDIO

No apparent need for L4T

Bug 956238

Change-Id: I78b7451a1bf30cce974f1daad88ae27959d55340
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/90672
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agonet:wireless:bcmdhd: rename bcmsdh_remove & bcmsdh_probe
Mursalin Akon [Thu, 15 Mar 2012 22:40:15 +0000]
net:wireless:bcmdhd: rename bcmsdh_remove & bcmsdh_probe

rename bcmsdh_remove & bcmsdh_probe to *_bcmdhd
to resolve symbol conflicts with bcm4329 driver.

Bug 956238

Change-Id: I750238ddf9b3a0d9ff9583a7ec456aceef28531c
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/90656
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agovideo: tegra: add cursor mode flipping
Adam Cheney [Thu, 15 Mar 2012 21:50:00 +0000]
video: tegra: add cursor mode flipping

This change adds a flag to flip windows in cursor mode.  Cursor mode
will cause flips to be skipped over if there are newer flip requests
waiting in the workqueue.

Add CURSOR_MODE to caps bitfield.

bug 942762

Change-Id: Ib52a0a5565f961cdd9650e4204cd65b86f96fee1
Signed-off-by: Adam Cheney <acheney@nvidia.com>
Reviewed-on: http://git-master/r/90418
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Morell <rmorell@nvidia.com>

7 years agoarch: arm: configs: enable Out Of Band interrupt.
Narayan Reddy [Mon, 26 Mar 2012 12:35:58 +0000]
arch: arm: configs: enable Out Of Band interrupt.

enable OutOfBand interrupt support in bcm4329 driver.

Bug 959909

Change-Id: I2e39eed38e2574c106dd0c43f5a940ced2af1d09
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/92326
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agotegra: p852: nor: Changing timing registers
Vishal Singh [Thu, 22 Mar 2012 09:10:55 +0000]
tegra: p852: nor: Changing timing registers

Changing the values of registers timing0 and timing1 of NOR flash
to those specified in the NOR POR.

Bug 914158.

Change-Id: Ie65fadbeda7329b22786841f46dd2583043a8381
Reviewed-on: http://git-master/r/#change,72828
Reviewed-on: http://git-master/r/91737
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra3: ARM_SAVE_DEBUG_CONTEXT should be selected based on PM_SLEEP
Manoj Chourasia [Wed, 21 Mar 2012 09:14:14 +0000]
ARM: tegra3: ARM_SAVE_DEBUG_CONTEXT should be selected based on PM_SLEEP

ARM_SAVE_DEBUG_CONTEXT was getting selected by tegra3 independent
of PM_SLEEP config. ARM_SAVE_DEBUG_CONTEXT itself is dependent on
PM_SLEEP. That was generating following warning while doing
savedefconfig with PM_SLEEP disabled.

scripts/kconfig/conf --savedefconfig=defconfig Kconfig
warning: (ARCH_TEGRA_2x_SOC && ARCH_TEGRA_3x_SOC) selects \
ARM_SAVE_DEBUG_CONTEXT which has unmet direct dependencies\
(PM_SLEEP && CPU_V7)

This patch fixes the issue.

bug 931053

Change-Id: I57016476b7ca39f9ac36a9c59d0102c89c85c6c9
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/91461
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoInput: gpio_keys - add support for interrupt only keys
Laxman Dewangan [Tue, 20 Mar 2012 00:54:31 +0000]
Input: gpio_keys - add support for interrupt only keys

Some of buttons, like power-on key or onkey, may only generate interrupts
when pressed and not actually be mapped as gpio in the system. Allow
setting gpio to invalid value and specify IRQ instead to support such
keys. The debounce timer is used not to debounce but to ignore new IRQs
coming while button is kept pressed.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

Cherry-picked from mainline
d8ee4a1c90529ed06e1aa43d034986649f7b670b

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

7 years agoInput: gpio_keys - consolidate key destructor code
Dmitry Torokhov [Mon, 19 Mar 2012 06:36:30 +0000]
Input: gpio_keys - consolidate key destructor code

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
(cherry picked from commit a16ca23935afc0d72215b139720bd07df3162a9f)

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

7 years agoInput: revert "gpio_keys - switch to using threaded IRQs"
David Jander [Mon, 19 Mar 2012 06:36:29 +0000]
Input: revert "gpio_keys - switch to using threaded IRQs"

request_any_context_irq() should handle the case when using GPIO expanders
that themselves use threaded IRQs, and so the premise of change
7e2ecdf438bb479e2b4667fc16b1a84d6348da04 is incorrect.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
(cherry picked from commit 6709c9a5d8c53092cbe89128df4e0a549e93133b)

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

7 years agoInput: gpio_keys - constify platform data
Dmitry Torokhov [Mon, 19 Mar 2012 06:36:29 +0000]
Input: gpio_keys - constify platform data

The platform data should not be altered and therefore should be
accessed through const pointers.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Cherry-picked from
d9080921aa32c70a95476ce387e973787b892591

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

7 years agoInput: gpio_keys - use of_property_read_u32()
Tobias Klauser [Fri, 9 Sep 2011 18:09:50 +0000]
Input: gpio_keys - use of_property_read_u32()

Use the of_property_read_u32() helper function to retrieve u32 values
from the device tree. Also do not pass the len parameter to
of_get_property if it isn't checked afterwards.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
(cherry picked from commit cca84699a079a91b0a0cb4f2da8548e56859376a)

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

7 years agoarm : tegra: clocks: Add PERIPH_ON_APB flag for apbif clock
Sumit Bhattacharya [Sun, 18 Mar 2012 08:57:21 +0000]
arm : tegra: clocks: Add PERIPH_ON_APB flag for apbif clock

Bug 953357

Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/90845
(cherry picked from commit 24b715551882d387b82a89e0213012863e46bb95)

Change-Id: Ia8632fccab0708dacd9ef4b9360f8ef499b47818
Reviewed-on: http://git-master/r/92280
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoARM: tegra: Fix PPCS IO address for Tegra 2x
Krishna Yarlagadda [Thu, 22 Mar 2012 10:52:16 +0000]
ARM: tegra: Fix PPCS IO address for Tegra 2x

PPCS physical address is different for Tegra 3x and 2x

Change-Id: If26f08f6f234786194f6642523b644e8bf4be770
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/91768
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agocrypto: tegra-aes: save key during key call
Sanjay Singh Rawat [Wed, 14 Mar 2012 13:18:29 +0000]
crypto: tegra-aes: save key during key call

Save the key in hardware when the key setting call comes. Currently it is
set at later time.

Bug 917607

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

7 years agoARM: tegra: cardhu: add pm311 mem table
Ray Poudrier [Sat, 18 Feb 2012 04:31:27 +0000]
ARM: tegra: cardhu: add pm311 mem table

Bug 896060

Reviewed-on: http://git-master/r/84679
(cherry picked from commit e1eb8a0802ff7c2aaf8e278e0f8cfd1fa06758be)

Change-Id: Ic233905eaa22775daa894c0132187b1192824b01
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>

Conflicts:

arch/arm/mach-tegra/board-cardhu-memory.c

Change-Id: Ic233905eaa22775daa894c0132187b1192824b01
Reviewed-on: http://git-master/r/88867
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: dvfs: correct LCD frequency for 1V
Ray Poudrier [Fri, 10 Feb 2012 04:27:17 +0000]
ARM: tegra: dvfs: correct LCD frequency for 1V

Bug 841336

Reviewed-on: http://git-master/r/82996
(cherry picked from commit 5850c8f4968fd7acbb22e377a56a476e37ac5117)

Change-Id: I61d5c1576a6f5caf82b3efec2123c47eb64889b2
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/88865
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: dvfs: Add chip sku override
Ray Poudrier [Fri, 9 Dec 2011 01:38:25 +0000]
ARM: tegra: dvfs: Add chip sku override

Based on command line parameter, override the sku

Bug 925878

Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/83241
(cherry picked from commit 24df2878418fc0c5f2b2dd20130df91a23dd042e)

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

7 years agousb: gadget: tegra: Fence read for AHB memory coherency
Rakesh Bodla [Tue, 7 Feb 2012 13:37:56 +0000]
usb: gadget: tegra: Fence read for AHB memory coherency

Fix memory coherency of AHB Master-initiated writes
to DRAM by reading the fence registers to make sure
memory is flushed to DRAM from the MC/EMC.

Bug 729267
Bug 952405

Change-Id: I96454fa43b58778d15095de2edb42e9dac1547d2
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/88285
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agousb: ehci: tegra: Fence read for AHB memory coherency
Rakesh Bodla [Tue, 7 Feb 2012 12:56:46 +0000]
usb: ehci: tegra: Fence read for AHB memory coherency

Fix memory coherency of AHB Master-initiated writes
to DRAM by reading the fence registers to make sure
memory is flushed to DRAM from the MC/EMC.

Bug 729267
Bug 952405

Change-Id: Ia60ee6796e53de6ece89e7e2ad531009a2fe5f00
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/88284
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoarm: tegra: xmm: reduce timeout timing on resume
Seongho Joo [Sun, 26 Feb 2012 03:18:02 +0000]
arm: tegra: xmm: reduce timeout timing on resume

1.reduce CP ack timeout to 1000 ms, based on modem vendor spec.
expected timing is 10ms, but modem vendor recommend to wait less than 1 sec.
2.move log print after spinlock section.
log in spinlock could waste cpu resource.

Bug 932104

Signed-off-by: Seongho Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/86003
(cherry picked from commit de853a886153cfb35cafcf797df490207187cc33)

Change-Id: I4b1ea80d25e0aa1f93599c08eedf306dbed00d63
Reviewed-on: http://git-master/r/91934
Reviewed-by: Shawn Joo <sjoo@nvidia.com>
Tested-by: Shawn Joo <sjoo@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agotty: serial: 8250: use postcore_initcall instead of module_init
Varun Wadekar [Fri, 20 Jan 2012 11:19:00 +0000]
tty: serial: 8250: use postcore_initcall instead of module_init

When the driver is not built as a module, use postcore_initcall
instead of module_init. This allows us to get the console prints
very early during the kernel boot process.

Bug 928931

Change-Id: Icbf60476f76486511237b72f5c53656ff7931676
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/76518
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: timer: add /dev/timerinfo
Jon Mayo [Wed, 29 Feb 2012 04:55:19 +0000]
ARM: tegra: timer: add /dev/timerinfo

Add a device that allows read-only mmap() of timer registers.

Reviewed-on: http://git-master/r/87511
(cherry picked from commit 95a6a6dafd97cbc72ea305f17b600be67a03093b)

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

7 years agoarch: arm: configs: update for minimal kernel
Ken Chang [Thu, 8 Mar 2012 04:01:42 +0000]
arch: arm: configs: update for minimal kernel

shall not have board specific config for mods
remove CONFIG_I2C_MUX_PCA954x

bug 916180

Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/88730
Reviewed-by: Krishna Monian <kmonian@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
(cherry picked from commit afee1fcade2e60d9c5986488e891c0cc9f1b22be)

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

7 years agoALSA: HDA: Return -ENODEV if hdmi_pcm_open() fails
Sumit Bhattacharya [Thu, 22 Mar 2012 14:17:16 +0000]
ALSA: HDA: Return -ENODEV if hdmi_pcm_open() fails

Return -ENODEV instead of -EAGAIN if hdmi_pcm_open() fails. There is
a chance of user space getting hung while trying to open pcm device
if -EAGAIN is returned.

Bug 949659

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

7 years agovideo: tegra: host: use bus_for_each_dev for channel debug output
Mayuresh Kulkarni [Mon, 19 Mar 2012 12:38:53 +0000]
video: tegra: host: use bus_for_each_dev for channel debug output

- this patch uses the iterrator bus API to print the channel
status on debug-fs output
- it is the first step for removal nvhost_master holding
pointers to all the channels

Bug 871237

Change-Id: I2eaf8f0124512f1bc1ea9bbbe71d2c112b1947d2
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/91676
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

7 years agoARM: fix rcu stalls on SMP platforms
Russell King [Thu, 19 Jan 2012 15:20:58 +0000]
ARM: fix rcu stalls on SMP platforms

We can stall RCU processing on SMP platforms if a CPU sits in its idle
loop for a long time.  This happens because we don't call irq_enter()
and irq_exit() around generic_smp_call_function_interrupt() and
friends.  Add the necessary calls, and remove the one from within
ipi_timer(), so that they're all in a common place.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Change-Id: I3383645deba180958b548fbae5aca795ac4094f6
Reviewed-on: http://git-master/r/90691
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agovideo: tegra: host: Split submit into subfunctions
Terje Bergstrom [Fri, 16 Mar 2012 11:55:24 +0000]
video: tegra: host: Split submit into subfunctions

Split host1x_channel_submit() into subfunctions.

Bug 926690

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

7 years agoARM: tegra: Fix compilation warning for PCIe
Juha Tukkinen [Wed, 14 Mar 2012 11:41:34 +0000]
ARM: tegra: Fix compilation warning for PCIe

Fix compilation error for PCIe.

Change-Id: I1ab5390dfce273236bd4aa09579bf54425faf2e9
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/90045
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agortc: tps80031: Fixing POR month comparison
Venu Byravarasu [Tue, 13 Mar 2012 05:21:33 +0000]
rtc: tps80031: Fixing POR month comparison

As month calculation is modified to fix bug 931452
and POR comparison for month is not updated, fixing it.

bug 951622

Change-Id: Ifd906b48c51b155809ed88892579e9dd14abd5a0
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/89663
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoALSA:hda: add alsa control for query of device
Sayak Ghosh Choudhury [Thu, 22 Mar 2012 14:03:19 +0000]
ALSA:hda: add alsa control for query of device

alsa control is added to facilitate querying dts decode capability of
connected device. dts decode capability of the connected device is
updated in the ELD buffer. That information is updated in the
ALSA control structure. In addition to that, the code is amended to
handle other pass through decoder mode support.

Bug 943017

Change-Id: If8da7dfb24be3b86592191f5586b70492282b438
Signed-off-by: Sayak Ghosh Choudhury <sayakc@nvidia.com>
Reviewed-on: http://git-master/r/91813
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agomfd: Build rtc5t583 only if I2C config is selected to y.
Laxman Dewangan [Mon, 19 Mar 2012 06:14:55 +0000]
mfd: Build rtc5t583 only if I2C config is selected to y.

Fixing build error reported by Stephen Rothwell:

drivers/built-in.o: In function `rc5t583_i2c_init':
rc5t583.c:(.init.text+0xb3db): undefined reference to `i2c_register_driver'
drivers/built-in.o: In function `rc5t583_i2c_probe':
rc5t583.c:(.devinit.text+0x8fa0): undefined reference to `regmap_init_i2c'
drivers/built-in.o: In function `rc5t583_i2c_exit':
rc5t583.c:(.exit.text+0x708): undefined reference to `i2c_del_driver'

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(cherry picked from commit 5364d0b8640dd15e5c0b3ba40d0e874764b1bc88)

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

7 years agomfd: Add support for RICOH PMIC RC5T583
Laxman Dewangan [Tue, 28 Feb 2012 13:05:17 +0000]
mfd: Add support for RICOH PMIC RC5T583

Ricoh power management IC  RC5T583 contains is multi
functional device having multiple sub devices inside this.
This device has multiple dcdc/ldo regulators, gpios, interrupt
controllers, on-key, RTCs, ADCs.
This device have 4 DCDCs, 8 LDOs, 8 GPIOs, 6 ADCs, 3 RTCs etc.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

Cherry-picked from mainline
1b1247dd75aa5cf5fae54a3bec7280046e9c7957

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

7 years agoi2c: tegra: Remove synchronization between init and isr
Chaitanya Bandi [Thu, 22 Mar 2012 11:47:37 +0000]
i2c: tegra: Remove synchronization between init and isr

Removed unnecessary synchronization between init and isr
because clock driver is making sure that any operations
will be completed before disabling the driver clock.

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

7 years agoARM: tegra: Remove legacy i2s/spdif driver
Laxman Dewangan [Thu, 22 Mar 2012 10:17:28 +0000]
ARM: tegra: Remove legacy i2s/spdif driver

Removing legacy i2s/spdif driver from tree.

These files are added to support customer projects prior
to moving over to alsa driver for audio.
There is no intention of using them and hence removing it.

Change-Id: I864dbc50e2e76ac16f40542460f63c8c8a0eff71
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/91758
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoasoc: tegra: max98088 machine: use common platform data
Nikesh Oswal [Thu, 22 Mar 2012 06:26:15 +0000]
asoc: tegra: max98088 machine: use common platform data

use common platform data instead of using codec specific platform
data for different codecs

Change-Id: I88ecb08f3945e0d9c5162ec2b2d3279a4da50099
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/91686
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: Specify correct dev name for audio regulators
Preetham Chandru [Wed, 21 Mar 2012 14:43:07 +0000]
arm: tegra: Specify correct dev name for audio regulators

Specify correct device names for ventana and cardhu speaker
and digital mic regulators.

Bug 956562
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Change-Id: Iaa357b3da52dc9f593558b7f7e0ffda10ce8d938
Reviewed-on: http://git-master/r/91531
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agoARM: tegra2: clock: Dynamic rate configuration
Shashank Sharma [Thu, 15 Mar 2012 15:31:02 +0000]
ARM: tegra2: clock: Dynamic rate configuration

support dynamic clock rate configuration for pll_d. Till now tegra2
used to look into a pll_d frequency table to match input and output
frequencies, resulting fixed pll_d output frequencies. Whereas
tegra3 had code to configure pll_d for any desired rate using
dynamically generated m,n,p values.

Bug: 931908

Change-Id: I15322e2e4ac0aba58502575cdc83ca4a4542d1e4
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-on: http://git-master/r/90361
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoasoc: tegra: aic326x machine: add voice call functionalities for ap30
Nikesh Oswal [Wed, 14 Mar 2012 16:19:03 +0000]
asoc: tegra: aic326x machine: add voice call functionalities for ap30

add voice call, bt voice call, voice call with system sound mix,
bt voice call with system sound mix, voice call recording,
bt voice call recording  functionalities for ti aic326x on ap30

Change-Id: Ia94c1586c30d0636d8de738ff6cbb716f4f79d16
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90123
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoARM: tegra: enterprise: add port id's for HIFI, BT and Baseband
Nikesh Oswal [Wed, 14 Mar 2012 16:17:37 +0000]
ARM: tegra: enterprise: add port id's for HIFI, BT and Baseband

Change-Id: I7dd486fd2b2bad27eecd61dddcca10fca710a7d6
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90122
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoARM: tegra: cardhu: add port id's for BT and HIFI
Nikesh Oswal [Wed, 14 Mar 2012 16:16:03 +0000]
ARM: tegra: cardhu: add port id's for BT and HIFI

add port id's for BT and HIFI and also disable(-1) the port id
for Baseband as Cardhu does not have a Baseband

Change-Id: I16914ce95c2153cd36691b1ef462d387e39d3fa5
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90121
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoasoc: codecs: max98088: check for revision id
Nikesh Oswal [Wed, 14 Mar 2012 12:18:09 +0000]
asoc: codecs: max98088: check for revision id

check for revision id, it must be 0x40 as per the datasheet,
if its not 0x40 then dont allow the card to register by failing
in the codec probe. This functionality will be required when the
same board support multiple codecs. Also register the irq only
after validating the codec.

Change-Id: I8553b85d534428c7137ec2d03e2f814b898609a6
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90061
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoasoc: tegra: max98088 machine: check for card instantiation
Nikesh Oswal [Wed, 14 Mar 2012 12:16:24 +0000]
asoc: tegra: max98088 machine: check for card instantiation

If card fails to instantiate then unregister the card

Change-Id: Ibcc0d505a8df48c1f924a3d8688dc23e362d5e8d
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90060
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: enterprise: add support for aic326x codec
Nikesh Oswal [Wed, 14 Mar 2012 12:14:47 +0000]
ARM: tegra: enterprise: add support for aic326x codec

Change-Id: Ibb28e461cf21a2b44ae819888d943ba1a5dc976c
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90059
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoasoc: aic326x machine: handle switch unregistration
Nikesh Oswal [Wed, 14 Mar 2012 12:12:56 +0000]
asoc: aic326x machine: handle switch unregistration

If switch registration is success and later card registration
fails then we must unregister the switch

Change-Id: I140b3fb0890f41fea653100bcff450f10294cd9d
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90058
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoasoc: aic326x machine: add aic326x for enterprise
Nikesh Oswal [Wed, 14 Mar 2012 10:14:02 +0000]
asoc: aic326x machine: add aic326x for enterprise

Change-Id: I1b41c408b65b79f12b20a5efb7c0d2e3245bad6a
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90057
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoARM: tegra: enterprise: enable TI AIC326x codec
Nikesh Oswal [Wed, 14 Mar 2012 10:10:24 +0000]
ARM: tegra: enterprise: enable TI AIC326x codec

Change-Id: I941e1140b139240d04906759098249508dbd9535
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90056
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agonet: usb: raw-ip: rx / tx statistics
Shawn Joo(Seongho) [Sat, 10 Mar 2012 07:57:37 +0000]
net: usb: raw-ip: rx / tx statistics

Add rx, tx, error statistics feature

Bug 932703

Change-Id: Ic7a6232dd3b48feff2b064fcff8f0d146b1e9902
Signed-off-by: Shawn Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/89305
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agovideo: tegra3: dc: remove hard coded HDMI rates
Shashank Sharma [Mon, 27 Feb 2012 09:36:54 +0000]
video: tegra3: dc: remove hard coded HDMI rates

Set dc clock rate dynamically to requested pixel rate.
Using modes specified in monitor's EDID data.
Return mode set errors on unsupported clock tolerances.

Bug 931908

Change-Id: I60990ecbc2fbeab542987036b8ccc30b8dababe8
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-on: http://git-master/r/86073
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agovideo: tegra: nvavp: Fix for high SMMU aparture
Kaz Fukuoka [Tue, 20 Mar 2012 20:59:07 +0000]
video: tegra: nvavp: Fix for high SMMU aparture

- With this fix NVAVP works with CONFIG_TEGRA_SMMU_BASE_AT_E0000000.

Change-Id: I9c267bc9b008a57f6f0cc4e9b27dbee0501e6a77
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/91316
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra3: p1852: clock: changed p1852 clocks
Mohit Kataria [Wed, 11 Jan 2012 05:08:38 +0000]
ARM: tegra3: p1852: clock: changed p1852 clocks

Changed clock frequencies for vi, host1x etc. as per POR
Bug 882186

Signed-off-by: Mohit Kataria <mkataria@nvidia.com>
Reviewed-on: http://git-master/r/74289
(cherry picked from commit 915b9924388f432fbc68be611f84047d09fc0d33)

Change-Id: I19c3aa845c75f0b8d07bd2dd109055696098e12a
Reviewed-on: http://git-master/r/90494
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Mohit Kataria <mkataria@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: baseband: Add wakelock after modem re-enumeration.
Steve Lin [Mon, 19 Mar 2012 22:12:42 +0000]
arm: tegra: baseband: Add wakelock after modem re-enumeration.

Holding wakelock after modem re-enumeration to ensure ril has enough
time to restart.

Bug 948610

Reviewed-on: http://git-master/r/91072
(cherry picked from commit 572bd2f735c4667ce326a1acb6e7d0884847d794)

Change-Id: Iee4f5243746ca218623c1ac2cd173482badba358
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/91361
Reviewed-by: Automatic_Commit_Validation_User

7 years agovideo: tegra: dc: VGA modes in supported mode list
Shashank Sharma [Wed, 21 Mar 2012 09:27:45 +0000]
video: tegra: dc: VGA modes in supported mode list

Add following VGA video modes in tegra_dc_hdmi_supported_modes list:

Resolution   Refresh rate(Hz)
-----------  ----------------
 640x480  75
 720x400  59
 800x600  60
 800x600  75
1024x768  75
1024x768  60
1152x864  75
1280x800  60
1280x960  60
1280x1024  60
1368x768  60
1440x900  60
1600x1200  75
1680x1050  60

Add CVT representation of all above modes to make sure they pass all the
HDMI constraints.
Add a new function tegra_dc_reload_mode to pick up CVT representation of
matching mode.

Bug 883911
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Change-Id: I5227644207d38ca83a0452d3c078ef202e40a508
Reviewed-on: http://git-master/r/89126
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>