7 years agoarm: tegra: comms: Enable autopm for RAW-IP network driver.
Michael Hsu [Sat, 12 Nov 2011 20:49:07 +0000]
arm: tegra: comms: Enable autopm for RAW-IP network driver.

Autoresume usb interface before tx and autosuspend after tx
completes.  Also mark last busy time to prevent autosuspend
until some idle time has occurred.

Reviewed-on: http://git-master/r/63993
(cherry picked from commit cfbe77e471d96feda7efd3d8e3f35114a7a32bf7)

Change-Id: I4f419ea29aad6a06b786e6ffb8b17b2016c6e21d
Reviewed-on: http://git-master/r/66528
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

Rebase-Id: R76d1761a632abc1d05563016f046d60c7b68853a

7 years agoarm: tegra: timer: Fix compiler warning
Scott Williams [Wed, 23 Nov 2011 20:48:07 +0000]
arm: tegra: timer: Fix compiler warning

Fix compiler warning when PM_SLEEP and HOTPLUG_CPU are not configured.

Change-Id: I6e9e7aaf9c63752d0c33363b1cced75b4437d82d
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/66508
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: R5687b9e034e004907ba01263948bf839544adb1b

7 years agomedia: video: tegra: Fix compiler warning
Scott Williams [Wed, 23 Nov 2011 20:47:00 +0000]
media: video: tegra: Fix compiler warning

Change-Id: Id25d4d05c5dae89d8ee67e9be40ae166566e3783
Reviewed-on: http://git-master/r/66507
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: R3d4e898d094dfa475e5b9c641b010c3f3346bdae

7 years agoARM: tegra: clock: Update EMC clock change procedure
Alex Frid [Tue, 15 Nov 2011 03:25:18 +0000]
ARM: tegra: clock: Update EMC clock change procedure

Set MC arbiter limits before EMC clock change on Tegra3.

Bug 896654

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

Change-Id: I080f21030007909bece5272ccdb93f8a85d4b13b
Reviewed-on: http://git-master/r/66515
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

Rebase-Id: R0561570b37cdff800f0a7f71558eef16eb82cc59

7 years agoARM: tegra: dvfs: Add Tegra3 xL CPU DVFS tables
Alex Frid [Sun, 13 Nov 2011 06:10:31 +0000]
ARM: tegra: dvfs: Add Tegra3 xL CPU DVFS tables

Bug 841336

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

Change-Id: Ie26a1ccafcf8455a9d4d93d0d4e2fc330f5162f6
Reviewed-on: http://git-master/r/66514
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

Rebase-Id: R8a5f24043e5fdd79cc927ef55f3ea031f093124f

7 years agoARM: tegra: dvfs: Update Tegra3 x3 CPU DVFS tables
Alex Frid [Fri, 11 Nov 2011 06:51:20 +0000]
ARM: tegra: dvfs: Update Tegra3 x3 CPU DVFS tables

Bug 841336

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

Change-Id: I63214eaa437345bf7657f4c53a6dd73473e1e532
Reviewed-on: http://git-master/r/66513
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

Rebase-Id: R9e3e92e6c27da3c8760b01cda223463c75d6d16f

7 years agoARM: tegra: clock: Support restricted PLLM usage
Alex Frid [Sat, 12 Nov 2011 02:19:16 +0000]
ARM: tegra: clock: Support restricted PLLM usage

Added configuration option TEGRA_PLLM_RESTRICTED - when enabled,
PLLM - memory PLL - usage may be restricted to modules with dividers
capable of dividing maximum PLLM frequency at minimum voltage. When
disabled, PLLM is available as a clock source with no restrictions
(current configuration), which may effectively increase lower limit
for core voltage if high grade SDRAM is used.

Implemented PLLM restrictions in Tegra3 clock framework and DVFS, but
keep them disabled by default.

Bug 884419

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

Change-Id: I012452d92830ad6b63ec407350568b8c316b3caa
Reviewed-on: http://git-master/r/66512
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R22de0f09e7af2640499ec8cd96e974328d78bace

7 years agoarm: tegra: edp: add config to use internal tsensor
Bitan Biswas [Fri, 2 Sep 2011 18:20:18 +0000]
arm: tegra: edp: add config to use internal tsensor

Introduced kernel config variable to enable internal tsensor
EDP and throttling support feature -
CONFIG_TEGRA_INTERNAL_TSENSOR_EDP_SUPPORT

bug 848755

Reviewed-on: http://git-master/r/53822
(cherry picked from commit bacc6c8c7fc150db8d678281fd9cd1536d18d2bb)

Reviewed-on: http://git-master/r/65451
(cherry picked from commit 2793d55e3d50bb8d76e1191f8a0f53f822fbd875)

Change-Id: Ia15d13e670192b6656f20f29b5348aa995d95749
Reviewed-on: http://git-master/r/66444
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R3ed1f0cbdd9bc1ba52b7d37930df4ab2d81e6598

7 years agoregulator: tps80031: Check configuraton for LDO2-Track mode
Laxman Dewangan [Thu, 17 Nov 2011 07:01:40 +0000]
regulator: tps80031: Check configuraton for LDO2-Track mode

Some of the values are not supported in the LDO2 configuration
when using in track mode due to hw issue in tps80031 and
tps80032-ES1.0.
Adding proper check before configuring the LDO2 in this case.

bug 898613

Reviewed-on: http://git-master/r/65441
(cherry picked from commit 58e3672102825b662ea904b46b6c1efbf639365b)

Change-Id: I4e63a932d32c7cb2d13a07611acfa0b7dae649cc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/66327
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R8b818dcb4fdaab118426df32144f846a0ab00fb3

7 years agoARM: Tegra: power: Tegra3 T33S updated EDP limits
Diwakar Tundlam [Wed, 16 Nov 2011 00:33:03 +0000]
ARM: Tegra: power: Tegra3 T33S updated EDP limits

bugid 844268

Reviewed-on: http://git-master/r/65547
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
(cherry picked from commit 72d41cc5200454175d8dc04c761c983405e4d901)

Change-Id: Ica5aaf0bedb02bff3485cdcb76e81da80896a309
Reviewed-on: http://git-master/r/66520
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R7ed6a74e13a6900490c83a15f5adc00c5163d663

7 years agousb: tegra: kernel panic issue with ehci off
Seshendra Gadagottu [Wed, 23 Nov 2011 11:05:26 +0000]
usb: tegra: kernel panic issue with ehci off

Avoid usb suspend/resume when ehci is off.

Bug 828389

Reviewed-on: http://git-master/r/65169
(cherry picked from commit ab762cd7eba3cea19188eb9108c4941152e21035)

Change-Id: Ie28c80d480360ea6b2bbbb882528f31c5bdf9c0c
Reviewed-on: http://git-master/r/66428
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R9028b5911a9c28246b1d10737c626e3e6b936d65

7 years agoarm: tegra: cardhu: pm299: enable shutdown from pin SHUTDB
Laxman Dewangan [Wed, 16 Nov 2011 13:03:27 +0000]
arm: tegra: cardhu: pm299: enable shutdown from pin SHUTDB

Enabling the shutdown from the pin SHUTDB.

bug 900732

Reviewed-on: http://git-master/r/65442
(cherry picked from commit fa523f222c1db34a0e11f433bde3e0f5e8c408f3)

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

Rebase-Id: R96ac32c68865680dc2b0448f918f4f60490709ba

7 years agomfd: ricoh583: Support shutdown through input signal
Laxman Dewangan [Wed, 16 Nov 2011 13:00:02 +0000]
mfd: ricoh583: Support shutdown through input signal

Adding configuration parameter through platform data
to shutdown the PMIC when shutdown signal in input pin
SHUTDB is active.

bug 900732

Reviewed-on: http://git-master/r/65443
(cherry picked from commit 9327b9815e9791f56f95e0e691c1f1e15cf39b04)

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

Rebase-Id: Rcabdd1c5d217bfd201b241f443701d9253625df7

7 years agoMMC: Tegra: Enabling wake up event
naveenk [Fri, 18 Nov 2011 08:48:05 +0000]
MMC: Tegra: Enabling wake up event

Enabling wake up event for sd card insertion/deletion
to handle insertion/removal events during suspend

Bug 895672

Change-Id: If9c59889d22b19b99584a8f01cb7bf7316c3b8b5
Signed-off-by: naveenk <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/65971
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R29c4dd500afac98150f7347f5f87d77efe45b676

7 years agoARM: tegra: power: Correct EMC_ADR_CFG mask
Daniel Solomon [Mon, 21 Nov 2011 22:12:38 +0000]
ARM: tegra: power: Correct EMC_ADR_CFG mask

The mask used to check bit EMEM_NUMDEV in register EMC_ADR_CFG is
wrong for T30. Correct it.

Change-Id: I3deb1229cb27081049de1a4f2fd69e21507fa853
Reviewed-on: http://git-master/r/65927
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R328e76d0f107d1b2fe1f27a81c1fab82dc4808d6

7 years agoarm: tegra: cardhu: Register tegra based keyboard driver
Laxman Dewangan [Mon, 21 Nov 2011 14:28:38 +0000]
arm: tegra: cardhu: Register tegra based keyboard driver

Registering the tegra based keyboard driver.

bug 887629

Change-Id: I6908052eaa0efcaedb6bf101374f3e6598c8722f
Reviewed-on: http://git-master/r/65859
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R4bc41ee23fcbdd8c4320326884a88e3e245349e1

7 years agoarm: tegra: cardhu: Shutdown system if ONKEY press for long
Laxman Dewangan [Tue, 15 Nov 2011 15:37:12 +0000]
arm: tegra: cardhu: Shutdown system if ONKEY press for long

Powering off the cardhu if onkey is pressed for longer time
(more than 5 sec).
The short key (< 1 second) takes system into suspend,
the key press to 1 to 5 sec popup shutdown menu and more than
5 second power off the system.

bug 810512

Reviewed-on: http://git-master/r/65108
(cherry picked from commit 71ecd268ab0a3fb8417c1d9a13dcb5e06fc3ac7a)

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

Rebase-Id: R7f958a5d99de7dc354d807acd75bc319cfe87b30

7 years agomfd: max77663: Fix irq flags for ARM GIC
Jin Park [Thu, 17 Nov 2011 04:08:27 +0000]
mfd: max77663: Fix irq flags for ARM GIC

The Tegra IRQ driver was modified to use ARM GIC driver on kernel-2.6.39.
After that, it has to pass correcting irq flags for ARM GIC when irq request.

Bug 892696

Change-Id: I92e3c24309c2528db4adfd69041f601d627a856d
Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/65695
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R38a176520f7216c5637ecc0c8dee3f24f648ac9e

7 years agomfd: max77663: Move sleep enable setting from suspend to resume
Jin Park [Thu, 27 Oct 2011 10:14:18 +0000]
mfd: max77663: Move sleep enable setting from suspend to resume

Moving sleep enable setting from suspend to resume.
And add sleep enable setting into probe.

Bug 849360

Reviewed-on: http://git-master/r/60656
(cherry picked from commit 9ba5f1f22d73fe62d0f509fd6cad26f34e25a017)
Signed-off-by: Jin Park <jinyoungp@nvidia.com>

Change-Id: I7275a5f8d8e0f8d75826854c91946e82d52c8278
Reviewed-on: http://git-master/r/65694
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Re4a4c87dd95180c17680c258b37490bdb3179634

7 years agoARM: tegra: Cardhu/Enterprise: Phase in pixel/backlight adjustments
Matt Wagner [Mon, 24 Oct 2011 22:42:03 +0000]
ARM: tegra: Cardhu/Enterprise: Phase in pixel/backlight adjustments

Turns on phase_in_adjustments on for Cardhu / Enterprise and
updates flicker control

Reviewed-on: http://git-master/r/64522
(cherry picked from commit 9b217486322c4da8ba0df0ec6710caf94efbd721)

Change-Id: I1fc4ef0b04881c9f2b34b0ab2c88d6b97c88815c
Reviewed-on: http://git-master/r/65626
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R1e8eb79e658556337666186e416f7fccc5a4508b

7 years agovideo: tegra: Change DIDIM Phase In
Matt Wagner [Mon, 24 Oct 2011 23:19:42 +0000]
video: tegra: Change DIDIM Phase In

phase_in_video (renamed) phase_in_adjustments
-Backlight and pixel adjustments
step linearly every ADJ_PHASE_STEP frame updates

phase_in (renamed) phase_in_settings
-Enable/Disable + Agg changes are phased in

Reviewed-on: http://git-master/r/64521
(cherry picked from commit 7d8e34986ba49cf3586a155bdf5a6ae8b02639a9)

Change-Id: Iaf0c1773ce440d93ecd76beaa877891b47652510
Reviewed-on: http://git-master/r/65619
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rd2243cc65151f4bf6a4dc189e52b10e8a7afd389

7 years agoARM: Tegra: Power: Increase delay for voltage follower
Diwakar Tundlam [Thu, 10 Nov 2011 00:54:12 +0000]
ARM: Tegra: Power: Increase delay for voltage follower

bugid 897071

Reviewed-on: http://git-master/r/63432
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
(cherry picked from commit c37d623192e6c07950c711eb9cbc584813567cd7)

Change-Id: Id7faa07f9b7ccc779557a79bb704b901fd67436e
Reviewed-on: http://git-master/r/65289
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rb62dd30fc38085b89f5921c87e4115472221c622

7 years agoARM: tegra[3]: config: disable mmc paranoid init
Mursalin Akon [Wed, 16 Nov 2011 18:40:32 +0000]
ARM: tegra[3]: config: disable mmc paranoid init

Bug 902803

Change-Id: Ifcdac4fc50ef0dde563db1bcbbf7ebd9d3b589ce
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/65262
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R0101ed7fead838b1259afd05f2e6ef648b70a678

7 years agommc: sdhci-tegra: add platform code for UHS signaling
Pradeep Goudagunta [Tue, 15 Nov 2011 18:45:18 +0000]
mmc: sdhci-tegra: add platform code for UHS signaling

Tegra SD controller requires clk divisor to be set to 1 for
DDR50 mode.

Bug 899940

Change-Id: Ibc15e5f61b11e2e87b78eade8d004ff2c56b3b74
Reviewed-on: http://git-master/r/64510
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rf958d23dedd38a3d84efaf555d5ec0a31678da37

7 years agoarm: tegra: power: lp0 wake enable modified
Bitan Biswas [Tue, 15 Nov 2011 09:09:02 +0000]
arm: tegra: power: lp0 wake enable modified

GPIO based lp0 wakeup needed to support search for its irq
as well as GPIO bank irq in table. This is implemented
in this change.

lp0 wakeup irq enable using enable_irq_wake needs to be
called in specific drivers. Additionally, in some cases
wake irq needs to be updated in tegra wakeup table.

bug 890309
bug 902114

Change-Id: I983318172ffb020f565763cfe2bb29018223dcd0
Reviewed-on: http://git-master/r/64395
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rffcadeee341a73f2ea6d62e31d507e9a8dce5a0e

7 years agoARM: tegra[3]: Enable input event devices
Mursalin Akon [Mon, 14 Nov 2011 19:37:33 +0000]
ARM: tegra[3]: Enable input event devices

Bug 902303

Change-Id: Ib9d9e03a7879ee51a84d22d7cc571addd376b548
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/64181
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R80dff3a7bf0c9b16b41c47d9f2d36f90030fb2d1

7 years agoARM: tegra: power: L2 cache sync only for CPU0 LP2
Prashant Gaikwad [Mon, 14 Nov 2011 12:25:55 +0000]
ARM: tegra: power: L2 cache sync only for CPU0 LP2

Bug 901430
Bug 905813

Change-Id: Id57f870262eebe6a2017b808d1a66624f903989d
Reviewed-on: http://git-master/r/64103
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rc3cad5fafa9e62fa10099bc4dc1281954a04b8f5

7 years agopower: tps80031-battery: add ac ONLINE power supply properties
Syed Rafiuddin [Fri, 14 Oct 2011 09:23:19 +0000]
power: tps80031-battery: add ac ONLINE power supply properties

Addition of AC power supply property (POWER_SUPPLY_PROP_ONLINE)
so as to display power plug as AC while charging from usb
wall charger.

Reviewed-on: http://git-master/r/61832
(cherry picked from commit 08b38c5bad9fb999c48a37d295af4b7f46f72cff)

Change-Id: I34af095c06c94bf42ed934d03992647a4f163cb1
Reviewed-on: http://git-master/r/64092
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rca4e2cbed914b0d246fa5b2e28f98e052f7c5fd0

7 years agoarm: tegra: enterprise: battery detection support for fuel-gauge
syed rafiuddin [Thu, 29 Sep 2011 05:14:45 +0000]
arm: tegra: enterprise: battery detection support for fuel-gauge

Adding battery present support to fuel-gauge driver
so as not to report battery charecterstics when
battery is not present

bug 873965

Reviewed-on: http://git-master/r/61831
(cherry picked from commit f7087f71f5ed04d5a6c88fa6c8296f85029e2efd)

Change-Id: I3cf95d530845388d189ef860ba4ee7d933dd3fd8
Reviewed-on: http://git-master/r/64091
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rdaf381deafc9f549522779d7e3baad21f3cd7834

7 years agopower: tps80031-battery: Exit driver if battery is not detected
syed rafiuddin [Fri, 7 Oct 2011 08:46:40 +0000]
power: tps80031-battery: Exit driver if battery is not detected

Exit fuel-gauge driver if battery presence is not detected.

bug 873965

Reviewed-on: http://git-master/r/61830
(cherry picked from commit 149469646e1e5e7ece787ef9546de60a97b46802)

Change-Id: I00139f1a92822875fb1409a918c580b83d4789f0
Reviewed-on: http://git-master/r/64090
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rebb08c9d9cbe6a3bb2a3bcaf4cc89beceb55c480

7 years agovideo: tegra: host: Fix undefined reference to nvhost_syncpt_name
Hiroshi DOYU [Mon, 14 Nov 2011 08:29:44 +0000]
video: tegra: host: Fix undefined reference to nvhost_syncpt_name

This was left at commit d616fd4eb059930be9a93e468e302b911dcd8aff.

Change-Id: I11b433612ed72fc7eef2276af44762162581a1f6
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/64051
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rabedea9a471e02dfa90a2776f9b8a57287ec1bd6

7 years agoARM: tegra3: config: Enable RTC_DRV_TPS6591x
Wei Ni [Wed, 19 Oct 2011 05:21:47 +0000]
ARM: tegra3: config: Enable RTC_DRV_TPS6591x

Enable RTC_DRV_TPS6591x for tegra3,
and disable RTC_DRV_TEGRA, which is for internal rtc.

BUG=889820

Change-Id: I0e6aa1947f466c5e364c948305a18eb3d8f09560
Signed-off-by: Wei Ni <wni@nvidia.com>
Reviewed-on: http://git-master/r/58935
Reviewed-by: Peer Chen <pchen@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-on: http://git-master/r/63246
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R5184292bf63f40c99b929799f9dd36dbadfaddd0

7 years agoarm: tegra: power: thermal sysfs hooks in nct1008
Joshua Primero [Tue, 4 Oct 2011 00:22:45 +0000]
arm: tegra: power: thermal sysfs hooks in nct1008

Added the thermal sysfs hooks in the nct1008 driver.

Reviewed-on: http://git-master/r/55832
(cherry picked from commit 20931817652d41c17359360644666f3d4d770f6d)

Change-Id: Ifb9550c7136330f1a008b4ff6799ed2f1c639304
Reviewed-on: http://git-master/r/62572
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R75d734c463398f45ee2204d268645275e7dccc26

7 years agoarm: tegra: power: Improved thermal accuracy
Joshua Primero [Fri, 16 Sep 2011 18:49:05 +0000]
arm: tegra: power: Improved thermal accuracy

Instead of rounding up when measuring temperature in celsius,
report back temperature in millicelsius.

Reviewed-on: http://git-master/r/59466
(cherry picked from commit 242cd79fbf25d8ad55088e95e632c02aede86bbb)

Change-Id: Ie7597f1dbd11d1d23ae658167d4ff04cf55198c3
Reviewed-on: http://git-master/r/62571
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Re42a7cd9fca598fa09178ba958ca975748c3068a

7 years agoARM: tegra: power: omit L2 flush for LP2
Antti P Miettinen [Mon, 24 Oct 2011 08:20:33 +0000]
ARM: tegra: power: omit L2 flush for LP2

The L2 cache RAM is preserved over LP2 so omit the L2 cache flush
in tegra_idle_lp2_last().

Bug 880338

Change-Id: I6aa30c712b6e467bd48e9c1959da2a69453a8f43
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/59892
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R6eee47d009d45d0e20254a97df919bf2fc34e6cd

7 years agoARM: tegra[3]: config: Remove USB net ASIX option
Matt Pedro [Thu, 17 Nov 2011 18:32:44 +0000]
ARM: tegra[3]: config: Remove USB net ASIX option

To quickly enable mobile sanity, we had previously turned this option
to '=y', but just removing the config option should be sufficient.
This change removes the CONFIG_USB_NET_AX8817X from the def_config files.

bug 881005

Change-Id: I40b2ccc8e50165c1f2d526cb4ef3770f03283e50
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
Reviewed-on: http://git-master/r/65231
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R2bab65d06a2ef282adf5757b49565eda6329450f

7 years agotegra: usb: tegra: clk_timer changes with EHCI power on/off
Seshendra Gadagottu [Thu, 17 Nov 2011 09:05:53 +0000]
tegra: usb: tegra: clk_timer changes with EHCI power on/off

Disabled the power management clk_timer on EHCI power off.
Enabled the clk_timer on EHCI power on after hcd on.
This is done to avoid kernel panic during flight mode on/off.

Bug 881388

Reviewed-on: http://git-master/r/61093
(cherry picked from commit 5e36d4788f0bbfcd7c6965390f0e1a977b491a23)

Change-Id: I5f957aaa5b1c949cd395da92c83a70fdd551a6a1
Reviewed-on: http://git-master/r/65168
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R7ad855dc3a9840ec4ab6b7a0bbbca24cd1ebc730

7 years agoARM: tegra: clock: Return shared_bus_set_rate() errors
Alex Frid [Wed, 9 Nov 2011 06:06:32 +0000]
ARM: tegra: clock: Return shared_bus_set_rate() errors

Returned error code from Tegra3 shared_bus_set_rate().

(cherry picked from commit b9aea1656af4d3e17433c82611fe5e7146a41733)

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

Change-Id: Iaa1c93e2303f0d4e6dd35f00bbd7010e3ef90a3f
Reviewed-on: http://git-master/r/64768
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: Rbb19019bca965394d433cf16142e8b51c80b7af0

7 years agoARM: tegra: dvfs: Fix dvfs over-voltage error handling
Alex Frid [Fri, 4 Nov 2011 03:06:10 +0000]
ARM: tegra: dvfs: Fix dvfs over-voltage error handling

Record dvfs client voltage rate request only after over-voltage error
is checked (otherwise, after over-voltage error rail goes above the
limit when another client requests voltage change).

(cherry picked from commit 9151f77b545dc5b898ad16ceb695cc57764f94e0)

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

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

Rebase-Id: Re82214f06084d58eed67edb35443f7a72ac4d112

7 years agoARM: tegra: clock: Add Tegra3 emergency throttling
Alex Frid [Fri, 14 Oct 2011 02:12:55 +0000]
ARM: tegra: clock: Add Tegra3 emergency throttling

Add Tegra3 emergency throttling API to directly control G-CPU super
clock skipper underneath clock framework, dvfs, and cpufreq driver
s/w layers. To be used by system power supply over-current ISR.

(cherry picked from commit fca2a12e90684526b2b7aeeb3af31de4254ad939)

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

Change-Id: Ice064326d46f868a9d59d2e1f53930d644fdfc02
Reviewed-on: http://git-master/r/64766
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: Rf42ae930ba90de1c40843b5565251e4c1c92a642

7 years agommc: tegra: Set voltage based on supported ocr mask
Pavan Kunapuli [Mon, 21 Nov 2011 14:00:10 +0000]
mmc: tegra: Set voltage based on supported ocr mask

Setting the voltage based on the supported ocr mask
in the platform data. Some SDIO/MMC devices operate in
low voltage(1.8V).

Bug 904614

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

Rebase-Id: R288360441bbeaee7c8c5dea6f85415339aed60be

7 years agosdhci: Don't set SDIO card intr in resume by default
Pavan Kunapuli [Fri, 18 Nov 2011 12:31:47 +0000]
sdhci: Don't set SDIO card intr in resume by default

Enable SDIO card interrupt in resume only if it is
set before suspend.

Bug 902633

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

Rebase-Id: Rb2ba0ae696df9104840566a794780730d6da845f

7 years agoarm: tegra: whistler: Remove wrong spkr_en gpio entry
Sumit Bhattacharya [Mon, 21 Nov 2011 13:12:52 +0000]
arm: tegra: whistler: Remove wrong spkr_en gpio entry

WM8753 spkr_en gpio entry was added mistakenly. Whistler-WM8753 audio
module does not have any gpio for enabling speaker.

Bug 872652

Change-Id: I4c5032f0b9224275ba4f4b4aba5b94e80ec7f99d
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/66092
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R1c3602f38712e8d3d43c1175f06596e4e2d2eece

7 years agoARM: Revert "ARM: 6878/1: fix personality flag propagation across an exec"
Liang Cheng [Fri, 18 Nov 2011 19:51:40 +0000]
ARM: Revert "ARM: 6878/1: fix personality flag propagation across an exec"

This reverts commit 5e143436d04465c937c1a242808a99c46393af3e.
gdbserver has READ_IMPLIES_EXEC bit set, which propagtes to the
exec under debug. This results in application failing to run in
some cases. Revert the change to address this issue.

bug 894472

Change-Id: I9f856f50c94e61ac59beaf9c8f257899d1964d86
Reviewed-on: http://git-master/r/65550
Reviewed-by: Antoine Chauveau <achauveau@nvidia.com>
Tested-by: Liang Cheng (SW) <licheng@nvidia.com>
Reviewed-by: Simo Melenius <smelenius@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R9f68ba30084adbc2b5d6818eed2ee8ce2baffe69

7 years agoarm: tegra: cardhu: Put LDO4 in high power mode always
Laxman Dewangan [Mon, 14 Nov 2011 14:56:29 +0000]
arm: tegra: cardhu: Put LDO4 in high power mode always

Based on characterization, at high temperatures Tegra will
draw more than 1mA, which is what the datasheet reports for
the low-power mode of LDO4.
So removing the LOW_POWER mode flag which makes LDO4 in low
power mode in suspend.

bug 890770

Reviewed-on: http://git-master/r/64825
(cherry picked from commit f4263c693e235c52d7ad4ad32d2508b4a6393508)

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

Rebase-Id: R3cf4b2dfa2b5fea9fe281cad769fb5addc241abd

7 years agomfd: tps6591x: Acks the enabled interrupts only
Laxman Dewangan [Mon, 14 Nov 2011 14:20:13 +0000]
mfd: tps6591x: Acks the enabled interrupts only

Acknowledge the tps6591x interrupt by processor only
when it is enabled by client. The acknowledge is done
by writing 1 to INT_STS register.

bug 896151

Reviewed-on: http://git-master/r/64824
(cherry picked from commit 31fbb94516e5b600ad536e35c95e64b525b21f61)

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

Rebase-Id: R4803a1635b5404226679de09dc15260ff60d44e6

7 years agoARM: tegra: dvfs: Update Tegra3 EMC DVFS
Alex Frid [Fri, 4 Nov 2011 04:07:03 +0000]
ARM: tegra: dvfs: Update Tegra3 EMC DVFS

- Moved validation of EMC maximum rate against nominal core voltage
from common dvfs initialization to board specific EMC scaling table
setup (a logical place to do it, since EMC DVFS is board dependent)

- Used current rate as rounded EMC rate if no EMC scaling table is
provided (instead of maximum EMC rate - no sense in attempt to set
maximum rate, or any rate, for that matter, if there is no table).

- Cleaned EMC initialization procedure

(cherry picked from commit 4f655077e09c0dc4abc50d190d82c91473e2e81c)

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

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

Rebase-Id: R697e04b6140eb0084bdb341febe3acdf91d93535

7 years agoARM: Tegra: power: Tegra3 AP33 SKU updated EDP table
Diwakar Tundlam [Tue, 1 Nov 2011 23:30:31 +0000]
ARM: Tegra: power: Tegra3 AP33 SKU updated EDP table

bugid 844268

Reviewed-on: http://git-master/r/64185
(cherry picked from commit a27e20a84ce1bab8a1d37f12f7f9260d9d32dbfe)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>

Change-Id: I88b108fd44719828e11499606ab7ef754f76ebac
Reviewed-on: http://git-master/r/65290
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R557e282e415fd4bed871ea1ed8c056ae79731311

7 years agoARM: tegra: dvfs: Update Tegra3 x3 speedo thresholds
Diwakar Tundlam [Fri, 11 Nov 2011 20:25:36 +0000]
ARM: tegra: dvfs: Update Tegra3 x3 speedo thresholds

Bug 841336

Reviewed-on: http://git-master/r/64931
(cherry picked from commit 1333406b624bd876cd31cada142d234f4e18b303)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>

Change-Id: Id62e0264962cd7511fc97e3c865f105ca10c65f0
Reviewed-on: http://git-master/r/65908
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R8561dc799000fb50a5fa0855133be2afcd2d992b

7 years agoregulator: tps62361x: support for output discharge
Laxman Dewangan [Wed, 16 Nov 2011 11:31:05 +0000]
regulator: tps62361x: support for output discharge

Supporting the discharge of output capacitor via a typ.
300Ohm path.

bug 871944

Reviewed-on: http://git-master/r/65107
(cherry picked from commit a969b5c5e024c1ef6e29ef9d3603dd6bbe292567)

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

Rebase-Id: R7d45dc727b03fa8b55470cc5507052eedecc8f76

7 years agovideo: tegra: nvmap: expose allocation flags in debugfs
Kirill Artamonov [Tue, 1 Nov 2011 14:37:14 +0000]
video: tegra: nvmap: expose allocation flags in debugfs

Allocation flags provide useful information about how allocations
were created.

Expose allocation flags in allocation debugfs list.

bug 882345
bug 889003

Reviewed-on: http://git-master/r/61517
(cherry picked from commit 5100f1b09584f079a1547f65ac8b49b27df73292)
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>

Change-Id: I2aed0150fe76791550daa1f37d1b5a238af50e1e
Reviewed-on: http://git-master/r/64939
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
Tested-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R38ccb94a1d41207b1fe92d345e626963912b2379

7 years agomedia: video: tegra: ar0832: Many fixes for focuser
Naren Bhat [Thu, 10 Nov 2011 23:21:04 +0000]
media: video: tegra: ar0832: Many fixes for focuser

For Enterprise focuser. Fix focuser range, steptime,
re-initialization of focuser registers after resolution
mode switch, back up and restore of the focuser position
during mode switch.

bug 881045

Reviewed-on: http://git-master/r/63698
(cherry picked from commit 2d83f0bbc13b8a0c760fc86223b15d32f731d36c)

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

Rebase-Id: R7ccb1393d5e31a11030f892e9cb663d03581c561

7 years agoinput: touch: atmel_mxt_ts: Add SysFS interface to slow down scanning.
Robert Collins [Thu, 20 Oct 2011 00:07:52 +0000]
input: touch: atmel_mxt_ts: Add SysFS interface to slow down scanning.

Video playback would like to save power by slowing touchscreen
scanning.  This change adds a SysFS interface to allow the
scan rate to be programmed by the video display interface.

SysFS location:
/sys/devices/platform/tegra-i2c.1/i2c-1/1-005a/slowscan_enable

Read functions:
cat slowscan_enable (returns current register status)

Write functions:
0 - Disable slowscan
1 - Enable slowscan
2 N - Program actv_cycle_time with value of N
3 N - Program idle_cycle_time with value of N
4 N - Program actv2idle timeout with value of N (seconds * 10)

Bug 891993

Change-Id: Ib11b544019f3a78290785502e7209b8cbd985852
Reviewed-on: http://git-master/r/65006
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Re4398871d4964d366f0dbdd856a7953600577dea

7 years agoinput: touch: atmel_mxt_ts: Disable TS power during LP0.
Robert Collins [Thu, 20 Oct 2011 21:59:48 +0000]
input: touch: atmel_mxt_ts: Disable TS power during LP0.

In order to save system power, we should cut the power to the
touchscreen controller.  Older versions of our TS driver did this.
This feature was accidentally removed during a recent driver
update.

Bug 891979

Change-Id: I4bf9333832af65c00b8b10cc8191f4d26aad04e4
Reviewed-on: http://git-master/r/65005
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R370b26e990a5f129ea0f8e73e9b7178bd85b79e5

7 years agoinput: touch: atmel_mxt_ts: Updated to new Atmel touch driver.
Robert Collins [Wed, 21 Sep 2011 22:51:37 +0000]
input: touch: atmel_mxt_ts: Updated to new Atmel touch driver.

Updated to new Atmel touch driver.  Added sysfs interface to
allow Config-UI applications to run.

Primary changes:
* Add sysfs interface to allow user applications access to the
  touchscreen controller register interface.  Required by
  Config-UI utility.
* Fixed bug in stop/start functions that would prevent TS
  from working with encrypted filesystems.
* Fix logic error that could cause a deadlock condition during
  LP0 resume.

Change-Id: If25260e60843e3c3bb3a9818ed9146ea78c39902
Reviewed-on: http://git-master/r/65004
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R9bde02eeeae3a899e18d17b5ff26cac371729cb0

7 years agousb: host: tegra: configure hotplug in usb phy driver
Artiste Hsu [Wed, 9 Nov 2011 04:40:49 +0000]
usb: host: tegra: configure hotplug in usb phy driver

Properly configure USB_PORTSC1_WKCN and USB_PHY_CLK_VALID_INT_ENB
to avoid unexpected irq.

Bug 888035
Bug 902149

Reviewed on http://git-master/r/#change,63176

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

Rebase-Id: R951345ce7f91a79361911872cfbf297e1ecd2e7f

7 years agoARM: tegra: cardhu: Update dvfs tables for elpida & samsung
Ray Poudrier [Fri, 4 Nov 2011 01:29:39 +0000]
ARM: tegra: cardhu: Update dvfs tables for elpida & samsung

Added dynamic self-refresh field and updated arbitration settings.

Bug 896654

Reviewed-on: http://git-master/r/61728
(cherry picked from commit 6b8d5582fb205c6cb277ce0ecbe328fcf724d664)

Reviewed-on: http://git-master/r/62297
(cherry picked from commit 9c60a6c5f5bc07253454a057e9b3e0046c574b45)

Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>

Reviewed-on: http://git-master/r/62535
(cherry picked from commit af73bb50258071d264645f655cae17ea70b9bd10)

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

Rebase-Id: R99ee0ac14f211cd87174642acb3506028bcb3a74

7 years agoARM: tegra: cardhu: Expand EMC DFS table for Hynix DDR3
Ray Poudrier [Fri, 4 Nov 2011 01:12:15 +0000]
ARM: tegra: cardhu: Expand EMC DFS table for Hynix DDR3

- Added dynamic self-refresh field, and updated arbitration settings

Bug 896654

Reviewed-on: http://git-master/r/61725
(cherry picked from commit 2d5a9c1fbe5cdf4f4233ec3eca230d625d0439de)

Reviewed-on: http://git-master/r/62296
(cherry picked from commit 31f9198bcc05c35cc4aa797e4f224aed62fdfc64)

Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>

Reviewed-on: http://git-master/r/62534
(cherry picked from commit a0977e407c3937aae077304ca1ec1f937419c07b)

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

Rebase-Id: R15d84c206780f90108f44ebe7cc4812d75d3e57f

7 years agoARM: tegra: clock: Enable EMC scaling for AP25
Prashant Gaikwad [Tue, 15 Nov 2011 14:29:47 +0000]
ARM: tegra: clock: Enable EMC scaling for AP25

Workaround added to enable EMC scaling for AP25.
PLL switching support added for 300MHz EMC scaling step.

Bug 892505

Reviewed-on: http://git-master/r/#change,41718
Reviewed-on: http://git-master/r/#change,41720
Reviewed-on: http://git-master/r/#change,60861

Change-Id: I885b8dc4e3b6124ebed572c06cea773de6c83471
Reviewed-on: http://git-master/r/64465
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Rb8e58cfa7fe1106978030c8aea292e95a7a5da2b

7 years agoARM: tegra: clock: remove warnings
Prashant Gaikwad [Tue, 15 Nov 2011 13:59:05 +0000]
ARM: tegra: clock: remove warnings

Removed unused variable warnings.

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

Rebase-Id: R9367a80be4cef31b14b9837d52123d76ffb7d982

7 years agoASoC: tegra wm8753 machine: Add suppport for Tegra20 BT SCO
Sumit Bhattacharya [Fri, 4 Nov 2011 22:03:32 +0000]
ASoC: tegra wm8753 machine: Add suppport for Tegra20 BT SCO

Add a new dai-link interface to wm8753 machine driver which can be
used for BT SCO playback and record on Tegra20. Also add code to
program Tegra20 DAS controller depending on active dai-link.

Bug 872652

Change-Id: I777b0c4806c05217c3ce89591e5d14ff2b4dcd7c
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/64439
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R08f0e7c075a874481cd97727d7b27011eba684c5

7 years agomedia: video: tegra: fix powergate bug in Tegra2
Jihoon Bang [Wed, 2 Nov 2011 22:24:50 +0000]
media: video: tegra: fix powergate bug in Tegra2

Tegra2 doesn't have VE powergate. VE powergate should be turned
off in probe function for Tegra2.

Bug 855758
Bug 878057

Reviewed-on: http://git-master/r/61944
Reviewed-on: http://git-master/r/62192
(cherry picked from commit 33a29b2d9e35e4a5fc73492b784b917f55e8e94b)

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

Rebase-Id: R8ea4a98afd18c0edd882bc6022a49a4b1bdf0a3e

7 years agortc: tps6586x: Fix for proper wakealarm
Wei Ni [Wed, 19 Oct 2011 05:29:49 +0000]
rtc: tps6586x: Fix for proper wakealarm

In the driver probe function, call device_init_wakeup() before
registering rtc device, so that wakealarm sysfs will be created.

BUG=889820

Change-Id: I957fdffb02cd7e43dd96db0794e2e9f8dc7bd3ee
Signed-off-by: Wei Ni <wni@nvidia.com>
Reviewed-on: http://git-master/r/58937
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-on: http://git-master/r/63244

Rebase-Id: R9e078974bd9e773443b19492b83d25694f4582c2

7 years agoarm: tegra: Configuring kbc pins as per gpio nr
Laxman Dewangan [Wed, 9 Nov 2011 13:29:02 +0000]
arm: tegra: Configuring kbc pins as per gpio nr

Configuring the kbc pins such that the row/column is configured
in their respective GPIO number.

bug 804531

Reviewed-on: http://git-master/r/64033
(cherry picked from commit ec1c562461090170ce9515147954185c9a5bda44)

Change-Id: I5242bee91e767151022071022f195f0f1ca7bea2

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

Rebase-Id: R2867df551e1c8d81fe4a7cd0034aeed9439f1e09

7 years agoinput: tegra-kbc: Support to configure any pins to row/column
Laxman Dewangan [Wed, 9 Nov 2011 13:23:56 +0000]
input: tegra-kbc: Support to configure any pins to row/column

Any of the KBC GPIO pins can be configured to either as row or as
column. Adding support for this.

bug 804531

Reviewed-on: http://git-master/r/64034
(cherry picked from commit 17039fec9ef8c71bc3ec77ed8bb131f077a3f8a5)

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

Rebase-Id: R298ea146ab540ddfcabbe244ed1e732b9ee366c0

7 years agoarm: tegra: cardhu: pm298: Support for PM305, PM311 and E1257
Jin Park [Thu, 6 Oct 2011 05:21:46 +0000]
arm: tegra: cardhu: pm298: Support for PM305, PM311 and E1257

PM298 what MAX77663 PMIC supports for PM305, PM311 and E1257 based
systems.

Reviewed-on: http://git-master/r/56365
(cherry picked from commit 7ed6615501bf406e0fca79e559e60e896b07bea2)
Signed-off-by: Jin Park <jinyoungp@nvidia.com>

Change-Id: Ie4e376fdadf530d25bc3d446d925fde08f42e2b1
Reviewed-on: http://git-master/r/65067
Tested-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rf6feb97cfccb4993e40b95ae2ff07a2822fef80a

7 years agoarm: tegra: cardhu: pm298: Remove SDMMC1_VDD control for PM269
Jin Park [Thu, 6 Oct 2011 06:20:53 +0000]
arm: tegra: cardhu: pm298: Remove SDMMC1_VDD control for PM269

The SDMMC_VDD control is generated from the cpld programming for pm269
and so it is not require to have gpio control for this.
This change is came from commit e92b10299b329f9df29ae23099b8f2f5f2eee1d7.

Reviewed-on: http://git-master/r/56367
(cherry picked from commit b30687a50bb2bf520d71e02339d01481c2d418bd)
Signed-off-by: Jin Park <jinyoungp@nvidia.com>

Change-Id: I24d37dec2fa064c8a25526352247bcc9d3a002f9
Reviewed-on: http://git-master/r/65066
Tested-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R86cfccdc962147722f40b6dbcd4d6c81d9afb169

7 years agoarm: tegra: cardhu: pm298: Fix SDMMC regulator registration
Jin Park [Thu, 6 Oct 2011 07:20:47 +0000]
arm: tegra: cardhu: pm298: Fix SDMMC regulator registration

Use the device driver name instead of encoding the SDMMC controller
in the regulator supply name.
This change is came from commit 676dd57f8eb252ce61807c02e5153b4ee4e29418,
and it was reviewd on http://git-master/r/#change,53783.

Reviewed-on: http://git-master/r/56368
(cherry picked from commit 03aa6082f7db7006de6e9c357fcf04e0d395fb16)
Signed-off-by: Jin Park <jinyoungp@nvidia.com>

Change-Id: If80057e52feb29598e2b6bff2e729277f7828531
Reviewed-on: http://git-master/r/65065
Tested-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rdb7c61e477e59a56237e0ea89c37848552842323

7 years agoarm: tegra: cardhu: pm298: Correct min_uV for SD1 power rail
Jin Park [Mon, 10 Oct 2011 08:42:17 +0000]
arm: tegra: cardhu: pm298: Correct min_uV for SD1 power rail

Previously it is configured SD1 min_uV to 1.05V to avoid voltage
under-shooting issue on SD1 power rail.
But it doesn't need after safe voltage scaling step patch for
max77663 regulator driver.

Reviewed-on: http://git-master/r/56962
(cherry picked from commit 3ea4ea8a5594cb8b5781bfd06816993b0a3e90cf)

Change-Id: Ied2b8e54f2ac05182b1e0d256e48cda2b6aab0b4
Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/65064
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rd4e1d0ea5f087fe223bb8bb5722c972031012678

7 years agoarm: tegra: cardhu: pm298: Add regulator supply for NCT1008
Jin Park [Thu, 17 Nov 2011 02:08:30 +0000]
arm: tegra: cardhu: pm298: Add regulator supply for NCT1008

Adding regulator supply "vdd" for NCT1008 into PM298 what MAX77663 PMIC.

Reviewed-on: http://git-master/r/56366
(cherry picked from commit 3db418ee3342f70cb8bfbb7edc0e897d69a826c9)

Change-Id: Iba41fac3e8a92bc0e9f6ed4037b48bfded32e271
Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/65063
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rd14450aeff9bcd71c086266aa41114fcd6446970

7 years agoarm: tegra: cardhu: KEY_POWER event through ONKEY for PM298
Jin Park [Thu, 27 Oct 2011 08:59:26 +0000]
arm: tegra: cardhu: KEY_POWER event through ONKEY for PM298

ONKEY is connected with PMU and PMU generates power-on interrupt.
PM298's power-on interrupt was handled as KEY_POWER event using
interrupt keys driver.

Bug 849360

Reviewed-on: http://git-master/r/60654
(cherry picked from commit 733e3c5dd9b8748c2431eb28accb9b3638919c48)

Change-Id: I15b8fc6d672af5987e0f790ffc8b005e38340458
Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/64868
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rb67a1dcf46e426ba3700e238bc58088f681e0a92

7 years agoASoC: tegra: max98088 machine: add bt voice call dai link
Nikesh Oswal [Wed, 9 Nov 2011 10:29:12 +0000]
ASoC: tegra: max98088 machine: add bt voice call dai link

Bug: 862023

Change-Id: I74f6d8e14ca9c48cbbe272384c0821e880e59697
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/63259
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Re4124a65167562191b9058455a20f941887fad54

7 years agoarm: tegra: enterprise: add i2s port id of bt codec
Nikesh Oswal [Wed, 9 Nov 2011 10:00:22 +0000]
arm: tegra: enterprise: add i2s port id of bt codec

Bug: 862023

Change-Id: Ib27dacada3f66d50b84c0c7ebbd90e116a141dae
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/63250
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R9f0f6301c843c5ab0956fc503a3ab8132ca8ad5f

7 years agoarm: tegra: enterprise: add platform data for bt voice call
Nikesh Oswal [Wed, 9 Nov 2011 09:57:37 +0000]
arm: tegra: enterprise: add platform data for bt voice call

Bug: 862023

Change-Id: I826bf1b2de5681bd999b989ab74f86f26155f421
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/63248
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Rec26d539061cdcd8895a539416f05111605b56b0

7 years agoASoC: tegra: max98088 machine: add alsa control for voice call
Nikesh Oswal [Sun, 6 Nov 2011 04:47:54 +0000]
ASoC: tegra: max98088 machine: add alsa control for voice call

add alsa control for voice call and add voice call dai link

Bug: 862023

Change-Id: I1fb45e0c987e93e90f631b09d7146852c141816f
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/62622
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Rd6168ccb88d9758be4919d16aa972fbd27e7ee46

7 years agoASoC: tegra: configure the dma request if dma data is set
Nikesh Oswal [Sun, 6 Nov 2011 04:42:31 +0000]
ASoC: tegra: configure the dma request if dma data is set

configure the dma request if dma data is set by the cpu
dai. In voice call use case we open a pcm device with
alsa driver which has a codec dai for configuring the
codec and a dummy cpu dai, which had no dma data since
we dont want any dma for this device as the flow
of data is directly between the baseband and codec.

Bug: 862023

Change-Id: Ia64dee48ff5e102b334f4a3d64286787e6db415b
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/62621
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Rb144e52e059eb7240e09ac0d63825a490e3542af

7 years agoASoC: tegra: t30 add support for voice call
Nikesh Oswal [Tue, 8 Nov 2011 08:38:31 +0000]
ASoC: tegra: t30 add support for voice call

Bug: 862023

Change-Id: If22a815f3c941e07b4be91c485353087e45b7503
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/62894
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R3cceb258be9da3e8bb45741705aabd65c6065c3c

7 years agoASoC: tegra: max98088 machine: connect playback path via the dam
Nikesh Oswal [Fri, 11 Nov 2011 11:31:45 +0000]
ASoC: tegra: max98088 machine: connect playback path via the dam

default playback path is established through the dam
so as to support mixing of system sounds during voice call and also
playing of connection and disconnection tones

Bug: 862023

Change-Id: Ia055e7372f4ca18d038db483c3657ee4bbbfb6ca
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/63816
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R38a4b7b469f5c8cffdc9c53a4a1fb07c13b5a531

7 years agoASoC: tegra: configure default playback path for t30
Nikesh Oswal [Tue, 8 Nov 2011 08:32:09 +0000]
ASoC: tegra: configure default playback path for t30

with these changes from the machine driver we can configure
the default playback path to go through the dam or bypass
the dam

Bug: 862023

Change-Id: I0c51dd167c6822c4583240ece14211a82734ee2e
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/62891
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R7e756015a8436841c00295145ec45a23ec3ba8f7

7 years agoarm: tegra: enterprise: add voice call and i2s port parameters
Nikesh Oswal [Sun, 6 Nov 2011 04:08:46 +0000]
arm: tegra: enterprise: add voice call and i2s port parameters

add i2s device for voice call, i2s port id for codecs and
baseband parameters

Bug: 862023

Change-Id: I1aa1f3159458b7b5d5729ed9ba96cbf0c1a477fd
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/62619
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Rad3c2c383aaaba2b89af6d5e14549c4ef2c23327

7 years agoarm: tegra: enterprise: add platform data for voice call
Nikesh Oswal [Sun, 6 Nov 2011 04:02:36 +0000]
arm: tegra: enterprise: add platform data for voice call

add platform data structures for codec i2s port connections
and baseband parameters

Bug: 862023

Change-Id: I52cc25e623474f6d5dd070cf4aedc1f108980595
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/62618
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Rbe96cc2c99342de04590101d96c09616e72c6a41

7 years agoarm: tegra: enterprise: enable i2s3 and bt device
Nikesh Oswal [Thu, 3 Nov 2011 09:23:39 +0000]
arm: tegra: enterprise: enable i2s3 and bt device

Bug: 862023

Change-Id: I11a209103bf108e765ce745093d3b4e9d0126d29
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/62085
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R9e6489ed58327cfc28f16a79af2952a160545a37

7 years agoASoC: Tegra MAX98088 machine: Add support for Tegra30 BT SCO
Nikesh Oswal [Thu, 3 Nov 2011 09:19:21 +0000]
ASoC: Tegra MAX98088 machine: Add support for Tegra30 BT SCO

Bug: 862023

Change-Id: If5aaa1add08d1339a93a84c41ad1c98a24b63db5
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/62082
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R7531465a6b899b9da52a2003cd6e07afb53961bf

7 years agovideo: tegra: dc: Reduce crc_checksum_latched to proper permision.
Kevin Huang [Mon, 7 Nov 2011 05:50:58 +0000]
video: tegra: dc: Reduce crc_checksum_latched to proper permision.

Bug 891634

Change-Id: I0c9f57bd5686916856cb10e0f37d30962d7f96a7
Reviewed-on: http://git-master/r/62649
Tested-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Greg Lo <glo@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit 50d41a8261ee164ab2e980471e7dc98c2d20c859)
Reviewed-on: http://git-master/r/64807
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>

Rebase-Id: Rae56d882f233f1ac8080610d3afdfe392c956b3c

7 years agoARM: Tegra: power: T33 SKU EDP table for 10A regulator
Diwakar Tundlam [Tue, 25 Oct 2011 01:20:08 +0000]
ARM: Tegra: power: T33 SKU EDP table for 10A regulator

bug 841336

Reviewed-on: http://git-master/r/62766
(cherry picked from commit c27e091be2ec3899fbb0bdbfe199784063f24be1)

Change-Id: I40277cea7f48cc15e074123ee73287b25389c0e6
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/64211

Rebase-Id: Reef8906240656bfee07dbf9ba8f581677bad8e5f

7 years agosdhci: tegra: Add Tegra sd host init after reset
Pavan Kunapuli [Tue, 15 Nov 2011 15:33:38 +0000]
sdhci: tegra: Add Tegra sd host init after reset

Adding tegra sdhost controller initialization settings
and enabling capabilities after reset.
Changed the voltage range of SD cards to 2.7V - 3.6V to
support the entire valid voltage range rather than only
3.3V.

Bug 901938

Change-Id: Ic8dddc62ce6dfab931afbd3e68a2658dc2ec279e
Reviewed-on: http://git-master/r/64105
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Rc03308b4e2b09349e15d3855baa1c32a0f248a5b

7 years agomedia: video: tegra: ar0832: add debugfs interface
Jihoon Bang [Thu, 10 Nov 2011 21:22:03 +0000]
media: video: tegra: ar0832: add debugfs interface

Add debugfs interface to make sensor output test pattern

Bug 878677

Change-Id: I07178bd7d5331a7c1cda96f23f8df35ae326355e
Reviewed-on: http://git-master/r/63671
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Ra46f1a5567296025d918365e0de097adb52f080b

7 years agomedia: video: tegra: apply powergate based on chipset revision
Jihoon Bang [Mon, 14 Nov 2011 20:13:54 +0000]
media: video: tegra: apply powergate based on chipset revision

Apply powergate differently depending on chip revision.
Remove dependency of regulator and csi. Enable regulator when any
client asks for power. Previously regulator was enabled only when
csi was enabled.

Bug 855758
Bug 878057

Reviewed-on: http://git-master/r/59369
(cherry picked from commit 88a1aaf5b80f8a76d7f35977a189e641f8c7dcdf)

Reviewed-on: http://git-master/r/60436
(cherry picked from commit ee2605c45b481935173170f6072a32ceb7580e15)

Change-Id: I6341435223b2393f1cf071c3418fa230d8ab4440
Reviewed-on: http://git-master/r/60944
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R38b3b9673203a352b62af372e8316b2b703890fb

7 years agoarch: arm: Enable HDA on cardhu and enterprise
Sumit Bhattacharya [Fri, 21 Oct 2011 15:58:40 +0000]
arch: arm: Enable HDA on cardhu and enterprise

Bug 872652

Change-Id: I89e505f6dedbb9de1a457f797362265cf06e76bb
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/59631
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

Rebase-Id: R32ad00191e44737732e40c3710077069dee7946c

7 years agoALSA: hda: Set samplerate to Tegra HDMI driver
Sumit Bhattacharya [Fri, 21 Oct 2011 11:20:30 +0000]
ALSA: hda: Set samplerate to Tegra HDMI driver

Set playback stream samplerate to Tegra HDMI driver.

Bug 872652

Change-Id: Ie288ebf448e2000a53024e47941dfdc7aa9ce276
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/64343
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: R5f1e35081f70bcca2d6332abddda6883f883cbc8

7 years agoarm: tegra: Add HDA support
Sumit Bhattacharya [Fri, 21 Oct 2011 06:28:36 +0000]
arm: tegra: Add HDA support

Modify HDA device names to be inline with Intel HDA driver. Also
add entries for both HDA controller memory base address and HDA
controller PCI base address.
Also modify the dev_id and con_id of HDA related clocks so that
they can be used by HDA driver.

Bug 872652

Change-Id: Ifa05fe7d3d524e9ae310594a0e582c297dc52ef7
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/59506
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

Rebase-Id: R098f861d94a78a1401841b71b8c591b902b7b0bc

7 years agoasoc: tegra: Remove HDMI-SPDIF path support
Sumit Bhattacharya [Fri, 21 Oct 2011 16:38:46 +0000]
asoc: tegra: Remove HDMI-SPDIF path support

HDMI-SPDIF path is not supported on Tegra30. Remove WAR added to
make HDMI-SPDIF path partially functional.
Also remove hda2codec_2x clock access from SPDIF driver since this
is only required for HDMI-SPDIF path.

Bug 872652

Change-Id: I4b0f7666fb53fa603c293154b05aaf62bb54e1bc
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/63315
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

Rebase-Id: Refd3a2026d80c2fe0f4e3835db18a94b17eba6a9

7 years agoALSA: hda: Add Nvidia Tegra HDMI support
Sumit Bhattacharya [Tue, 8 Nov 2011 21:38:00 +0000]
ALSA: hda: Add Nvidia Tegra HDMI support

Bug 872652

Change-Id: If6ad14d210c15c8692691af699e7c4c98790a4e3
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/64337
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: R6fe8a46dea1729df7dbba25c926d6dd2b1232fc5

7 years agoALSA: hda: Add support for Tegra HDA platform driver interface
Sumit Bhattacharya [Tue, 8 Nov 2011 20:58:21 +0000]
ALSA: hda: Add support for Tegra HDA platform driver interface

Bug 872652

Change-Id: I10c18afb496a605d47a09c7c6dc924459b4728eb
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/64335
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: Rbaf53a2382f50c1a552bafd9d54840779160b055

7 years agoALSA: hda: Add hda platform driver support
Sumit Bhattacharya [Tue, 8 Nov 2011 15:35:52 +0000]
ALSA: hda: Add hda platform driver support

It is possible that some chips have a HD-audio controller which is not
installed on a PCI bus. Nvidia Tegra has Azalia HD-audio controller
but it uses proprietery interface to communicate with the controller.

This commit adds a platform driver interface support to HDA driver
which can be used by non-PCI bus based HDA controller.

Bug 872652

Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: I73fb55858387f511738a09de3f52e7d326353ebf
Reviewed-on: http://git-master/r/59504
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

Rebase-Id: R51a3866f0cb9889d947d6c7045ad7e8976cb3e69

7 years agoARM: Tegra: Don't switch to DAP2-HDA path
Sumit Bhattacharya [Tue, 15 Nov 2011 10:11:44 +0000]
ARM: Tegra: Don't switch to DAP2-HDA path

SND_HDA_CODEC_REALTEK config by default gets enabled when SND_HDA_INEL
config is enabled. Just enabling realek HDA codec compilation flag
does not mean board has same installed. Remove code which switches
DAP2-I2s21 path to DAP2-HDA based on CONFIG_SND_HDA_CODEC_REALTEK
check.

Bug 872652
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: I5334d156ed50dfa37fa4b5b6b2e1f34049b762a0
Reviewed-on: http://git-master/r/64402
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

Rebase-Id: Rd8d2a638041c18f4e04e58423a45eb4efad4c9d9

7 years agoASoC: Tegra WM8903 machine: Add support for Tegra30 BT SCO
Sumit Bhattacharya [Thu, 3 Nov 2011 07:14:55 +0000]
ASoC: Tegra WM8903 machine: Add support for Tegra30 BT SCO

Use BT SCO DAI-LINK interface for both Tegra20 and Tegra30. For Tegra30
use i2s3 for BT SCO connection.

Bug 872652
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: I93d90843133267c1aed3386de5e7d40938952f53
Reviewed-on: http://git-master/r/62051
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R9d90a88375ecd8bad6f4c39a1ce083b87751b846

7 years agoASoC: Tegra WM8903 machine: Add suppport for Tegra20 BT SCO
Sumit Bhattacharya [Mon, 24 Oct 2011 15:44:39 +0000]
ASoC: Tegra WM8903 machine: Add suppport for Tegra20 BT SCO

Add a new dai-link interface to wm8903 machine driver which can be
used for BT SCO playback and record on Tegra20. Also add code to
program Tegra20 DAS controller depending on active dai-link.

Bug 872652

Change-Id: I006a2542b20cfd94c246d19770aa836c2bbf4198
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/59060
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R36dfd3082c6119a452c0bab8858637b3f139f5e5

7 years agoASoC: Tegra: Tegra machine: Improve clk management logic
Sumit Bhattacharya [Fri, 11 Nov 2011 15:16:33 +0000]
ASoC: Tegra: Tegra machine: Improve clk management logic

Use tegra asoc util lock_rate API to lock pll_a, pll_a_out and mclk
settings whenever any DAI-link using these clocks is active. If any
dai-link fails to set clock due to another active dai-link it will
check if the current mclk rate is acceptable for it's purpose before
erroring out.

Also add  hw_param ops for SPDIF dai-link.

Bug 872652

Change-Id: I6ef1a3b69745bdf85cb88f5fbccfb05c37e33c5d
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/63856
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rdf4d19ce1ff150dd5835c891dfed0cea16150016

7 years agosdhci: Enable card clock after setting uhs mode
Pavan Kunapuli [Tue, 15 Nov 2011 15:37:34 +0000]
sdhci: Enable card clock after setting uhs mode

After setting uhs mode and preset values, enabling
only the card clock is sufficient. The host clock
and internal clocks need not be set again.

Bug 899940

Change-Id: Ie7627333e4155b695e58887f20524a13197e08e9
Reviewed-on: http://git-master/r/64485
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R8790df5e2f6d62726193c63b13cfeb8d20a564da