7 years agoasoc: tegra: aic326x: add dapm route for capture path
Nikesh Oswal [Tue, 7 Feb 2012 15:24:02 +0000]
asoc: tegra: aic326x: add dapm route for capture path

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

7 years agoasoc: tegra: aic326x: add support for voice call and bt voice call
Nikesh Oswal [Sat, 4 Feb 2012 06:16:15 +0000]
asoc: tegra: aic326x: add support for voice call and bt voice call

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

7 years agoasoc: tegra: aic326x: support bt sco playback and recording
Nikesh Oswal [Sat, 4 Feb 2012 05:11:08 +0000]
asoc: tegra: aic326x: support bt sco playback and recording

support bt sco playback and recording with bt chip as master
and ap-i2s as slave

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

7 years agosound: soc: codecs: update the TI codec driver for K39
Nikesh Oswal [Fri, 3 Feb 2012 14:47:20 +0000]
sound: soc: codecs: update the TI codec driver for K39

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

7 years agoasoc: tegra: enable playback for TI aic326x codec
Nikesh Oswal [Fri, 3 Feb 2012 14:42:59 +0000]
asoc: tegra: enable playback for TI aic326x codec

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

7 years agomach tegra: give a device name for TI aic326x codec that matches its driver
Nikesh Oswal [Fri, 3 Feb 2012 14:40:57 +0000]
mach tegra: give a device name for TI aic326x codec that matches its driver

Change-Id: I02bd96569bb5fec8f9b81a4841b0d4ab44d9f836
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84526
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agotegra-defconfig: enable compilation of TI aic326x codec
Nikesh Oswal [Fri, 3 Feb 2012 14:39:01 +0000]
tegra-defconfig: enable compilation of TI aic326x codec

Change-Id: I3a5731385dba5203ab47071b537708861b4bd928
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84525
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agovideo: tegra: host: Fix irq race in system resume
Terje Bergstrom [Wed, 15 Feb 2012 06:42:28 +0000]
video: tegra: host: Fix irq race in system resume

At system resume, host1x sync point values are restored from memory, and
interrupts are enabled. This is done in reverse order, and in cases it might be
that interrupt is triggered while sync point values are still being restored.

Bug 940381

Change-Id: I0191b84b41306e0f0ba0758d41e5632dcf9d06cd
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/83995
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

7 years agonet: wireless: bcmdhd: set reference to physical device
Mursalin Akon [Tue, 24 Jan 2012 22:24:08 +0000]
net: wireless: bcmdhd: set reference to physical device

Set the parent field of the netdevice, which causes sysfs
to create a device subdirectory under the netdevice. Without
this subdirectory the user-space NetworkManager cannot manage
the network device.

Implemented using void * to maintain current driver implementation
of segregated OS-specific implementation.

This CL contains changes similar to http://git-master/r/77889
which was done for bcm4329.

Bug 924521

(cherry picked from commit 8ce30af25321844cb0e89a3c23f0a6521885b6db)

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

7 years agomfd: Add itps65910 wakeup support
Laxman Dewangan [Mon, 23 Jan 2012 07:46:15 +0000]
mfd: Add itps65910 wakeup support

Implementing irq_set_wake() so that device should able
to wakeup the system through different interrupt provided
by this device like gpios, onkey, rtc etc.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
cherry picked from mainline
commit 4f5148777f15413a16a5a8751c959828a7fc001c

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

7 years agomfd: Initialize tps65910 irq platform data properly
Laxman Dewangan [Wed, 18 Jan 2012 14:49:16 +0000]
mfd: Initialize tps65910 irq platform data properly

irq_base of the tps65910 irq platform data should be
initialized with the board provided irq_base data.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
cherry picked from mainline
commit e2aaed2403078ce919d9cf8091ec0ece8e3f12ad

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

7 years agoregulator: Fix module desciption for tps65910 regulator
Axel Lin [Tue, 21 Feb 2012 02:14:55 +0000]
regulator: Fix module desciption for tps65910 regulator

Fix the module desciption and also update Kconfig to include supporting
tps65911 chip.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

cherry picked from mainline
commit 02c38f3e8e9b0cd76bdb835b0fd8d627ddf5e19b

Change-Id: Iee8eaf208ae2d448f4c022b2c3908f8519191180
Reviewed-on: http://git-master/r/85124
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoregulator: tps65910: Correct VIO voltage configuration
Laxman Dewangan [Fri, 17 Feb 2012 13:26:11 +0000]
regulator: tps65910: Correct VIO voltage configuration

The VIO regulator register specify the voltage configuration
on bit3:2 of its register. And hence only these bits should
be modified when setting voltage and used when reading voltage
from register setting.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
cherry picked from mainline
commit 83e0323211e33b117ce585bab64636ca1fff807a

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

7 years agovideo: tegra: host: Change sync queue to a list
Terje Bergstrom [Mon, 30 Jan 2012 11:37:07 +0000]
video: tegra: host: Change sync queue to a list

Sync queue is the list of jobs still in flight. As context priorities
requires possibility to insert a job in the middle of the queue, the
structure needs to be changed into a linked list.

Bug 926690

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

7 years agousb: gadget: fsl_udc: avoid can_pullup function in vbus_session
Preetham Chandru [Wed, 15 Feb 2012 14:39:38 +0000]
usb: gadget: fsl_udc: avoid can_pullup function in vbus_session

avoid making a call to can_pullup function in vbus_session for non-android
gadget drivers. The mass storage gadget driver assumes that the UDCs
start with data pullup connected and the mass storage gadget
driver do not make an explicit call to usb_gadget_connect.

Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Bug 922561
Change-Id: Ifad305db861caf27b1d9c8e541c2480bb1536b6b
Reviewed-on: http://git-master/r/80076
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoi2c: tegra: clock control for fast clock
Laxman Dewangan [Sat, 18 Feb 2012 16:07:47 +0000]
i2c: tegra: clock control for fast clock

I2c controller requires the clock for fast clock as a second clock
source. This clock should be on during normal function of i2c controller.
Making sure that i2c driver get this clock and hold the clock enable
during data transfer.

bug 933653

Change-Id: I676eee1f8a0e1dff81b17259abcd9644bcb0b394
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/78996
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

7 years agomfd: max8907c: intialize pm_power_off
Bharat Nihalani [Tue, 21 Feb 2012 13:07:25 +0000]
mfd: max8907c: intialize pm_power_off

Initialize pm_power_off based on use_power_off passed as platform
data.

Bug 943129

Change-Id: I0a158d226a046809a6d62cf8d9881152cfc2ab83
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/84946
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>

7 years agoARM: tegra: whistler: HDMI audio while screen is blank
Bharat Nihalani [Fri, 10 Feb 2012 11:36:34 +0000]
ARM: tegra: whistler: HDMI audio while screen is blank

continue to play HDMI audio past earlysuspend (when internal screen is
powered down). this is accomplished by using FB_BLANK_NORMAL on HDMI
display in earlysuspend instead of FB_BLANK_POWERDOWN.

Bug 934699

Original change done for other boards by Jon Mayo <jmayo@nvidia.com>

Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/83104
(cherry picked from commit 00f2c63b39c4b41dc07c0fb3d9b2bfde81e84936)

Change-Id: Ia773235a4e5e57d3caa17f78a51df3c2be7e6d9d
Reviewed-on: http://git-master/r/84889
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: Reduce ARCH_NR_GPIOS to 512
Dan Willemsen [Mon, 13 Feb 2012 17:38:29 +0000]
ARM: tegra: Reduce ARCH_NR_GPIOS to 512

We don't need 1024 gpios for our current platforms.

Change-Id: Id0e27f56697b76c681315ef0701b1baca67ce52b
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83498
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agommc: host: Do not enable preset value by default
Pavan Kunapuli [Mon, 20 Feb 2012 12:46:12 +0000]
mmc: host: Do not enable preset value by default

In case of non standard clock, preset value
should not be enabled from sdhci driver as
it would make clock divider programming in-
effective.

Bug 937318

Change-Id: I5eaeab538a4978dd8c03501c3dcba2e8a92eea59
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/84807
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agovideo: tegra: host: incr_syncpt should not modify max
Terje Bergstrom [Wed, 18 Jan 2012 08:25:32 +0000]
video: tegra: host: incr_syncpt should not modify max

When user space calls NvRmChannelSyncPointIncr(), the maximum value of sync
point should not be incremented unless sync point is client managed.

Also prevents kernel panic if user space tries to increment beyond maximum.
Instead, give debug spew and ignore.

Bug 936097

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

7 years agoarm: tegra: config: Update Tegra defconfig
Gaurav Sarode [Mon, 20 Feb 2012 11:41:02 +0000]
arm: tegra: config: Update Tegra defconfig

Change-Id: I93e6380f3c9f838ecbe29de5ad9d14bab442d7d3
Signed-off-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-on: http://git-master/r/84797
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: clock: Support for clock source control without enable bit
Laxman Dewangan [Sun, 19 Feb 2012 05:58:10 +0000]
ARM: tegra: clock: Support for clock source control without enable bit

Some of controller like i2c requires a different clock source which is
not enabled/disabled by the clock bit in CAR register set.
Handling such cases by looking for PERIPH_NO_ENB flag when calling clock
enable/disable functions.

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

7 years agoi2c: tegra: Add connection name in clk_get_sys
Laxman Dewangan [Sat, 18 Feb 2012 15:36:59 +0000]
i2c: tegra: Add connection name in clk_get_sys

Adding the connection name of clock as "i2c-div" when i2c driver
calls clk_get_sys() for getting clock data pointers.

Change-Id: I3e7fa79ce6d51be189f1d93cb54af0d1b3425de8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/84694
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

7 years agoARM: tegra: clock: Add i2c fast clock entry
Laxman Dewangan [Sun, 19 Feb 2012 06:05:15 +0000]
ARM: tegra: clock: Add i2c fast clock entry

Adding i2c fast clock entry which is derived from pllp_out3. This is
non-muxed input clock for i2c and does not have any enable bit on CAR
register set to enable/disable through clock-reset registers.

bug 933653

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

7 years agocpufreq interactive governor: Unify attribute store functions
Peter Boonstoppel [Fri, 17 Feb 2012 01:55:41 +0000]
cpufreq interactive governor: Unify attribute store functions

Change our added attributes' store functions to Google style

Change-Id: I5dc641112085698918e87b52378fe3a5bfe44360
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-on: http://git-master/r/84452
Reviewed-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agovideo: tegra: dc: use side-by-side stereo HDMI mode
Andrija Bosnjakovic [Tue, 14 Feb 2012 02:41:26 +0000]
video: tegra: dc: use side-by-side stereo HDMI mode

Add a config option to limit HDMI stereo 3D output to 74.25MHz pixel clock.

When this option is set,
substitute the frame pack stereo modes
for side-by-side (half) left-right stereo modes
to meet this pixel clock restriction.

By default, do not use it (use frame packed HDMI mode as usual).

Bug 938807

Change-Id: I2ce2ca72cbb15ac1939af0f3386dd23650262435
Reviewed-on: http://git-master/r/84252
Reviewed-by: Andrija Bosnjakovic <abosnjakovic@nvidia.com>
Tested-by: Andrija Bosnjakovic <abosnjakovic@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agousb: cdc-acm: Fix compilation warning in cdc-acm driver.
Steve Lin [Tue, 14 Feb 2012 22:26:03 +0000]
usb: cdc-acm: Fix compilation warning in cdc-acm driver.

Bug 934177

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

7 years agohwmon: adt7461: Remove usage of irq_to_gpio
Dan Willemsen [Sat, 11 Feb 2012 01:37:41 +0000]
hwmon: adt7461: Remove usage of irq_to_gpio

This API is being removed in v3.2

Change-Id: I3d864dabd2273e737604776aa43c45a64eae90b3
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83561
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agostaging:iio:magnetometer:ak8975: Fix probe() error-handling
Stephen Warren [Wed, 21 Sep 2011 10:16:01 +0000]
staging:iio:magnetometer:ak8975: Fix probe() error-handling

Fix ak8975_probe() to jump to the appropriate exit labels when an error
occurs. With the previous code, some cleanup actions were being skipped
for some error conditions.

Upstream v3.2 commit ad31d250bf60c8e4c990e8b0daeedbaa2d6884a9

Change-Id: Ib0ef38f154fbcf18604ad283f51f040b5e038c65
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83532
Reviewed-by: Andrew Chew <achew@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agostaging:iio:magnetometer:ak8975: Don't assume 0 is an invalid GPIO
Stephen Warren [Wed, 21 Sep 2011 10:16:00 +0000]
staging:iio:magnetometer:ak8975: Don't assume 0 is an invalid GPIO

gpio_is_valid() is the defined mechanism to determine whether a GPIO is
valid. Use this instead of assuming that 0 is an invalid GPIO.

Upstream v3.2 commit 7c6c936832a46e86b0fac654923ce5015bdc80ee

Change-Id: Ica81b9fa8379db07ca7d23a6c43c6ab742ef09b6
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83531
Reviewed-by: Andrew Chew <achew@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agostaging:iio:magnetometer:ak8975 use platform_data to pass the gpio number.
Jonathan Cameron [Wed, 21 Sep 2011 10:15:59 +0000]
staging:iio:magnetometer:ak8975 use platform_data to pass the gpio number.

Tegra doesn't have irq_to_gpio() any more, and ak8975 is included in
tegra_defconfig. This causes a build failure. Instead, pass the GPIO name
through platform data.

[swarren: Rewrote commit description when I squashed this with my patch
to remove the irq_to_gpio() call]

Upstream v3.2 commit f6d838d7fecfd4e59a4ce7bdfb16165add36d26e

Change-Id: I6bd269aa8c0ff8165078ff67e4cbcfdde936c20d
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83530
Reviewed-by: Andrew Chew <achew@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agoarm: tegra: Kai: Touch setup
Ali Ekici [Wed, 1 Feb 2012 23:51:58 +0000]
arm: tegra: Kai: Touch setup

Modified touch setup and init calls, so that
Raydium DirectTouch can support both Kai and Cardhu.

Bug 832605

Signed-off-by: Ali Ekici <aekici@nvidia.com>
Change-Id: I13f57129b17e96b0f198b5d87a249008b2b3b4cb
Reviewed-on: http://git-master/r/80127
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
(cherry picked from commit 659e18eb209d0d93025ff6ea07e91f7e27a762e1)
Reviewed-on: http://git-master/r/83570
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: Raydium DirectTouch Board file
Ali Ekici [Wed, 1 Feb 2012 23:38:45 +0000]
arm: tegra: Raydium DirectTouch Board file

Modified files supports unified DirectTouch that can
work both for Cardhu and Kai. Touch configuration
is passed to driver with these board files.

Bug 832605

Signed-off-by: Ali Ekici <aekici@nvidia.com>
Change-Id: I075aaad2e71ee1a87b23680ef629fc99bc42ea93
Reviewed-on: http://git-master/r/80129
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
(cherry picked from commit dc1372f43159640207a0d4e0ff08dde5bafc1baa)
Reviewed-on: http://git-master/r/83569
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoinput: touchscreen: Raydium DirectTouch driver
Ali Ekici [Thu, 2 Feb 2012 01:30:17 +0000]
input: touchscreen: Raydium DirectTouch driver

Modified driver files to support unified DirectTouch which
can support Kai and Cardhu together.  Vendor-supplied source
code update.

Bug 832605

Signed-off-by: Ali Ekici <aekici@nvidia.com>
Change-Id: If0799147b50e9c2cf102d2216103e30b525026e4
Reviewed-on: http://git-master/r/80128
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
(cherry picked from commit 1dfd9d747b8ceb344a435daac60d30f1a6441bcb)
Reviewed-on: http://git-master/r/83568
Tested-by: Gerrit_Virtual_Submit

7 years agomedia: common camera headers
Erik Lilliebjerg [Fri, 17 Feb 2012 00:59:32 +0000]
media: common camera headers

Bug 852480

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

7 years agoARM: 7240/1: Make ARCH_NR_GPIO a Kconfig variable
Peter De Schrijver (NVIDIA) [Wed, 21 Dec 2011 09:48:45 +0000]
ARM: 7240/1: Make ARCH_NR_GPIO a Kconfig variable

Change ARCH_NR_GPIO into a Kconfig variable as suggested by Russel King.
This makes ARCH_NR_GPIO single zImage friendly. The default value for
tegra is defined as well.

Upstream v3.3 commit 44986ab056076e9dc9fb9f8b4729afef7fa72616

Change-Id: Ia1ae996fc5209b22eb7ea942d90e86cfae56318e
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83219
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: copy native ARM code behavior for cpu suspend-resume
Varun Wadekar [Fri, 10 Feb 2012 09:40:32 +0000]
ARM: tegra: copy native ARM code behavior for cpu suspend-resume

The cpu suspend-resume code now duplicates the non-tegra
part from the native ARM code.

Bug 934368

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

7 years agovideo: tegra: host: Add syncpt value to traces
Terje Bergstrom [Thu, 17 Nov 2011 11:11:21 +0000]
video: tegra: host: Add syncpt value to traces

Add current values of sync points to sync point read and wait
IOCTL's.

Change-Id: I479a66e283b47867ed13685b75c1858b4fb65c2d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/80006
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agommc: tegra: Non std freq tuning support
Shridhar Rasal [Thu, 9 Feb 2012 09:18:47 +0000]
mmc: tegra: Non std freq tuning support

Tegra sdmmc controllers support fixed sampling
frequency tuning. Also, frequency tuning is used
to find the ideal tap delay value which ensures
reliable high speed data transfers. Added support
for the same. In SDR50 mode, setting controller clk
rate to 208MHz as lower clk rates result in CRC
errors.

Bug 919232

Originally reviewed on: http://git-master/r/72596

Change-Id: I8825b4bdbc8533005bc76c54f5d1660f18304e4d
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/77798
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: whistler: nvidia memory table updates to prevent corruption
Prashant Gaikwad [Thu, 5 Jan 2012 06:38:14 +0000]
ARM: tegra: whistler: nvidia memory table updates to prevent corruption

To avoid memory corruption when device is operating at full temperature
QUSE_EXTRA should always be set to 0 for frequencies 150MHz and less.
As extra protection change FBIO_CFG5 to remove the region where there
is TriState on the DQS signals thus preventing false DQS pulses (and
false reads).

Bug 851461

Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
(cherry picked from commit b4eed65c4d0c493384c8cd10d2e455a9ea0d8ea5)

Change-Id: I9aa60fca6fa09e538a1f2643cfe86247945ea000
Reviewed-on: http://git-master/r/84318
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Edward Ahn <eahn@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra3: config: set default CPUFreq governor to userspace
Preetham Chandru [Thu, 16 Feb 2012 10:51:56 +0000]
arm: tegra3: config: set default CPUFreq governor to userspace

Set default CPUFreq governor to userspace and enable performance,
powersave, interactive, ondemand and conservative CPUFreq governors.

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

Change-Id: Iba19f89213d1e662ddb7e54bbb3e69b24c25d467
Reviewed-on: http://git-master/r/84301
Tested-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agovideo: tegra: dc: prevent nvmap_unpin crash
Min-wuk Lee [Tue, 14 Feb 2012 16:21:05 +0000]
video: tegra: dc: prevent nvmap_unpin crash

This is a workaround to make sure serialization of flip worker,
for Android specific.
Android doesn't need mutiple workqueues per each window
since it gets composited one from user layer.
If the last windows' argument index is not 0,
provided change will make the last index to 0 with swap operation
so work will be queued into one workqueue all the time.

Bug 929993
Bug 932592
Bug 933831
Bug 935623
Bug 934569

Change-Id: Ic467bb4f593c72ae98ea1fb324cf1a6d343faa62
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/82971
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: kai: Fix build error without TEGRA_NVMAP
Hiroshi DOYU [Wed, 8 Feb 2012 00:16:06 +0000]
arm: tegra: kai: Fix build error without TEGRA_NVMAP

Fix build error without TEGRA_NVMAP

Change-Id: Idbee58471766ab7b6e2a89bc9e994c30b362dd1a
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/79897
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agodtv: Fixed file-private_data assigned error
Adam Jiang [Thu, 16 Feb 2012 10:02:56 +0000]
dtv: Fixed file-private_data assigned error

NULL pointer caused kernel crash when tegra_dtv driver was opened. This
patch fixed the bug.

fixed Bug 940932

Change-Id: I09f8caff789ea8e1222f4afd9bf73ef890472583
Signed-off-by: Adam Jiang <chaoj@nvidia.com>
Reviewed-on: http://git-master/r/84284
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: tegra: Remove NET_SKB_PAD
Dan Willemsen [Wed, 15 Feb 2012 17:49:40 +0000]
ARM: tegra: Remove NET_SKB_PAD

In include/linux/skbuff.h, this is already defined as max(32,
L1_CACHE_BYTES), which is identical to our define of L1_CACHE_BYTES. The
comment also mentions that there are assumptions in the code that
expects it to be at least 32.

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

7 years agomedia: video: ov14810: Add new 720p mode
Krupal Divvela [Mon, 6 Feb 2012 05:51:22 +0000]
media: video: ov14810: Add new 720p mode

Add a new 1280x720@120 fps - 4lane mode to
ov14810 sensor.

Bug 935663

Change-Id: I3e8e552071e41bf6932582ae3a0b2467b380eecd
Signed-off-by: Krupal Divvela <kdivvela@nvidia.com>
Reviewed-on: http://git-master/r/84041
Reviewed-by: Amit Arora <amita@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agomtd: tegra-nor: Use staged read from NOR
Manoj Chourasia [Wed, 15 Feb 2012 08:52:28 +0000]
mtd: tegra-nor: Use staged read from NOR

Most of the large read requests passed by upper MTD block
layer are for highmem region which dma_map_single cannot
handle. Those requests were getting serviced by memcpy_fromio,
this was degrading performance. Moreover the memory region
passed to dma_map_single should be on cache line boundaries.
If the requirement is not met then system may crash due
to cache incoherency.

The approach added in this patch is to have a DMA coherent
memory buffer. Read device via DMA to this coherent buffer
and them memcpy it to user space pointer. This not only
fixes some bugs but also enhances the NOR read performance.

bug 928788
bug 898250

Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/76866
(cherry picked from commit 1491c0461a627c3bb63b01e126585eff9922ba1a)

Change-Id: Ic8e24d2cc965f84bb97d2b6b29f27458aba17720
Reviewed-on: http://git-master/r/84026
Tested-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "arm: tegra3: change min_rate for sclk"
Chandrakanth Gorantla [Wed, 15 Feb 2012 09:11:58 +0000]
Revert "arm: tegra3: change min_rate for sclk"

This reverts commit a61ef84d7746134aae316fa76867d69fc0753880.
Bug 939415

Change-Id: I7d7c2a69ac7261a221cf69b8f8981d42f575f789
Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-on: http://git-master/r/84025
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: kai: Auto-detect PLLP rate in uart init
Johnny Qiu [Fri, 3 Feb 2012 06:35:07 +0000]
arm: tegra: kai: 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: I217a87aab8e09dafb8bcbdbd3be1dbf239175b84
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/83758
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: kai: enable max17048 driver in board file
Syed Rafiuddin [Wed, 15 Feb 2012 10:00:25 +0000]
arm: tegra: kai: enable max17048 driver in board file

Board specific changes for max17048 fuel-gauge driver

Change-Id: I6d27616d825c30e3acd7f8fa311dd380fed22b56
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/83730
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: power: Add external LP2 wake timers on secondary CPUs
Alex Frid [Wed, 1 Feb 2012 06:48:34 +0000]
ARM: tegra: power: Add external LP2 wake timers on secondary CPUs

Add an option to use external timer as Tegra3 secondary CPU wake
source from lp2 (power gated) state. This is a follow up to commit
51e6be9ce103fbeb2b73fa2a9d2b6528a6941e81 that disabled wake from
external timer, since its interrupt is registered too late - after
secondary CPU is brought on-line, and already had a chance to enter
lp2. With this commit, secondary CPU is not allowed to enter lp2 in
idle until wake timer is registered (clock-gated lp3 state is entered
instead).

External timer wake up mechanism is enabled on Tegra3 only if option
HAVE_ARM_TWD is not selected. Otherwise, continue to use local CPU
timers as lp2 wake sources.

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

7 years agoarm: tegra: kai: turn off status LED in LP0
Johnny Qiu [Tue, 14 Feb 2012 09:30:25 +0000]
arm: tegra: kai: turn off status LED in LP0

Bug 920845
Bug 931371

Change-Id: If3faee713a456f3f7e2e30b400d2245b2f79bebd
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Signed-off-by: Hao Tang <htang@nvidia.com>
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/83725
Reviewed-by: Simone Willett <swillett@nvidia.com>

7 years agomfd: max77663: add support for status LED control through PMU GPIO
Johnny Qiu [Thu, 16 Feb 2012 20:04:37 +0000]
mfd: max77663: add support for status LED control through PMU GPIO

Bug 920845
Bug 931371

Change-Id: I7c03c7f2f16aee1be636c2f8fd8ad18cf7539eae
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Signed-off-by: Hao Tang <htang@nvidia.com>
Reviewed-on: http://git-master/r/83724
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Simone Willett <swillett@nvidia.com>

7 years agoinput: misc: Fix code style issues for CM3217
Johnny Qiu [Mon, 13 Feb 2012 07:33:11 +0000]
input: misc: Fix code style issues for CM3217

Bug 937953

Change-Id: I5466fedf6fdcd1f577753736e9eb9b2dbf5b52c0
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/83386
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: kai: Integrate CM3217 ALS driver
Johnny Qiu [Thu, 9 Feb 2012 07:00:32 +0000]
arm: tegra: kai: Integrate CM3217 ALS driver

Bug 937953

Change-Id: I202677abe4738e84224cbfd53fec5319392a8cc4
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/83370
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: kai: Add Invensense MPU sensors
Rakesh Iyer [Fri, 3 Feb 2012 00:42:49 +0000]
arm: tegra: kai: Add Invensense MPU sensors

Bug 825602

Change-Id: Id3f4db74f2d0d1aebc8aa1f6e1da865171af9b49
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/82763
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: kai: Register i2s4 device
Manoj Gangwal [Fri, 17 Feb 2012 06:40:36 +0000]
arm: tegra: kai: Register i2s4 device

Register i2s4 device for BT SCO support
on kai.

Bug 936626

Change-Id: I470a9b1e590dcda58913e9853cd985318a9179e9
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/84489
Reviewed-by: Johnny Qiu <joqiu@nvidia.com>
Tested-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarch: tegra3: config: Enable CM3217 ambient light sensor tegra-l4t-r15-er2
Johnny Qiu [Mon, 13 Feb 2012 08:22:45 +0000]
arch: tegra3: config: Enable CM3217 ambient light sensor

Bug 937953

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

7 years agommc: tegra: enabling MMC_PM_KEEP_POWER flag for built_in devices
naveenk [Tue, 14 Feb 2012 06:51:15 +0000]
mmc: tegra: enabling MMC_PM_KEEP_POWER flag for built_in devices

During resume mmc_power_up is not necessary for eMMC

Bug 932606

Change-Id: I6dd6e7c4f5582ecca8b9c459e3537b05cce69e69
Signed-off-by: naveen kumar arepalli<naveenk@nvidia.com>
Reviewed-on: http://git-master/r/83709
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoarm: arm: config: Add rt5640 config for kai
Hao Tang [Tue, 14 Feb 2012 02:17:47 +0000]
arm: arm: config: Add rt5640 config for kai

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

7 years agoasoc: tegra: ALC5640 machine: Add support for HP detect
Manoj Gangwal [Mon, 13 Feb 2012 09:41:09 +0000]
asoc: tegra: ALC5640 machine: Add support for HP detect

Add support for Headphone detect on Kai.

Bug 928046

Change-Id: Ieffb3aed32e57ca3e43f6a1c8d049ac1b433867f
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/83408
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoinput: misc: Add CM3217 driver
Johnny Qiu [Sat, 10 Dec 2011 00:42:03 +0000]
input: misc: Add CM3217 driver

Bug 937953

Change-Id: Ieb9a941faaad0945948af806e8bc09a1e51f5772
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/83369
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: dsi: Config dsi and csi shared pad
Animesh Kishore [Mon, 30 Jan 2012 12:37:07 +0000]
video: tegra: dsi: Config dsi and csi shared pad

Configure voltage regulator.

Bug 914749

Change-Id: I6cf1924a928839249d4e62029dd14fca84b05792
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/83361
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoasoc: rt5639: Write the right device id
Kerwin Wan [Sun, 12 Feb 2012 04:13:45 +0000]
asoc: rt5639: Write the right device id

The value of reset register of ALC5639 is 0x0008
instead of 0x000c.

bug 931371

Change-Id: I5fbf31411ddab2358d61f998f74a7b1f8c151312
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/83318
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Tested-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoasoc: codecs: Add Suspend/Resume support for ALC5640
Manoj Gangwal [Fri, 10 Feb 2012 09:14:55 +0000]
asoc: codecs: Add Suspend/Resume support for ALC5640

- Added suspend/resume support for ALC5640
- Fix for I2S1 interface

Bug 936013

Change-Id: I60b0eb224e9475b722ecb9e2fb8bf0a6dae12767
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/83058
Reviewed-by: Johnny Qiu <joqiu@nvidia.com>
Tested-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agogpio: tps65910: Add sleep control support
Laxman Dewangan [Wed, 1 Feb 2012 06:39:04 +0000]
gpio: tps65910: Add sleep control support

The device tps65910/tps65911 supports the sleep
functionality in some of gpios. If gpio is configured
in output mode and sleep is enabled then during device
sleep state, the output of gpio becomes LOW regardless
of non-sleep output value.
Such gpio can be used to control regulator switch such
that output of regulator is off in device sleep state.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Linus Walleij <linus.walleij@linaro.org>

Cherry-picked from mainline commit:
ccd68fff6b86b93a2d69caf4679c0ba4ca6dbc53

Resolve merge conflicts.

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

7 years agomedia: video: tegra: Set EMC rate to max when VDE is enabled
Prashant Gaikwad [Mon, 6 Feb 2012 11:52:08 +0000]
media: video: tegra: Set EMC rate to max when VDE is enabled

Do not set EMC rate to minimum when module other than VDE is
enabled. This reverts the max rate set when VDE was enabled
if VDE is still enabled.

Bug 930230

Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
(cherry picked from commit 692291955e650c87b7cf6ecac03df2ef0445609d)

Change-Id: Ief0e1d6116f064ba09b17ba01c7df0dc7905e0a0
Reviewed-on: http://git-master/r/84057
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: dsi: Soft reset if dsi host busy
Animesh Kishore [Wed, 15 Feb 2012 05:35:27 +0000]
video: tegra: dsi: Soft reset if dsi host busy

If dsi host is unexpectedly busy, soft resetting
will restore controller state.

Bug 930453

Change-Id: I1bbce55d0b27a2be80a66218978e73c616e9d894
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/83986
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: kai: set default_enable in tegra_ehci_platform_data
Johnny Qiu [Mon, 30 Jan 2012 04:59:48 +0000]
arm: tegra: kai: set default_enable in tegra_ehci_platform_data

set default_enable in tegra_ehci_platform_data for kai since CONFIG_USB_HOTPLUG
has been replaced to tegra_ehci_platform_data

BUG 923705

Change-Id: If51cd8a25658bc86b23d6c6758d3283e5b4bd03a
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/83766
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: kai: Specify PLLD2 as backup clock source
Johnny Qiu [Fri, 3 Feb 2012 06:32:54 +0000]
arm: tegra: kai: Specify PLLD2 as backup clock source

Since not all possible PLLP output rates (216MHz, 408MHz or 204MHz)
can provide accurate enough pixel clock rate for kai panel, use
PLLD2 as backup clock source.

Bug 928260

Change-Id: I2f268a1551611a9170e86cbdc44a5302edabc9f0
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Signed-off-by: Hao Tang <htang@nvidia.com>
Reviewed-on: http://git-master/r/83738
Reviewed-by: Liangchuan Mi <lmi@nvidia.com>
Tested-by: Liangchuan Mi <lmi@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoarm: tegra: kai: enable VDD_RTC voltage tracking to VDD_CORE
Johnny Qiu [Wed, 1 Feb 2012 05:50:31 +0000]
arm: tegra: kai: enable VDD_RTC voltage tracking to VDD_CORE

With this feature enabled, VDD_RTC voltage can track to VDD_CORE
while VDD_CORE voltage is higher than the default voltage of VDD_RTC,
which is set to 1.0V here. When VDD_CORE is turned of in LP0, VDD_RTC
keeps its default value 1.0V.

Bug 920845

Change-Id: Ie62859df0d533745ff25cc0d19f8209f86938cec
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Signed-off-by: Hao Tang <htang@nvidia.com>
Reviewed-on: http://git-master/r/83729
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoregulator: max77663: add support for VDD_RTC tracking to VDD_CORE
Johnny Qiu [Wed, 1 Feb 2012 05:46:01 +0000]
regulator: max77663: add support for VDD_RTC tracking to VDD_CORE

Bug 920845

Change-Id: Id84218efaeebcc834fdac6e0e5c30adc60a13ebc
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Signed-off-by: Hao Tang <htang@nvidia.com>
Reviewed-on: http://git-master/r/83727
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Liangchuan Mi <lmi@nvidia.com>
Tested-by: Liangchuan Mi <lmi@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agovideo: fbmon: correct an improper error handling in fb_edid_add_monspecs()
Haley Teng [Tue, 31 Jan 2012 09:27:57 +0000]
video: fbmon: correct an improper error handling in fb_edid_add_monspecs()

There could be an EDID which does not contain any or valid "detailed
timing description".

bug 929621
bug 929632

Change-Id: Ib2ade57537e0dbb2263e9b7b1b91432a799743a7
Signed-off-by: Haley Teng <hteng@nvidia.com>
Change-Id: I7139db34c3e2102a2bf08f0ef153cd3f71ddc5d1
Reviewed-on: http://git-master/r/83687
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoasoc: tegra: ALC5640 machine: Enable cdc_en regulator
Manoj Gangwal [Mon, 13 Feb 2012 14:05:02 +0000]
asoc: tegra: ALC5640 machine: Enable cdc_en regulator

Add support for cdc_en regulator on kai.

Bug 928574

Change-Id: I11590cbd5b7fc91238bde3c7dbe72736117d4457
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Signed-off-by: Hao Tang <htang@nvidia.com>
Reviewed-on: http://git-master/r/83485
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoasoc: tegra: ALC5640 machine:Add BT Sco support
Manoj Gangwal [Tue, 7 Feb 2012 12:43:28 +0000]
asoc: tegra: ALC5640 machine:Add BT Sco support

Changes made to add support of BT Sco for kai.

Bug 936626

Change-Id: If01fe20ed94cc5634b581554b668c744fd822fc3
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/83072
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agopower: max17048: exit driver when battery is not detected
Syed Rafiuddin [Wed, 8 Feb 2012 17:20:57 +0000]
power: max17048: exit driver when battery is not detected

Exit max17048 driver when battery is not detected on KAI
platform.

Change-Id: I2d98f0a7635c6adc047c58040170b9e37e95b1ef
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/80074
Reviewed-by: Liangchuan Mi <lmi@nvidia.com>
Tested-by: Liangchuan Mi <lmi@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoRevert "video: tegra: host: use runtime pm for clock management"
Simone Willett [Wed, 15 Feb 2012 22:22:37 +0000]
Revert "video: tegra: host: use runtime pm for clock management"

This reverts commit 961c60fe7213d92793d6072abc16f58721a33fed

Change-Id: I8ef0fbaee30e94c78b8df609f729953fee6d1583
Reviewed-on: http://git-master/r/84135
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agoARM: tegra: enterprise: Use machine_is_tegra_enterprise()
Dan Willemsen [Tue, 14 Feb 2012 00:53:43 +0000]
ARM: tegra: enterprise: Use machine_is_tegra_enterprise()

We don't need a static bool here, there's already a function that does
this.

Change-Id: Icacf9dc2fccf2fc780cd7d37121f3eeedbe7fb40
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83623
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: tegra: kai: Use machine_is_kai()
Dan Willemsen [Tue, 14 Feb 2012 00:58:03 +0000]
ARM: tegra: kai: Use machine_is_kai()

We don't need a static bool here, there's already a function that does
this.

Change-Id: I63e02db770d617c5566af5a3f153b34660b689b0
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83625
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: cardhu: Use machine_is_cardhu()
Dan Willemsen [Tue, 14 Feb 2012 00:56:19 +0000]
ARM: tegra: cardhu: Use machine_is_cardhu()

We don't need a static bool here, there's already a function that does
this.

Change-Id: I7e5f13fc706b44f87ee7032860b31a8d8f622f21
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83624
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: p852: Update pm_power_off registration
Dan Willemsen [Tue, 14 Feb 2012 00:06:00 +0000]
ARM: tegra: p852: Update pm_power_off registration

Opt into the tps6586x registering the pm_power_off handler instead of
doing it ourselves.

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

7 years agoARM: tegra: kai: Update pm_power_off registration
Dan Willemsen [Tue, 14 Feb 2012 00:02:33 +0000]
ARM: tegra: kai: Update pm_power_off registration

Opt in to the max77663 registering the pm_power_off handler instead of
doing it ourselves.

Change-Id: Ic3efbce21e12337a3f435fbc257950fb977628a0
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83603
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: harmony: Update pm_power_off registration
Dan Willemsen [Tue, 14 Feb 2012 00:00:28 +0000]
ARM: tegra: harmony: Update pm_power_off registration

Opt into the tps6586x registering the pm_power_off handler instead of
doing it ourselves.

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

7 years agoARM: tegra: whistler: Update max8907c power off
Dan Willemsen [Thu, 1 Dec 2011 23:18:59 +0000]
ARM: tegra: whistler: Update max8907c power off

Opt into max8907c registering a pm_power_off handler instead of doing it
ourselves.

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

7 years agomfd: max8907c: Natively register pm_power_off
Dan Willemsen [Thu, 1 Dec 2011 23:18:24 +0000]
mfd: max8907c: Natively register pm_power_off

Instead of forcing the board files to register this themselves, just add
a bool to the platform data to let the board files opt into this.

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

7 years agoARM: tegra: ventana: Update pm_power_off registration
Dan Willemsen [Thu, 1 Dec 2011 23:14:40 +0000]
ARM: tegra: ventana: Update pm_power_off registration

Opt into the tps6586x registering the pm_power_off handler instead of
doing it ourselves.

Change-Id: I8363a3b4f5626bb45b2118559c3ab67e247e3172
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83599
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agomfd: tps6586x: Natively register pm_power_off
Dan Willemsen [Thu, 1 Dec 2011 23:13:54 +0000]
mfd: tps6586x: Natively register pm_power_off

Instead of forcing the board files to register this themselves, just add
a bool to the platform data to let the board files opt into this.

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

7 years agoARM: tegra: cardhu: Update pm_power_off registration
Dan Willemsen [Thu, 1 Dec 2011 23:09:35 +0000]
ARM: tegra: cardhu: Update pm_power_off registration

Just set the opt in booleans in the platform data instead of checking
which function to register for pm_power_off.

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

7 years agomfd: max77663: Natively register pm_power_off
Dan Willemsen [Thu, 1 Dec 2011 23:08:56 +0000]
mfd: max77663: Natively register pm_power_off

Instead of forcing the board files to register this themselves, just add
a bool to the platform data to let the board files opt into this.

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

7 years agomfd: tps6591x: Natively register pm_power_off
Dan Willemsen [Thu, 1 Dec 2011 23:08:12 +0000]
mfd: tps6591x: Natively register pm_power_off

Instead of forcing the board files to register this themselves, just add
a bool to the platform data to let the board files opt into this.

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

7 years agoARM: tegra: enterprise: Update tps80031 power off
Dan Willemsen [Thu, 1 Dec 2011 22:58:15 +0000]
ARM: tegra: enterprise: Update tps80031 power off

Opt into the tps80031 registering the pm_power_off handler instead of
doing it ourselves.

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

7 years agomfd: tps80031: Natively register pm_power_off
Dan Willemsen [Thu, 1 Dec 2011 22:56:47 +0000]
mfd: tps80031: Natively register pm_power_off

Instead of forcing the board files to register this themselves, just add
a bool to the platform data to let the board files opt into this.

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

7 years agoARM: 7052/1: gpio/tegra: Remove use of irq_to_gpio
Stephen Warren [Mon, 22 Aug 2011 23:39:55 +0000]
ARM: 7052/1: gpio/tegra: Remove use of irq_to_gpio

irq_to_gpio is being removed. Replace the only use of that API by
the ARM Tegra sub-architecture.

Upstream v3.2 commit 470080015c1f8bbd15ba1486d5c4bd8a3e7fa79a

Change-Id: I9ba3ed66cc6262f14f1fdcfbb6eee78cfe818f7e
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83537
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: 7053/1: gpio/tegra: Implement gpio_chip.to_irq
Stephen Warren [Mon, 22 Aug 2011 23:39:56 +0000]
ARM: 7053/1: gpio/tegra: Implement gpio_chip.to_irq

Upstream v3.2 commit 438a99c078b1bc3c9aebd92e7928f2477311d3e5

Change-Id: I00f9df65565c3b086438818ea29d2337871655a8
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83536
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: clocks: Consolidate input frequency measurements
Scott Williams [Tue, 14 Feb 2012 01:51:06 +0000]
ARM: tegra: clocks: Consolidate input frequency measurements

Consolidate the functions used to measure the input frequency
into a single implementation and perform the measurement only
once.

Change-Id: I3d13e608a7256d154373542ca001cbda9c03c21b
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/83613
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agomedia: video: tegra: set camera emc clk preference
shivabassu boragalli [Fri, 10 Feb 2012 07:51:02 +0000]
media: video: tegra: set camera emc clk preference

Set camera emc clock to 300Mhz for T20. This change
fixes the display corruption observed after video
recording and adb cable is disconnected.

Bug 930239

Signed-off-by: Shivabassu Boragalli <sboragalli@nvidia.com>
Reviewed-on: http://git-master/r/83031
(cherry picked from commit 425cabdc52868d5dca9fd9cd9a82f18d41f0a957)

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

7 years agoARM: tegra: clocks: register emc clock for camera on tegra2
shivabassu boragalli [Fri, 10 Feb 2012 09:18:18 +0000]
ARM: tegra: clocks: register emc clock for camera on tegra2

Register emc clock for camera on tegra2.

Bug 930239

Signed-off-by: Shivabassu Boragalli <sboragalli@nvidia.com>
Reviewed-on: http://git-master/r/83043
(cherry picked from commit 06664f4c595b6e91dfa5e5d7ffc3761d328e31c9)

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

7 years agoarm: tegra: usb: Disable WAIT_FOR_VALID for hsic
Vinayak Pane [Sun, 11 Dec 2011 02:28:34 +0000]
arm: tegra: usb: Disable WAIT_FOR_VALID for hsic

The ehci generic port reset fails sometimes for HSIC modem
to connect in stress tests. HSIC bus reset apparently needs
a SW WAR. Using the feature of HS_READY_WAIT_FOR_VALID to disable
HSIC transmit config signal for HS ready wait for valid.

This is AP30 specific workaround.

Bug 898008
Bug 932606

Change-Id: I3d1aafa1bbd046769b0eb62970aa990ae7bad617
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/83279
Reviewed-by: Rajkumar Jayaraman <rjayaraman@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoARM: tegra: nvavp: Fix a build error
Hiro Sugawara [Mon, 13 Feb 2012 23:08:32 +0000]
ARM: tegra: nvavp: Fix a build error

Change-Id: I6e010e39bc11291e6ff812185db0482e793784ea
Reviewed-on: http://git-master/r/83577
Reviewed-by: Hiro Sugawara <hsugawara@nvidia.com>
Tested-by: Hiro Sugawara <hsugawara@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>