6 years agoARM: tegra12: clock: Suspend and resume for PLLSS
Kaz Fukuoka [Thu, 6 Jun 2013 23:47:25 +0000]
ARM: tegra12: clock: Suspend and resume for PLLSS

- Add suspend and resume for PLLC4, PLLD2, PLLDP

bug 1164664

Change-Id: I7e29367d4d1bbe05b44d196b67e6f1eceb52229d
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/241872
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra12: pm: Update self-refresh code
Prashant Malani [Fri, 5 Apr 2013 01:55:48 +0000]
ARM: tegra12: pm: Update self-refresh code

Update a few configs in the self-refresh code
to support T12x.

Bug 1271462

Change-Id: I42f2d4028338298b42e22c92488f22c1547fe128
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/241910
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra12: clock: Update XUSB plls configuration
Kaz Fukuoka [Thu, 6 Jun 2013 21:54:49 +0000]
ARM: tegra12: clock: Update XUSB plls configuration

- set PLLE spread spectrum coefficients
- added possible PLLE configuration with 12MHz input clock
- increased PLLREFE maximum rate to 672MHz

Ported from http://git-master/r/196805 (change for Tegra11)
bug 1164664

Change-Id: I351424b74e43e4de86584e5cd112f6f951f71508
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/241871
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agousb: xhci: tegra: don't shutdown BIAS PD
Ajay Gupta [Thu, 6 Jun 2013 22:03:01 +0000]
usb: xhci: tegra: don't shutdown BIAS PD

This should be done in common PMC code.

Bug 1268244
Bug 1301052

Change-Id: I9ca4efe6634b3a3397de2304ec5a5e43cbd66069
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/242032
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agousb: xhci: tegra: cleanup regulator init method
Ajay Gupta [Thu, 6 Jun 2013 21:58:33 +0000]
usb: xhci: tegra: cleanup regulator init method

Cleaned up regulator init to print error message if a regulator
is not found. Enable a regulator only if after successful
regulator_get

Change-Id: I538ca553eff65d3e3cffce7ef164e87788ce83e8
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/242031
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agoARM: tegra: ardbeg: add support for xusb
Ajay Gupta [Tue, 4 Jun 2013 23:41:27 +0000]
ARM: tegra: ardbeg: add support for xusb

Bug 1301052

Change-Id: I91a876fce3801de0221dc1abaefbdb82fb9d0b60
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/242030
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agousb: tegra: Use common api for shared access
Ajay Gupta [Tue, 11 Jun 2013 00:37:03 +0000]
usb: tegra: Use common api for shared access

Bug 1286074

Change-Id: Iff4016a470a2b27ec4270262f01508c89f5bda3d
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/242029
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agoARM: tegra: xusb: fix build errors
Ajay Gupta [Tue, 25 Jun 2013 23:26:33 +0000]
ARM: tegra: xusb: fix build errors

Change-Id: I2a4421eeac34f737c8852fa34abe258efa04062a
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/242168
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agousb: xhci: tegra: set SNPS owner only if no hs connected
Ajay Gupta [Tue, 4 Jun 2013 17:11:43 +0000]
usb: xhci: tegra: set SNPS owner only if no hs connected

Commit "usb: xhci: tegra: set SNPS as owner to save power"
cause reset error when SS hub is connected as bus_suspend is
called while HS part of hub is connected.

Fixing by checking if any HS device connected before setting
port owner as SNPS

Bug 1275290

Change-Id: Id02ed5cf514c16c9bbba5f695a3f1a06758d80a9
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/242028
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agoARM: tegra11: clock: Rearrange XUSB clocks for 11x and 12x
Ajay Gupta [Thu, 6 Jun 2013 23:02:44 +0000]
ARM: tegra11: clock: Rearrange XUSB clocks for 11x and 12x

We need different HS clock sources in 11x for HS disconnect
SW WAR. The clock source table is incorrect for 11x and 12x
so fixing same.

Change-Id: I87d13534b5a573b62ee06d5cbf10774ff899d426
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/242026
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agoARM: tegra: ardbeg: add regulator entries for xusb
Ajay Gupta [Thu, 6 Jun 2013 21:56:21 +0000]
ARM: tegra: ardbeg: add regulator entries for xusb

Added below xusb regulators
1) vddio_hsic
2) avddio_usb
3) avdd_usb_pll
4) usb_vbus
5) hvdd_usb

Bug 1301052

Change-Id: Id4602edfbb9bfea53c2587c4177119f95416932b
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/242025
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agoARM: tegra: add xusb as IOMMUable
Ajay Gupta [Thu, 13 Jun 2013 18:01:07 +0000]
ARM: tegra: add xusb as IOMMUable

Bug 1305462

Change-Id: Ia176542d31082c434649220e97c1ed6b5c63b2fd
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/242021
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agoARM: configs: t12x: enable BCM43241 and SD8897
Nagarjuna Kristam [Tue, 18 Jun 2013 04:58:12 +0000]
ARM: configs: t12x: enable BCM43241 and SD8897

Enable BCM43241 and SD8897 Wifi drivers

bug 1306371
Change-Id: Ie97aaadccd18eb5d4ae38650e69c3afee4e4e4ba
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/241902
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agoasoc: tegra: power optimisations for ardbeg/laguna
Nikesh Oswal [Tue, 18 Jun 2013 14:17:12 +0000]
asoc: tegra: power optimisations for ardbeg/laguna

1. Add dynamic enabling/tristating of DAP
2. Turn codec clock off/on in suspend/resume
3. disable/enable headphone detcetion interrupts
in suspend/resume

Bug 1256430

Change-Id: Id37dd4819ed34f65ece06da89ea258fa3cf20536
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/241918
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agoarch: arm: tegra: set audio pinmux for T12x
Nikesh Oswal [Tue, 18 Jun 2013 12:53:00 +0000]
arch: arm: tegra: set audio pinmux for T12x

set audio pinmux for T12x platforms - ardbeg
and laguna. Increase the drive strength of DAP2
required for Codec Master Mode.

Change-Id: I65f523f917a250b502caad82ec51448206769d02
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/241917
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agoasoc: tegra: add regulators and RT5639 on Laguna
Nikesh Oswal [Tue, 18 Jun 2013 11:05:34 +0000]
asoc: tegra: add regulators and RT5639 on Laguna

1. Add support for RT5639 on Laguna
2. Use proper Regulator names in RT5639 and RT5645
   machine driver
3. avdd, dbvdd, micvdd and ldoen are always on
   regulators
4. dmicvdd and spkvdd can be turned on/off on
   need basis

Change-Id: I2dd77b6d91abf3ed41899d213122527398ad0d3a
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/241916
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agoasoc: tegra: add support for rt5639 on ardbeg
Nikesh Oswal [Wed, 12 Jun 2013 14:17:17 +0000]
asoc: tegra: add support for rt5639 on ardbeg

Change-Id: Ice099d066868e986424cffd1c9fa057a9b7dbb9d
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/241915
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agoARM: tegra: Add dummy device to t12 specific fixup table
Nikesh Oswal [Tue, 11 Jun 2013 12:37:01 +0000]
ARM: tegra: Add dummy device to t12 specific fixup table

Change-Id: I9b22ac51fe76355c9e72e1333f4568005fb91f9a
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/241914
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agoasoc: tegra: rt5645: set clk for 24 bit audio
Nikesh Oswal [Mon, 10 Jun 2013 15:48:40 +0000]
asoc: tegra: rt5645: set clk for 24 bit audio

Change-Id: Iffccb194ca75699f305cfe59493c2a3c71e79456
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/241913
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>

6 years agoARM: tegra: dalmore: Add camera power rails
Sudhir Vyas [Tue, 11 Jun 2013 09:19:52 +0000]
ARM: tegra: dalmore: Add camera power rails

Add missing camera power rails definitions for palmas
regulator driver, which is being used for dalmore A05.

Bug 1287827

Change-Id: I8d2de4564e3f4860072bd8d0894f29a11a86f26a
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/237560
(cherry picked from commit 39e1f1b1c4cfa2531afe960c84e1c4c88d7b240a)
Reviewed-on: http://git-master/r/241747
(cherry picked from commit 322f48d4e77c1b803fabce1121ac7929f614868e)
Reviewed-on: http://git-master/r/247622
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agousb: host: tegra: disable pmc before going to LP0
Rakesh Bodla [Thu, 13 Jun 2013 06:17:08 +0000]
usb: host: tegra: disable pmc before going to LP0

Disable pmc before going to LP0 irrespective of
whether it is otg port or not.

Bug 934024

Change-Id: I53aa18f5c3f6492d0fe97d2d7a0b969392bcdb71
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/239342
(cherry picked from commit 833d8333a11abba3ba0ddce658ff1b97a2ff98bc)
Reviewed-on: http://git-master/r/247152
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agousb: otg: tegra: add vbus control in otg driver
Rakesh Bodla [Wed, 12 Jun 2013 06:43:02 +0000]
usb: otg: tegra: add vbus control in otg driver

If USB port has OTG support, allow the OTG driver
to control the vbus.

Bug 934024

Change-Id: Ib129ee2d1f60c18ae17afa146421cab0acca7141
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/239341
(cherry picked from commit d15f126d9568ddbceb808078440c6030574212c3)
Reviewed-on: http://git-master/r/247151
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: add usb_vbus entry for OTG driver
Rakesh Bodla [Wed, 12 Jun 2013 06:25:22 +0000]
ARM: tegra: add usb_vbus entry for OTG driver

If USB port has OTG support, allow the OTG driver
to control the vbus. Adding the usb_vbus entry
for OTG driver.

Bug 934024

Change-Id: I86253d145a6ff966e7a4e50deee695efe8545b88
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/239340
(cherry picked from commit 1e550fe0c2df52668af16b5b1fcff0a83d1f2466)
Reviewed-on: http://git-master/r/247150
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra3: PCIe PLL Reset
Eric Yuen [Sat, 22 Jun 2013 22:00:21 +0000]
arm: tegra3: PCIe PLL Reset

Workaround of PLL Setup.

Bug 1302133
Bug 1313433

Change-Id: I718e8a355cd0e8c86c1930c5fd036cb06e9f6f89
Signed-off-by: Eric Yuen <eyuen@nvidia.com>
Reviewed-on: http://git-master/r/241227
(cherry picked from commit 86b877e7604e28c6c4621048ac9c0f6943dd7221)
Signed-off-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-on: http://git-master/r/245007
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Ashutosh Patel <ashutoshp@nvidia.com>

6 years agofs: proc: meminfo: add nvmap stats to meminfo
Krishna Reddy [Wed, 19 Jun 2013 18:50:24 +0000]
fs: proc: meminfo: add nvmap stats to meminfo

Change-Id: Ida9011d45abbd097dd09d2b42f67df17e05252a2
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/240289
(cherry picked from commit a21680615f6ee5fe36f29601ecd3d16060258aaf)
Reviewed-on: http://git-master/r/247373
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: fix compilation error
Krishna Reddy [Tue, 18 Jun 2013 22:03:11 +0000]
arm: tegra: fix compilation error

Fix compilation error when ARM_DMA_MEM_BUFFERABLE is disabled

Change-Id: I9f12d9ca3428ca24762e54482997024a96534a3f
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/240261
(cherry picked from commit d682b1857c6952e9c38147523429518d432b4e42)
Reviewed-on: http://git-master/r/247372
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: boards: define variables as static type
Laxman Dewangan [Wed, 10 Jul 2013 10:18:21 +0000]
ARM: tegra: boards: define variables as static type

Define the file local variable to static type to avoid export and
multiple declaration on other file.

Also remove initdata keyword from variable data.

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

6 years agomisc: issp: add support for force update
Anshul Jain [Thu, 25 Apr 2013 02:14:33 +0000]
misc: issp: add support for force update

This change adds support for the firmware to be
force updated. This flag can be used to downgrade the
firmware.

Bug 1270341

Change-Id: I2c7eee9029cce38fdb902b211fb2800071579ff9
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
(cherry picked from commit 7e506cd5b9af34b0f86956193d8bd8ad910ac0b0)
(cherry picked from commit 90b6a9378c0b3050ca43f8a75b55d1e266d6c592)
Reviewed-on: http://git-master/r/246781
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: chip-specific power detect cells
Bitan Biswas [Wed, 26 Jun 2013 04:44:29 +0000]
ARM: tegra: chip-specific power detect cells

T14x specific power detect cells only must be used. The
implementation needs all supported power detect cells
specific to chip. If extra entries are declared for a
chip the initialization fails.

bug 1231612
bug 1236429
bug 1231668

Change-Id: Iffe8271c77f1b382972f29f20dc0a4094b270490
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/242233
(cherry picked from commit 11d6341368449513f9ba56ab868cf05ff0002300)
Reviewed-on: http://git-master/r/247140
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: wake table update
Bitan Biswas [Mon, 24 Jun 2013 11:01:32 +0000]
ARM: tegra: wake table update

Wake table for T14x updated to enable tested wake sources

bug 1313181

Change-Id: I0c1679d704c981f9876280166957a863d7f6d960
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/241440
(cherry picked from commit da08d926eaab177bb8a52968096c71f26b5e87e4)
Reviewed-on: http://git-master/r/247136
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: T114 wake source table update
Bitan Biswas [Mon, 20 May 2013 12:17:15 +0000]
ARM: tegra: T114 wake source table update

Disable wake sources that are not known to be tested with T114

bug 1286802

Change-Id: I259b066fbc498378b1fbb4b1577c4bf973cc10b1
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/231926
(cherry picked from commit 8dea4c43dd30049e43ec620a2117db8a85dc3565)
Reviewed-on: http://git-master/r/241041
(cherry picked from commit 21bd9d5356d6805042a02855bc3c552e8cc6a4fc)
Reviewed-on: http://git-master/r/247135
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: allow 1-to-many irq to wake mapping
Bitan Biswas [Sat, 18 May 2013 21:44:41 +0000]
ARM: tegra: allow 1-to-many irq to wake mapping

Problem:
Current Tegra wake table does not allow same USB irq to be used
for multiple wake sources.

Fix:
Changed tegra_irq_to_wake API to return multiple wake table indices

bug 1286802

Change-Id: I72e6d83cb71de76e23ea9623b6fcae34091171bb
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/231921
(cherry picked from commit b96d7c7db56bb49cd4f81190e25cf55b58794ab7)
Reviewed-on: http://git-master/r/241037
(cherry picked from commit 0e715b8054e22764e76c4f746287ba1c7c166501)
Reviewed-on: http://git-master/r/247134
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: dalmore: VBUS/ID any level wake enable
Bitan Biswas [Wed, 15 May 2013 17:27:14 +0000]
ARM: tegra: dalmore: VBUS/ID any level wake enable

bug 1286802

Change-Id: I1386bae17578c3ca532a801a5a9d6ed1b139d57b
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/231919
(cherry picked from commit e08e02857171adc7579c958962a33a97de0ec6e8)
Reviewed-on: http://git-master/r/241036
(cherry picked from commit a514a2ee26f602034149cbcd75fda0c766d539da)
Reviewed-on: http://git-master/r/247112
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: config: enable tegra internal USB cable wake
Bitan Biswas [Fri, 28 Jun 2013 13:37:53 +0000]
ARM: tegra: config: enable tegra internal USB cable wake

Enable internal wake mechanism for USB cable wake on T11x
This further needs board specific platform data to work.

bug 1314875

Change-Id: I0596a53816a4c3e4968ae0c663e40ba814641163
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/243452
(cherry picked from commit 438ffd65e062baa6a84480a3fba9a97211a76154)
Reviewed-on: http://git-master/r/247110
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: USB1 VBUS and ID ANY wake level support
Bitan Biswas [Tue, 14 May 2013 15:12:49 +0000]
ARM: tegra: USB1 VBUS and ID ANY wake level support

This change enables wakeup from USB cable connect and disconnect
for both device(VBUS) and host(ID) cables.
 - board platform data used to enable the implementation
 - chip specific wakeups source file added with new API needed
   to detect VBUS and ID cable connect state
 - chip specific API exposed to return the USB1_VBUS and USB1_ID
   wake indices

Moved dummy implementation of USB wake support APIs from chip-specific
source into common file

bug 1286802
bug 1314875

Change-Id: I59cfca82a907d33190a5bc92f33de5986fada43f
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/231918
(cherry picked from commit 75e8f1f218422013055c4fbcf96ceab059c933a7)
Reviewed-on: http://git-master/r/241033
(cherry picked from commit 3f65b627372c37b4726084bec1129b9b2dabfe4f)

Change-Id: Iae4db0cec2dbee6feef229b308b2b86340affd17
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/242383
(cherry picked from commit ba1bb5314fc5d877ab3bcd4e4530501e4f604dd4)
Reviewed-on: http://git-master/r/243438
(cherry picked from commit 7beaa748094e754c0bf7bd5f946c9a314949d2b9)
Reviewed-on: http://git-master/r/247106
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomisc: nct: error handling for no regulator
Bitan Biswas [Fri, 24 May 2013 14:49:03 +0000]
misc: nct: error handling for no regulator

bug 1291015

Change-Id: I7abfa27fddf42e7f6f105d35c055eb31d4874a59
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/232623
(cherry picked from commit e960eaf4a5c9c13054f474bae247a88185626d56)
Reviewed-on: http://git-master/r/239782
(cherry picked from commit ce0df13f7caeb79ff32dd27dd32bda4e17d162f0)
Reviewed-on: http://git-master/r/247088
Reviewed-by: Automatic_Commit_Validation_User

6 years agonet: wireless: bcmdhd: Set dpc rt thread priority to max
Mohan T [Thu, 11 Jul 2013 08:43:56 +0000]
net: wireless: bcmdhd: Set dpc rt thread priority to max

Dhd dpc rt thread is getting starved on CPU load scenarios.
NIC driver has to get the data in real time, So we need to
set dpc rt thread priority to max. RT thread with SCHED_FIFO
schedule policy priorities are in ascending order
(i.e. 1 is lowest priority, 99 is highest).

So setting the dhd_dpc_thread priority to 99 to avoid starvation.
- Set  CUSTOM_DPC_PRIO_SETTING to 99

Bug 1286848

Change-Id: I5271dac66b3221933ed1df4a7c288bdcf00c900a
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/243347
Reviewed-on: http://git-master/r/245520
(cherry picked from commit 876b864c4a0e6e75ca31b191ff5fe7c043b0d16c)
Reviewed-on: http://git-master/r/247056
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: roth: set pinmux for LED feature
Jun Yan [Wed, 3 Apr 2013 08:26:31 +0000]
ARM: tegra: roth: set pinmux for LED feature

Bug 1198937

Conflicts:
arch/arm/mach-tegra/board-roth-pinmux-t11x.h

Change-Id: I9db35062ada44edb7804eb71bd6349bf5bc989dd
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/216036
(cherry picked from commit 71155af296d98fdff15377dda58389d62ad0f574)
Reviewed-on: http://git-master/r/246677
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agousb: gadget: tegra:fix non-standard charger detection
Rakesh Bodla [Mon, 17 Jun 2013 11:24:43 +0000]
usb: gadget: tegra:fix non-standard charger detection

Fixing the non standard charger type detection. Also,
fix commit messages and free pm_qos request during
driver unregistration.

Bug 1281401

Change-Id: I39da0847c10c1109fa95afe16866951848b694ab
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/239297
(cherry picked from commit 2cebf65e6c30959ab7d144dd21b1e4b65b0e4065)
Reviewed-on: http://git-master/r/247155
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: thermal sensor regulator
Bitan Biswas [Fri, 24 May 2013 15:14:02 +0000]
ARM: tegra: thermal sensor regulator

Regulator entry for thermal sensor added for macallan board

 bug 1291015

Change-Id: Ia21317a8302fa9829377debf8d0d53ed85bdb15e
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/232628
(cherry picked from commit abffe1e62c40cc8b4cc1e599fc4290f1b769126d)
Reviewed-on: http://git-master/r/239784
(cherry picked from commit c30c01a56ebb32ebf4c2d5e0c572fd6511e5d71e)
Reviewed-on: http://git-master/r/247092
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: nvmap: add API to get iovmm used pages
Krishna Reddy [Wed, 19 Jun 2013 18:42:13 +0000]
video: tegra: nvmap: add API to get iovmm used pages

Change-Id: Idc33050777122f1bfe1bbbe53fee305a7f1c3c54
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/240288
(cherry picked from commit 458538daac9b1f36764956f92d64769bd4d3abe2)
Reviewed-on: http://git-master/r/246829
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: nvmap: Add free pages API for page pools
Alex Waterman [Mon, 1 Apr 2013 20:24:59 +0000]
ARM: tegra: nvmap: Add free pages API for page pools

This patch exposes the page pool available pages API to the rest of
the kernel. Also, the API has been modified to not crash if the API
is called before nvmap is initilized.

Change-Id: I2352d0ad7132e3be4b658a4704515e27f40e2941
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/240265
(cherry picked from commit ec83916d75f8c7e082589493c048ee884405b208)
Reviewed-on: http://git-master/r/246828
Reviewed-by: Automatic_Commit_Validation_User

6 years agothermal: Fix merge error in Kconfig
Bo Yan [Sat, 29 Jun 2013 18:57:56 +0000]
thermal: Fix merge error in Kconfig

Remove redundant entries
Re-generate tegra defconfigs, so THERMAL_DEFAULT_GOV_PID is not
enabled.

Change-Id: I90d4e9f4aa8a5690250dc5231ad1e98355f9bb82
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/243691
(cherry picked from commit 292191bfb89f285eb8e0d24ba59d08fcb540a0ae)
Reviewed-on: http://git-master/r/246174
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra11_android_defconfig: select CONFIG_FIRMWARE_IN_KERNEL
Richard Zhao [Wed, 10 Jul 2013 10:53:57 +0000]
ARM: tegra11_android_defconfig: select CONFIG_FIRMWARE_IN_KERNEL

issp driver need it to loader buitin fw.

Change-Id: I10da845dda510dd3d27b859ce7875e9bf2e25f22
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/246964
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: ahb: clean up ahb_gizmo configuration
Jay Cheng [Thu, 30 May 2013 21:48:06 +0000]
arm: tegra: ahb: clean up ahb_gizmo configuration

1. remove tegra_init_ahb_gizmo_settings function from ahb.c which is duplicate
in common.c
2. correct AHB_MEM_PREFETCH_CFG5 offset
3. save/resotre new registers in t11x chip

bug 1292790

Change-Id: I1a339ccc10244ce7ccccc5b67bf137cb4c18046d
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/234293
(cherry picked from commit 1080c3828cbc87f61d420b9967146354943d4be9)
Reviewed-on: http://git-master/r/245314
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: fan: defer fan resume for 3 secs
Jean Huang [Wed, 24 Apr 2013 18:00:22 +0000]
arm: tegra: fan: defer fan resume for 3 secs

Bug 1267612

Change-Id: Ibaaa09491776e45b85f8850b3c2c1faa4ca3375a
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/222626
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit 392404832b33e9b1b59b9cf51640606f857ba731)
Reviewed-on: http://git-master/r/246424
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoarm: tegra: roth: Change trip points for Fan
Anshul Jain [Sat, 30 Mar 2013 01:36:46 +0000]
arm: tegra: roth: Change trip points for Fan

Bug 1259204

Change-Id: Ie7f1b44e531a05c897e03a3f1f1992109e7cc0cb
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/214766
(cherry picked from commit d402522ba7bcfca8b85ca23f60272ff2baf8ffe2)
Reviewed-on: http://git-master/r/246423
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: Tegra: Rearrange Boards and add P2560
Matt Wagner [Wed, 13 Mar 2013 22:46:54 +0000]
ARM: Tegra: Rearrange Boards and add P2560

Bug 1247326

Change-Id: Ia3efba1eb23bcff6ed999824ed0494a3e854dc96
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/209002
(cherry picked from commit 6958217d348154936607f6a0b0db1f07e49ddccc)
Reviewed-on: http://git-master/r/246422
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoarm: tegra: roth: update fan/thermal trip points
Jean Huang [Mon, 8 Apr 2013 23:36:57 +0000]
arm: tegra: roth: update fan/thermal trip points

Bug 1259204

Change-Id: I96302b8ce8ba29fe78dfd4c95ed8a2d1a8d7f8a2
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/217550
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
(cherry picked from commit e8f642db849b6685b0614e3478f9c44878d39595)
Reviewed-on: http://git-master/r/246421
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoarm: tegra: roth: Add init vector of lookup table
Anshul Jain [Wed, 27 Mar 2013 04:00:08 +0000]
arm: tegra: roth: Add init vector of lookup table

This table is used for getting the state cap index.

Bug 1259204
Bug 1259488
Bug 1261177

Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Change-Id: I8b8d5f23d418152b7cce4975107601750e17c632
Reviewed-on: http://git-master/r/213403
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
(cherry picked from commit b716412f6b016c07d731d7754854643b09ac0f9b)
Reviewed-on: http://git-master/r/246420
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoarm: tegra: roth: Change thermal trip points
Anshul Jain [Mon, 25 Mar 2013 00:11:44 +0000]
arm: tegra: roth: Change thermal trip points

For the redesigned roth

Active Fan
State 1 at 72C with 10C hysteresis at 107 PWM
State 2 at 83 with 6C hysteresis at 150 PWM

Passive
SW balanced throttle at 86C
SW heavy thrtottle at 89C (unchanged)

HW shutdown at 91C (unchanged)

Bug 1259204

Change-Id: I3fc00085379aad4f5360184097b80eb7775c06f4
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/212432
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
(cherry picked from commit 78b917373bf7bac25fceadfe1bc1b7e87953d5d4)
Reviewed-on: http://git-master/r/246419
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: roth fix a wrong GPIO used for fan tach
Shaoming Feng [Sat, 23 Mar 2013 08:19:04 +0000]
arm: tegra: roth fix a wrong GPIO used for fan tach

Bug 1247379

Change-Id: I9c3c444b5c0f2551dfa995d43c3eded8aeef8c68
Signed-off-by: Shaoming Feng <shaomingf@nvidia.com>
Reviewed-on: http://git-master/r/212328
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
(cherry picked from commit dbe21f5bbd55c53ebdd6b865f79edd0c5e14dcf8)
Reviewed-on: http://git-master/r/246418
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoarm: tegra: roth: add tach in p2560 and init GPIO
Shaoming Feng [Tue, 19 Mar 2013 21:16:04 +0000]
arm: tegra: roth: add tach in p2560 and init GPIO

PWM fan on P2560 uses GPIO_PU2. On reworked P2454 it uses
GPIO_PX4, which GPIO is not used for other purpose.

Bug 1247379

Change-Id: Iba12f8c6fb9cb8fc5d23f58abb49a2d0f3ceb4d0
Signed-off-by: Shaoming Feng <shaomingf@nvidia.com>
Reviewed-on: http://git-master/r/210913
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
(cherry picked from commit b1613fd4f85eccbd6c45a1dc89ab96a7b7bd7f1b)
Reviewed-on: http://git-master/r/246417
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: fan: clear next fan state before suspend
Jean Huang [Tue, 23 Apr 2013 19:28:59 +0000]
arm: tegra: fan: clear next fan state before suspend

Original design was to restore fan to the state before suspend,
but fan-thermal detection should work itself to decide fan state after resume.

Bug 1273984

Change-Id: Ieac7688ed2ccf3dca3427c61e3d51a209cda79a3
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/222157
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
(cherry picked from commit 50c891261a2b80d808b0f271f0f8005d3338035c)
Reviewed-on: http://git-master/r/246416
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agothermal: pwm_fan: Add support for look up table
Anshul Jain [Wed, 27 Mar 2013 03:55:10 +0000]
thermal: pwm_fan: Add support for look up table

This change adds a lookup table. This lookup table
is used for looking up the pwm state cap based on the
value echoed in state_cap sysfs node.

Bug 1261177
Bug 1259488
Bug 1259204

Change-Id: Ie549d0a89e412655cd91d1f6321cd095af07071c
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/213402
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
(cherry picked from commit fca2d8b4e4a5d6b8327a58ae9174cd9726d295da)
Reviewed-on: http://git-master/r/246415
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agothermal: pwm_fan: Add sysfs node for state cap
Anshul Jain [Mon, 25 Mar 2013 00:06:54 +0000]
thermal: pwm_fan: Add sysfs node for state cap

This change introduces new sysfs API state_cap.
State_cap should be used for capping the maximum pwm of
fan from application layer.

State_cap provides a layer of abstraction to app profile
framework. Board level differences can now be taken care
of by the driver.

Bug 1259204

Change-Id: I5aaeba55c2420fc3e518145e93807f47515e9638
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/212431
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit 7b3ab860dd9d16d5256d9d1d73b21c88f97d0c3e)
Reviewed-on: http://git-master/r/246414
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoarm: tegra: roth: modify error check for tach driver
Shaoming Feng [Sat, 23 Mar 2013 02:05:44 +0000]
arm: tegra: roth: modify error check for tach driver

Bug 1247379

Change-Id: I32532989b0c062d7d8d5e35efa612fcc152e86b9
Signed-off-by: Shaoming Feng <shaomingf@nvidia.com>
Reviewed-on: http://git-master/r/212313
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
(cherry picked from commit bb340fbbbdbd1e0e697f1712bc6cd0983266a262)
Reviewed-on: http://git-master/r/246413
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agothermal: pwm-fan: add tach support
Shaoming Feng [Tue, 19 Mar 2013 21:53:26 +0000]
thermal: pwm-fan: add tach support

Interrupt "pwm-fan-tach" will be added. Can be enabled/disabled
through /d/tegra_fan/tach_enabled

Bug 1247379

Change-Id: If2cd62d2b31005e494612697853f82b2d0f23569
Signed-off-by: Shaoming Feng <shaomingf@nvidia.com>
Reviewed-on: http://git-master/r/210914
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
(cherry picked from commit 1ed569da43be012d0f5923a58e64260626b5ee8e)
Reviewed-on: http://git-master/r/246412
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agopwm: select HAVE_PWM for PWM_TEGRA
Jun Yan [Tue, 9 Jul 2013 00:20:56 +0000]
pwm: select HAVE_PWM for PWM_TEGRA

3.8 kernel uses new framework of PWM driver.
PWM related code has been moved from arch/ to driver/.
HAVE_PWM attribute is not set in this version of kernel, but
it is needed by LED PWM driver. Hence make it selected here.

Bug 1198937

Change-Id: I8fa00d8391da240d4a29c58e2f7406b641d968fc
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/246381
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: roth: LED driver platform structure
Jun Yan [Wed, 3 Apr 2013 08:37:04 +0000]
ARM: tegra: roth: LED driver platform structure

Moved LED related code from board-roth.c to a new file
board-roth-leds.c

Initialize LED by registering platform data and setting
the GPIO of tri-state buffer

Bug 1198937

Change-Id: I352f79ba2da70b4536b4a6683d0010df44deda8f
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/216037
(cherry picked from commit 0e420c1b18c6ade278ef493408366d1445b60b5c)
Reviewed-on: http://git-master/r/246355
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agommc: tegra: Don't skip tuning for 2nd core voltage
Naveen Kumar Arepalli [Thu, 27 Jun 2013 06:33:46 +0000]
mmc: tegra: Don't skip tuning for 2nd core voltage

Even if nominal_vcore_tun_done, override_vcore_tun_done are set
don't skip tuning for 2nd core voltage.

Bug 1303886
Bug 1320195

Reviewed-on: http://git-master/r/242764
(cherry picked from commit 57b7008d0ad3cfdea888416e8b1db3ebb0c7cda7)
Change-Id: I8d60b950d29c897bd1c7c7775ccab40d6188f832
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/246076
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agommc: tegra: No vcore overrides after low freq tuning
Pavan Kunapuli [Mon, 10 Jun 2013 11:35:07 +0000]
mmc: tegra: No vcore overrides after low freq tuning

SDMMC at low frequency doesn't have any constraints on core voltage.
Do not set core voltage overrides at the end of low freq tuning.

Bug 1303348
Bug 1320195

Reviewed-on: http://git-master/r/237193
(cherry picked from commit 29089764306aa5e2f465920029e94055fe8d2e3e)
Change-Id: I70acc0624feb7a466069720e4023bb64ac83f37e
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/246075
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoRevert "HACK Revert "mmc: tegra: Fix tuning for multiple freqs""
Dan Willemsen [Sun, 25 Aug 2013 07:19:24 +0000]
Revert "HACK Revert "mmc: tegra: Fix tuning for multiple freqs""

This reverts commit 2eb3ee111261ae4cd4fc37bfa9aaaa4ced3721f8.

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoRevert "HACK Revert "mmc: tegra: Set override voltages with dvfs APIs""
Dan Willemsen [Sun, 25 Aug 2013 07:19:10 +0000]
Revert "HACK Revert "mmc: tegra: Set override voltages with dvfs APIs""

This reverts commit 75e7891fb7c5c02ac44632675fd13a1700cb189e.

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoRevert "HACK Revert "ARM: tegra: sdhci: Pass min,max vcore overrides""
Dan Willemsen [Sun, 25 Aug 2013 07:17:47 +0000]
Revert "HACK Revert "ARM: tegra: sdhci: Pass min,max vcore overrides""

This reverts commit 7a0989d073468a1236d8a538c8a0d664ecacc1cd.

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agommc: core: Make update_devfreq call conditional
R Raj Kumar [Wed, 12 Jun 2013 13:50:26 +0000]
mmc: core: Make update_devfreq call conditional

update_devfreq should be called after the device registered
with devfreq.
Use devm_kzalloc instead of kzalloc for dynamic memory allocation.
devfreq_init for mmc device should be called if it is enumerated
in HS200 mode only and no need to call devfreq_init in resume cycle.

Bug 1294659

Reviewed-on: http://git-master/r/238040
(cherry picked from commit b262e4a54112b52e110981cba9e4effd10387824)
Change-Id: Id45d1ff8a66ee5ca65168775fc286ae4ddf7fd3e
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/246073
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoARM: tegra3/tegra11: config: Enable UVC driver
Amit Pandya [Tue, 9 Jul 2013 08:12:53 +0000]
ARM: tegra3/tegra11: config: Enable UVC driver

Add kernel config flags in tegra3_defconfig &
tegra11_defconfig to enable UVC driver support.

This is to enable USB Camera capture support
with L4T on Cardhu & Dalmore boards.

Bug 1319362

Change-Id: Id9a50d176babdfea2d50575603fd10504c51d7d3
Signed-off-by: Amit Pandya <apandya@nvidia.com>
Reviewed-on: http://git-master/r/246562
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agofirmware: p2454-uc: update to P2560_v0_37_7202_LED_LowPWMjittefix_wakeupinactive.hex
Richard Zhao [Thu, 18 Apr 2013 01:21:32 +0000]
firmware: p2454-uc: update to P2560_v0_37_7202_LED_LowPWMjittefix_wakeupinactive.hex

- Bump revsion to v0_37
- LED Breathing Jitter at LOW PWM% in Active state( Tegra in Idle with
  Screen OFF, Sends LED_UC_DRIVE command to uC)
- Wakeup Pulse is now being sent (ISSP_DAT) to GMI_IORDY (WAKE23) when
  uC is in active state with Tegra in idle screen OFF.
    Joystick sensitivity may need to tuned some more. Kept the sensitivity
    LOW (100) for now because of the Polyshine Joysticks.
- LED Breathing Cycle timing tweaks.
     Still needs further timing tuning.  Vic says we are still a little
     unsmooth. We are 85% to 90% perfect.
- NAK 1 second code is still activiated.

Bug 1266521

Change-Id: I9b2629a2dfc1e12276e753bf6a17da3ebd9298dd
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/220434
(cherry picked from commit a2f806b7db360e84e5a0f87252a89a33b358da77)
Reviewed-on: http://git-master/r/244257
Reviewed-by: Tao Xie <txie@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agofirmware: p2454-uc: update to P2560_v0_35_7203_led_hold_on_after_wakeup.hex
Richard Zhao [Tue, 9 Apr 2013 03:39:04 +0000]
firmware: p2454-uc: update to P2560_v0_35_7203_led_hold_on_after_wakeup.hex

Customer wanted to have the LED go on after key press or Joystick motion.
Needed to drive LED high for ~700ms( added lots of Margin) after wake up
pulse because Tegra needed time (xxx ms) to drive LED after LP0.
This prevents the LED from going OFF then ON flicker. Provided you hit
a key when the LED is on.

Bug 1266521

Change-Id: Id463fa9576744fb4e581497bfc289814b71e4adf
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/217610
(cherry picked from commit 807f8c809c7b7c0fccd496f60049e2fe16a53e57)
Reviewed-on: http://git-master/r/244256
Reviewed-by: Tao Xie <txie@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomisc: issp: set dat/clk as input and don't free them
Richard Zhao [Mon, 15 Apr 2013 06:25:40 +0000]
misc: issp: set dat/clk as input and don't free them

On tegra, when gpio_free, it switches pin to sf mode. It may have
output noise. So we don't free them and set to input to avoid side
effect.

Bug 1269993

Change-Id: I3164a2cca500959a797c614a324b1519970b4527
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/219293
(cherry picked from commit 24a626c426556b0f088b288d60d6a3fb9ba3a573)
Reviewed-on: http://git-master/r/244255
Reviewed-by: Tao Xie <txie@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: roth: add issp device
Richard Zhao [Thu, 14 Mar 2013 23:40:58 +0000]
ARM: tegra: roth: add issp device

issp is used to program roth on-board joystick micro controller.
This driver adds:
- issp platform device
- firmware for micro controller P2560_v0_34_not_readprotect_0280.hex
- add issp to tegra11_android_defconfig

Bug 1245803

Change-Id: Idaddbbe8e853744da7f09bb846f47374ebe841b9
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/209785
(cherry picked from commit cb617fec6c3e7a3d99dae7c72c8ddae5bbf64340)
Reviewed-on: http://git-master/r/244254
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomisc: issp: add issp driver support
Richard Zhao [Thu, 14 Mar 2013 23:36:47 +0000]
misc: issp: add issp driver support

Cypress in-system serial programming (ISSP) interface is used
to program Cypress micro controllers. This driver uses gpios
to simulate issp protocol.

Notes:
- Please make sure firmware is builtin before add device, because
  the driver will hang on waiting for the firmware.
- If issp shares pins with other driver, please make sure the other
  driver initialize after issp driver.
- It's better use firmware that disable version block read protect,
  because the driver force firmware upgrade if the block's protected.

Bug 1245803

Change-Id: I0fcc3c764ff8eea90cb71e76f43a57d8d2696d12
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/209784
(cherry picked from commit b8ce6f703a8cae74ba2e63dcfc197a5e317d3a03)
Reviewed-on: http://git-master/r/244253
Reviewed-by: Tao Xie <txie@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: iovmm: use dma_map_pages_at_attrs()
Konsta Holtta [Mon, 8 Jul 2013 12:02:29 +0000]
ARM: tegra: iovmm: use dma_map_pages_at_attrs()

Remove platform-independent dma_map_ops->map_pages() call away from
tegra_iovmm_vm_insert_pages() as common dma_map_pages_at_attrs() was
introduced.

Bug 1254010
Bug 1226176
Bug 999937

Change-Id: I4c2e30695128d3e604ecbea787cab3a7d91dee2f
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/246111
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

6 years agodma-mapping: common inline for ops->map_pages()
Konsta Holtta [Mon, 8 Jul 2013 11:58:12 +0000]
dma-mapping: common inline for ops->map_pages()

Add common dma_map_pages_at_attrs() for calling
dma_map_ops->map_pages().

Bug 1254010
Bug 1226176
Bug 999937

Change-Id: Ie55fb1b2092fcd66f406b5a2e9a3150b417e996b
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/246110
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agodma-mapping: debug call in dma_map_single_at_attrs()
Konsta Holtta [Mon, 8 Jul 2013 11:44:24 +0000]
dma-mapping: debug call in dma_map_single_at_attrs()

Add forgotten dma debug marker call to keep track of memory mappings.

Bug 1307463

Change-Id: I7bcd2ae31419ca0862226834dd0c0d75f19db7b6
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/246104
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

6 years agodma-debug: do work only after initialized
Konsta Holtta [Thu, 13 Jun 2013 07:40:38 +0000]
dma-debug: do work only after initialized

DMA actions can happen before the dma-debug api has been initialized,
and because it's not initialized, there is no memory for the entries and
the system disables itself before even having added the debugfs nodes
that could be used for enabling it again. Use another flag for testing
if the debugging utility has been initialized.

Bug 1303110
Bug 1173494

Change-Id: I27c972ede0a1b64caee62c6552f3ea15e21030c3
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/245338
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

6 years agovideo: tegra: remove MCLK control from vi
David Schalig [Wed, 5 Jun 2013 09:23:43 +0000]
video: tegra: remove MCLK control from vi

Remove sensor MCLK control from tegra_camera (vi) driver.
Clock control has been moved into sensor drivers,
to enable full control over clock rate and enable
timing per sensor spec.

It also obsoletes all MCLK related logic from userspace.

Bug 1298672

Change-Id: I62e5c0297318f21ba81b3fdb3d23be1e255d854c
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/237896
(cherry picked from commit 613416309c7b1b8292310cbd6e0741a873bb704e)
Reviewed-on: http://git-master/r/245259
Reviewed-by: Pablo Ceballos <pceballos@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarch: arm: tegra: Fix aic326x register issue
Manoj Gangwal [Wed, 19 Jun 2013 10:29:10 +0000]
arch: arm: tegra: Fix aic326x register issue

1) Fix aic326x register issue on pluto
2) Fix aic326x machine driver to register on K3.8

Bug 1306842
Bug 1308447

Change-Id: I8ef02189adffc2c0238aabc063c6f6c6fce87f50
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/243324
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoasoc: tegra: Add reset for SPDIF controller
Rahul Mittal [Tue, 11 Jun 2013 07:27:33 +0000]
asoc: tegra: Add reset for SPDIF controller

Add soft reset for SPDIF

Since SPDIF soft reset does not work for T11x,
added WAR proposed by HW to reset spdif controller

Bug 966770

Change-Id: Ifd871c585aae3c25f8dc9416e596c7a176e1ea3e
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/236300
(cherry picked from commit 5d8965a71e26f74077de18daec67f8d38462db8e)
Reviewed-on: http://git-master/r/245047
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agocpufreq: Fix tracing
Antti P Miettinen [Tue, 11 Jun 2013 06:28:18 +0000]
cpufreq: Fix tracing

Trace scaling end also for the case when frequency does not change.

Change-Id: Ifd3cd974d5a2f498174f3b716769cf0173bd32da
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/242367
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoaudio: Add License info for tfa9887 driver.
Vinod Subbarayalu [Wed, 12 Jun 2013 01:01:00 +0000]
audio: Add License info for tfa9887 driver.

Bug: 1294260

Change-Id: I5f4e9cf1c032f1aa05f5a75fd717c8a89caa5d19
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
(cherry picked from commit 03c636f0e612b052f5aa91cfcb8f78c7c7c78e1b)
Reviewed-on: http://git-master/r/243097
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoARM: tegra: ahb: enable WR_WAIT_COMMIT_ON_1K bit
Ashwini Ghuge [Thu, 27 Jun 2013 08:57:17 +0000]
ARM: tegra: ahb: enable WR_WAIT_COMMIT_ON_1K bit

Enable WR_WAIT_COMMIT_ON_1K bit in AHB_GIZMO_AHB_MEM
for T114 A02 chip on Dalmore

Bug 1312566

Change-Id: If81e7cbd47b070219b772a46a3e8347cad3ece6a
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/242827
(cherry picked from commit c22ce4d9127b240c0185bef9440d47f63f90cf4f)
Reviewed-on: http://git-master/r/244375
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: dalmore: register TPS51632 from DTS
Laxman Dewangan [Thu, 27 Jun 2013 14:18:51 +0000]
ARM: tegra: dalmore: register TPS51632 from DTS

Register TPS51632 regulator driver which is used for cpu rail
from DTS file.

Remove the registration from board file.

bug 1242882

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

6 years agoregulator: tps51632: add dt parsing for ramp delay
Laxman Dewangan [Thu, 27 Jun 2013 13:16:15 +0000]
regulator: tps51632: add dt parsing for ramp delay

Ramp delay is parsed from rail constraint, using this for
configuring the device.

bug 1242882

Change-Id: Ibd25994d7611f75cfe4350b70772f313dd3aedef
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/242939
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agomfd: palmas: register module specific mfd cells
Laxman Dewangan [Wed, 26 Jun 2013 14:39:33 +0000]
mfd: palmas: register module specific mfd cells

In palce of registering all the mfd cells of palmas for all
palma devices like TPS65913, TPS80036, register only those
mfd cells which are available on that device.

This will avoid the false subdevice registration and unwanted
warning due to interrupt not found.

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

6 years agoplatform: tegra: USB platform support
Suresh Mangipudi [Wed, 20 Feb 2013 09:31:17 +0000]
platform: tegra: USB platform support

1. Move the dependence of USB phy on PMC and pad_ctrl.
2. Remove the code related to ULPI (Link/Null) and ICUSB.

Change-Id: I0c61acddc27600903ee9c7795f5a4ba618ebe9b8
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agousb: phy: pull missing changes
Krishna Yarlagadda [Mon, 17 Jun 2013 06:57:23 +0000]
usb: phy: pull missing changes

Merge missing usb changes

Bug 1315906

Change-Id: I764564c057f330ddfd4b69a6399b7bbbacd2b8eb
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/242023
(cherry picked from commit f51f3fd8f9fdf36b00f26d4cd9e9179d388c9582)
Reviewed-on: http://git-master/r/244118
Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Tested-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: dc: fix dc blending.
Kevin Huang [Mon, 1 Jul 2013 21:46:29 +0000]
video: tegra: dc: fix dc blending.

Bug 1316102

Change-Id: I92832ca3ff1617b56071fc8a3338dade6fbcefba
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/244009
Reviewed-by: Xue Dong <xdong@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

6 years agoASoC: Tegra: Fix platform name
Sumit Bhattacharya [Fri, 28 Jun 2013 08:13:39 +0000]
ASoC: Tegra: Fix platform name

Fix platform name for machine drivers from tegra-pcm-audio to
corresponding cpu-dai name.

Bug 1315518

Change-Id: Iecac3890f544a827defebd34014ef7cf8515e245
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/243372
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: host: change msenc init strategy
Mayuresh Kulkarni [Wed, 19 Jun 2013 12:39:43 +0000]
video: tegra: host: change msenc init strategy

- this commit always calls msenc_boot from nvhost_msenc_init.
- this is to ensure that we load a new instance of firmware in it.
- if suppose before call to nvhost_msenc_deinit, it gets power-gated then
runtime pm call-back will restore it
- if user space closes the channel before it is power-gated,
it gets ready for next channel open

bug 1289131
bug 1315523

Change-Id: Idd742fe197a915c12cac9b862f3bf6960082888d
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/240547
(cherry picked from commit b1fb10e45d0733bd5ac11cac7d730992d6cbf6cd)
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/242934
Reviewed-by: Automatic_Commit_Validation_User

6 years agoALSA: HDA: Fix HDA resume
Sumit Bhattacharya [Tue, 25 Jun 2013 12:47:52 +0000]
ALSA: HDA: Fix HDA resume

Remove deprecated CONFIG_SND_HDA_POWER_SAVE. Also increment pm
runtime sync reference count from azx_resume to ensure runtime
suspend is called only when pm_notify gets called.

Without this change HDA runtime suspend gets called just after
HDA resume and HDA controller is powered down and when power
worker queue tries to power down HDA after some time HDA driver
hangs.

Bug 1312405

Change-Id: I55580f8a9c6f9ff18b41ab0195c21e841f2228b2
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/241936
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agopower: max17048: remove legacy implementation of suspend/resume
Laxman Dewangan [Wed, 26 Jun 2013 14:01:04 +0000]
power: max17048: remove legacy implementation of suspend/resume

Convert the legacy way on implementation for suspend/resume to
the device pm calls.

This will remove the message during boot:
[   10.821103] i2c-core: driver [max17048] using legacy suspend method
[   10.837584] i2c-core: driver [max17048] using legacy resume method

Change-Id: I16600d0a42d3e557d4604cc100da28925e854f5e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/241050
(Cherrypicked commit 607ac9bebac18d5f04009253d0129c0c3d027a14)
Reviewed-on: http://git-master/r/242442

6 years agoARM: Tegra: Roth: Merge rel-roth to main
Matt Wagner [Tue, 25 Jun 2013 21:19:33 +0000]
ARM: Tegra: Roth: Merge rel-roth to main

Change-Id: I52181799337f4e2ee735f3f148b8f661cebbe0f0
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/242147
Reviewed-by: Tao Xie <txie@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: max77660-charger: separate out battery dependent/independent init
Laxman Dewangan [Tue, 25 Jun 2013 14:43:53 +0000]
power: max77660-charger: separate out battery dependent/independent init

The max77660 charger driver supports the cable detection, vbus regulator and
charging functionality.

The cable detection and vbus supply is independent of battery and only
charger initialisation depends on the battery.

Moving the initialisation code such that battery independent code should
be initialised without battery.

bug 1307260

Change-Id: I1094c2f74ebea8dc0b4676f061e467915bd0aa00
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/239610
(Cherrypick commit b3fab9dc434b3199a0bba4ad9acab7b5044cc145)

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

6 years agopower: max77660-charger-extcon: Clear top level charging bit
Darbha Sriharsha [Fri, 14 Jun 2013 10:47:47 +0000]
power: max77660-charger-extcon: Clear top level charging bit

Correct the error where the bit to enable charging from
top level is being set instead of being cleared while
disabling charging

Change-Id: I20625646a143e6ceec885e564cb5de55170deccb
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/238995
(Cherrypicked commit 641a0036dcfa9239dddc06fd1bbef423758c9589)
Reviewed-on: http://git-master/r/241974
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: max77660-charger-extcon: Program charging current correctly
Darbha Sriharsha [Fri, 14 Jun 2013 06:59:22 +0000]
power: max77660-charger-extcon: Program charging current correctly

Program the charging current value obtained from the regulator
into the charger registers instead of programming a hard-coded value

Bug 1276183

Change-Id: Id611a6558915a94d8686d2696094def729985bb7
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/238794
(Cherrypicked commit 9b4ed54bc194d2002a6c57087d95115938f478f3)
Reviewed-on: http://git-master/r/241973
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: max77660-charger: register battery charger driver
Laxman Dewangan [Tue, 25 Jun 2013 14:03:10 +0000]
power: max77660-charger: register battery charger driver

Register battery charger driver to update the charging status
of battery.

bug 1231506

Change-Id: I2e332e286620abf18aa3b70ae8af7ca689c06097
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/238555
(Chrrypicked commit fb2087bc38cb4bba34b40bbeb2b4d7a484d64c7e)
Reviewed-on: http://git-master/r/241972

6 years agopower: max77660-charger: update max77660 register values
Venkat Reddy [Fri, 7 Jun 2013 14:00:01 +0000]
power: max77660-charger: update max77660 register values

AS DUT draws only 250mA when nvcharger is connected and 190mA when usb
connected , updating the register values to draw more current

bug 1284514
Change-Id: Ie4e460a0b48bab089520c1061ecc741975bd9140
Signed-off-by: Venkat Reddy <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/237893
(Cherrypicked commit 32bf875c86b7abd1f721243b095d755c7e2911cf)
Reviewed-on: http://git-master/r/241971
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: max17048: register for battery gauge driver
Laxman Dewangan [Tue, 25 Jun 2013 13:58:29 +0000]
power: max17048: register for battery gauge driver

Register battery gauge driver to provide callback api for
getting charging status whether it is charging or discharging.
Based on this status, battery gauge driver report the charging
status.

bug 1231506

Change-Id: Ifde422a819078b56448134663bb7d3bbbf7eb377
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/238551
(Cherrypicked commit 032d98e056012442fae0e8aef2a5299f8d4cf254)

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

6 years agopower: charger-gauge: abstract charger to/from gauge communication
Laxman Dewangan [Tue, 25 Jun 2013 13:53:48 +0000]
power: charger-gauge: abstract charger to/from gauge communication

It is require to communicate from charger driver to battery
gauge driver and vice versa. This communication is needed for
different status transfer between battery gauge and charger
driver.

Add common file where battery charger and gauge driver register
them self through their callbacks and call common APIs to update/get
their status.

This way the communication from battery charger to battery gauge
driver is completely abstracted and no need to provide callback
through platform data.

bug 1231506

Change-Id: I99af16fda9777a2d1d4c439486f6ff2d1ec8d681
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/237849
(Cherrypicked commit 8f5298e9f737b7852547d8ac446f3d16a9b183df)

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