7 years agoFix 3.3 merge error in: drivers: power: Add watchdog timer to catch drivers which...
Arve Hjønnevåg [Wed, 21 Mar 2012 23:43:45 +0000]
Fix 3.3 merge error in: drivers: power: Add watchdog timer to catch drivers which lockup during suspend.

__device_suspend could return with an active timer on the stack

Change-Id: I113f5f9aa12f909cb46621b6744e02a104ddd2bd
Signed-off-by: Arve Hjønnevåg <arve@android.com>

7 years agousb: gadget: adb: Only enable the gadget when adbd is ready
Benoit Goby [Tue, 20 Mar 2012 01:56:52 +0000]
usb: gadget: adb: Only enable the gadget when adbd is ready

When adb is enabled, only connect the gadget when adbd is ready. If adbd
dies or is restarted (e.g. "adb root"), the gadget is disconnected when
the adb device is close, and it is re-connected once adb re-open the
device.

- Add callbacks to adb, similar to FunctionFs callbacks, to notify the
  gadget when the daemon is ready or closed.
- Refcount calls to android_enable/android_disable to enable the gadget
  only once all the function daemons are ready.
- Add enable/disble to android_usb_function to notify the function when
  it is added/removed from the list of enabled functions.

Change-Id: Id54ff85aec9cf8715c94b4f9bd6137a79ad58bfc
Signed-off-by: Benoit Goby <benoit@android.com>

7 years agoInput: gpio_keys - constify platform data
Varun Wadekar [Wed, 11 Apr 2012 08:14:52 +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

Conflicts:

drivers/input/keyboard/gpio_keys.c

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

7 years agoarm : tegra: clocks: Add PERIPH_ON_APB flag for apbif clock
Varun Wadekar [Wed, 11 Apr 2012 08:10:15 +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>

Conflicts:

arch/arm/mach-tegra/tegra3_clocks.c

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

7 years agoARM: tegra: Fix PPCS IO address for Tegra 2x
Varun Wadekar [Wed, 11 Apr 2012 08:08:10 +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>

Conflicts:

arch/arm/mach-tegra/include/mach/io.h

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

7 years agocrypto: tegra-aes: save key during key call
Varun Wadekar [Wed, 11 Apr 2012 08:07:17 +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: Varun Wadekar <vwadekar@nvidia.com>

Conflicts:

drivers/crypto/tegra-aes.c

Signed-off-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
Varun Wadekar [Wed, 11 Apr 2012 07:55:27 +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>

Conflicts:

arch/arm/mach-tegra/tegra3_speedo.c

Signed-off-by: Varun Wadekar <vwadekar@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 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 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
Varun Wadekar [Wed, 11 Apr 2012 07:08:06 +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: Scott Peterson <speterson@nvidia.com>

Conflicts:

sound/pci/hda/hda_eld.c

Signed-off-by: Varun Wadekar <vwadekar@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
Varun Wadekar [Wed, 11 Apr 2012 06:58:34 +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

Conflicts:

drivers/mfd/Makefile

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

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>

7 years agoASoC: Tegra WM8903 machine: Fix to control name conflict
Ramalingam C [Wed, 21 Mar 2012 13:04:38 +0000]
ASoC: Tegra WM8903 machine: Fix to control name conflict

This change resolves the control name (Line Out Switch) conflict between
wm8903 codec driver and tegra machine driver.

Bug 956506

Change-Id: Iab049c7fb2fdde0d481d07d8e1bbdbeea1a831d9
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/91510
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agomedia: common camera headers
Erik Lilliebjerg [Tue, 20 Mar 2012 10:56:00 +0000]
media: common camera headers

- Add support for ISP focus

Bug 852480

Change-Id: Ibd4c983d80a5021a88b46033c51c26d1b8120e62
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/91203
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agotegra:pcie: Correct pcie check link sequence
Jay Agarwal [Fri, 9 Mar 2012 12:21:02 +0000]
tegra:pcie: Correct pcie check link sequence

1. Removed mdelay in reset code since pci devices
   are not detected with this.
2. Moved the reset logic down in retry label.

Bug 637871

Change-Id: Idd6344860e513407d5f8c8ba05e1beef0f39bf57
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/89128
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

7 years agoarm: tegra: kai: Correcting fuse supply name
Venu Byravarasu [Wed, 21 Mar 2012 10:18:11 +0000]
arm: tegra: kai: Correcting fuse supply name

As fuse driver expects regulator name as Vdd_fuse
instead of Vpp_fuse, fixing it.

bug 956535

Change-Id: I4ecf38acd2ae8c2191f4dbbd018904a33b87043c
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/91472
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: enterprise: enable out of band interrupt
Nitin Bindal [Tue, 20 Mar 2012 09:16:06 +0000]
arm: tegra: enterprise: enable out of band interrupt

configuring wf_wakeup gpio

Change-Id: I05e907c36847da07990d440357b9ef4ae3a857be
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/90994
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: dc: disable disp.emc clock when 0 new rate is requested
Nitin Kumbhar [Wed, 14 Mar 2012 14:10:38 +0000]
video: tegra: dc: disable disp.emc clock when 0 new rate is requested

Not disabling emc clock when it's being set to zero results in incorrect
reference count when a call is made to clear bandwidth. This happens when
two worker threads try to handle dc emc rate. A deep-sleep/wake-up cycle
easily shows this scenario.

With this fix, disp.emc's ref count is properly managed even after multiple
deep-sleep/wake-up cycles.

Bug 947228

Change-Id: I045fafbd483af1e3d492b8d0395275e45642d059
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/90100
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agovideo: tegra: host: Correct waitchk comparison logic
Terje Bergstrom [Tue, 13 Mar 2012 13:53:10 +0000]
video: tegra: host: Correct waitchk comparison logic

Change waitchk comparison logic to use the new
nvhost_syncpt_is_expired().

Bug 941327

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

7 years agoarm: Tegra: Ventana: power gpio modification
Ramalingam C [Tue, 28 Feb 2012 14:02:10 +0000]
arm: Tegra: Ventana: power gpio modification

Correction on the power_gpio assignement for SD and eMMC platform data.

TEGRA_GPIO_PI6 is assigned to power_gpio of tegra_sdhci_platform_data2

Since no gpio control is there for eMMC power rails power_gpio of
tegra_sdhci_platform_data3 is initialized to -1.

Change-Id: I5b18f09c01668e304425dee92f024be69d3e0448
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/86355
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>

7 years agoBluetooth: remove DEBUG macro from btwilink driver
Nagarjuna Kristam [Mon, 12 Mar 2012 05:50:26 +0000]
Bluetooth: remove DEBUG macro from btwilink driver

Change-Id: I1721115a1d500f1101c856809ec3fd3ac4a3fe67
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/89409
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agocpufreq: Typecast compared integers
Antti P Miettinen [Tue, 20 Mar 2012 11:50:50 +0000]
cpufreq: Typecast compared integers

The min/max frequencies in cpufreq_policy are unsigned integers
but pm_qos_request() returns a signed int. Compare as unsigned,
frequencies are never negative.

Bug 949219

Change-Id: Iba0de9ad6bf221f7a2e5560f597aa56cbeb7b6f6
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/91214
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agocpufreq: set go_maxspeed_load to 85%
Shridhar Rasal [Tue, 20 Mar 2012 06:45:52 +0000]
cpufreq: set go_maxspeed_load to 85%

To get better performance setting it to 85% from 95%

bug 941275

Change-Id: I08bc711ea159d070cf6b62ce25506c8a5bdd7ac4
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/91159
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoRevert "ARM: tegra: dvfs: Set Tegra3 VDD_CORE min to 1.1V"
Alex Frid [Wed, 4 Jan 2012 01:39:16 +0000]
Revert "ARM: tegra: dvfs: Set Tegra3 VDD_CORE min to 1.1V"

This reverts commit db462754240e2ee6cf85e1253b1475a330ea0dfe -
temporary work-around for bug 870300 is no longer needed.

Change-Id: I3b76c01eef89cd80134210926e6623f0494626dd
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/89874
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: config: tegra: enable advanced routing and multiple routing table
stephane Dion [Mon, 12 Mar 2012 15:50:47 +0000]
ARM: config: tegra: enable advanced routing and multiple routing table

These options are needed for multiple PDP context support

bug 926236

Change-Id: I7a62db30403b1d610e0b801b2b0ef5ebee2f7f23
signed-off-by: Stephane Dion <sdion@nvidia.com>
Reviewed-on: http://git-master/r/89509
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agovideo: tegra: host: refactor for upstreaming
Mayuresh Kulkarni [Mon, 13 Feb 2012 15:04:41 +0000]
video: tegra: host: refactor for upstreaming

- split the nvhost clients into their own directories
- each client is a nvhost_device and nvhost_driver
- all the code related to host1x control node is centralized
at single place in dev.c
- all the code related to host1x modules nodes is centralized
at single place in bus_client.c
- update the copyright notice & year for new files

Bug 871237

Change-Id: Ief85064699e35ad02b48a7e54496928d7f085af4
Reviewed-on: http://git-master/r/83491
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

7 years agoARM: tegra: io: Use IOMEM() macro to define IO_PPCS_VIRT
Varun Wadekar [Wed, 11 Apr 2012 05:59:34 +0000]
ARM: tegra: io: Use IOMEM() macro to define IO_PPCS_VIRT

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

7 years agocpufreq: update target freq always
Shridhar Rasal [Mon, 19 Mar 2012 16:08:57 +0000]
cpufreq: update target freq always

set determined target freq always

bug 941275

Change-Id: If72936ed145867abd32b43c5c5100290df2fc187
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/91010
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: cardhu: Enable Enter key if RCK mode
Ashwini Ghuge [Tue, 20 Mar 2012 05:46:52 +0000]
ARM: tegra: cardhu: Enable Enter key if RCK mode

Added support to change Power key to
Enter key in RCK mode

Bug 948270

Change-Id: I054aa98972494476ea26b5fd815032453a4231b0
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/90917
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: Add support to identify if image RCK
Varun Wadekar [Wed, 11 Apr 2012 05:57:30 +0000]
ARM: tegra: Add support to identify if image RCK

With this change, we can identify if system
enters RCK mode in kernel.

Bug 948270

Change-Id: I4240fd4171b6b71fbc5f1271f21a588d62db88b1
Reviewed-on: http://git-master/r/90914

Conflicts:

arch/arm/mach-tegra/board.h

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

7 years agoARM: tegra: clock: Update parameterized cluster switch
Varun Wadekar [Wed, 11 Apr 2012 05:56:27 +0000]
ARM: tegra: clock: Update parameterized cluster switch

Adjusted CPU rate during parametrized (enforced from sysfs) cluster
switch, so that target rate meets min/max constraints on both sides
of the switch. Updated local timer rate accordingly.

Bug 945975

(cherry picked from commit c27f5a2e7380cb667f1f6a4ba61daf67c63ef2d4)

Change-Id: I130ec1a32ecaf8adfd7eff1ec2042f569b54ac54
Reviewed-on: http://git-master/r/90805

Conflicts:

arch/arm/mach-tegra/tegra3_clocks.c

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

7 years agovideo: tegra: dsi: Clear host trigger bit explicitly on fifo empty
Animesh Kishore [Wed, 14 Mar 2012 11:25:12 +0000]
video: tegra: dsi: Clear host trigger bit explicitly on fifo empty

dsi HW does not clear host trigger bit automatically
on dsi interface disable if host fifo is empty.
This leads to hang. Clearing the bit explicitly.

Bug 930453

Change-Id: Id24359dc274f187f8ac634ad838ef4a6a29a6a5e
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/90043
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: Add AHB EMEM to MC Flush Register IO
Varun Wadekar [Wed, 11 Apr 2012 05:53:52 +0000]
ARM: tegra: Add AHB EMEM to MC Flush Register IO

Add the AHB EMEM to MC Flush Register
area to the statically mapped io regions

Bug 729267

Change-Id: I86542cd3ffec587e7213cbc34129e8b5124aab9c
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>

Conflicts:

arch/arm/mach-tegra/include/mach/io.h

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

7 years agoARM: tegra: clock: Fix activity monitor resume
Alex Frid [Mon, 12 Mar 2012 19:01:17 +0000]
ARM: tegra: clock: Fix activity monitor resume

Properly restore Tegra3 actmon sampling period after suspend.

Bug 952739

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

Change-Id: I6a61c2aa1d384a8d17d7ef579000cf59ac218435
Reviewed-on: http://git-master/r/90804
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoarm: tegra: fuse: let ODM production mode be world readable
Chris Johnson [Sat, 10 Mar 2012 01:52:50 +0000]
arm: tegra: fuse: let ODM production mode be world readable

Also, fixup some of the bit offsets that were leading to incorrect
values being returned from get_fuse() on T20/T30.

Bug 912862

Signed-off-by: Chris Johnson <cwj@nvidia.com>
Reviewed-on: http://git-master/r/89283
(cherry picked from commit f6323c7f32017b51202d478671cbf366beb0b0f5)

Change-Id: Ieb9f92e36760cbc470d63257d26c09388cec7e1e
Reviewed-on: http://git-master/r/90762
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chris Johnson <cwj@nvidia.com>
Tested-by: Chris Johnson <cwj@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoarm: tegra: nvmap: Update nvmap_alloc api.
Krishna Reddy [Fri, 16 Mar 2012 02:14:53 +0000]
arm: tegra: nvmap: Update nvmap_alloc api.

Update nvmap_alloc api to take heap_mask as arg.
This is to let clients specify the specific heap needed.

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

7 years agovideo: tegra: host: Fix sync point comparison
Terje Bergstrom [Mon, 20 Feb 2012 12:50:26 +0000]
video: tegra: host: Fix sync point comparison

Fix sync point comparison to take into account old expired values, and
do proper comparison taking into account wrapping.

Bug 941327

Change-Id: I70724637ba870b2e29bac695abc0ea2b968394d7
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/84808
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-by: Acorn Pooley <apooley@nvidia.com>

7 years agoHACK: ARM: tegra: fix boot_secondary sequence
Varun Wadekar [Tue, 10 Apr 2012 12:38:00 +0000]
HACK: ARM: tegra: fix boot_secondary sequence

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

7 years agoARM: tegra: common: fix init_early sequence
Varun Wadekar [Tue, 10 Apr 2012 12:33:15 +0000]
ARM: tegra: common: fix init_early sequence

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

7 years agoARM: tegra: iomap: add PPCS register aperture
Varun Wadekar [Tue, 10 Apr 2012 12:31:03 +0000]
ARM: tegra: iomap: add PPCS register aperture

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

7 years agoARM: tegra: fuse: do not read cpu/core process ids from fuses
Varun Wadekar [Tue, 10 Apr 2012 12:28:04 +0000]
ARM: tegra: fuse: do not read cpu/core process ids from fuses

Reading from fuses gives zeros for the cpu/core process
ids, so revert to using the previous way instead.

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

7 years agousb: otg: tegra: fix usb_set_transceiver registration
Varun Wadekar [Tue, 10 Apr 2012 12:26:56 +0000]
usb: otg: tegra: fix usb_set_transceiver registration

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

7 years agoHACK: gpio: tegra: use static arrays for tegra_gpio_banks
Varun Wadekar [Tue, 10 Apr 2012 12:25:28 +0000]
HACK: gpio: tegra: use static arrays for tegra_gpio_banks

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

7 years agoHACK: ARM: tegra30: timer: call tegra3_resume_wake_timer from tegra30_init_timer
Varun Wadekar [Tue, 10 Apr 2012 12:22:28 +0000]
HACK: ARM: tegra30: timer: call tegra3_resume_wake_timer from tegra30_init_timer

setup_irq fails for CPU0 lp2 timer irq. To avoid shutting down
lp2 completely, avoid calling setup_irq for now.

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

7 years agoARM: tegra: timer: fix timer init sequence
Varun Wadekar [Tue, 10 Apr 2012 12:20:40 +0000]
ARM: tegra: timer: fix timer init sequence

rip out common things from tegra2/3 code and include them
in the common timer init sequence.

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

7 years agoRevert "HACK: Cardhu: Disable LP0 for now"
Varun Wadekar [Mon, 9 Apr 2012 10:42:14 +0000]
Revert "HACK: Cardhu: Disable LP0 for now"

This reverts commit 6a1a6f4f69adf0febfd923795b45edeff63e75ed.

LP0 was fixed with 5b4b921.

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

7 years agoARM: tegra: powergate: add cpu powergate ID macro and powergate names
Varun Wadekar [Mon, 9 Apr 2012 10:40:14 +0000]
ARM: tegra: powergate: add cpu powergate ID macro and powergate names

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

7 years agoARM: tegra: delete tegra3_clocks.c
Varun Wadekar [Mon, 9 Apr 2012 10:39:16 +0000]
ARM: tegra: delete tegra3_clocks.c

We use tegra30_clocks.c instead

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

7 years agoARM: tegra: kbc: add KBC_PIN_GPIO_* macros
Varun Wadekar [Mon, 9 Apr 2012 10:38:18 +0000]
ARM: tegra: kbc: add KBC_PIN_GPIO_* macros

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

7 years agoARM: tegra: headsmp: fix bad merge
Varun Wadekar [Mon, 9 Apr 2012 10:37:42 +0000]
ARM: tegra: headsmp: fix bad merge

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

7 years agoARM: tegra: clocks: remove clk_cfg_ex
Varun Wadekar [Mon, 9 Apr 2012 10:36:44 +0000]
ARM: tegra: clocks: remove clk_cfg_ex

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

7 years agoARM: tegra: fix bad merge
Varun Wadekar [Mon, 9 Apr 2012 10:35:11 +0000]
ARM: tegra: fix bad merge

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

7 years agoARM: tegra: add TEGRA_GPIO_TO_IRQ macro
Varun Wadekar [Mon, 9 Apr 2012 10:32:55 +0000]
ARM: tegra: add TEGRA_GPIO_TO_IRQ macro

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

7 years agoARM: tegra: sleep: remove <asm/system.h>
Varun Wadekar [Mon, 9 Apr 2012 10:31:15 +0000]
ARM: tegra: sleep: remove <asm/system.h>

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

7 years agoARM: tegra: usb_phy: start using "struct usb_phy" and "struct usb_otg"
Varun Wadekar [Mon, 9 Apr 2012 10:27:40 +0000]
ARM: tegra: usb_phy: start using "struct usb_phy" and "struct usb_otg"

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

7 years agobluetooth: bluesleep: remove hci_(un)register_notifier
Varun Wadekar [Mon, 9 Apr 2012 10:27:02 +0000]
bluetooth: bluesleep: remove hci_(un)register_notifier

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

7 years agoARM: tegra: delete IO_* defines from iomap.h
Varun Wadekar [Mon, 9 Apr 2012 10:22:43 +0000]
ARM: tegra: delete IO_* defines from iomap.h

upstream already added these defines to io.h

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

7 years agoARM: tegra: apbio: name the apbio dma channel as "apbio"
Varun Wadekar [Mon, 9 Apr 2012 10:20:48 +0000]
ARM: tegra: apbio: name the apbio dma channel as "apbio"

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

7 years agogpio: tegra: use tegra_gpio_bank_count instead of ARRAY_SIZE
Varun Wadekar [Mon, 9 Apr 2012 10:19:44 +0000]
gpio: tegra: use tegra_gpio_bank_count instead of ARRAY_SIZE

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

7 years agoinput: keyboard: tegra: delete unused variables
Varun Wadekar [Mon, 9 Apr 2012 10:18:46 +0000]
input: keyboard: tegra: delete unused variables

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

7 years agoinput: keyboard: gpio-keys: use gpio_keys_gpio_report_event to report key events
Varun Wadekar [Mon, 9 Apr 2012 10:17:57 +0000]
input: keyboard: gpio-keys: use gpio_keys_gpio_report_event to report key events

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

7 years agoARM: tegra: cardhu/enterprise: use the new keyboard pin type enums
Varun Wadekar [Mon, 9 Apr 2012 10:16:55 +0000]
ARM: tegra: cardhu/enterprise: use the new keyboard pin type enums

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

7 years agoARM: tegra: timer: fix twd_init
Varun Wadekar [Mon, 9 Apr 2012 10:15:15 +0000]
ARM: tegra: timer: fix twd_init

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

7 years agoARM: tegra: fuse: fix usage of tegra_revision, process_id etc
Varun Wadekar [Mon, 9 Apr 2012 10:13:51 +0000]
ARM: tegra: fuse: fix usage of tegra_revision, process_id etc

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

7 years agoARM: tegra: debug-macro: include io.h
Varun Wadekar [Mon, 9 Apr 2012 10:05:38 +0000]
ARM: tegra: debug-macro: include io.h

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

7 years agoarm: tegra: kai: Remove vmmc from regulators list.
Gaurav Sarode [Thu, 5 Apr 2012 08:36:02 +0000]
arm: tegra: kai: Remove vmmc from regulators list.

Change-Id: Iea693d8835aaf47ea54ae76b11ea84197fbbc1f3

7 years agommc: fix MMC_STATE_DOING_BKOPS and MMC_STATE_NEED_BKOPS macros
Varun Wadekar [Tue, 3 Apr 2012 10:11:32 +0000]
mmc: fix MMC_STATE_DOING_BKOPS and MMC_STATE_NEED_BKOPS macros

Earlier values were conflicting with already present mmc
state values resulting in card not present scenarios

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

7 years agoarm: tegra: Initialize gpio suspend/resume
Prashant Gaikwad [Mon, 9 Apr 2012 05:48:22 +0000]
arm: tegra: Initialize gpio suspend/resume

Change-Id: I05418280c3557e82a95606ab68611c4e05bc771c
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agogpio: tegra: Fix suspend function return type
Prashant Gaikwad [Fri, 30 Mar 2012 12:28:07 +0000]
gpio: tegra: Fix suspend function return type

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

7 years agoARM: tegra: pm: fix cpu sleep for CONFIG_TRUSTED_FOUNDATIONS
Varun Wadekar [Fri, 30 Mar 2012 11:01:04 +0000]
ARM: tegra: pm: fix cpu sleep for CONFIG_TRUSTED_FOUNDATIONS

We need to call cpu_suspend from tegra_sleep_cpu so that
it gets called for the Secure OS.

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