8 years agospi: tegra: use run time pm apis for clock control
Laxman Dewangan [Mon, 30 Jan 2012 11:28:45 +0000]
spi: tegra: use run time pm apis for clock control

Used run time apis for clock controls i.e. clock enable/
disable in place of direct clock apis.
Using of runtime pm api was already implemented but it was
missed on probe where it was calling clock_disable.
Fixing this issue.

bug 928541

Change-Id: I511467bd1cbe05f2a05d219d19236426a30d05d5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/78156
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>

8 years agoARM: tegra: clock: Decrease CPU rate range low bound
Alex Frid [Thu, 26 Jan 2012 01:06:02 +0000]
ARM: tegra: clock: Decrease CPU rate range low bound

Add 51 MHz entry to cpufreq tables (102 MHz was minimum supported
rate before).

Bug 922351
Reviewed-on: http://git-master/r/77511

Change-Id: I20eea30cdadfb9efbf6489f8aaf5934f653af128
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78032
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

8 years agoARM: tegra: power: Set awake system CPU rate floor
Alex Frid [Wed, 25 Jan 2012 23:23:25 +0000]
ARM: tegra: power: Set awake system CPU rate floor

Set CPU rate floor to 100MHz when the system is awake (after boot,
or on late resume). Remove the floor when the system enters early
suspend.

Bug 922351
Reviewed-on: http://git-master/r/77444

Change-Id: I68f54a3d981c1cbeac16d58d3beb6e3aa6bf190c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78031
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

8 years agoARM: tegra: clock: Restrict Tegra3 PLLC usage
Alex Frid [Wed, 25 Jan 2012 07:15:28 +0000]
ARM: tegra: clock: Restrict Tegra3 PLLC usage

On Tegra3 PLLC should be used as a parent clock only for graphics bus
(cbus) modules and secondary PLLC divider. Fail set parent API if PLLC
is selected as a new parent for other clocks.

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

Change-Id: I564278dcdd62c17c6446218955c366b1612c73b3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78030
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

8 years agoarm: tegra: p1852: Add p1852 defconfig
Manoj Chourasia [Fri, 20 Jan 2012 09:49:46 +0000]
arm: tegra: p1852: Add p1852 defconfig

bug 871603

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

Change-Id: I2ff63550fde536ee0e0f1b69b3a58e4f164e62e5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78027
Reviewed-by: Automatic_Commit_Validation_User

8 years agodrivers: video: tegra: Amend list of gr3d regs
Terje Bergstrom [Tue, 17 Jan 2012 12:23:58 +0000]
drivers: video: tegra: Amend list of gr3d regs

Save and restore new gr3d registers. This is a workaround for
hardware not always initializing the registers to proper state
after un-powergating.

Bug 914785
Reviewed-on: http://git-master/r/75698

Change-Id: Id9d65d93d16daf68e29b1433b7dd3284cb439ffc
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78025
Reviewed-by: Automatic_Commit_Validation_User

8 years agosdhci: tegra: Enabling power rails when card present
naveenk [Tue, 17 Jan 2012 09:39:09 +0000]
sdhci: tegra: Enabling power rails when card present

Enabling power rails when the card is present
which reduces power consumption

Bug 924888
Reviewed-on: http://git-master/r/75653

Change-Id: If9cbd02b49821954646845bd889501e9159c7b8c
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78023
Reviewed-by: Automatic_Commit_Validation_User

8 years agommc: tegra: Enable SDR104 and SDR50 support
Pavan Kunapuli [Fri, 27 Jan 2012 11:01:20 +0000]
mmc: tegra: Enable SDR104 and SDR50 support

Enable SDR104 and SDR50 support for Tegra3.

Bug 920089
Bug 913598
Reviewed-on: http://git-master/r/75248

Change-Id: Ib7e7d15f1a42a14bb1ecb3e0f25934309ec43534
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78022
Reviewed-by: Automatic_Commit_Validation_User

8 years agommc: core: Set card state to ddr in UHS DDR50 mode
Pavan Kunapuli [Thu, 29 Dec 2011 14:50:34 +0000]
mmc: core: Set card state to ddr in UHS DDR50 mode

When SD 3.0 cards operate in UHS DDR50 mode, set the
card state to ddr mode to select the proper frequency.

Bug 925326
Reviewed-on: http://git-master/r/72628

Change-Id: I9370ab402eb0c39f603555eccdcb49723ac4910f
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78021
Reviewed-by: Automatic_Commit_Validation_User

8 years agoinclude: wl_wilink: define dummy st_ll_getstate() when !CONFIG_TI_ST
Rakesh Goyal [Wed, 25 Jan 2012 23:06:49 +0000]
include: wl_wilink: define dummy st_ll_getstate() when !CONFIG_TI_ST

Few board specific calls use this function. Compilation fails if
calls from the board file is not protected by CONFIG_TI_ST, which
is not recommended.

Bug 926128
Reviewed-on: http://git-master/r/77435

Change-Id: Idb4fa9001a102f1cb983afd131bfd4c0c8cf08f3
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78020
Reviewed-by: Automatic_Commit_Validation_User

8 years agowl12xx: add new board_tcxo_clock element to the platform data
Luciano Coelho [Thu, 10 Mar 2011 14:42:47 +0000]
wl12xx: add new board_tcxo_clock element to the platform data

This new value is a new type of clock setting that is used by wl128x
chipsets.

Bug 926128

Reviewed-on: http://git-master/r/77361
(cherry picked from commit 62c7d085e1f2a1f2b4d89560551eff18d703b3b1)

Change-Id: I2cf2af565a2574cf789ae73a59b4891969506491
Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78019
Reviewed-by: Automatic_Commit_Validation_User

8 years agodrivers: misc: ti-st: apply wl12xx patch from TI
Rakesh Goyal [Wed, 25 Jan 2012 12:15:12 +0000]
drivers: misc: ti-st: apply wl12xx patch from TI

patch is for following feature
1) use set_power() defined in platform file to
switch on/off BT.
2) send_ll_cmd  according to state

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

Change-Id: I48ccb310ee4ce97c82835ef5701673c6f40231d4
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78018
Reviewed-by: Automatic_Commit_Validation_User

8 years agomedia: fix corner case in tegra_mediaserver
Colin Patrick McCabe [Thu, 19 Jan 2012 22:04:10 +0000]
media: fix corner case in tegra_mediaserver

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

Change-Id: I653afbb6f766493e5d458b2ba4babb8e400c30c1
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78016
Reviewed-by: Automatic_Commit_Validation_User

8 years agomach-tegra: tegra3_actmon: skip useless check
Colin Patrick McCabe [Wed, 18 Jan 2012 23:12:48 +0000]
mach-tegra: tegra3_actmon: skip useless check

Don't check if an unsigned variable < 0.

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

Change-Id: Ia61781a8f5b8ebcdc39501486ed3f893a91d3430
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78015
Reviewed-by: Automatic_Commit_Validation_User

8 years agonet: usb: raw-ip: Defer tx urb submit to work function.
Michael Hsu [Wed, 25 Jan 2012 06:01:59 +0000]
net: usb: raw-ip: Defer tx urb submit to work function.

Defer tx urb submit to work function to avoid problems with autopm
not fully resumed.

BUG 929408
Reviewed-on: http://git-master/r/77228

Change-Id: Id559d65384780067e48faee6c79134eb35d298fc
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78014
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

8 years agomach-tegra: add missing return statement
Colin Patrick McCabe [Wed, 18 Jan 2012 20:13:23 +0000]
mach-tegra: add missing return statement

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

Change-Id: Ia77147074cb90d0ed22f64135a16b374f258b008
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78013
Reviewed-by: Automatic_Commit_Validation_User

8 years agomedia: tps61050: fix NVC_IOCTL_PWR_RD
Colin Patrick McCabe [Thu, 19 Jan 2012 23:15:39 +0000]
media: tps61050: fix NVC_IOCTL_PWR_RD

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

Change-Id: If51967720de2f4dc1634906fa263c693aef87d75
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78012
Reviewed-by: Automatic_Commit_Validation_User

8 years agomach-tegra: fix uninitialized variable
Colin Patrick McCabe [Wed, 18 Jan 2012 20:08:27 +0000]
mach-tegra: fix uninitialized variable

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

Change-Id: Idbc213bb17d0e006c9a4cdaf500a94dbae1007d0
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78011
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra3: change min_rate for sclk
Wen Yi [Tue, 24 Jan 2012 06:54:21 +0000]
arm: tegra3: change min_rate for sclk

Change the minimal rate of sclk to 12 MHz and set the lowest
frequency of sbus to be 40 MHz when display is on.

BUG 922351
Reviewed-on: http://git-master/r/76959

Change-Id: I6a2871d1cc02a19829cf397e9583122e02255f81
Signed-off-by: Wen Yi <wyi@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78010
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

8 years agovideo: tegra: host: initialize id of hostdev to -1
Mayuresh Kulkarni [Fri, 20 Jan 2012 08:14:06 +0000]
video: tegra: host: initialize id of hostdev to -1

This ensures that host1x's name is host1x, and not host1x.0

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

Change-Id: I91d9dcbec108ee7f35dc638ed9370552f6eaa164
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78009
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

8 years agotegra_mediaserver: Add missing mutex unlock
Ron Vaughn [Tue, 20 Dec 2011 17:06:46 +0000]
tegra_mediaserver: Add missing mutex unlock

Add a mutex_unlock() that was missing in the failure case of
the mediasrv_unlocked_ioctl() function.

Bug 918148
Reviewed-on: http://git-master/r/71470

Change-Id: Id935e2eadfcd5ca3ebf7a086afbcfd4224c52604
Signed-off-by: Ron Vaughn <rvaughn@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78008
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: Kai: Touch setup
Ali Ekici [Fri, 20 Jan 2012 00:51:28 +0000]
arm: tegra: Kai: Touch setup

Added touch setup and init calls to board-kai.c & h files
Also limited max spi clock rate (sbc1) to 72 Mhz

Bug 912775
Bug 832605

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

Change-Id: I616bd97538c1513307bce178bb9fd4040a9ecd4d
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77777
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoarm: tegra: kai: Synaptics DirectTouch
Ali Ekici [Wed, 11 Jan 2012 18:57:25 +0000]
arm: tegra: kai: Synaptics DirectTouch

Board file for Synaptics SPI touch connection which is
used for DirectTouch initialization

Bug 912775

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

Change-Id: Ie296ddff5b9e1fbf9296d40fde2877598a13207e
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77775
Reviewed-by: Automatic_Commit_Validation_User

8 years agoinput: touchscreen: DirectTouch Synaptics driver
Ali Ekici [Wed, 11 Jan 2012 22:10:13 +0000]
input: touchscreen: DirectTouch Synaptics driver

This is Synaptics' open source driver except one line
change to accomodate an SPI kernel driver feature
which does not accomodate optional byte-delay. It
will be fully original driver when we add byte-delay
into Tegra SPI kernel drivers.

Bug 912775

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

Change-Id: I0f39928c48bc0e633de0d2c1f595bcef47268d52
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77774
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: kai: Raydium DirectTouch
Ali Ekici [Wed, 11 Jan 2012 18:57:25 +0000]
arm: tegra: kai: Raydium DirectTouch

Board file for Raydium SPI touch connection which is
used for DirectTouch initialization

Bug 832605

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

Change-Id: Icac5ebd22b5a3b6fe38d3e23a37f88df067c0c10
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77773
Reviewed-by: Automatic_Commit_Validation_User

8 years agoARM: tegra: clock: Update CPU clock scaling dependencies
Alex Frid [Fri, 20 Jan 2012 07:21:21 +0000]
ARM: tegra: clock: Update CPU clock scaling dependencies

Added Tegra3 MSelect clock to memory on CPU clock dependencies:
MSelect rate is scaled as half of CPU rate, up to 102MHz. Prevented
CPU clock increase if updates of dependent clocks (EMC and MSelect)
have failed.

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

Change-Id: I679b60eb5aa13d5cca2b9751ff2c8c2fb866a076
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77767
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoARM: tegra: clock: Add support for Tegra3 MSelect clock
Alex Frid [Fri, 20 Jan 2012 06:05:45 +0000]
ARM: tegra: clock: Add support for Tegra3 MSelect clock

Added clock for memory path selection module (MSelect) to Tegra3
peripheral clocks. Initialized MSelect clock rate to 102MHz.

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

Change-Id: I73676882d8e6805445985b23257bcf6410e8c3e0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77766
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoasoc:tegra: Support I2S slave mode
ScottPeterson [Wed, 18 Jan 2012 01:32:11 +0000]
asoc:tegra: Support I2S slave mode

Support I2S slave mode. Disable pll_p_out1 and
pll_a to reduce power when in slave mode.

Slave mode disabled by default.

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

Change-Id: I873a11d54f1e037d99c86ff4cec06ee83064902a
Signed-off-by: ScottPeterson <speterson@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77765
Reviewed-by: Automatic_Commit_Validation_User

8 years agovideo: tegra: host: CPU reg read to use power management
Terje Bergstrom [Tue, 24 Jan 2012 06:00:36 +0000]
video: tegra: host: CPU reg read to use power management

CPU register read did not have access to nvhost power management.
Due to this only modules that were powered on previously are actually
accessible via the API. This patch refactors CPU access to:

 * Move mutexes to sync point, as they're sync point operations
 * Move register address spaces to nvhost_device
 * Call register read with access to the respective nvhost_device
 * Initialize module completely at boot-up so that register reads
   can be done without an initialized channel.

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

Change-Id: I0db38cef7b2cd92dc64e7f55d227bdd2fdb8f752
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77764
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: comms: Auto suspend after system resume
Seshendra Gadagottu [Thu, 5 Jan 2012 12:22:52 +0000]
arm: tegra: comms: Auto suspend after system resume

Re-enable usb auto suspend on system resume by making
get_interface() and put_interface() calls.

BUG 921565
Reviewed-on: http://git-master/r/73468

Change-Id: Ieb7c82e73a7134e1d3bb8b0b3e96a42ed6672afe
Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77763
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agomedia: video: ov5650: add sensor group hold.
Frank Chen [Wed, 11 Jan 2012 18:55:31 +0000]
media: video: ov5650: add sensor group hold.

Grouphold gain and coarse_time register writes.
Make gain and coarse_time set in one ioctl call.

Bug 924213

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

Change-Id: I648e4c24c1a048629757abc21afba092d1484d04
Signed-off-by: Yining Deng <ydeng@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77762
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: comms: handle usb disconnection
Seshendra Gadagottu [Mon, 26 Dec 2011 07:42:12 +0000]
arm: tegra: comms: handle usb disconnection

Flushing pending urb requests on disconnection.
Blocks usb requests on usb device disconnection.

BUG 919270

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

Change-Id: I9ae10685d9517e0626338cfd42b21479d7d480eb
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77760
Reviewed-by: Automatic_Commit_Validation_User

8 years agoinput: touchscreen: move board shared data structure to linux/platform_data
Peter Zu [Thu, 26 Jan 2012 04:17:53 +0000]
input: touchscreen: move board shared data structure to linux/platform_data

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

Change-Id: Iafe31126fbcec1bfd01b51e0c122b44d3a71bbda
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77759
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarch: arm: configs: Defconfig for MODS LDK
Dinesh Israni [Wed, 25 Jan 2012 04:56:54 +0000]
arch: arm: configs: Defconfig for MODS LDK

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

Change-Id: I1a9183102bcb1c70956f773101b2cf78c4dc2fc9
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77758
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: power: disable SUSPEND_NONE mode selection
Bitan Biswas [Wed, 25 Jan 2012 09:54:30 +0000]
arm: tegra: power: disable SUSPEND_NONE mode selection

sysfs interface to select suspend mode as TEGRA_SUSPEND_NONE
is disabled. Additionally, if tegra_suspend_dram is called
with suspend mode as TEGRA_SUSPEND_NONE we return error

bug 927937

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

Change-Id: Ifdd57cdf27e739a9c093cad4eddefb73a6a2355d
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77757
Reviewed-by: Automatic_Commit_Validation_User

8 years agoasoc: tegra: max98088: implement an api to get voice call state
Nikesh Oswal [Wed, 25 Jan 2012 06:47:52 +0000]
asoc: tegra: max98088: implement an api to get voice call state

Bug: 924817

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

Change-Id: Ife3bb3439b4b00d042684500d7ffb6bc00100ba6
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77756
Reviewed-by: Automatic_Commit_Validation_User

8 years agotegra_audio: declare an api for getting voice call state
Nikesh Oswal [Wed, 25 Jan 2012 06:46:15 +0000]
tegra_audio: declare an api for getting voice call state

Bug: 924817

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

Change-Id: Iea767c952cfac8cb1643e28b7e29e43ad298909e
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77755
Reviewed-by: Automatic_Commit_Validation_User

8 years agovideo: tegra: host: enable_3d_scaling perms 0644
Ilan Aelion [Tue, 24 Jan 2012 18:08:48 +0000]
video: tegra: host: enable_3d_scaling perms 0644

Allowing user to write sysfs nodes breaks CTS. 3D scaling should be
enabled in all current power modes and does not need to be toggled
by user / system code. Hence disabling user write permission.

Bug 906796

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

Change-Id: I164926b5e65a05d63928c9e7c5970ea930cde37b
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77754
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: Clock audio from clk_m
ScottPeterson [Wed, 18 Jan 2012 00:37:09 +0000]
arm: tegra: Clock audio from clk_m

Clock audio from clkm as
a pre-condition of disabling pllp_out1 and plla
when I2S is in slave mode.

Change-Id: I1706c2989cf7ad9045526ceba3326777b702868a

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

Signed-off-by: ScottPeterson <speterson@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I243508cc553ebf22bb5594a9461019abfec24b65
Reviewed-on: http://git-master/r/77753
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoasoc: wm8903: Fix clock functions
ScottPeterson [Wed, 18 Jan 2012 00:51:20 +0000]
asoc: wm8903: Fix clock functions

Clock function for non-integral of sample
rate clocks does not work correctly and
generates incorrect sample rate.

Signed-off-by: ScottPeterson <speterson@nvidia.com>

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

Change-Id: I39977c9e2b647d4eabc8d9209c2d05665f708ab0
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77752
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: Fix setting CPU_RESETTABLE_SOON flag
Joshua Cha [Mon, 16 Jan 2012 07:26:11 +0000]
arm: tegra: Fix setting CPU_RESETTABLE_SOON flag

tegra2_cpu_set_resettable_soon() should be called in CPU1 only.

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

Change-Id: I0825a2d2ed2935d2b1dac1ff7d134e1f4f37f552
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77751
Reviewed-by: Automatic_Commit_Validation_User

8 years agotegra: wdt: Add KEEPALIVE function to WDT driver
Kamal Kannan Balagopalan [Tue, 24 Jan 2012 06:46:09 +0000]
tegra: wdt: Add KEEPALIVE function to WDT driver

Add KEEPALIVE functionality to Tegra WDT driver for use by user space
applications.

Bug 887733

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

Change-Id: I966371bc5db34416de08c8dc2af9069b4bd34c5d
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77750
Reviewed-by: Automatic_Commit_Validation_User

8 years agomedia: video: tegra: nvavp: Fix suspend/resume
Isaac Richards [Tue, 24 Jan 2012 17:13:05 +0000]
media: video: tegra: nvavp: Fix suspend/resume

Mark host1x as busy only when clocks are enabled, instead of
unconditionally at load/unload and suspend/resume time.  Shutdown
the avp device entirely during suspend, and restart it on resume if
if necessary.

Bug 929279

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

Change-Id: I0c66c26302fe307bea396e1c547a67b3417e26ec
Signed-off-by: Isaac Richards <irichards@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77749
Reviewed-by: Automatic_Commit_Validation_User

8 years agotegra: usb: phy: Pullup HSIC strobe at idle
Vinayak Pane [Wed, 14 Dec 2011 04:34:30 +0000]
tegra: usb: phy: Pullup HSIC strobe at idle

Correcting the strobe and SOFs behaviour. This avoids run-stop
bit to start before actual bus_reset. Also, pullup the
strobe signal during idle and wait for connect detect
after bus idle.

Bug 898008
Bug 922444

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

Change-Id: I01999521013677f159ee9c12f2d7bcb453c3b39d
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77748
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: whistler/ventana: add ram console
Joshua Cha [Fri, 13 Jan 2012 08:53:30 +0000]
arm: tegra: whistler/ventana: add ram console

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

Change-Id: I4c90973c808bb9f21a01d6d30fd1bfe915728439
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77747
Reviewed-by: Automatic_Commit_Validation_User

8 years agonet: usb: raw-ip: Avoid urb submit if usb interface disconnected.
Michael Hsu [Thu, 12 Jan 2012 03:09:10 +0000]
net: usb: raw-ip: Avoid urb submit if usb interface disconnected.

Do not submit rx urb if usb interface is disconnected.

BUG 922418

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

Change-Id: I42fa715307275b9d1175ef624acef6c098732261
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77746
Reviewed-by: Automatic_Commit_Validation_User

8 years agomedia: video: tegra: Override no regulator device
Nitin Pai [Tue, 10 Jan 2012 14:23:47 +0000]
media: video: tegra: Override  no regulator device

Dont fail if there is no regulator device.
For all other cases return failure.

Bug 898252

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

Change-Id: Iab987a5d948cd7f3c3373cd3d12f52d480767772
Signed-off-by: Nitin Pai <npai@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77745
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: comms: fix crash at dev attr change
Vinayak Pane [Thu, 5 Jan 2012 23:28:54 +0000]
arm: tegra: comms: fix crash at dev attr change

Check the state machine before poweron the modem by device
attribute change routine. Maintain the state machine to
avoid crash after writing state change to
 /sys/devices/platform/baseband_xmm_power/xmm_onoff

Also cancel workqueue at module unload to avoid
possible crash.

Bug 898008

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

Change-Id: I0d8286774040f155c930ecb0bb69778de6c606ac
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77744
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: modify governor parameter set function
Wen Yi [Sat, 7 Jan 2012 00:29:00 +0000]
arm: tegra: modify governor parameter set function

Use the parameter name and value to set to the conservative
governor.
Also defined the value of freq_step to be 3 and set it during
early suspension.

Bug 922351

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

Change-Id: Ieefa487f8b255d4bf242a7d98b07dc3758a70e86
Signed-off-by: Wen Yi <wyi@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77743
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoarm: tegra: enterprise: convert sdmmc3_vdd_sel to gpio_reg
Varun Wadekar [Fri, 27 Jan 2012 09:51:37 +0000]
arm: tegra: enterprise: convert sdmmc3_vdd_sel to gpio_reg

Instead of using sdmmc3_vdd_sel as a fixed regulator, convert it
to a gpio-regulator.

Change-Id: I459f9a4afc4b7dd3f6f2147483b938887764d355
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77742
Reviewed-by: Automatic_Commit_Validation_User

8 years agotegra: i2c: Added high speed support
Alok Chauhan [Wed, 25 Jan 2012 03:51:29 +0000]
tegra: i2c: Added high speed support

Added i2c high speed support.

Bug 873879

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

Change-Id: I5a2c5f272485e6f7c8bb6c11d7c3b6850fdcd768
Signed-off-by: Alok Chauhan <alokc@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77741
Reviewed-by: Automatic_Commit_Validation_User

8 years agotegra: i2c: mutex-protect access to is_suspended
Alexandre Courbot [Fri, 16 Dec 2011 06:10:47 +0000]
tegra: i2c: mutex-protect access to is_suspended

Before making a transfer, is_suspended is checked to make sure the
device is alive. However this check is done without holding the lock
that the suspend and resume functions hold to change the suspend state,
creating the possibility of a race condition.

Bug 916336

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

Change-Id: I7b4e52f686b0b372f3fc8ba7c7a4e4fdcdb6ba10
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77740
Reviewed-by: Automatic_Commit_Validation_User

8 years agoARM: tegra: cardhu: Fix unused variable warnings
Scott Williams [Fri, 20 Jan 2012 22:41:59 +0000]
ARM: tegra: cardhu: Fix unused variable warnings

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

Change-Id: I0134c46c5fceb1ee863f97a6b6e1aed9608b842f
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77739
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoARM: tegra: power: Fix warnings when PM_SLEEP is not selected
Scott Williams [Fri, 20 Jan 2012 22:27:05 +0000]
ARM: tegra: power: Fix warnings when PM_SLEEP is not selected

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

Change-Id: I88939c92aa1c28f5177010ba2afd524c3a4b713d
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77738
Reviewed-by: Automatic_Commit_Validation_User

8 years agoARM: tegra: enterprise: Fix unused variable warnings
Scott Williams [Fri, 20 Jan 2012 22:42:37 +0000]
ARM: tegra: enterprise: Fix unused variable warnings

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

Change-Id: Iaf9e52fd84f91ad275e1836eda5417c5bd70db02
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77737
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoarm: tegra: Disable pll_p_out clocks by default
Prashant Gaikwad [Mon, 23 Jan 2012 07:13:28 +0000]
arm: tegra: Disable pll_p_out clocks by default

Disable unused pll_p_out clocks until they are
needed to reduce power.

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

Change-Id: I16dba325fff48cc895ec115f3a4124a1d7228cee
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77736
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoenterprise: fix gpio regulators initialization
Alexandre Courbot [Mon, 23 Jan 2012 03:02:16 +0000]
enterprise: fix gpio regulators initialization

Move gpio regulators into their own table to avoid incorrect cast in
fixed regulator initialization function.

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

Change-Id: If98790dc843d7e1d7201a62f4977e15ae18502ca
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77735
Reviewed-by: Automatic_Commit_Validation_User

8 years agotegra3: fix pll_c frequency table
Alexandre Courbot [Tue, 24 Jan 2012 03:39:18 +0000]
tegra3: fix pll_c frequency table

tegra_pll_c_freq_table had an error in the output clock rate. This patch
fixes it so that the formula o =(i * (n / m)) holds true.

Bug 917377.

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

Change-Id: I06cb132e9ac05dac905ef2ef0437f5278cf916e5
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77734
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoarm: tegra: whistler: increase driver strength of dap
Nikesh Oswal [Tue, 24 Jan 2012 06:41:31 +0000]
arm: tegra: whistler: increase driver strength of dap

for low driver strength of daps we are getting noise in voice call
hence increase the drive strength of daps for voice call

Bug: 919350
Change-Id: I29dca68f339078cd80bebdb6ae46b46117e32949

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

Change-Id: I4c59379a1859938038cff175ab695808bddb0963
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77733
Reviewed-by: Automatic_Commit_Validation_User

8 years agoasoc: codecs: wm8753: allow to change the dai mode even when codec is busy
Nikesh Oswal [Tue, 24 Jan 2012 06:50:22 +0000]
asoc: codecs: wm8753: allow to change the dai mode even when codec is busy

In Voice Call when ringtone stream is opened the codec is busy and the
call mode needs to be set before closing the ringtone stream hence we
put the logic in codec driver to enable dai mode change even when codec
is busy

Bug: 919350

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

Change-Id: Iaf7176b3a7f72709140e29c2c6071ab4101ec418
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77732
Reviewed-by: Automatic_Commit_Validation_User

8 years agoasoc: tegra: wm8753: add support for voice call
Nikesh Oswal [Tue, 24 Jan 2012 06:49:32 +0000]
asoc: tegra: wm8753: add support for voice call

Bug: 919350

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

Change-Id: I95611af5e6c12e03cc22fc30c8147e3ef6852615
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77731
Reviewed-by: Automatic_Commit_Validation_User

8 years agoasoc: tegra: ap20: add functions to enable/tristate the das
Nikesh Oswal [Tue, 24 Jan 2012 06:48:04 +0000]
asoc: tegra: ap20: add functions to enable/tristate the das

Bug: 919350

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

Change-Id: Iffc597141a3a5ea528089ce06bf57a4b012eefe8
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77730
Reviewed-by: Automatic_Commit_Validation_User

8 years agovideo: tegra: host: Fix timeout syncpt incrs
Terje Bergstrom [Mon, 23 Jan 2012 12:23:45 +0000]
video: tegra: host: Fix timeout syncpt incrs

In timeout, if there were more than one submits in queue, timeout
accumulated the sync point increments incorrectly. Fix accounting
of sync point increments.

Bug 915715

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

Change-Id: I03223b1f65a4bdbae19e9c1b927451a80122bec4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77729
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: defconfig: touchscreen, Raydium SPI driver
Ali Ekici [Thu, 19 Jan 2012 23:34:36 +0000]
arm: tegra: defconfig: touchscreen, Raydium SPI driver

Enable Raydium touch touch driver which is used for
DirectTouchpurposes.

bug 832605

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

Change-Id: I633291cf5e11d66709f224292d02e211cca051fd
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77728
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agomedia: video: tegra: return next avaiable clock
Jihoon Bang [Thu, 12 Jan 2012 23:37:28 +0000]
media: video: tegra: return next avaiable clock

tegra_camera_clk_set_rate sets the clock rate which is
equal to or greater than requested clock rate. In this way,
user space code doesn't have to scan through to find next
available higher clock through system call.
Remove setting VI/ICP clock to register directly.

Bug 917641

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

Change-Id: Iecbeacecb34c6b6f71228932ba4b046658ff905d
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77727
Reviewed-by: Automatic_Commit_Validation_User

8 years agoregulator: tps65910: use appropriate variable names.
Laxman Dewangan [Fri, 20 Jan 2012 11:06:22 +0000]
regulator: tps65910: use appropriate variable names.

Renaming the variables "table" to "voltage_table" and
"table_len" to "n_voltages" of regulator information
to have more meaningful.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cherry picked from commit
7d38a3cb9b9f6a6d31b1d19e4f07a7c0b71407d5

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

8 years agoregulator: tps65910: Initialize n_voltages for rails.
Laxman Dewangan [Wed, 18 Jan 2012 15:17:16 +0000]
regulator: tps65910: Initialize n_voltages for rails.

Initializing the number of voltages supported by different
rails of pmic device tps65911.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cherry picked from mainline's commit
51ced5e288b4381705df173fb05f561dea35bfac

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

8 years agoregulator: tps65910: Add regulator info for RTC rail
Laxman Dewangan [Wed, 18 Jan 2012 15:16:56 +0000]
regulator: tps65910: Add regulator info for RTC rail

Adding missing regulator info for VRTC rail for device
tps65911. The regulator voltage rail index start from
VRTC which is defined as 0.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cherry picked from mainline's commit
c2f8efd7641b1b10b73ffa6f216a45209a5705dd

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

8 years agoregulator: TPS65910: Fix VDD1/2 voltage selector count
Afzal Mohammed [Tue, 8 Nov 2011 13:24:10 +0000]
regulator: TPS65910: Fix VDD1/2 voltage selector count

Count of selector voltage is required for regulator_set_voltage
to work via set_voltage_sel. VDD1/2 currently have it as zero,
so regulator_set_voltage won't work for VDD1/2.
Update count (n_voltages) for VDD1/2.

Output Voltage = (step value * 12.5 mV + 562.5 mV) * gain

With above expr, number of voltages that can be selected is
step value count * gain count

constant for gain count will be called VDD1_2_NUM_VOLT_COARSE

existing constant for step value count is VDD1_2_NUM_VOLTS,
use VDD1_2_NUM_VOLT_FINE instead to make clear that step value
is not the only component in deciding selectable voltage count

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cherry picked from mainline's commit
780dc9ba4eb682a89be48d5b814feae6722a19e0

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

8 years agoregulator: TPS65910: Create an array for init data
Kyle Manna [Thu, 3 Nov 2011 17:08:06 +0000]
regulator: TPS65910: Create an array for init data

Create an array of fixed size for the platform to pass regulator
initalization data through.

Passing an array of pointers to init data also allows more flexible
definition of init data as well as prevents reading past the end of the
array should the platform define an incorrectly sized array.

Signed-off-by: Kyle Manna <kyle.manna@fuel7.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
cherry picked from mainline's commit
 c1fc1480249dfe059254779a4bb7ca27cf5f8038

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

8 years agoregulator: TPS65910: Move regulator defs to header
Kyle Manna [Thu, 3 Nov 2011 17:08:05 +0000]
regulator: TPS65910: Move regulator defs to header

Move the regulator defintions to the header so that platform board file
can use them to configure specific regulators.

Signed-off-by: Kyle Manna <kyle.manna@fuel7.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Cherry picked from mainline's commit:
72c108cc4947db2fcdd3f3e8a2b60bd65e74a1cc

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

8 years agomfd: Make TPS65910 usable without interrupts
Afzal Mohammed [Wed, 14 Dec 2011 10:35:35 +0000]
mfd: Make TPS65910 usable without interrupts

TPS65910 can be used without interrupts.
Hence let probe succeed in case interrupt can't be
configured and let Kernel only to complain about it

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
cherry picked from mainline's commit
1e351a95b6fda20e16b64a698bae505765080308

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

8 years agomfd: Handle tps65910 clear-mask correctly
Marcus Folkesson [Tue, 22 Nov 2011 13:39:51 +0000]
mfd: Handle tps65910 clear-mask correctly

The function is not actually cleaing the bitmask.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
cherry picked from mainline's commit:
8f6a459a9daa6ce76d7c192f2cb3047fffb45ec8

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

8 years agoiommu/tegra: gart: Disabled as default in Kconfig
Hiroshi DOYU [Thu, 26 Jan 2012 06:56:40 +0000]
iommu/tegra: gart: Disabled as default in Kconfig

CONFIG_TEGRA_IOMMU_GART has to be selected explicitly because there's
2 IOMMU framewrok existing in Tegra, CONFIG_TEGRA_IOVMM_{GART,SMMU}
and CONFIG_TEGRA_IOMMU_{GART,SMMU}.

Change-Id: I6f1a0ad8e321c5ad5378baa6bc4a9bcecad9d4d2
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/77513
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

8 years agoregulator: tps62360: Remove extra argument in regulator_register
Laxman Dewangan [Wed, 25 Jan 2012 14:13:27 +0000]
regulator: tps62360: Remove extra argument in regulator_register

As this dirver is back ported from kernel mainline, the function
regulator_register() have one extra argument.
Removing this extra argument.

Change-Id: I615f995184e4908c399b9ccc91e090e49f10aec3

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

8 years agoregulator: TPS62360: Add tps62360 regulator driver
Laxman Dewangan [Mon, 9 Jan 2012 14:57:41 +0000]
regulator: TPS62360: Add tps62360 regulator driver

The regulator module consists of 1 DCDC. The output voltage
is configurable and is meant for supply power to the core
voltage of Soc.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Cherrypick from Mainline commit
6219929f5f82708309b3054ec7db6cb6e3ee47d5

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

8 years agoarm: tegra: whistler: Increase Carveout Memory to 160M
Vaibhav Gorde [Mon, 12 Dec 2011 16:34:48 +0000]
arm: tegra: whistler: Increase Carveout Memory to 160M

Limited carveout memory gives Out of Memory errors for
1080p camera preview. Even when camera app runs 640x480
preview carveout memory almost all of carveout memory
(127/128) gets used.

bug 907782
bug 911767

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

Change-Id: I993d656910a1853f22719411553dbec3edb9f53f
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77311
Reviewed-by: Automatic_Commit_Validation_User

8 years agoARM: Tegra: clock: Add PERIPH_ON_APB flag to HDA clocks
Sumit Bhattacharya [Wed, 18 Jan 2012 08:50:43 +0000]
ARM: Tegra: clock: Add PERIPH_ON_APB flag to HDA clocks

Bug 896827

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

Change-Id: Id37fe5557f6d7993f6df424d0a8d027acb6bd1b4
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77310
Reviewed-by: Automatic_Commit_Validation_User

8 years agousbnet: Fix 'FLAG_RMNET' and 'FLAG_MULTI_PACKET' overlap.
Raj Jayaraman [Fri, 20 Jan 2012 19:07:23 +0000]
usbnet: Fix 'FLAG_RMNET' and 'FLAG_MULTI_PACKET' overlap.

Bug 901367

Change-Id: I73fe7c19f5f50530f7d0a73d0a6b9ba2092c71d2

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

Reviewed-by: Steve Lin <stlin@nvidia.com>
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I309eb6178a7f39714f9e5f963faf011a1a79b079
Reviewed-on: http://git-master/r/77309
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: pci: fix section mismatch warnings.
Venu Byravarasu [Fri, 20 Jan 2012 08:55:53 +0000]
arm: tegra: pci: fix section mismatch warnings.

Section mismatch warning messages were due to declaring tegra_pcie_hw using
 __initdata & tegra_pcie_scan_bus using __init.
Hence removed them.

bug 929358

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

Change-Id: I1894c1c360e0fc0f3da18bbe840e88afa4de6ffc
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77308
Reviewed-by: Automatic_Commit_Validation_User

8 years agomedia:video:tegra: Fix ov2710 stress test timeout issue
Frank Chen [Thu, 19 Jan 2012 03:37:00 +0000]
media:video:tegra: Fix ov2710 stress test timeout issue

Put sensor to software standby mode before updating
registers. This helps to sync sensor internal timing.

Bug 914391

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

Change-Id: I4ee0d918a0c792e0b40c14c9530002d3672be0f8
Signed-off-by: Frank Chen <frankc@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77307
Reviewed-by: Automatic_Commit_Validation_User

8 years agovideo: tegra: dsi: Refine the DSI clock calculation.
Kevin Huang [Wed, 18 Jan 2012 00:28:55 +0000]
video: tegra: dsi: Refine the DSI clock calculation.

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

Change-Id: I6e5b37a88d6be4ba2cc81417fe3eadfd129bc899
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77306
Reviewed-by: Automatic_Commit_Validation_User

8 years agoRevert "ASoC: Tegra: Acquire wake_lock during playback capture"
Sumit Bhattacharya [Fri, 20 Jan 2012 05:42:24 +0000]
Revert "ASoC: Tegra: Acquire wake_lock during playback capture"

This reverts commit 78d27b4b610fbe7d77e3cf43a3b82e15cf879d37.

Bug 916409

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

Change-Id: I4288dc4d90b393dd8dbefd7e997b9bfceb49d564
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77305
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: power: disable all sd dpd
Bitan Biswas [Thu, 19 Jan 2012 18:48:09 +0000]
arm: tegra: power: disable all sd dpd

Disabled dpd support for all SD instances - SDMMC0, SDMMC2 and SDMMC3

bug 924452

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

Change-Id: Id8967ccb79fc87fcb249c2a2085cd9d68e1ffcb8
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77304
Reviewed-by: Automatic_Commit_Validation_User

8 years agosdhci: Add option for non std freq tuning
Pavan Kunapuli [Fri, 13 Jan 2012 09:57:24 +0000]
sdhci: Add option for non std freq tuning

Adding option for non std freq tuning for
host controllers that have deviation in the
tuning procedure.

Bug 920089

Change-Id: I8ca6962c6f0380c1160460e5094c47aee241d6e3

Reviewed-on: http://git-master/r/72603
Reviewed-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I97cceb39fd27b159823ebce6706c5e74e53deccd
Reviewed-on: http://git-master/r/77303
Reviewed-by: Automatic_Commit_Validation_User

8 years agoASoC: tegra: add max98095 audio codec support
Ravindra Lokhande [Wed, 18 Jan 2012 14:58:49 +0000]
ASoC: tegra: add max98095 audio codec support

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

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

8 years agoarm: tegra: kai: fix kernel boot failure
Chandler Zhang [Thu, 19 Jan 2012 14:46:08 +0000]
arm: tegra: kai: fix kernel boot failure

regulator vdd_vbus_micro_usb is not yet defined.
remove it to fix kernel boot failure

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

Change-Id: If2efc8efab70fcc130f9303ac6a04428c8e4489b
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77301
Reviewed-by: Automatic_Commit_Validation_User

8 years agoscheduler: domain: init next_balance in nohz_idle_balancer with jiffies
Diwakar Tundlam [Thu, 19 Jan 2012 02:58:57 +0000]
scheduler: domain: init next_balance in nohz_idle_balancer with jiffies

Bug 878165

The next_balance parameter of nohz_idle_balancer should be initialized
to jiffies since jiffies itself is initialized to 300 seconds shy of
overflow. Otherwise, nohz_idle_balancer does not run for the first 5
mins after bootup.

Change-Id: I18334451f394ead8ddad3b94d725635a31e0173b
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77300
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: kai: Add DVFS table for Hynix DDR3
Johnny Qiu [Wed, 11 Jan 2012 23:20:47 +0000]
arm: tegra: kai: Add DVFS table for Hynix DDR3

Bug 913259

Change-Id: Id337b7d9c24ee226e3de5f38dc495e03084a4ba0
Reviewed-on: http://git-master/r/74830
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77299
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: kai: Fill power rails details
Johnny Qiu [Thu, 12 Jan 2012 01:29:34 +0000]
arm: tegra: kai: Fill power rails details

Register PMU MAX77663 and provide detailed power rails information.

Change-Id: I28051b621b72c88519c57ba2485fa7cdb4e76c70

Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: Icace4430f24c7e3ac62ed2ac359ace707cd11209
Reviewed-on: http://git-master/r/77298
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: config: tegra3_android: Add Kai
Johnny Qiu [Wed, 11 Jan 2012 04:44:11 +0000]
arm: config: tegra3_android: Add Kai

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

Change-Id: Icc6316ddddd1e6a7e9634a6539ae48cbbcd87607
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77297
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: kai: create board files
Johnny Qiu [Tue, 10 Jan 2012 20:40:05 +0000]
arm: tegra: kai: create board files

Create initial board files and config files for Kai.

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

Change-Id: I4b07607da85fe4bcb00e5fce2ddbc2a83471b1de
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77296
Reviewed-by: Automatic_Commit_Validation_User

8 years agoARM: tegra: clock: Auto-detect PLLP rate in clock init
Alex Frid [Fri, 13 Jan 2012 04:27:55 +0000]
ARM: tegra: clock: Auto-detect PLLP rate in clock init

Tegra3 platform may boot with one of the predefined fixed PLLP
(peripheral PLL) output rates: 216MHz, 408MHz, or 204MHz. This
commit implements auto-detection of PLLP rate, as well as CPU,
and system bus PLLP dependencies configuration during clock tree
initialization.

Bug 928260

Change-Id: I65ea4db2e5cfe96f13566c93e882a3be9deaa129
Reviewed-on: http://git-master/r/75850
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77295
Reviewed-by: Automatic_Commit_Validation_User

8 years agoARM: tegra: clock: Auto-detect PLLP rate in uart init
Alex Frid [Fri, 13 Jan 2012 01:39:04 +0000]
ARM: tegra: clock: Auto-detect PLLP rate in uart init

Tegra3 platform may boot with one of the predefined fixed PLLP
(peripheral PLL) output rates: 216MHz, 408MHz, or 204MHz. This
commit implements auto-detection of PLLP rate, and debug uart
configuration during kernel uart initialization.

Bug 928260

Change-Id: I3fac4c462f28ac3dc1c72c0cc0f8f87fa0a809c4
Reviewed-on: http://git-master/r/75849
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77294
Reviewed-by: Automatic_Commit_Validation_User

8 years agoARM: tegra: clock: Auto-detect PLLP rate in kernel uncompress
Alex Frid [Sun, 15 Jan 2012 01:48:15 +0000]
ARM: tegra: clock: Auto-detect PLLP rate in kernel uncompress

Tegra3 platform may boot with one of the predefined fixed PLLP
(peripheral PLL) output rates: 216MHz, 408MHz, or 204MHz. This
commit implements auto-detection of PLLP rate, and debug uart
configuration during kernel uncompressing.

Bug 928260

Change-Id: I435c228691191434a10847fdbccef048a8d507c7
Reviewed-on: http://git-master/r/75848
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77293
Reviewed-by: Automatic_Commit_Validation_User

8 years agoarm: tegra: ventana: remove unused gpio CAM3_LDO_SHUTDN_L_GPIO
Pritesh Raithatha [Tue, 24 Jan 2012 12:04:19 +0000]
arm: tegra: ventana: remove unused gpio CAM3_LDO_SHUTDN_L_GPIO

remove CAM3_LDO_SHUTDN_L_GPIO as it is not connected.

Bug 925547

Change-Id: Ide685bd5ee4773e5b3f3cbaf1c938de57c621764
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/76996
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

8 years agoarm: config: tegra: Turn off PCI VGA arbitration
Preetham Chandru [Tue, 24 Jan 2012 07:53:57 +0000]
arm: config: tegra: Turn off PCI VGA arbitration

Not used in tegra. With it, the driver continously
spews on console.

Bug: 930042
Change-Id: I6394c1ee1de19bc114006f064d12b987b499d8a6
Reviewed-on: http://git-master/r/#change,61354,patchset=2
 (cherry picked from commit 838d4ba231e5bd550114f89cf92c75391416df3b)
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/76969
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

8 years agoHACK: gpu: ion: tegra: Implement nvmap_alloc_iovm.
Krishna Reddy [Mon, 23 Jan 2012 07:38:03 +0000]
HACK: gpu: ion: tegra: Implement nvmap_alloc_iovm.

Change-Id: Ida720a6b27f2df11e6381dc0eb5306df3b768f22
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/76785
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>

8 years agoHACK: gpu: ion: Add api to remap dma address.
Krishna Reddy [Mon, 23 Jan 2012 07:28:22 +0000]
HACK: gpu: ion: Add api to remap dma address.

Change-Id: Ib68612c6a1e003938fa6df009df85e9cb4599b11
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/76784
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>

8 years agoHACK: gpu: ion: Add support to remap dma address.
Krishna Reddy [Mon, 23 Jan 2012 07:21:39 +0000]
HACK: gpu: ion: Add support to remap dma address.

Change-Id: Ica835fad10677ce61d812e00bb489034a8b06a36
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/76783
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>