6 years agoarm: tegra: board: usb fixes for unaligned buffer
Suresh Mangipudi [Fri, 7 Sep 2012 11:52:03 +0000]
arm: tegra: board: usb fixes for unaligned buffer

Add support for unaligned buffers for usb, as it is fixed for T114.

Bug 1017714

Change-Id: I5cb486f707c6427dcd657bc8edf822d5cfc4dad2
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/130677
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agopm: EDP: enabling EDP framework for tegra11
Sivaram Nair [Mon, 10 Sep 2012 14:29:34 +0000]
pm: EDP: enabling EDP framework for tegra11

This patch enables the EDP_FRAMEWORK config flag for tegra11 SoCs

Change-Id: I366e649ae9f27c1664a86fe46f160a7147826c77
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/131136
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoarm: tegra: pluto: add sensor support
Sri Krishna chowdary [Fri, 7 Sep 2012 08:21:57 +0000]
arm: tegra: pluto: add sensor support

Registration of isl29028 ALS+Proximity sensor on i2c

Bug 980722

Change-Id: I4718e2c7965065d1136bb6df2a941b6d15f0ab3b
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/131121
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: fuse: Fix coverity issue
Sri Krishna chowdary [Mon, 10 Sep 2012 11:53:16 +0000]
ARM: tegra: fuse: Fix coverity issue

Fix negative array index read

Bug 1046331

Change-Id: Ibef31d5e121b6e16f87cef973c10cd4d2647496b
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/131099
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agocrypto: tegra-se: reseed rng after RESEED_INTERVAL
Mallikarjun Kasoju [Mon, 10 Sep 2012 20:36:24 +0000]
crypto: tegra-se: reseed rng after RESEED_INTERVAL

Force ressed rng number generation after reseed
interval expires

Bug 952135

Change-Id: I3259b7ce008769c736e9b548a78494501acab60f
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/130994
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra11: clock: Add XUSB shared EMC user
Alex Frid [Sun, 9 Sep 2012 23:17:59 +0000]
ARM: tegra11: clock: Add XUSB shared EMC user

Added EMC shared user for XUSB driver. Changed XUSB device id to
"tegra_xhci".

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

6 years agoARM: tegra11: dvfs: Add uart dvfs tables
Alex Frid [Fri, 31 Aug 2012 07:09:15 +0000]
ARM: tegra11: dvfs: Add uart dvfs tables

On Tegra11 there are two alternative configurations of UART clock:
(a) clock module source mux, and clock module 15.1 fractional divider
(b) clock module source mux, and legacy serial port 16-bit integer
divider inside UART module

In configuration (a) actual UART rate, and respective voltage level
is known by clock framework. In configuration (b) dvfs can be applied
correctly only when internal UART divider is set as 1:1. Hence, high
speed tegra UART driver must use either (a) or (b) with 1:1 settings.

Standard serial 8250 port driver, however, will use configuration (b)
with scaled internal divider. Since baud rates set by this driver are
way below Tegra11 UART capabilities at minimum voltage, dvfs limits
will not be checked in this case at all.

For now, the application of dvfs tables is deferred until tegra UART
driver is modified.

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

6 years agoARM: tegra: clock: Make maximum rate writable via debugfs
Alex Frid [Sun, 9 Sep 2012 06:11:53 +0000]
ARM: tegra: clock: Make maximum rate writable via debugfs

Change-Id: I3a9cf1a393797484de3e836b664636e79a95ac74
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/130900
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoarm: tegra: pluto: enable sdhci configuration
Nagarjuna Kristam [Fri, 7 Sep 2012 09:58:55 +0000]
arm: tegra: pluto: enable sdhci configuration

rename DALMORE_* macros to PLUTO_*
correct WOW GPIO pin
remove conditional else code for CONFIG_ARCH_TEGRA_11x_SOC

Bug 1029054

Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Change-Id: I245d03b90e5f48fef66d2a1d7e8aa0855d5290e4
Reviewed-on: http://git-master/r/130473
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agopower: max77665: add battery charger support
Syed Rafiuddin [Wed, 5 Sep 2012 05:39:37 +0000]
power: max77665: add battery charger support

MAX77665 supports battery charging.

Add driver for supporting this feature

Bug 1011298

Change-Id: I34a1b95836c1fce24548592dd073fdfedcc49669
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130619
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agodrivers: extcon: add max77665 muic driver
Syed Rafiuddin [Tue, 4 Sep 2012 07:00:21 +0000]
drivers: extcon: add max77665 muic driver

MAX77665 support muic feature.

Addition of driver to support this feature.

Change-Id: Ifd0c934d2ab457e511c0a2cd1d312dba6afe8a89
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130618
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoExtcon: Don't try to create duplicate link names
Syed Rafiuddin [Mon, 3 Sep 2012 11:37:44 +0000]
Extcon: Don't try to create duplicate link names

We can't create a link from the device to the compatibility switch class
since we already create a link from the device to to the extcon class
object and we try to use the same name for both links. This causes a loud
complaint from sysfs on boot.

(cherry picked from commit c3b15452e253ab0629cd9e400d3fb6d76c76cb73)

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Change-Id: I54d35756be2757f63d616f3f9cafd24d416ab8cc
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130617
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoExtcon: Staticise extcon_class
Syed Rafiuddin [Mon, 3 Sep 2012 11:36:05 +0000]
Extcon: Staticise extcon_class

It's not referenced outside the core file.

(cherry picked from commit be3a07f71ca3ae300d652a653279321e85b9f3d0)

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Change-Id: I0a4252336c5656ac06f20029678e3779ff644e29
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130616
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoextcon: Add EXTCON_MECHANICAL cable type for physical presence
Syed Rafiuddin [Mon, 3 Sep 2012 11:34:45 +0000]
extcon: Add EXTCON_MECHANICAL cable type for physical presence

Some accessory detection mechanisms are able to detect that something is
physically present in the socket separately to identifying what is present
in the socket. This information can be useful to applications, for example
allowing them to indicate that a potentially broken accessory is present,
so provide a standard way to report it to userspace.

(cherry picked from commit 0e1507c8453081c9a6a515b92f89dd00b68f5c09)

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Change-Id: I7205bffca0c1bdc1e472d4a41d27d81a3a09ebd2
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130615
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoExtcon: Notify changed state for only one cable to notifee
Syed Rafiuddin [Mon, 3 Sep 2012 11:32:41 +0000]
Extcon: Notify changed state for only one cable to notifee

This patch inform the state of only one cable instead of previous data
including the state of 32 cables to notifee which use
extcon_register_interest()
function to monitor whether the specific cable is attachd or detached.

(cherry picked from commit f4cce69611ee941bac0729c6069795f106905ef9)

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Change-Id: Ibd6d3def768d60aa5b1bdad3b16d6800ac8661ad
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130614
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoExtcon: check for allocation failure
Syed Rafiuddin [Mon, 3 Sep 2012 11:30:11 +0000]
Extcon: check for allocation failure

Return -ENOMEM if the kmalloc() fails.

(cherry picked from commit a1d26ac0ddc4ea561e17a75dd3b5f9d3c1812f16)

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Change-Id: Id9b7b83dd08ea2cffb55b3922bac2d3c2a1725ce
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130613
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoRemove "switch" class in drivers/staging/android/switch
Syed Rafiuddin [Mon, 3 Sep 2012 11:26:28 +0000]
Remove "switch" class in drivers/staging/android/switch

Because extcon can also be a switch class for legacy userspace (Android)
and is a superset of switch class in drivers/staging/android/switch,
switch class may be removed.

- Remove switch class
- Remove switch class consideration in extcon class

(cherry picked from commit 449a2bf5e881b2a00d42a7c0baa67119c8cb5dce)

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Change-Id: I7b61d285cbd97cb5f6c79ba70fadb1c3d19a4e15
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130612
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoExtcon: support mutually exclusive relation between cables.
Syed Rafiuddin [Mon, 3 Sep 2012 10:05:12 +0000]
Extcon: support mutually exclusive relation between cables.

There could be cables that t recannot be attaches simulatenously. Extcon
device drivers may express such information via mutually_exclusive in
struct extcon_dev.

For example, for an extcon device with 16 cables (bits 0 to 15 are
available), if mutually_exclusive = { 0x7, 0xC0, 0x81, 0 }, then, the
following attachments are prohibitted.
{0, 1}
{0, 2}
{1, 2}
{6, 7}
{0, 7}
and every attachment set that are superset of one of the above.
For the detail, please refer to linux/include/linux/extcon.h.

The concept is suggested by NeilBrown <neilb@suse.de>

(cherry picked from commit bde68e60b18208978c50c6fb9bdf29826d2887f3)

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>

--
Changes from V5:
- Updated sysfs format
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Change-Id: I5849ba647e63e44525c9113a14a6d29fb51f6d64
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130611
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoExtcon: support multiple states at a device.
Syed Rafiuddin [Mon, 3 Sep 2012 10:00:58 +0000]
Extcon: support multiple states at a device.

One switch device (e.g., MUIC(MAX8997, MAX77686, ...), and some 30-pin
devices) may have multiple cables attached. For example, one
30-pin port may inhabit a USB cable, an HDMI cable, and a mic.
Thus, one switch device requires multiple state bits each representing
a type of cable.

For such purpose, we use the 32bit state variable; thus, up to 32
different type of cables may be defined for a switch device. The list of
possible cables is defined by the array of cable names in the switch_dev
struct given to the class.

(cherry picked from commit 806d9dd71ff52ef09764585baaeec23afbb98560)

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>

--
Changes from V7
- Bugfixed in _call_per_cable() (incorrect nb) (Chanwoo Choi)
- Compiler error in header for !CONFIG_EXTCON (Chanwoo Choi)

Changes from V5
- Sysfs style reformed: subdirectory per cable.
- Updated standard cable names
- Removed unnecessary printf
- Bugfixes after testing

Changes from V4
- Bugfixes after more testing at Exynos4412 boards with userspace
  processses.

Changes from V3
- Bugfixes after more testing at Exynos4412 boards.

Changes from V2
- State can be stored by user
- Documentation updated

Changes from RFC
- Switch is renamed to extcon
- Added kerneldoc comments
- Added APIs to support "standard" cable names
- Added helper APIs to support notifier block registration with cable
  name.
- Regrouped function list in the header file.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Change-Id: Ic77273f660d528f0f53fa38a005e61f4a9ad422f
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130610
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoExtcon: support notification based on the state changes.
Syed Rafiuddin [Mon, 3 Sep 2012 09:56:46 +0000]
Extcon: support notification based on the state changes.

State changes of extcon devices have been notified via kobjet_uevent.
This patch adds notifier interfaces in order to allow device drivers to
get notified easily. Along with notifier interface,
extcon_get_extcon_dev() function is added so that device drivers may
discover a extcon_dev easily.

(cherry picked from commit 74c5d09bd562edc220d6e076b8f1e118819c178f)

Signed-off-by: Donggeun Kim <dg77.kim@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

--
Changes from RFC
- Renamed switch to extcon
- Bugfix: extcon_dev_unregister()
- Bugfix: "edev->dev" is "internal" data.
- Added kerneldoc comments.
- Reworded comments.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Change-Id: I7053f56d7b00871b1e322724b9fd9b537d23afed
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130609
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoExtcon (external connector): import Android's switch class and modify.
Syed Rafiuddin [Mon, 3 Sep 2012 09:49:18 +0000]
Extcon (external connector): import Android's switch class and modify.

External connector class (extcon) is based on and an extension of
Android kernel's switch class located at linux/drivers/switch/.

This patch provides the before-extension switch class moved to the
location where the extcon will be located (linux/drivers/extcon/) and
updates to handle class properly.

The before-extension class, switch class of Android kernel, commits
imported are:

switch: switch class and GPIO drivers. (splitted)
Author: Mike Lockwood <lockwood@android.com>

switch: Use device_create instead of device_create_drvdata.
Author: Arve Hjøå<arve@android.com>

In this patch, upon the commits of Android kernel, we have added:
- Relocated and renamed for extcon.
- Comments, module name, and author information are updated
- Code clean for successing patches
- Bugfix: enabling write access without write functions
- Class/device/sysfs create/remove handling
- Added comments about uevents
- Format changes for extcon_dev_register() to have a parent dev.

(cherry picked from commit de55d8716ac50a356cea736c29bb7db5ac3d0190)

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

--
Changes from v7
- Compiler error fixed when it is compiled as a module.
- Removed out-of-date Kconfig entry

Changes from v6
- Updated comment/strings
- Revised "Android-compatible" mode.
   * Automatically activated if CONFIG_ANDROID && !CONFIG_ANDROID_SWITCH
   * Creates /sys/class/switch/*, which is a copy of /sys/class/extcon/*

Changes from v5
- Split the patch
- Style fixes
- "Android-compatible" mode is enabled by Kconfig option.

Changes from v2
- Updated name_show
- Sysfs entries are handled by class itself.
- Updated the method to add/remove devices for the class
- Comments on uevent send
- Able to become a module
- Compatible with Android platform

Changes from RFC
- Renamed to extcon (external connector) from multistate switch
- Added a seperated directory (drivers/extcon)
- Added kerneldoc comments
- Removed unused variables from extcon_gpio.c
- Added ABI Documentation.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Change-Id: I9f5c121924ee6d1d42e7a38e03ac75eaed2e5687
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130608
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomax17042_battery: Support CHARGE_COUNTER power supply attribute
Syed Rafiuddin [Mon, 3 Sep 2012 07:01:52 +0000]
max17042_battery: Support CHARGE_COUNTER power supply attribute

This patch adds the support for CHARGE_COUNTER power supply attribute
to max17042/47 driver.

Note:QH(Charge Counter) register is not documented in max17042 the Spec.

(cherry picked from commit 5fc55bc8225d5a5c13b978e3e3dbf51e6cd6a333)

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>

Change-Id: I1f899b409143a0e4d699c80f6996ed73fda7d4d2
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130592
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomax17042_battery: Add support for max17047/50 chip
Syed Rafiuddin [Mon, 3 Sep 2012 07:01:18 +0000]
max17042_battery: Add support for max17047/50 chip

max17047 is improved version of max17042 chip. It has few HW bug
fixes with minor changes in register set.

max17050 is same as max17047 chip except its silicon packging. So from
driver's point of view there is no difference btw max1047 and max1050.

This patch adds the support to dynamically detect the chip type and
adds steps to initialize the max17047 chip.

(cherry picked from commit 9a8422d205ea142a27c2573e5ca3d2cc87d75260)

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Change-Id: I752d09db9139ca503cfadec17422a7452704c5d3
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130591
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomax17042_battery: Handle irq request failure case
Syed Rafiuddin [Mon, 3 Sep 2012 07:00:40 +0000]
max17042_battery: Handle irq request failure case

suspend/resume functions take action based upon the fuel gauge
interrupt. If the rquest irq fails we should assign 0 to client->irq.

(cherry picked from commit e5ba50bc3b9311256ae6a6620e7708fb25d1f6e2)

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Change-Id: Id3d6668b958637e4055c9c20d73944e77c4f1959
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130590
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomax17042_battery: Fix power supply and irq registration ordering
Syed Rafiuddin [Mon, 3 Sep 2012 07:00:01 +0000]
max17042_battery: Fix power supply and irq registration ordering

IRQ registration should happen only after power supply object usable.
This patch fixes the ordering of power supply and irq registration
calls.

(cherry picked from commit 243e3527ffbda96434429e618324f80ca0d98902)

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Change-Id: I75cd549bd2a16f3f0d2134f6e733e9745f26c1a7
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130589
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower_supply: Add voltage_ocv property and use it for max17042 driver
Syed Rafiuddin [Mon, 3 Sep 2012 06:58:10 +0000]
power_supply: Add voltage_ocv property and use it for max17042 driver

This adds a new sysfs file called 'voltage_ocv' which gives the
Open Circuit Voltage of the battery.

This property can be used for platform shutdown policies and
can be useful for initial capacity estimations.

Note: This patch is generated against linux-next branch.

(cherry picked from commit a2ebfe2fc6e088a70d06cd15a5bc9bcb621cc195)

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Change-Id: I94f03fb4041b96b8203cc04bac3b49ee869aa0ea
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130588
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomax17042_battery: Move dev_pm_ops struct under CONFIG_PM
Syed Rafiuddin [Mon, 3 Sep 2012 05:51:53 +0000]
max17042_battery: Move dev_pm_ops struct under CONFIG_PM

This is what we do for the rest of the drivers, saves some bytes.

Plus a small style change while at it.

(cherry picked from commit 48e41c70c10f10541d922fc67e7952f06ad59d9a)

Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Change-Id: Ia6818c41c5c9fbae3427755dd71ceb27016bfdb8
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130587
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomax17042_battery: Add suspend/resume hooks
Syed Rafiuddin [Mon, 3 Sep 2012 05:49:38 +0000]
max17042_battery: Add suspend/resume hooks

This patch adds suspend/resume methods to the driver.

In suspend method irq line is disabled to avoid i2c
read/write errors from the interrupt handler as the
i2c bus itself could be in suspend state.
In resume function irq line will be re-enabled.

(cherry picked from commit 48bc177441d68c0ba70631beb544c3d695328d56)

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Change-Id: Id4129ae087e73ab72ecd415772e559573770fe86
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130586
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomax17042_battery: Fix driver exit function
Syed Rafiuddin [Mon, 3 Sep 2012 05:34:03 +0000]
max17042_battery: Fix driver exit function

This patch fixes driver's remove function: it should free the IRQ.

(cherry picked from commit bb28da90f4f973529f81be01547ebde7bf270042)

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Change-Id: Id2092bc97dca8ad323879011aa7eb36a76bf643d
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130585
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomax17042_battery: Fix a couple buffer overflows
Syed Rafiuddin [Mon, 3 Sep 2012 05:01:29 +0000]
max17042_battery: Fix a couple buffer overflows

There are a couple issues here caused by confusion between sizeof()
and ARRAY_SIZE().  "table_size" should be the number of elements, but we
should allocate it with kcalloc() so that we allocate the correct number
of bytes.

In max17042_init_model() we don't allocate enough space so we go past
the end of the array in max17042_read_model_data() and
max17042_model_data_compare().

In max17042_verify_model_lock() we allocate the right amount of space
but we call max17042_read_model_data() with the wrong number of elements
and also in the for loop we go past the end of the array.

(cherry picked from commit 1ef3d8fb4deb77ee020b246d217dd4dfb28d88d5)

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Dirk Brandewie <dirk.brandewie@gmail.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Change-Id: Ice945aea8c63d91d4ca8b4161d83ba817dca3f76
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130584
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarch: arm: tegra: Add support for marvell 8797
Nitin Bindal [Thu, 26 Apr 2012 09:48:59 +0000]
arch: arm: tegra: Add support for marvell 8797

If bootloader specify that marvell wifi chip is
present on the board, then create marvell wifi device,
else create broadcom wifi device.

Bug 954218

Change-Id: I8e12722b2f39174d19159e626e8555bd632002e1
Reviewed-on: http://git-master/r/98490
(cherry picked from commit 3bcfb01a01faf8ecc3d1d1ca19eee98c33d39a25)
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/130124
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoarm: tegra: pluto: enable bluetooth support
Nagarjuna Kristam [Fri, 31 Aug 2012 05:12:19 +0000]
arm: tegra: pluto: enable bluetooth support

Enable pinmux config for BT_EN, BT_RST, BT_EXT and BT_IRQ
Add bluesleep and rfkill platform resources

Bug 1029054

Change-Id: I652f0c771acf5087f34dab7d2498c2cd5808c7a2
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/130081
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agovideo: tegra: host: Use actmon only if defined
Terje Bergstrom [Thu, 6 Sep 2012 05:35:01 +0000]
video: tegra: host: Use actmon only if defined

Call actmon operations only if actmon is defined and initialized for
the SoC.

Change-Id: Ia44f31757f85b54ea7486a5f6af8d8697ca915e1
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/129963
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agopm: EDP: added overage governor
Sivaram Nair [Sat, 8 Sep 2012 14:02:16 +0000]
pm: EDP: added overage governor

This patch adds the overage governor to EDP framework.

Change-Id: I2f587e6df9556206fec2a3f3b64a2e35514a3d20
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/131067
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agopm: EDP: refactoring and bug fixes
Sivaram Nair [Fri, 7 Sep 2012 11:54:04 +0000]
pm: EDP: refactoring and bug fixes

(1) identified some generic governor functions and moved to edp.c.
(2) Changes to allow duplicate E-state entries (as long as they are in
    sorted sorted order and at least one of them is non-zero)

Change-Id: Iff5f07b3291fb0fd90449abf68d5bed77e8d7df1
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/131066
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agopm: EDP: added kernel documentation
Sivaram Nair [Fri, 7 Sep 2012 11:45:19 +0000]
pm: EDP: added kernel documentation

This patch adds documentation about:

(1) dynamic EDP capping in general
(2) EDP framework design
(3) user guide with example for device driver authors
(4) EDP sysfs
(5) EDP policy governors

Change-Id: I63e7ac25d28e025e5faead276a091ceaaa3c64f0
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/131065
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>

6 years agoasoc: codec: convert gpio to irq for max98088
Nikesh Oswal [Mon, 10 Sep 2012 09:32:59 +0000]
asoc: codec: convert gpio to irq for max98088

Bug 1044921

Change-Id: Idd59f0e34241052f0cde2948ec529e7696af2337
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/131052
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoboard enterprise: add HP detect GPIO to MAX98088
Nikesh Oswal [Mon, 10 Sep 2012 09:31:26 +0000]
board enterprise: add HP detect GPIO to MAX98088

Bug 1044921

Change-Id: Ie8c42af53304fc1cac1a8633eddc6eff1d2c9ce8
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/131051
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agommc: sdio: Check if card supports 1.8V signalling
Pavan Kunapuli [Fri, 31 Aug 2012 13:58:13 +0000]
mmc: sdio: Check if card supports 1.8V signalling

When inquiring about the voltage range needed by
the card, check for 1.8V signalling voltage support
if the host supports any of the UHS modes.

Bug 1042131

Change-Id: Ic843bd6710a5b2f1d4d30764978fef2f808271d9
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/131022
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra11: clock: Register clock suspend/resume
Alex Frid [Wed, 5 Sep 2012 03:16:02 +0000]
ARM: tegra11: clock: Register clock suspend/resume

Registered clock suspend/resume as syscore operations.

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

6 years agoARM: tegra11: clock: Modify pllx and cpu burst policy restore
Alex Frid [Tue, 4 Sep 2012 22:42:28 +0000]
ARM: tegra11: clock: Modify pllx and cpu burst policy restore

Removed PLLX and cpu burst policy restoration on Tegra11 from
restore_cpu_complex() routine. These settings are preserved across
cpu complex rail-gating, and should be restored by common clock
suspend/resume code across core rail-gating (LP0 state).

Added PLLX restoration to common clock resume procedure (was missing,
since it was done in restore_cpu_complex()). Fixed cpu burst policy
restoration for LP CPU to make sure PLLX DIV2 bypass is not changing
while PLLX is used as cpu clock source.

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

6 years agoARM: tegra11: clock: Change the order of pll restoration
Alex Frid [Sat, 8 Sep 2012 04:31:30 +0000]
ARM: tegra11: clock: Change the order of pll restoration

Reversed the order of base and miscellaneous registers restoration
for PLLA, PLLD/D2 (base should be restored after miscellaneous
register).

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

6 years agoARM: tegra11: clock: Update clock suspend/resume
Alex Frid [Sat, 1 Sep 2012 05:50:35 +0000]
ARM: tegra11: clock: Update clock suspend/resume

Updated clock suspend/resume procedures:
- added missed module clock sources and clock control registers
  to save/restore pool
- added secondary PLLP dividers suspend/resume
- added PLLC2/C3 suspend/resume
- used Tegra11 PLLC suspend/resume operations (instead of direct base
  register save/restore)
- updated clock enable masks

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

6 years agoARM: tegra11: clock: Add PLLC2/3, PLLC, PLLX resume operations
Alex Frid [Sat, 1 Sep 2012 03:40:02 +0000]
ARM: tegra11: clock: Add PLLC2/3, PLLC, PLLX resume operations

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

6 years agoARM: mutex: use generic atomic_dec-based implementation for ARMv6+
Will Deacon [Mon, 13 Aug 2012 17:38:48 +0000]
ARM: mutex: use generic atomic_dec-based implementation for ARMv6+

Commit a76d7bd96d65 ("ARM: 7467/1: mutex: use generic xchg-based
implementation for ARMv6+") removed the barrier-less, ARM-specific
mutex implementation in favour of the generic xchg-based code.

Since then, a bug was uncovered in the xchg code when running on SMP
platforms, due to interactions between the locking paths and the
MUTEX_SPIN_ON_OWNER code. This was fixed in 0bce9c46bf3b ("mutex: place
lock in contended state after fastpath_lock failure"), however, the
atomic_dec-based mutex algorithm is now marginally more efficient for
ARM (~0.5% improvement in hackbench scores on dual A15).

This patch moves ARMv6+ platforms to the atomic_dec-based mutex code.

Change-Id: I80a3a692d3fea595dbcd14874759800d1b6c0827
Cc: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Reviewed-on: http://git-master/r/130778
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Parker <dparker@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoARM: 7467/1: mutex: use generic xchg-based implementation for ARMv6+
Will Deacon [Fri, 24 Aug 2012 12:36:47 +0000]
ARM: 7467/1: mutex: use generic xchg-based implementation for ARMv6+

The open-coded mutex implementation for ARMv6+ cores suffers from a
severe lack of barriers, so in the uncontended case we don't actually
protect any accesses performed during the critical section.

Furthermore, the code is largely a duplication of the ARMv6+ atomic_dec
code but optimised to remove a branch instruction, as the mutex fastpath
was previously inlined. Now that this is executed out-of-line, we can
reuse the atomic access code for the locking (in fact, we use the xchg
code as this produces shorter critical sections).

This patch uses the generic xchg based implementation for mutexes on
ARMv6+, which introduces barriers to the lock/unlock operations and also
has the benefit of removing a fair amount of inline assembly code.

Change-Id: I25f3fe00937a3a9dff31b2e28c7e56391220275a
Cc: <stable@vger.kernel.org> : 0bce9c46: mutex: Place lock in contended...
Cc: <stable@vger.kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Nicolas Pitre <nico@linaro.org>
Reported-by: Shan Kang <kangshan0910@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Reviewed-on: http://git-master/r/130776
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Parker <dparker@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoarm: tegra: Define DT bindings for Tegra30 EMC tables
Prashant Gaikwad [Thu, 16 Aug 2012 11:44:43 +0000]
arm: tegra: Define DT bindings for Tegra30 EMC tables

Bug 999688

Change-Id: I86041009ff686073dc81857aaf47e4fcee2618ea
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/130698
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomedia: video: tegra: Add IMX132 Camera sensor support.
Sunil Gangele [Wed, 5 Sep 2012 09:06:03 +0000]
media: video: tegra: Add IMX132 Camera sensor support.

Support for IMX132 Camera sensor driver.

Bug 1022599

Change-Id: I6598cb0a2451e94eb54fbcc03bf05f553fcf6834
Signed-off-by: Sunil Gangele <sgangele@nvidia.com>
Reviewed-on: http://git-master/r/130657
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Yuvraj Pasi <ypasi@nvidia.com>

6 years agoarm: tegra: phy: enable wakeup event for usb phy
Rakesh Bodla [Fri, 7 Sep 2012 10:24:55 +0000]
arm: tegra: phy: enable wakeup event for usb phy

If usb device already connected, should disable WKCN
in USB2D_PORTSC1, and enable WKDS in USB2D_PORTSC1,
during utmi phy power off. All the wakeup resource
should be cleared after the event happened.

Bug 1020021
Bug 1028429

Reviewed-on: http://git-master/r/128547
(cherry picked from commit 65ce999d1b22b01f6a2e6b3516be47e83d6d2584)

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

6 years agoARM: tegra: Fix debugfs strings for powergate
Peter De Schrijver [Thu, 30 Aug 2012 13:57:21 +0000]
ARM: tegra: Fix debugfs strings for powergate

Replace powergate_name[] by a call to tegra_powergate_get_name().
This fixes the out of bounds accesses for SoCs other than Tegra20.

bug 1041476

Change-Id: I0e299960404fae33af3ef0423344001e133b8653
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/130597
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: usb_phy: Remove WAR for host connection detect
srinivas [Wed, 29 Aug 2012 17:30:03 +0000]
ARM: tegra: usb_phy: Remove WAR for host connection detect

T30 USB controller sets fake connect event when it is
in HSIC mode without regard to actual device connection.
This issue got fixed in T114 by adding the connect detect
interrupt. Now standard EHCI interrupt can be used for host
connection detect hence SW WAR kept during T30 is removed.

Removed phy_resume & phy_fence_read functions which are
not required for T114.

Bug 969326

Change-Id: I9bec5f3bfb0c0dca8ad9a584b9514e3680026041
Signed-off-by: srinivas thaduvai <sthaduvai@nvidia.com>
Reviewed-on: http://git-master/r/130477
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: usb_phy: Remove WAR for HSIC bus reset
srinivas [Wed, 29 Aug 2012 17:24:45 +0000]
ARM: tegra: usb_phy: Remove WAR for HSIC bus reset

When UHSIC_DISABLE_BUSRESET, UHSIC_FORCE_XCVR_MODE
bits are set, controller forces bus reset using the
WAR sequences in T30. As HSIC bus reset timer issue
is fixed in T114, these settings can be removed.

Bug 1021578

Change-Id: I21e5acc533d1bec5691d7142eb6776e852db9392
Signed-off-by: srinivas thaduvai <sthaduvai@nvidia.com>
Reviewed-on: http://git-master/r/130474
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: Tegra: add support for persistent_ram
Varun Wadekar [Tue, 17 Apr 2012 12:40:49 +0000]
ARM: Tegra: add support for persistent_ram

ram_console driver now depends on persistent_ram to carve the chunk
of memory that it needs. So ask persistent_ram driver to reserve
memory for ram_console instead of doing it in the tegra common
code.

Change-Id: I43854f059f0610f3b5bf54acd1af51e33f9dd330
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/130066
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agostaging: android: persistent_ram: remove atomic operations
Varun Wadekar [Mon, 3 Sep 2012 06:57:28 +0000]
staging: android: persistent_ram: remove atomic operations

The atomic operations (LDREX/STREX) to handle a buffer's start
pointer and size do not seem to work well on ARMv7.

Bug 1035205

Suggested by: Colin Cross <ccross@android.com>

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

6 years agoARM: tegra: dalmore/pluto: Remove unused code
naveenk [Mon, 3 Sep 2012 10:55:03 +0000]
ARM: tegra: dalmore/pluto: Remove unused code

Remove T30 specific code, because Same instances are used
for T30 and T114 on Dakmore/Pluto

Bug 1017708

Change-Id: I73f2e30d7ea0d355ee943c73013a1df9008940cf
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/130035
Reviewed-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: usb_phy: HSIC PMC changes
Abhishek Shukla [Wed, 22 Aug 2012 16:23:42 +0000]
ARM: tegra: usb_phy: HSIC PMC changes

This change updates PMC register macros to
support two HSIC controllers.

Bug 1036606

Change-Id: I9dbae1811857472c9ee6d139ab3fc94db2776f4c
Signed-off-by: Abhishek Shukla <abhisheks@nvidia.com>
Reviewed-on: http://git-master/r/129978
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoMerge remote-tracking branch 'origin/dev/dma-v10' into HEAD
varun colbert [Mon, 10 Sep 2012 19:51:25 +0000]
Merge remote-tracking branch 'origin/dev/dma-v10' into HEAD

6 years agoARM: tegra: dalmore: Remove ldo4 tracking flag
Laxman Dewangan [Fri, 7 Sep 2012 11:37:32 +0000]
ARM: tegra: dalmore: Remove ldo4 tracking flag

VDD_RTC should follow the vdd_core and in Dalmore,
VDD_RTC is supplied by LDO4 and vdd_core is supplied
by SD0.
The device MAX77663 support LDO4 tracking from SD1, not SD0 and
hence it can not be supported in Dalmore.
Removing the flag.

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

6 years agoARM: tegra: pluto: add entry for vdd_sys_bl
Laxman Dewangan [Fri, 7 Sep 2012 11:18:28 +0000]
ARM: tegra: pluto: add entry for vdd_sys_bl

vdd_sys_bl is from battery. So added in the always on
regulator.

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

6 years agoARM: tegra: pluto: add supply for ALS sensor.
Laxman Dewangan [Fri, 7 Sep 2012 10:38:15 +0000]
ARM: tegra: pluto: add supply for ALS sensor.

ALS sensor is mounted on GEN1_I2C address 0x44 (7 bit).
adding vdd supply for this sensor.

Bug 980722

Change-Id: I98f39763f2caf712cf853d13eec0b86b01bc904e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/130659
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoarm: tegra: board: remove board specific vbus initializers
Suresh Mangipudi [Tue, 4 Sep 2012 11:33:24 +0000]
arm: tegra: board: remove board specific vbus initializers

Removed the board dependency for the vbus regulators and the vbus gpio in
tegra platforms. Vbus need not be specified from the board files any more.

Change-Id: I0dbab40f8737138bd469600810a7a17407329149
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/130648
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: config: remove REGULATOR_DUMMY config
Laxman Dewangan [Fri, 7 Sep 2012 06:36:54 +0000]
ARM: tegra: config: remove REGULATOR_DUMMY config

Remove dummy regulator support for Tegra3 android and
Tegra114 defconfig files as the regulator support is
added in the platform.

Change-Id: I7a835414bd907af63ed5954522f5e339ec3cef4a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/130572
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agopm: EDP: adding sysfs entries
Sivaram Nair [Tue, 28 Aug 2012 16:08:29 +0000]
pm: EDP: adding sysfs entries

This patch adds sysfs entries to represent the EDP framework.  The sysfs
is at /sys/power/edp.

Change-Id: If562d7745a99e5324a982f91991d2dfeacacb84e
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/130510
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: dvfs: Add debugfs voltage offset knob
Alex Frid [Thu, 6 Sep 2012 02:01:55 +0000]
ARM: tegra: dvfs: Add debugfs voltage offset knob

Added debugfs voltage offset knob for cpu and core rails.

Change-Id: Ied18aefa6b98ccf44b48be54bae479dc73833247
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/130355
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agovideo: tegra: dsi: Handle video+host syncpt return
Animesh Kishore [Tue, 4 Sep 2012 17:36:33 +0000]
video: tegra: dsi: Handle video+host syncpt return

Fix unused sync point returned after
video+host transfer.

Bug 1003050

Change-Id: I7c42b1d1b4788ce5c4eafe4625aa336bb4bd38d4
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/130145
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoarm: tegra: pluto: Add ACX442AKM-7 JDI panel support
Animesh Kishore [Fri, 7 Sep 2012 06:49:41 +0000]
arm: tegra: pluto: Add ACX442AKM-7 JDI panel support

4.7" 720x1280 JDI panel

Bug 1034528

Change-Id: Ie669887132feea6bf1e0e3f22ea42d5a632838df
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/130123
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: dsi2edp: Add framework for toshiba TC358770 bridge
Animesh Kishore [Tue, 21 Aug 2012 11:46:37 +0000]
video: tegra: dsi2edp: Add framework for toshiba TC358770 bridge

Toshiba dsi to edp bridge.

Bug 1028789

Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Change-Id: I7d8e668c707d2924d5fccdddee09370a37706ad8
Reviewed-on: http://git-master/r/130115
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agosdhci: tegra: use t11x post reset for non 2x and 3x
naveenk [Fri, 31 Aug 2012 00:14:57 +0000]
sdhci: tegra: use t11x post reset for non 2x and 3x

Bug 1017708

Change-Id: Id18496c546cd204e654c1c49b6b7a060f0aef6c0
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/130114
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoarm: tegra: dalmore: Add toshiba TC358770 bridge support
Animesh Kishore [Fri, 7 Sep 2012 10:04:42 +0000]
arm: tegra: dalmore: Add toshiba TC358770 bridge support

toshiba dsi to edp bridge chip.

Bug 1028789

Change-Id: I1427817e8fdbaedac3f9bb8fe5c91a1f62e47e9b
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/130099
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agosdhci: tegra: Disable HS200, Packed Command Support
naveenk [Wed, 5 Sep 2012 09:02:01 +0000]
sdhci: tegra: Disable HS200, Packed Command Support

Disable HS200, Packed Command Support for eMMC 4.5

Bug 1017708

Change-Id: Ia0d18d7cc257915c2fcf689964e5570106c31ceb
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/130022
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoregulator: palmas: Clear PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK bits in palmas_set_mode_smps
Axel Lin [Thu, 7 Jun 2012 09:08:21 +0000]
regulator: palmas: Clear PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK bits in palmas_set_mode_smps

Current code actually clears more bits than PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK bits.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 999f0c7cb8e7c378bd1f3fcd56cf8dc5a30c83e4)

Change-Id: I16be7bc3237bbc3494d9bea87f0969f121722acc
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/130577
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoregulator: palmas: Fix ldo enable and disable
Mallikarjun Kasoju [Fri, 7 Sep 2012 06:55:12 +0000]
regulator: palmas: Fix ldo enable and disable

Bug 1044908

Change-Id: Idff82e2780b48d4ee93c17123a712a7b0d7e416b
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/130570
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: pluto: Don't enable HSIC SMSC on t30
Mallikarjun Kasoju [Fri, 7 Sep 2012 05:30:16 +0000]
arm: tegra: pluto: Don't enable HSIC SMSC on t30

Enable HSIC SMSC hub only on t114

BUG 1045201

Change-Id: I5b14766b07f630989a3f65477eb7e7ee23a9391e
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/130494
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: populate device nodes from device tree
Nitin Kumbhar [Wed, 29 Aug 2012 05:00:43 +0000]
arm: tegra: populate device nodes from device tree

Update init_machine routine for cardhu and enterprise
so that device nodes can be populated from device tree.

Disable nodes which are currently added from board files.

Bug 1036909

Change-Id: Iedf394bf5ea414b1e64cace565931991fec858a4
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/130158
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agobcmdhd: nvidia specific driver updates
Nitin Bindal [Tue, 4 Sep 2012 14:55:21 +0000]
bcmdhd: nvidia specific driver updates

1) Enable CONFIG_BCMDHD_WIFI_CONTROL_FUNC to power-up the chip
2) Disable CONFIG_BCMDHD_CSCAN_ENABLE and CONFIG_BCMDHD_CUSTOM_REGULATORY_DOMAIN (no longer needed)
3) Add support for BCM43241 module
4) Remove firmware path manipulation logic

Bug 982624

Change-Id: Ia6a350028c9671772549afadbe1848b788cc4609
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/130086
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoarch: arm: config: update bcmdhd kconfig variables
Nitin Bindal [Tue, 4 Sep 2012 14:49:37 +0000]
arch: arm: config: update bcmdhd kconfig variables

1)Remove unwanted Kconfig varibles
2)update nvram and firmware path

Bug 982624

Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Change-Id: I898bfe0bd86f6d25c2a78996feff0ec88f753aac
Reviewed-on: http://git-master/r/130085
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agosd8797: updated driver for kernel version >= K3.1
Nitin Bindal [Wed, 8 Aug 2012 12:19:35 +0000]
sd8797: updated driver for kernel version >= K3.1

marvell sd8797 driver update to support kernel >= K3.1

Bug 1043943

Change-Id: I0da2e755d14dbf0e182f4bab9748a70dc1dc8a74
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/130084
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agonet: wireless: bcmdhd: Update to version 1.28.9-5
Dmitry Shmidt [Tue, 28 Aug 2012 01:32:09 +0000]
net: wireless: bcmdhd: Update to version 1.28.9-5

- Add cfg80211 del_station functionality
- Propagate disconnect error code for cfg80211

Change-Id: I0cf772f70323e9604da06d83340ff6cead07b84b
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Reviewed-on: http://git-master/r/130076
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agonet: wireless: bcmdhd: Remove WIPHY_FLAG_SUPPORTS_FW_ROAM flag
Dmitry Shmidt [Wed, 22 Aug 2012 23:09:09 +0000]
net: wireless: bcmdhd: Remove WIPHY_FLAG_SUPPORTS_FW_ROAM flag

If driver advertises FW_ROAM, the supplicant wouldn't send
the BSSID & Freq in the connect command allowing the driver
to choose the AP to connect to. But unless we support ROAM_CACHE
in firware this will delay the ASSOC as the FW need to do a full
scan before attempting to connect.

Change-Id: Iebc88a60243196b9ad27b8302f2b1473710308f6
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit c36a0067fbda423f546b2323c58afb3b89184763)
Reviewed-on: http://git-master/r/130075
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agonet: wireless: bcmdhd: Remove WL_CFG80211_SYNC_GON option
Dmitry Shmidt [Mon, 20 Aug 2012 21:54:10 +0000]
net: wireless: bcmdhd: Remove WL_CFG80211_SYNC_GON option

Change-Id: Iee0f977c6d4d5339e83b713740b7e8700e135008
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit e1480edcc45a60aa781548bbb9f9534c30c12b4c)
Reviewed-on: http://git-master/r/130074
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agonet: wireless: bcmdhd: Update to Version 1.28.9-2
Dmitry Shmidt [Mon, 20 Aug 2012 18:19:20 +0000]
net: wireless: bcmdhd: Update to Version 1.28.9-2

Change-Id: Ifd55ef8645a7cf613bcbd1f5ea3a71fe249a96ac
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Reviewed-on: http://git-master/r/130073
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agonet: wireless: bcmdhd: Remove obsolete files
Dmitry Shmidt [Thu, 16 Aug 2012 19:56:17 +0000]
net: wireless: bcmdhd: Remove obsolete files

Change-Id: I2969ecf8008e04f88757ec7a41285f11b9e2b928
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 783a15162f0b2a11c7cdd3f2f3586feab3148b82)
Reviewed-on: http://git-master/r/130072
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agocfg80211: restructure AP/GO mode API
Johannes Berg [Mon, 13 Feb 2012 14:17:18 +0000]
cfg80211: restructure AP/GO mode API

The AP/GO mode API isn't very clearly defined, it
has "set beacon" and "new beacon" etc.

Modify the API to the following:
 * start AP -- all settings
 * change beacon -- new beacon data
 * stop AP -- stop AP mode operation

This also reflects in the nl80211 API, rename
the commands there correspondingly (but keep
the old names for compatibility.)

Overall, this makes it much clearer what's going
on in the API.

Kalle developed the ath6kl changes, I created
the rest of the patch.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Change-Id: I93e94c16a38dd2662b2cde1269fa94f81327caaa
Reviewed-on: http://git-master/r/130071
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agonet: wireless: bcmdhd: Update to version 1.28-8
Dmitry Shmidt [Thu, 2 Aug 2012 20:22:53 +0000]
net: wireless: bcmdhd: Update to version 1.28-8

Change-Id: Ie264f2b31bd2d4aebf0eef0d2165beb2d73ecb

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: I69c6a3905b675eeac7016bd26f45cc5ec5b21e1c
Reviewed-on: http://git-master/r/130070
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agonet: wireless: bcmdhd: Adjust driver/fw/chip info format
Dmitry Shmidt [Fri, 13 Jul 2012 21:38:32 +0000]
net: wireless: bcmdhd: Adjust driver/fw/chip info format

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit b95d9dd57ed4c88ba5eb266a424687501e7234c9)
Change-Id: Ia890b89b6736a5ec2b38f2753e3284d0322bc24a
Reviewed-on: http://git-master/r/130069
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agonet: wireless: bcmdhd: Use proper jiffie-related functions
Dmitry Shmidt [Fri, 13 Jul 2012 21:30:33 +0000]
net: wireless: bcmdhd: Use proper jiffie-related functions

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 0902d6976ea2516970e1d303ff77f529eb089f3e)
Change-Id: I5d71673a3be36069b6c2907c40e63a8d8ae85a15
Reviewed-on: http://git-master/r/130068
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agonet: wireless: bcmdhd: Decrease chip recognition attempts to 3
Dmitry Shmidt [Fri, 13 Jul 2012 20:31:19 +0000]
net: wireless: bcmdhd: Decrease chip recognition attempts to 3

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit aabc63c27098f31eede28db9e938af5ceef71973)
Change-Id: I0fec4bc566575c371896c786ad8b56355324c0ce
Reviewed-on: http://git-master/r/130067
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoARM: tegra11: clock: Enforce PLLX DIV2 bypass early
Alex Frid [Wed, 5 Sep 2012 04:31:44 +0000]
ARM: tegra11: clock: Enforce PLLX DIV2 bypass early

If booting on G CPU, enforced PLLX DIV2 bypass setting early -
during super clock initialization.

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

6 years agoregulator: Pass voltage level to change notification
Alex Frid [Fri, 31 Aug 2012 19:12:36 +0000]
regulator: Pass voltage level to change notification

Passed voltage level to notification chain for events:
REGULATOR_EVENT_OUT_PRECHANGE and REGULATOR_EVENT_OUT_POSTCHANGE.

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

6 years agoARM: tegra11: dvfs: Update dvfs tables and parameters
Alex Frid [Fri, 31 Aug 2012 06:19:19 +0000]
ARM: tegra11: dvfs: Update dvfs tables and parameters

- increased maximum voltage on CPU rail
- updated host1x and sdmmc tables
- added xusb clocks dvfs tables
- change clk_out maximum limits

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

6 years agoARM: tegra11: clock: Add XUSB device partition clock support
Alex Frid [Tue, 4 Sep 2012 19:25:44 +0000]
ARM: tegra11: clock: Add XUSB device partition clock support

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

6 years agoARM: tegra11: clock: Add XUSB HS clock support
Alex Frid [Fri, 31 Aug 2012 00:14:52 +0000]
ARM: tegra11: clock: Add XUSB HS clock support

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

6 years agoARM: tegra11: clock: Change initial state of no enable peripherals
Alex Frid [Thu, 30 Aug 2012 20:46:40 +0000]
ARM: tegra11: clock: Change initial state of no enable peripherals

Set initial state of peripherals with no h/w enable control same as
initial parent state (instead of unconditional ON state).

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

6 years agoARM: tegra11: dvfs: Add core buses cap sysfs interface
Alex Frid [Thu, 30 Aug 2012 07:13:23 +0000]
ARM: tegra11: dvfs: Add core buses cap sysfs interface

/sys/kernel/tegra_cap/core_cap_level - common cap level for all core
shared buses: emc (memory), sbus (system clock), and cbuses (graphics
clocks). Cap level is specified in millivolts, and maximum rate limits
from the respective dvfs tables are applied to all bus clocks. Note
that cap level affects only bus frequencies. Core voltage is not
necessarily set at the cap level, since CPU and/or fixed peripheral
clocks outside the buses may require higher voltages.

/sys/kernel/tegra_cap/core_cap_state - provides enable/disable control
of cap level throttling effect.

Change-Id: Id56b1b8c1b0e2fb59e71f93f64cecad85506db5f
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/130347
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: Tegra: Dalmore: Enable HDMI in panel file
Graziano Misuraca [Thu, 6 Sep 2012 20:33:54 +0000]
ARM: Tegra: Dalmore: Enable HDMI in panel file

Enable HDMI output on T30 Dalmore boards.

Bug 1043813

Change-Id: If75c6c04177438a2a6777bba275c84d2e9e17d5f
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/130291
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: nvmap: Update with new dma_map_ops
Hiroshi Doyu [Thu, 16 Aug 2012 11:23:03 +0000]
video: tegra: nvmap: Update with new dma_map_ops

Updated to use new dma_map_ops.

New DMA_ATTR_SKIP_CPU_SYNC attr to skip cache_maint instead of custom
usage of DMA_NONE.

Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>

6 years agoarm: tegra: Rename PLATFORM_IOMMUABLE to PLATFORM_ENABLE_IOMMU
Hiroshi Doyu [Tue, 28 Aug 2012 07:19:54 +0000]
arm: tegra: Rename PLATFORM_IOMMUABLE to PLATFORM_ENABLE_IOMMU

Rename PLATFORM_IOMMUABLE to PLATFORM_ENABLE_IOMMU.

Change-Id: Ifd09355cc3f86678dbf0e85f048fde4be1bbec20

6 years agoARM: dma-mapping: Avoid to overwrite a map
Hiroshi Doyu [Wed, 29 Aug 2012 08:38:52 +0000]
ARM: dma-mapping: Avoid to overwrite a map

Avoid to overwrite a map, and warn it.

Change-Id: Ieef971bf8dc7e9719445b7b253daa55f4c109ae2
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>

6 years agoplatform: IOMMU'able platform_device w/ PLATFORM_ENABLE_IOMMU
Hiroshi Doyu [Thu, 22 Mar 2012 14:06:27 +0000]
platform: IOMMU'able platform_device w/ PLATFORM_ENABLE_IOMMU

Introduced a new kernel config option, PLATFORM_ENABLE_IOMMU. With
this, all platform devices can be converted to be IOMMU'able if
platform_bus has non-null dma_iommu_map, where H/Ws always see its IO
virtual address and virt_to_phys() doesn't work from H/W POV.

Change-Id: Iafc4cac73624cfa0bb0f513febd7d91c59954268
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>

6 years agoARM: dma-mapping: Introduce dma_map_linear_attrs() for IOVA linear map
Hiroshi Doyu [Wed, 25 Jul 2012 13:46:28 +0000]
ARM: dma-mapping: Introduce dma_map_linear_attrs() for IOVA linear map

Introduce a helper function, dma_map_linear(_attrs)() to create IOVA
linear map, where IOVA and kernel virtual addresses are mapped at the
same address linearly. This is useful to support legacy device drivers
which expects no IOMMU.

Change-Id: Iedd7cd291b1c2a814ac0270344ceb4f439d47a00
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>