7 years agousb: gadget: Don't build USB_FSL_MP_DR_OF on Tegra
Dan Willemsen [Tue, 10 Apr 2012 01:04:16 +0000]
usb: gadget: Don't build USB_FSL_MP_DR_OF on Tegra

This config option only builds on PPC platforms.

Change-Id: Ibe7ebdc2dd5b9aa46e8f887570481a11a373c417
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/95475
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>

7 years agoARM: tegra: make .dts compilation depend on Tegra2 support
Stephen Warren [Mon, 21 May 2012 20:44:26 +0000]
ARM: tegra: make .dts compilation depend on Tegra2 support

Update Makefile.boot to compile *.dts when the appropriate Tegra SoC
support is enabled, rather than requiring Kconfig to list each board
individually. Remove CONFIG_MACH_VENTANA now that it has no use.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit 9132b0ed57320996b16eafbf651a04e02ad29092)

Conflicts:

arch/arm/mach-tegra/Makefile.boot

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

7 years agoARM: dt: tegra: rename board files to match SoC
Stephen Warren [Mon, 11 Jun 2012 22:25:07 +0000]
ARM: dt: tegra: rename board files to match SoC

Most ARM ${board}.dts files are already named ${soc}-${board}.dts. This
change modifies the Tegra board files to be named the same way for
consistency.

Once a related change is made in U-Boot, this will cause both U-Boot and
the kernel to use the same names for the .dts files and SoC identifiers,
thus allowing U-Boot's recently added "soc" and "board" environment
variables to be used to construct the name of Tegra .dtb files, and hence
allow board-generic U-Boot bootcmd scripts to be written.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit 702b0e4f2f2782962aab7d9a0a40ad68770bb1f6)

Conflicts:

arch/arm/boot/dts/tegra20-paz00.dts
arch/arm/boot/dts/tegra20-trimslice.dts
arch/arm/mach-tegra/Makefile.boot

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

7 years agoarm: tegra: whistler: dt: add dts file with minimal info
Nitin Kumbhar [Thu, 14 Jun 2012 02:00:36 +0000]
arm: tegra: whistler: dt: add dts file with minimal info

Add dts file to enable device tree support on whistler platform.
This currently adds only compatible info to dt.

Bug 1001225

Change-Id: I3023639e817529e6bb18ed5fa92b8c35c12d45b8
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116606
GVS: Gerrit_Virtual_Submit
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoarm: tegra: enterprise: dt: add dts file with minimal info
Nitin Kumbhar [Wed, 16 May 2012 12:49:23 +0000]
arm: tegra: enterprise: dt: add dts file with minimal info

Add dts file to enable device tree support on enterprise platform.
This currently adds only compatible info to dt.

Bug 1001225

Change-Id: I4cc4093062d39baef9871b423840f5f2d01f25e9
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116605
GVS: Gerrit_Virtual_Submit
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoarm/dt: Tegra: Add minimal ventana file
Chinmay Kamat [Wed, 20 Jun 2012 21:09:33 +0000]
arm/dt: Tegra: Add minimal ventana file

We will gradually enhance this file as our internal support improves.

Change-Id: I9343a14a89942226b1e3eb8aa0afa8c186c46a9e
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>
Reviewed-on: http://git-master/r/110201
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoarm/dt: Tegra: Add minimal Cardhu file
Dan Willemsen [Tue, 10 Apr 2012 01:06:13 +0000]
arm/dt: Tegra: Add minimal Cardhu file

We really just want the /chosen and compatible info for now, and use the
existing board files for the rest of the support. We can gradually
enhance this file as our internal support improves.

Change-Id: If50378c128afb31d0d014c78d9f8f03c86b8d568
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/95477
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>

7 years agoarm: tegra: read board info from device tree
Nitin Kumbhar [Mon, 7 May 2012 12:39:41 +0000]
arm: tegra: read board info from device tree

Read board_info data from device tree instead of ATAGs,
if we're booting with device tree.

Bug 1001225

Change-Id: I2d659252a6a91f723bf4bb6c74918774650b87e2
Original-Author: Dan Willemsen <dwillemsen@nvidia.com>
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116604
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: Add ATAG_SERIAL parsing
Dan Willemsen [Thu, 15 Sep 2011 00:15:50 +0000]
arm: tegra: Add ATAG_SERIAL parsing

Bug 973078

Change-Id: I2860402c887db414717ce313101dc09e8b327f99
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>
Reviewed-on: http://git-master/r/108699
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoARM: zImage: prevent constant copy+rebuild of lib1funcs.S
Nicolas Pitre [Wed, 14 Sep 2011 04:16:21 +0000]
ARM: zImage: prevent constant copy+rebuild of lib1funcs.S

The rule to copy this file doesn't have to be forced.  However
lib1funcs.[So] have to be listed amongst the targets.

This prevents zImage from being recreated needlessly.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>

Change-Id: I0ad0d4564835837abf15f0c590e8452bfef1c3a7
Original: 63d15148b6058ab0037343390e8918503ed81968
Reviewed-on: http://git-master/r/108698
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoARM: zImage: allow supplementing appended DTB with traditional ATAG data
Nicolas Pitre [Wed, 14 Sep 2011 02:37:07 +0000]
ARM: zImage: allow supplementing appended DTB with traditional ATAG data

Some old bootloaders can't be updated to a device tree capable one,
yet they provide ATAGs with memory configuration, the ramdisk address,
the kernel cmdline string, etc.  To allow a device tree enabled
kernel to be used with such bootloaders, it is necessary to convert those
ATAGs into FDT properties and fold them into the DTB appended to zImage.

Currently the following ATAGs are converted:

ATAG_CMDLINE
ATAG_MEM
ATAG_INITRD2

If the corresponding information already exists in the appended DTB, it
is replaced, otherwise the required node is created to hold it.

The code looks for ATAGs at the location pointed by the value of r2 upon
entry into the zImage code.  If no ATAGs are found there, an attempt at
finding ATAGs at the typical 0x100 offset from start of RAM is made.
Otherwise the DTB is left unchanged.

Thisstarted from an older patch from John Bonesio <bones@secretlab.ca>,
with contributions from David Brown <davidb@codeaurora.org>.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>

Change-Id: Ifb96adf6976da0f518c9c2cdad6be85f94c8ad1c
Original: b90b9a38251e9c89c34179eccde57411ceb5f1aa
Reviewed-on: http://git-master/r/107423
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: zImage: gather some string functions into string.c
Nicolas Pitre [Wed, 14 Sep 2011 01:42:55 +0000]
ARM: zImage: gather some string functions into string.c

This is a small subset of string functions needed by commits to come.
Except for memcpy() which is unchanged from its original location, their
implementation is meant to be small, and -Os is enforced to prevent gcc
from doing pointless loop unrolling.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>

Change-Id: Ib6fd21beb8ee8804e472fb4ff5eb1cbea2b8e877
Original: df4879fa2603fbf0804a80f9f146ef9023dd621f
Reviewed-on: http://git-master/r/107424
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoARM: zImage: make sure appended DTB doesn't get overwritten by kernel .bss
Nicolas Pitre [Sun, 12 Jun 2011 05:07:33 +0000]
ARM: zImage: make sure appended DTB doesn't get overwritten by kernel .bss

The appended DTB gets relocated with the decompressor code to get out
of the way of the decompressed kernel.  However the kernel's .bss section
may be larger than the relocated code and data, and then the DTB gets
overwritten.  Let's make sure the relocation takes care of moving zImage
far enough so no such conflict with .bss occurs.

Thanks to Tony Lindgren <tony@atomide.com> for figuring out this issue.

While at it, let's clean up the code a bit so that the wont_overwrite
symbol is used while determining if a conflict exists, making the above
change more precise as well as eliminating some ARM/THUMB alternates.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>

Change-Id: I1590dcbb9789f20d4c56a1e1f7c40177acaa8a2d
Original: 5ffb04f6690d71fab241b3562ebf52b893ac4ff1
Reviewed-on: http://git-master/r/107767
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoARM: zImage: Allow the appending of a device tree binary
John Bonesio [Fri, 27 May 2011 22:45:50 +0000]
ARM: zImage: Allow the appending of a device tree binary

This patch provides the ability to boot using a device tree that is appended
to the raw binary zImage (e.g. cat zImage <filename>.dtb > zImage_w_dtb).

Signed-off-by: John Bonesio <bones@secretlab.ca>
[nico: ported to latest zImage changes plus additional cleanups/improvements]
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>

Change-Id: I93c54694a59b357eb550587b94c986dcb19ab954
Original: e2a6a3aafa9862c4a4b59f2a59b8f923d64a680e
Reviewed-on: http://git-master/r/107422
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: zImage: ensure it is always a multiple of 64 bits in size
Nicolas Pitre [Sat, 28 May 2011 02:25:26 +0000]
ARM: zImage: ensure it is always a multiple of 64 bits in size

This is needed for proper alignment when the DTB appending feature
is used.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chinmay Kamat <ckamat@nvidia.com>

Change-Id: I18dd4220a40984ab2551ca17a16db37193ffe80c
Original: 72bf0bce411d9df0935eb77256604212de8f89cc
Reviewed-on: http://git-master/r/108696
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoregulator: tps65090: support for input supply
Laxman Dewangan [Fri, 3 Aug 2012 11:20:37 +0000]
regulator: tps65090: support for input supply

Fill the desc.supply_name for each rail with corresponding
input pinname as per datasheet.

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

7 years agoregulator: tps65090: Support for external control of DCDC
Laxman Dewangan [Fri, 3 Aug 2012 10:49:46 +0000]
regulator: tps65090: Support for external control of DCDC

The DCDC regulators can support of control through extrenal
signal. Add support of this feature.

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

7 years agoregulator: tps65090: support for LDO1 and LDO2
Laxman Dewangan [Fri, 3 Aug 2012 09:25:27 +0000]
regulator: tps65090: support for LDO1 and LDO2

The LDO1 and LDO2 are always-on regulator from device.
Add support for these rails.

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

7 years agoregulator: core: support of supply name through desc
Laxman Dewangan [Fri, 3 Aug 2012 11:11:18 +0000]
regulator: core: support of supply name through desc

Add support of providing the supply name through
regualtor descriptor. This help to fill the supply name
in device based on datasheet.
This patch help to develop driver which is align with
mainline.
This change is small set of change in mainline
---------------
commit 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3
Author: Rajendra Nayak <rnayak@ti.com>

    regulator: map consumer regulator based on device tree
---------------

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

7 years agostaging: nvec: get rid of tegra_gpio_enable()
Laxman Dewangan [Fri, 3 Aug 2012 09:08:41 +0000]
staging: nvec: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agomtd: nand: tegra: get rid of tegra_gpio_enable()
Laxman Dewangan [Fri, 3 Aug 2012 09:08:11 +0000]
mtd: nand: tegra: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agomfd: tps65090: print error message when malloc failed
Laxman Dewangan [Thu, 2 Aug 2012 15:12:19 +0000]
mfd: tps65090: print error message when malloc failed

Prints error message when memory alloc failed for easing
debugging.

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

7 years agomfd: tps65090: remove unused member from tps65090 structure
Laxman Dewangan [Thu, 2 Aug 2012 15:06:05 +0000]
mfd: tps65090: remove unused member from tps65090 structure

The structure tps65090 have member as "client", "lock", "id"
which is no more required.
Removing this member from structure.

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

7 years agoregulator tps65090: fix compilation warning
Laxman Dewangan [Thu, 2 Aug 2012 14:51:22 +0000]
regulator tps65090: fix compilation warning

Fix compilation warning of -Wmaybe-uninitialized

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

7 years agomfd: tps65090: fix compilation warning
Laxman Dewangan [Thu, 2 Aug 2012 14:50:32 +0000]
mfd: tps65090: fix compilation warning

Fix compilation warning of -Wmaybe-uninitialized

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

7 years agomfd: tps65090: make register access to inline
Laxman Dewangan [Thu, 2 Aug 2012 14:46:58 +0000]
mfd: tps65090: make register access to inline

Move the register access function to header and make
all register access apis to inline.

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

7 years agomfd: tps65090: remove duplicate mfd cells
Laxman Dewangan [Thu, 2 Aug 2012 14:30:23 +0000]
mfd: tps65090: remove duplicate mfd cells

TPS65090 add mfd sub device of "tps65090-pmic" and
"tps65090-regualtor" which is same.
Remove one of them.

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

7 years agomfd: tps65090: remove unused platform data
Laxman Dewangan [Thu, 2 Aug 2012 14:21:14 +0000]
mfd: tps65090: remove unused platform data

The tps65090 have platform data for subdevs which is
not used any more. Removing this from platform data.

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

7 years agoregulator: tps65090: fix multiple regulator registration issue
Laxman Dewangan [Thu, 2 Aug 2012 14:16:17 +0000]
regulator: tps65090: fix multiple regulator registration issue

The regulator of tps65090 is registered as mfd sub device
and hence all regulator should be register in one call
of tps65090 regulator probe.
Fixing this by providing the list of regulator platform data
and registering the regulators in single probe call.

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

7 years agoregulator: tps65090: convert regualtor_init_data as pointer
Laxman Dewangan [Thu, 2 Aug 2012 13:36:18 +0000]
regulator: tps65090: convert regualtor_init_data as pointer

In regulator platform data for tps65090, convert the regulator
init data to a pointer type to have easy support in DT.

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

7 years agoregulator: tps65090: separate regulator info with device info
Laxman Dewangan [Thu, 2 Aug 2012 13:30:59 +0000]
regulator: tps65090: separate regulator info with device info

Currently the regulator info is stored in the data structure of
device. This avoid to have multiple instance of this driver
as it can corrupt the other instance driver.
Separating driver specific data with device information.

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

7 years agoregulator: tps65090: rename regulator enums
Laxman Dewangan [Thu, 2 Aug 2012 13:18:07 +0000]
regulator: tps65090: rename regulator enums

Renaming regulator enums from TPS65090_ID_* to
TPS65090_REGULATOR_* for better readability.

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

7 years agomfd: tps80031: fix wrong regmap for charger
Xin Xie [Fri, 3 Aug 2012 01:28:48 +0000]
mfd: tps80031: fix wrong regmap for charger

BUG 1026050

Change-Id: Ide19fd183ee172c84b0d5d2d0382e8ec944f2a87
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/120580
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoARM: tegra: cardhu: add support for lid switch
Rhyland Klein [Thu, 2 Aug 2012 19:09:15 +0000]
ARM: tegra: cardhu: add support for lid switch

Chromeos testing includes verifying the lid switch is functional.
While cardhu's don't have lids, this can be tested via the
lid_switch dip switch on the debug board. Add support for the lid
switch via gpio_keys.

bug 1027716

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I7b2e31798b6cfa0715980ddd93dd6b5292ca20d3
Reviewed-on: http://git-master/r/120445
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoALSA: usb-audio: fix compilation error
Rhyland Klein [Thu, 2 Aug 2012 19:29:35 +0000]
ALSA: usb-audio: fix compilation error

change 8843c49092b6ed903e88eded1f1c9b9a7f432dfe introduced
a compliation error if CONFIG_SWITCH is not enabled.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I4b4c547394f424bd90837726b08d9feccd4207de
Reviewed-on: http://git-master/r/120444
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoasoc: tegra: fix compilation error in max98095
Rhyland Klein [Thu, 2 Aug 2012 19:27:53 +0000]
asoc: tegra: fix compilation error in max98095

change 4b70cc537cadc787b748c7c246d703a240b08985 introduced
a compilation error.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I59e54537d9bb4b30e807478e5b7634db0813a739
Reviewed-on: http://git-master/r/120443
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ankit Gupta (Engrg-SW) <ankitgupta@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoinput: touch: atmel_mxt_ts: Add Ftrace logging.
Vikas Jain [Fri, 27 Jul 2012 10:05:47 +0000]
input: touch: atmel_mxt_ts: Add Ftrace logging.

This change assists automating system wide
touch driver performance.

Bug 928954

Change-Id: Iea21dfea1c31748ce5835652cecc0856c4f4028d
Signed-off-by: Vikas Jain <vjain@nvidia.com>
Reviewed-on: http://git-master/r/118984
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: David Jung <djung@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: cardhu: report height/width for cardhu
Rakesh Iyer [Thu, 2 Aug 2012 12:19:17 +0000]
ARM: tegra: cardhu: report height/width for cardhu

For accurate Dots-per-inch computation we need to report height/width for
all cardhu based panels.

Bug 1003707.

Change-Id: I06c5ee077aa82a9ffd958e1cc7c536b445523da3
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/120350
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agomedia: tegra: ov9726: add group hold ioctl
Charlie Huang [Wed, 1 Aug 2012 01:41:38 +0000]
media: tegra: ov9726: add group hold ioctl

To make AE transition smoother, the group hold enable/disable actions
should be added before and after set gain/frame length/coarse time.

bug 1025995

Change-Id: I578b33167e50f59d0d9a88a0e16fac0c5425b6b6
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/119835
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Abhinav Sinha <absinha@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoARM: tegra: cardhu: provide suspend aggr for E1506
Rakesh Iyer [Thu, 26 Jul 2012 19:18:05 +0000]
ARM: tegra: cardhu: provide suspend aggr for E1506

DSI clock gating requires a valid value for aggressive suspend.

Change-Id: I6847fb94e2db899ff251e16f045fa76b8ad2e737
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/118733
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregulator: tps65090: Use IS_ERR to check return value of regulator_register
Laxman Dewangan [Thu, 2 Aug 2012 12:42:04 +0000]
regulator: tps65090: Use IS_ERR to check return value of regulator_register

regulator_register never returns NULL.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(Cherry-picked from mainline
0ca2d6e65268477a53f959320a43d13b0c4d6b70)

Conflicts:

drivers/regulator/tps65090-regulator.c

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

7 years agomfd: Convert tps65090 to devm_regmap_init_i2c()
Axel Lin [Wed, 25 Apr 2012 02:04:58 +0000]
mfd: Convert tps65090 to devm_regmap_init_i2c()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(Cherry-picked from mainline
1d88f7a01d9588b3298cfd6a2ec30538e96d166e)

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

7 years agomfd: Return proper error if tps65090 regmap_init_i2c fails
Axel Lin [Wed, 25 Apr 2012 01:30:36 +0000]
mfd: Return proper error if tps65090 regmap_init_i2c fails

Return proper error instead of 0 if regmap_init_i2c fails.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(Cherrypicked from mainline
b683a0a675560307ebc458cf9044d98d27820b7c)

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

7 years agomfd: Don't use I2C-specific suspend and resume operations for tps65090
Mark Brown [Mon, 7 May 2012 09:03:18 +0000]
mfd: Don't use I2C-specific suspend and resume operations for tps65090

The legacy suspend operations have been deprecated and printing warnings
on boot for over a year now.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(Cherry-picked from mainline
b6c9eeef4e775e1fff76f4395d11638dc198271d)

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

7 years agomfd: Fix tps65090 ifdefs for suspend mode
Mark Brown [Mon, 7 May 2012 09:03:17 +0000]
mfd: Fix tps65090 ifdefs for suspend mode

CONFIG_PM also covers runtime only PM.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(Cherry-picked from mainline
1ca5513af77307eccea7efd4d12ef5c14f1b12ab)

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

7 years agoUSB: gadget: f_accessory: change prototype of create_bluk_endpoints
Rakesh Bodla [Thu, 2 Aug 2012 06:35:28 +0000]
USB: gadget: f_accessory: change prototype of create_bluk_endpoints

Changing prototype of create_bluk_endpoints since
function can called during runtime.

Bug 1026235

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

7 years agoarm: tegra: usb_phy: use devm_kfree to free memory
Rakesh Bodla [Thu, 2 Aug 2012 06:23:39 +0000]
arm: tegra: usb_phy: use devm_kfree to free memory

devm_kfree() should be used to free memory allocated by devm_kzalloc()
Memory allocated with devm_kzalloc is automatically freed on driver
detach. Kernel crash will be observed if it is freed with kfree().

Bug 1027472

Change-Id: I27ae63c26647f055de60c2837edfd5fd44a9dabc
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/120245
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

7 years agovideo: tegra: hdmi: cleanup error handling in init
Gaurav Batra [Wed, 1 Aug 2012 19:28:51 +0000]
video: tegra: hdmi: cleanup error handling in init

In case tegra_dc_init fails, this change will prevent unbalanced call
to dc->out_ops->disable().

Also mark tegra_dc_io_end in case tegra_dc_controller_enable
fails, this is required to not stop device from going into suspend mode.

Bug 1003874

Change-Id: I5af6b46fc50e1ae8e54f9f4eb8540d751364fed7
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/120108
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregulator: tps80031: support for external regulator
Laxman Dewangan [Wed, 1 Aug 2012 09:18:59 +0000]
regulator: tps80031: support for external regulator

TPS80031 supports the three external regulator named
as REGEN1, REGEN2 and SYSEN.
Supports these regulator through regulator driver.

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

7 years agoregulator: tps80031: register regulators as mfd sub device
Laxman Dewangan [Thu, 2 Aug 2012 08:04:01 +0000]
regulator: tps80031: register regulators as mfd sub device

Converting tps80031 regulator driver to be register as mfd
sub device of the tps65910 and register all its regulators from
single probe calls.
Add separate platform data for the regulator to be supply from
board as part of tps80031 platform data.

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

7 years agoregulator: tps80031: separate device info with platform info
Laxman Dewangan [Fri, 27 Jul 2012 08:22:01 +0000]
regulator: tps80031: separate device info with platform info

Currently the platform specific data is sharing with
device information structure and hence it restrict to
use the multiple instance of the device.
Separating the device specific information to the platform
specific data and allocating different memory for
storing platform specific data.

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

7 years agoARM: tegra: p1852: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:27:22 +0000]
ARM: tegra: p1852: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agoARM: tegra: ventana: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:26:22 +0000]
ARM: tegra: ventana: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agoARM: tegra: cardhu: get rid of tegra_gpio_enable() in hsic registration
Laxman Dewangan [Tue, 31 Jul 2012 08:56:16 +0000]
ARM: tegra: cardhu: get rid of tegra_gpio_enable() in hsic registration

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agoarm: tegra: remove hsic phy params from boards
Venu Byravarasu [Mon, 30 Jul 2012 11:04:24 +0000]
arm: tegra: remove hsic phy params from boards

As HSIC phy params are not customizable, removing
them from board files.

bug 1024260

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

7 years agoarm: tegra: usb_phy: Hard code HSIC phy params
Venu Byravarasu [Mon, 30 Jul 2012 12:47:34 +0000]
arm: tegra: usb_phy: Hard code HSIC phy params

As HSIC does not have any customizable phy params,
hard coding them in the phy driver.

bug 1024260

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

7 years agoarm: tegra: usb: Remove HSIC phy params
Venu Byravarasu [Mon, 30 Jul 2012 10:57:32 +0000]
arm: tegra: usb: Remove HSIC phy params

As HSIC phy parameters are not customizable, removing them
from platform_data structure.

bug 1024260

Change-Id: I00fcc0559be43ad336b5b03a7a47443dfaa80d06
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/119298
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoarm: tegra: cardhu: Disable ACCELIRQ
Prem Sasidharan [Fri, 27 Jul 2012 22:22:15 +0000]
arm: tegra: cardhu: Disable ACCELIRQ

Setting MPU_ACCEL_IRQ_GPIO to 0. This helps prevent creation of
device node /dev/accelirq and enable timerirq to provide polling
ticks for the MPU sensors. The MPU sensors are not currently
operating in interrupt mode, the sensors needs to be polled at
regular interval. MPU sensor HAL enables the polling timer in
the absense of /dev/accelirq device node.

Bug 947670

Signed-off-by: Prem Sasidharan <psasidharan@nvidia.com>
Change-Id: I8a2c60da00e7d288ec785aa204bdb3207d717028
Reviewed-on: http://git-master/r/119098
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agomedia: video: tegra: Focuser range tuning support
Sudhir Vyas [Thu, 26 Jul 2012 05:42:33 +0000]
media: video: tegra: Focuser range tuning support

* Add support for focuser range tuning.
* Fix focuser position move programming.
* Optimize focuser read/write.
* Optimize focuser power consumption.
* Fix foucser sound issue while capture.
* Improve overall focuser performance.

Bug 1013062
Bug 1018136
Bug 978541

Change-Id: I57fc0566a3a43468ce9a07319014cf3c038ed1e1
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/118543
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agousb: otg: tegra: enable warning as error flag
Deepak Nibade [Wed, 25 Jul 2012 04:52:32 +0000]
usb: otg: tegra: enable warning as error flag

-enable warnings as errors compilation flag
-handle errors of missing semicolon and mismatched argument type

bug 949219

Change-Id: I29b1c08c590c94fa1aa43a9e37abf0385e3597d5
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118235
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoasoc: codecs: max98088: fix no audio after reset
Sayak Ghosh Choudhury [Thu, 2 Aug 2012 09:29:53 +0000]
asoc: codecs: max98088: fix no audio after reset

98088 codec register value is altered to fix no audio issue after
reset. Previously after reset the register value was getting wiped
out.

Bug 1017782

Change-Id: I060929bfb868c48dc4db9def171a3bdd167a3913
Reviewed-on: http://git-master/r/120319
Tested-by: Sayak Choudhury <sayakc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoarm: tegra: enterprise: Pinmux changes for Enterprise A04
Karthik Ramakrishnan [Wed, 20 Jun 2012 07:23:07 +0000]
arm: tegra: enterprise: Pinmux changes for Enterprise A04

Pinmux configurations updated according to the schematics of
Enterprise A04. The unused pins are marked Tristate and turned
low. The directions are updated for other pins.

Bug 990845

Change-Id: I787bdd77848af59b5c33d030f0c040e7431d6c06
Signed-Off-By: Karthik Ramakrishnan <karthikr@nvidia.com>
Reviewed-on: http://git-master/r/105205
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: enterprise: change BB to DAP5 from DAP3 for A04
Tom Cherry [Tue, 8 May 2012 22:41:16 +0000]
arm: tegra: enterprise: change BB to DAP5 from DAP3 for A04

Due to a hardware issue, Audio Baseband lines are changed
for A04 board from DAP3 to DAP5. All other boards retain
the same older line

Bug 980383

Change-Id: If9ecfaa7328a9a7148f95d604926975172c0886a
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-On: http://git-master/r/#change,109067
(cherry picked from commit c3de03de4d97937e6a989ae6c79c8c430afd300e)
Reviewed-on: http://git-master/r/105168
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoalsa: hda: add alsa ctl to query max channels
Nikesh Oswal [Thu, 26 Jul 2012 10:28:46 +0000]
alsa: hda: add alsa ctl to query max channels

add alsa ctl to query maximum supported
channels

Bug: 998697

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

7 years agovideo: tegra: host: use strcmp in nvhost_bus_match
Mayuresh Kulkarni [Tue, 24 Jul 2012 07:17:24 +0000]
video: tegra: host: use strcmp in nvhost_bus_match

- replace the usage of strncmp with strcmp in
nvhost_bus_match()
- strncmp was needed when we had device name as
<name.ip-version>. but now the device name is <name>
which matches with the driver name.
- multiple devices get bind with the same driver using
id_table which uses .version field as an index in id_table

Change-Id: If0b6f0ee18626d5e7ff801b8515ef5168069c3f2
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/117953
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

7 years agoarm: tegra: fuse: check SENSE_DONE after fuse programming
Roger Hsieh [Mon, 30 Jul 2012 08:20:38 +0000]
arm: tegra: fuse: check SENSE_DONE after fuse programming

Make fuse burning take effect by checking SENSE_DONE. Without this
chip options will not be available on fuse registers until
power on reset or LP0 resume.

Bug 1020726

Change-Id: Id547d1ea51b023ba904f5751c2ad65667375777d
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/119271
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agow1: master: tegra: treat compile warning as error
schowdary [Tue, 24 Jul 2012 15:51:27 +0000]
w1: master: tegra: treat compile warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ifc6b454e3debf44c14720d2aa908147902d57b79
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118087
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agovideo: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 15:46:06 +0000]
video: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ib183b75f73df1a141f1dfdbc330369da838b24b9
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118086
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agocrypto: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 15:42:04 +0000]
crypto: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ie5b8eb8ebb3ca37ac111fb0acc64cd8667e2c8e1
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118079
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agomisc: tegra-cryptodev: treat warning as error
schowdary [Tue, 24 Jul 2012 15:36:01 +0000]
misc: tegra-cryptodev: treat warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Iacd963ea85f9a29b79776b7cd504838d992ff1bc
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118076
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agomisc: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 15:24:36 +0000]
misc: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ib5f433fc2ef9cf3777c34eda91b1eff8e815bcb9
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118073
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agopower: tegra: enable warnings as errors flag
Deepak Nibade [Tue, 24 Jul 2012 13:26:28 +0000]
power: tegra: enable warnings as errors flag

-enable warnings as errors compilation flag

bug 949219

Change-Id: Iccacce77b98498e7d13119cf41db9d34d2bea492
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118044
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agonet: caif: tegra: enable warnings as errors flag
Deepak Nibade [Tue, 24 Jul 2012 13:18:31 +0000]
net: caif: tegra: enable warnings as errors flag

-enable warnings as errors compilation flag

bug 949219

Change-Id: Ifeaba174d59c437e0068324b73dffd287f90c957
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118041
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>

7 years agowatchdog: tegra: enable compile warning as error
schowdary [Tue, 24 Jul 2012 13:16:07 +0000]
watchdog: tegra: enable compile warning as error

- Add compilation flag to treat warning as error
- Handle error of unused variable
- Handle error of uninitialised variable

bug 949219

Change-Id: I07437be5eaa7bf7abe5494c828690b6be3b98178
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118039
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agousb: gadget: treat warning as errors for tegra_udc.c
Deepak Nibade [Tue, 24 Jul 2012 13:10:54 +0000]
usb: gadget: treat warning as errors for tegra_udc.c

bug 949219

Change-Id: If76cece9a5c929216024b165f48f37c4046faffc
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118037
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agonand: tegra: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 13:00:09 +0000]
nand: tegra: treat warnings as errors

add compilation flag to treat warnings as errors

bug 949219

Change-Id: Iac1b0e608ac5b19f5f84380ab7ffc76e14c3d7a0
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118033
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoiommu: tegra/gart: resolve compilation warning
schowdary [Tue, 24 Jul 2012 12:33:47 +0000]
iommu: tegra/gart: resolve compilation warning

- Add compilation flag to treat warning as error
- resolve label defined but not used error in smmu

bug 949219

Change-Id: Ie6693cf21904008bbe927b27817a9cd02ed0d34f
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118025
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoserial: tegra: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 12:17:56 +0000]
serial: tegra: treat warnings as errors

-add compilation flag to treat warning as error

bug 949219

Change-Id: I1b4eb4a38abbf6140ab5929bb51eec469b96b710
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118024
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>

7 years agotegra: sata: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 12:05:14 +0000]
tegra: sata: treat warnings as errors

-add compilation flag to treat warning as error

bug 949219

Change-Id: I23c961756ebe7b84ff019995e5c0704693fdf13f
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118016
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Yen Lin <yelin@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoarm: tegra: usb: link ulpi resume sequence
Suresh Mangipudi [Wed, 1 Aug 2012 05:50:58 +0000]
arm: tegra: usb: link ulpi resume sequence

lp0 resume for link_ulpi_phy has been modified.To fix the issue of
frequent disconnects while resuming from LP0.

Bug 997267

Change-Id: If92b8245b154e9b872b80d80a2ab359c87107a39
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/119511
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregulator: tps80031: make regualtor_init_data as pointer type
Laxman Dewangan [Wed, 1 Aug 2012 08:51:19 +0000]
regulator: tps80031: make regualtor_init_data as pointer type

The platform data of tps80031 have the regualtor_init_data as
non-pointer type. Converting this as pointer type for aligning
to regulator driver policy and easy support for DT.

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

7 years agoARM: tegra: enterpise: name all regulator rails
Laxman Dewangan [Wed, 1 Aug 2012 08:44:29 +0000]
ARM: tegra: enterpise: name all regulator rails

Provide name for all tps80031 regulator rails locally
in place of depending on the name provided by driver.

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

7 years agoregulator: tps80031: rename regulator-name enums
Laxman Dewangan [Wed, 25 Jul 2012 07:57:22 +0000]
regulator: tps80031: rename regulator-name enums

Renaming the regulator name from TPS80031_ID_* to
TPS80031_REGULATOR_* for better readability.

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

7 years agoRevert "Revert "regulator: tps80031: rename regulator-name enums""
Simone Willett [Tue, 31 Jul 2012 23:32:09 +0000]
Revert "Revert "regulator: tps80031: rename regulator-name enums""

This reverts commit 70e40e9cf025c73fde46d1a5577547dc37182a64

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

7 years agomisc: tegra_baseband: power: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:49:52 +0000]
misc: tegra_baseband: power: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I19296beb619cb6adc8daa02cde825aef45d8d42f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119613
Reviewed-by: Rajkumar Jayaraman <rjayaraman@nvidia.com>

7 years agommc: host: tegra: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:48:54 +0000]
mmc: host: tegra: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agoARM: tegra: enterprise: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:29:23 +0000]
ARM: tegra: enterprise: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agoARM: tegra: get rid of tegra_gpio_enable() in touch init
Laxman Dewangan [Tue, 31 Jul 2012 09:07:52 +0000]
ARM: tegra: get rid of tegra_gpio_enable() in touch init

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I3e3e49fb3b970b090f2184c21601f676356212a4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119608
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: David Jung <djung@nvidia.com>

7 years agoARM: tegra: cardhu: get rid of tegra_gpio_enable() in panel init
Laxman Dewangan [Tue, 31 Jul 2012 08:58:19 +0000]
ARM: tegra: cardhu: get rid of tegra_gpio_enable() in panel init

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agoARM: tegra: i2c_recovery: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 08:53:58 +0000]
ARM: tegra: i2c_recovery: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agoARM: tegra: usb_modem: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 08:48:18 +0000]
ARM: tegra: usb_modem: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agoARM: tegra: usb_phy: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 08:44:16 +0000]
ARM: tegra: usb_phy: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agoarm: tegra: baseband: Fix sysfs node permissions
Steve Lin [Tue, 31 Jul 2012 00:34:00 +0000]
arm: tegra: baseband: Fix sysfs node permissions

Restricting the modem sysfs node permissions to owner only.
Bug 1025901

Change-Id: I85095c06b6f5329403b66389a5f27383464f2c64
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/119436
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chinmay Kamat <ckamat@nvidia.com>
Reviewed-by: Alexandre Berdery <aberdery@nvidia.com>

7 years agoMPU6050: Disable irq when suspend all sensors
Hunk Lin [Mon, 30 Jul 2012 16:19:09 +0000]
MPU6050: Disable irq when suspend all sensors

When we suspend all sensors, MPU6050 continue generating irqs.
So set MPUREG_INT_ENABLE to 0 for saving power.

Bug 1021448

Signed-off-by: Hunk Lin <hulin@nvidia.com>
Change-Id: I90acb0b5e297c61c205a20b8eb54e6164a4d5b32
Reviewed-on: http://git-master/r/119344
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prem Sasidharan <psasidharan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: 7017/1: Use generic BUG() handler
Vishal Singh [Fri, 27 Jul 2012 06:58:00 +0000]
ARM: 7017/1: Use generic BUG() handler

ARM uses its own BUG() handler which makes its output slightly different
from other archtectures.

One of the problems is that the ARM implementation doesn't report the
function
with the BUG() in it, but always reports the PC being in __bug(). The
generic
implementation doesn't have this problem.

Currently we get something like:

kernel BUG at fs/proc/breakme.c:35!
Unable to handle kernel NULL pointer dereference at virtual address
00000000
...
PC is at __bug+0x20/0x2c

With this patch it displays:

kernel BUG at fs/proc/breakme.c:35!
Internal error: Oops - undefined instruction: 0 [#1] PREEMPT SMP
...
PC is at write_breakme+0xd0/0x1b4

This implementation uses an undefined instruction to implement BUG, and
sets up
a bug table containing the relevant information. Many versions of gcc do
not
support %c properly for ARM (inserting a # when they shouldn't) so we
work
around this using distasteful macro magic.

v1: Initial version to replace existing ARM BUG() implementation with
something
more similar to other architectures.

v2: Add Thumb support, remove backtrace whitespace output changes.
Change to
use macros instead of requiring the asm %d flag to work (thanks to
Dave Martin <dave.martin@linaro.org>)

v3: Remove old BUG() implementation in favor of this one.
Remove the Backtrace: message (will submit this separately).
Rebase to linux-2.6.git master.

v4: Allow BUGS in modules (these were not reported correctly in v3)
(thanks to Stephen Boyd <sboyd@codeaurora.org> for suggesting that.)
Remove __bug() as this is no longer needed.

v5: Add %progbits as the section flags.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Tested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
(cherry picked from commit 87e040b6456fd3416a1f6831c1eedaef5c0a94ff)

Change-Id: Ic7692288dff6e4a15c732eb030295bd196a87fb4
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/117356
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
(cherry picked from commit 6708ffd0b44f4d09d8fe745471641545655091fb)
Reviewed-on: http://git-master/r/119328
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agomfd: tps65090: align driver with mainline
Venu Byravarasu [Fri, 16 Mar 2012 05:40:19 +0000]
mfd: tps65090: align driver with mainline

Align the driver with mainline.

This is vbased on commit
3c33be06f9aa0949ad24e67dfcae1f2a3006f4e1
---------------
mfd: Add support for TPS65090

TPS65090 is a Texas Instrument PMIC. It contains 3 Step-Down converters, 2
always on LDO's and  7 current limited load switches.

Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
--------------

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

7 years agoregulator: tps62361: make all register as non-volatile
Laxman Dewangan [Tue, 31 Jul 2012 10:14:03 +0000]
regulator: tps62361: make all register as non-volatile

All register fo TPS62361 is non-volatile and so implementing
this api for regmap actual caching.

bug 993297

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

7 years agommc: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 13:11:46 +0000]
mmc: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error
- Modified sdhci-tegra.c to remove compile warning

bug 949219

Change-Id: I704ea95e3b8ca8862482b6793b71ca4e5114f832
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118036
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: usb: Clear pmc wake alarm
Krishna Yarlagadda [Tue, 31 Jul 2012 10:48:50 +0000]
ARM: tegra: usb: Clear pmc wake alarm

After a pmc wake, walk pointer and wake alarm should be cleared.
Currently wake alarm is cleared only in case of remote wakeup.
Clearing wake alarm for all cases of pmc wake.

Bug 1024496

Change-Id: I5374d792fe1564fd4a04a48d9fa9de2c93cc94dd
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/119619
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: cardhu: report height/width for cardhu
Rakesh Iyer [Thu, 26 Jul 2012 21:30:05 +0000]
ARM: tegra: cardhu: report height/width for cardhu

For accurate Dots-per-inch computation we need to report height/width for
the cardhu panel.

Bug 1003707.

Change-Id: I9a3413d06d97bed532ffc501000ca9bc2360e842
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/118777
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>