5 years agovideo: tegra: nvmap: use dmabuf fd to share handles
Krishna Reddy [Wed, 3 Jul 2013 23:55:18 +0000]
video: tegra: nvmap: use dmabuf fd to share handles

fix incorrect error handling in nvmap_share_dmabuf.
remove unnecessary dependency on DMA_SHARED_BUFFER.
cleanup nvmap dmabuf implementation.

Change-Id: If427fb8c29116b797e7e998e1c68ff0081acc559
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/244907
(cherry picked from commit ebda92705d3f7925e9edfbda7b715f33d2d93fcf)
Reviewed-on: http://git-master/r/251670
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoarm: tegra: add Tj throttling table with PID governor
Diwakar Tundlam [Fri, 19 Jul 2013 01:01:19 +0000]
arm: tegra: add Tj throttling table with PID governor

Using previous values used in T114. Set Tj throttling to 83C.
Also fixed vdd rail init for NCT on devices with AMS PMU.

Bug 1315460

Change-Id: Ib3e32eb0be6ba267e179b9154e6f038396440e16
Reviewed-on: http://git-master/r/251513
(cherry picked from commit de27d03213145a65fd40fc21a3508ef3ab625f90)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/251106
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agomedia: video: tegra: imx132: edp support
Charlie Huang [Wed, 5 Jun 2013 19:34:46 +0000]
media: video: tegra: imx132: edp support

support edp client on imx132.

bug 1299149

Change-Id: Iafa7bd1e749b73311a98e15ebba788d83951523a
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/239822
(cherry picked from commit ace7e87d0db411479266492caf303f9057d29579)
Reviewed-on: http://git-master/r/250886
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wei Chen (Camera) <wechen@nvidia.com>
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra14: clock: Fix encoder module EMC clock mode
Mahesh Lagadapati [Fri, 21 Jun 2013 18:53:52 +0000]
ARM: tegra14: clock: Fix encoder module EMC clock mode

Encoder module EMC clock mode is not set as shared bandwidth client.
Hence changing its mode to make it shared bandwidth client.

Bug 1298224

Change-Id: I7d4566e7e795b9c346fff009b28335baae7c72fa
Signed-off-by: Mahesh Lagadapati <mlagadapati@nvidia.com>
Reviewed-on: http://git-master/r/241994
(cherry picked from commit eb8740c9172b7bb1788daa29d87156659579a653)

Signed-off-by: Mahesh Lagadapati <mlagadapati@nvidia.com>
Change-Id: I8bdb756caefb95248c869d514fe835e476733027
Reviewed-on: http://git-master/r/248473
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agovideo: tegra: nvmap: Remove 32-bit param query
Terje Bergstrom [Tue, 23 Jul 2013 12:05:08 +0000]
video: tegra: nvmap: Remove 32-bit param query

Remove nvmap_handle_get_param_u32() now that it's not used anymore.

Bug 1174439

Change-Id: Ie91545ad6e9533ad1fe798514d282419f94d8a98
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/253304
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agovideo: tegra: host: Use 64-bit safe param query
Terje Bergstrom [Tue, 23 Jul 2013 12:04:26 +0000]
video: tegra: host: Use 64-bit safe param query

Use the 64-bit safe nvmap_handle_get_param().

Bug 1174439

Change-Id: I76bf7b17d5239f0c20053d163ae00bd82838955e
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/253303
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agovideo: tegra: nvmap: Introduce 64-bit safe param query
Terje Bergstrom [Tue, 23 Jul 2013 12:03:29 +0000]
video: tegra: nvmap: Introduce 64-bit safe param query

Introduce a 64-bit safe variant of nvmap_handle_get_param_u32().

Bug 1174439

Change-Id: Ia88d8dea830a2fcb9f8d1e51c8912c2a856c60d7
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/253302
Reviewed-by: Automatic_Commit_Validation_User

5 years agovideo: tegra: remove MCLK gate from vi driver
David Schalig [Thu, 25 Jul 2013 03:55:14 +0000]
video: tegra: remove MCLK gate from vi driver

Sensor clock gate is now controlled by 'mclk'/'mclk2' virtual
clocks, which enable/disable MCLK and its gate together.
mclk/mclk2 handles are managed by the camera sensor drivers.

Bug 1298672
Bug 1306878

Change-Id: I2c6c42c3fd8c34e1d9de9d2a85cf1f309b11c084
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/253177
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pablo Ceballos <pceballos@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: Add virtual mclk for camera
David Schalig [Thu, 25 Jul 2013 03:21:24 +0000]
ARM: tegra: Add virtual mclk for camera

Add virtual clocks 'mclk' and 'mclk2' to control sensor mclk and
and its clock gate at the same time. This enables drivers to control
MCLK with only one clk handle instead of two.

mclk: controls vi_sensor + csus gate (on T20, T30, T114, T148, T124)
mclk2: controls vi_sensor2 + vim2_clk gate (on T148, T124 only)

Also remove obsolete source files.

Bug 1298672

Change-Id: I0ff210f22d2e6f023de852a169045bb2f66942e0
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/253173
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Chen <frankc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoTegra12: ARM: Voltage: Allow wider voltage for AMS regulator
Krishna Sitaraman [Thu, 18 Jul 2013 20:48:47 +0000]
Tegra12: ARM: Voltage:  Allow wider voltage for AMS regulator

This change allows wider voltages for AMS regulator for experimentation.

Change-Id: Icc292f8eb22e497e418c30284569997d3045e718
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/250927
(cherry picked from commit 220a315acae4ce6928962598b32387f546f0c552)
Reviewed-on: http://git-master/r/252980
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoarm: tegra: init laguna and ardbeg as separate devices
Mitch Luban [Wed, 24 Jul 2013 07:50:37 +0000]
arm: tegra: init laguna and ardbeg as separate devices

Need to call DT_MACHINE_START for each platform so that
ro.hardware property is set according to platform name.
This also enforces one dts file per platform.

Bug 1328162

Change-Id: Ia6091791f664d6b047fc1f69263a9f30e3fd3497
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/252797
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoARM: Tegra11: Add LPDDR3 iso emc calculator
Daniel Solomon [Tue, 23 Jul 2013 19:04:48 +0000]
ARM: Tegra11: Add LPDDR3 iso emc calculator

Add variable iso emc calculator for LPDDR3, which
returns iso emc share percentage based on requested
iso bandwidth.

Bug 1266369
Bug 1259082

Change-Id: Ie97625ca5da11baeb60988ba2c65a6db76ad0209
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
(cherry picked from commit 78bf03551e9d97f1a771a6a88138ad6cc2e9609a)
Reviewed-on: http://git-master/r/252581
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoARM: tegra: clock: Support variable iso share calculator
Daniel Solomon [Tue, 23 Jul 2013 18:59:36 +0000]
ARM: tegra: clock: Support variable iso share calculator

Added and option to calculate iso share for each use case based on
iso bw (instead of fixed share across entire bw range).

Bug 1259082

Change-Id: Ic995e445bd2daa6e02b0b247ca01ddb3d72196b1
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
(cherry picked from commit 627bc12f845b52e49b26e0cda0ba32d44e974399)
Reviewed-on: http://git-master/r/252580
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoARM: tegra: Ardbeg: Laguna: Changing LDO3 LP0 voltage
Terry Wang [Tue, 23 Jul 2013 03:23:45 +0000]
ARM: tegra: Ardbeg: Laguna: Changing LDO3 LP0 voltage

Changing ldo3 LP0 voltage from 1V to 0.8V for
Ardbeg and Laguna.

Bug 1317293

Change-Id: I91a7fce4797e76ad79cc2106a912102346dc18f2
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/251925
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoArdbeg: Laguna: Add LDO3 tracking flag for as3722
Terry Wang [Mon, 22 Jul 2013 12:13:51 +0000]
Ardbeg: Laguna: Add LDO3 tracking flag for as3722

Similar as Palmas, adding two LDO tracking flag
into board file to enable/disable LDO3 tracking
mode.

Bug 1317293

Change-Id: I0ef3c753ded30eb3d8c18791583a2267c3bfdf7f
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/251923
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoregulator: ams3722: Adding LDO3 tracking support
Terry Wang [Mon, 22 Jul 2013 11:52:58 +0000]
regulator: ams3722: Adding LDO3 tracking support

Adding ldo3 set mode functions to change LDO3 work mode
Enable ldo3 tracking mode in ams3722 probe driver.
Adding as3722 suspend driver to set ldo3 work in NMOS mode in LP0
Adding as3722 resume driver to set ldo3 work in Tracking mode out of LP0

Bug 1317293

Change-Id: Ib64808184fb125e102e97f1c7cde43914494c688
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/251918
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoTegra12: ARM: Clocks: Modify dvfs table for cpu volage scaling
Krishna Sitaraman [Tue, 16 Jul 2013 19:46:06 +0000]
Tegra12: ARM: Clocks: Modify dvfs table for cpu volage scaling

Update the cpu dvfs table to allow voltage scaling for cpu core
when using PLLX and reduce voltage margin needed.

Change-Id: Ifa47bb3b3f07b88c7dbca358f65686ca0fcafb19
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
(cherry picked from commit dbf05d8cc238f19374cd36f2c687d46520dbfbb3)
Reviewed-on: http://git-master/r/250895
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra: emc: Place BGBIAS pads in DPD
Alex Waterman [Thu, 27 Jun 2013 00:02:13 +0000]
ARM: tegra: emc: Place BGBIAS pads in DPD

This change puts the BGBIAS pad into and out of DPD depending on the
triggering mode for the external IO pads.

Bug 1217312

Reviewed-on: http://git-master/r/242651
(cherry picked from commit e67fcda76e6cfe3e3f3f5b767aab1f60ed425880)
Change-Id: Ibd715fc8a5209d6364bbb6e8ac90016ff3babdaa
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/248541
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: emc: Fix access to emc clock lock
Alex Waterman [Thu, 20 Jun 2013 22:57:49 +0000]
ARM: tegra: emc: Fix access to emc clock lock

During DSR override the clock_get_rate() function was called inside
of a spinlock. This could cause an attempt to schedule() if the emc
clock mutex was already held. This patch fixes the above problem by
knowing that the EMC clock cannot change whiel the emc access lock is
held and therefor uses clock_get_rate_all_locked() to query the EMC
rate.

Bug 1311617

Reviewed-on: http://git-master/r/241019
(cherry picked from commit 7b8d29fb9335161fd3d05528e217c5ce5ce6f3f9)
Change-Id: I4b1dbdb34f6aa79524b184d949dee0d1057bd8aa
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/248539
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: emc: Fix low speed DLL transitions
Alex Waterman [Wed, 12 Jun 2013 18:09:07 +0000]
ARM: tegra: emc: Fix low speed DLL transitions

EMC DFS was seeing some issues with the DLL at certain low speeds.
This patch fixes the issues seen with those low speed transitions. They
were:

  102 MHz -> high speed
  DLL freq -> 326.4 MHz

Reviewed-on: http://git-master/r/241017
(cherry picked from commit b4c953c341a1c1d626681a00e336ea00a4652f93)
Change-Id: Ib8d3f7cb3536b08f9bf331c04502eebc29b1183b
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/248537
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra12: pm: Add RTC to wakeups table
Prashant Malani [Tue, 23 Jul 2013 20:23:39 +0000]
ARM: tegra12: pm: Add RTC to wakeups table

For RTC based LP0 tests to work, we require
wake16, to be enabled.

Bug 1324512

Change-Id: Ie02cf5040eda97f31b1447dea0bc0202908d2d17
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/252575
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra: T124: update l4t defconfig
Bibek Basu [Fri, 19 Jul 2013 09:43:29 +0000]
ARM: tegra: T124: update l4t defconfig

Enable TAEGRA_PCI & FRAMEBUFFER_CONSOLE
Enable TEGRA_AUTO_HOTPLUG
Enable ATA & SATA_AHCI_TEGRA

Bug 1323079

Change-Id: I15975afccda4a15b618a3572e31f0bd785d1144d
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/251278
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Chetan Hooli <chooli@nvidia.com>
Tested-by: Chetan Hooli <chooli@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra: t124: laguna sensor regulator
Bibek Basu [Mon, 15 Jul 2013 11:45:29 +0000]
ARM: tegra: t124: laguna sensor regulator

Add laguna sensor regulators

Bug 1325534

Change-Id: Ib5c9b908b145d4db5cdb4b7286068888346721a6
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/251277
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoARM: tegra: laguna: update usb fixed reg
Bibek Basu [Mon, 15 Jul 2013 05:49:25 +0000]
ARM: tegra: laguna: update usb fixed reg

add support for usb_vbus1 fixed reg

Bug 1323079

Change-Id: I3bf7ae33564ee8136a1f7f9c83ae685b83af81a6
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/251276
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoARM: tegra: laguna ERS FAB B power tree
Bibek Basu [Thu, 27 Jun 2013 09:26:56 +0000]
ARM: tegra: laguna ERS FAB B power tree

Update power tree for Laguna ERS FAB B

Bug 1311809

Change-Id: Ie48934323a800bb84fbe5e357de44a3f1953d4f1
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/251275
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoARM: tegra: pm: t124: Update IO_DPD request
Kamal Kannan Balagopalan [Thu, 11 Jul 2013 00:58:21 +0000]
ARM: tegra: pm: t124: Update IO_DPD request

Keep IO_DPD requests the same as T114

Bug 1321719

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

Change-Id: I2d81ea876f93a2490d9b6d1736cf01372126a45a
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/250553
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoarm: tegra: ardbeg: Fix pwr key wake sts reporting
Kamal Kannan Balagopalan [Fri, 12 Jul 2013 23:40:29 +0000]
arm: tegra: ardbeg: Fix pwr key wake sts reporting

Incorrect wake status register was checked for power key press on
LP0 resume.

Bug 1321719

Reviewed-on: http://git-master/r/248813
(cherry picked from commit 16d4966676095954127f80602efd88aa19bfcd41)

Change-Id: Idbaf398d341b589b7bfec69b33ed6742107527f1
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/250551
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra12: pm: Clear DPD_ENABLE on LP0 exit
Kamal Kannan Balagopalan [Thu, 18 Jul 2013 05:07:46 +0000]
ARM: tegra12: pm: Clear DPD_ENABLE on LP0 exit

DPD enable needs to be cleared for subsequent LP0 sequences to
work correctly

Bug 1321719

Change-Id: Iadc3244b84b6abe5b1bec2ff972f03b3d5a48f17
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/250546
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agopower: palmas-charger: implement auto recharger after charging done
Laxman Dewangan [Wed, 3 Jul 2013 09:45:14 +0000]
power: palmas-charger: implement auto recharger after charging done

Restart charging again after sometime if the charging is
completed and charging cable is still connected.

bug 1316403

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/244699
(cherry picked from commit 6e9c36904991a4320d42233fa30903a159f13473)

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

5 years agopower: max77660-charger: implement auto recharger after charging done
Laxman Dewangan [Wed, 3 Jul 2013 09:41:36 +0000]
power: max77660-charger: implement auto recharger after charging done

Restart charging again after sometime if the charging is
completed and charging cable is still connected.

bug 1275955

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/244698
(cherry picked from commit ee18bee71a96d891b6bdd140f35309779883917d)

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

5 years agopower: battery-charger: add API to acquire/release wakelock
Laxman Dewangan [Wed, 3 Jul 2013 09:41:07 +0000]
power: battery-charger: add API to acquire/release wakelock

This is require to avoid system suspend when charging is in
progress with high current. In this case, it is is require to
acquire wakelocks.

Add APIs on battery charger framework to acquire/release the
suspend.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/244697
(cherry picked from commit bd928b9098917e5d8716e291d663e34e37f5cd5b)

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

5 years agopower: battery-charger: refactor thermal charging effect
Laxman Dewangan [Wed, 3 Jul 2013 07:24:52 +0000]
power: battery-charger: refactor thermal charging effect

For implementing the thermal effect, the battery charger driver
just need to pass the correct parameter as part of battery charger
driver registration. It need not to have thermal charger registration
and hence reduce the code.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/244667
(cherry picked from commit bde3c1327f11bae141e4b7c433c60ed367db0f97)

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

5 years agopower: battery-charger: pass driver data part of charger/gauge registration
Laxman Dewangan [Tue, 2 Jul 2013 06:58:29 +0000]
power: battery-charger: pass driver data part of charger/gauge registration

Pass the driver specific data as part of battery charger and battery gauge
driver registration.

This will simplify the registration and avoid the call of set_drvdata()
explicitly.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/244172
(cherry picked from commit f43d8265b5da40b3b3392c6a883e29061251b492)

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

5 years agopower: battery-charger: read temperature directly from thermal zone APIs
Laxman Dewangan [Tue, 2 Jul 2013 07:48:46 +0000]
power: battery-charger: read temperature directly from thermal zone APIs

In place of using the thermal zone structure member to get the temperature,
call the APIs from thermal zone to get temperature. This will protected by
lock

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/244205
(cherry picked from commit a08ec11ed71aa59e5813d52b1ede13bbcada9671)

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

5 years agopower: battery-charger: add support for restart charging
Laxman Dewangan [Tue, 2 Jul 2013 07:35:40 +0000]
power: battery-charger: add support for restart charging

Add API and framework support to re-start charging after sometime
once charger detected as the charging complete.

bug 1275955

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/244204
(cherry picked from commit 9588d11f231e78261579e969747dcd7eafcee866)

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

5 years agopower: battery-charger: implement battery temperature based charging
Laxman Dewangan [Wed, 26 Jun 2013 11:35:10 +0000]
power: battery-charger: implement battery temperature based charging

Implement the battery temperature based charging. The charging parameter
will depends on battery temperature also.

bug 1259466

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/242409
(cherry picked from commit c739f65ec4932003990085c513647efcfb94d4b1)

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

5 years agopower:palmas_battery: get battery temperature from battery gauge core
Laxman Dewangan [Wed, 26 Jun 2013 09:59:15 +0000]
power:palmas_battery: get battery temperature from battery gauge core

In place of reading the battery temperature from the ADC directly and
calculating the temp based on the ADC raw data, get the temperature
from battery gauge core driver.

bug 1259466

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/242406
(cherry picked from commit 29ddc88b6f05737173514e31ad774a22dc4e8e7a)

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

5 years agopower: battery-gauge: add API to get battery temperature
Laxman Dewangan [Wed, 26 Jun 2013 09:54:06 +0000]
power: battery-gauge: add API to get battery temperature

Add public API to get battery temperature using the thermal
zone framework.

bug 1259466

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/242405
(cherry picked from commit 332e9a4d0701f8f357f6344956c709ad59cf38ed)

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

5 years agopower: max77660-charger: register thermal charger manager
Laxman Dewangan [Thu, 25 Jul 2013 08:57:35 +0000]
power: max77660-charger: register thermal charger manager

Register to the thermal charger manager from max77660 charger
driver to manage the charging configuration based on battery
temperature.

The thermal charger keeps monitoring of battery temperature
periodically and if there is any configuration changes needed
on charger driver then it calls corresponding APIs.

bug 1259466

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/241743
(cherry picked from commit b42e309a442e28d491a9164504726e84df7ef590)

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

5 years agopower: max77660-charger-extcon: Set charging current with correct functions
Darbha Sriharsha [Thu, 25 Jul 2013 08:42:24 +0000]
power: max77660-charger-extcon: Set charging current with correct functions

Use the full_charging_current_enable and charging_current_disable
functions to set and disable charging current in the regulator
function

Bug 1284514

Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/239690
(cherry picked from commit 650c8a8431f443aac6b44641aee987134a23b6c5)

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

5 years agopower: max77660-charger-extcon: Correct dc current calculation
Darbha Sriharsha [Thu, 25 Jul 2013 08:40:22 +0000]
power: max77660-charger-extcon: Correct dc current calculation

Add lookup table and rectify function for calculation of register
values corresponding to given input current

Bug 1284514

Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/239651
(cherry picked from commit 499b101d40b6485067d07a1414e4c18bb9459ad3)

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

5 years agopower: battery-charger-gauge: Add APIs to start/stop battery thermal monitoring
Laxman Dewangan [Tue, 25 Jun 2013 07:34:40 +0000]
power: battery-charger-gauge: Add APIs to start/stop battery thermal monitoring

Add APIs to start and stop battery thermal monitoring. The charger
driver which is client of battery thermal monitoring will start
monitoring when charging cable connected and stop monitoring when
charging cable disconnected.

bug 1259466

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/241742
(cherry picked from commit 06a97a444b9358bee0a6423a3cad29b258a8e1a6)

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

5 years agopower: battery-charger: add generic charger thermal manager
Laxman Dewangan [Mon, 24 Jun 2013 14:29:31 +0000]
power: battery-charger: add generic charger thermal  manager

Add generic thermal charger manager which implements the JEITA
specs for charging. The temperature of battery is read through
thermal zone generic API and hence temperature driver need to
register himself through thermal zone.

The device specific charger driver registers with thermal charger
manager with callbacks.

Thermal charger manager keep polling of temperature and calls the
charger specific configuration for configuring the charging
parameter on device.

The thermal charger manager calls the charging specific API through
callback which were provided at the time of registration.

bug  1259466

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/241487
(cherry picked from commit dd518d54b08a088b237c60923dd429a42e3a9890)

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

5 years agopower: bq2419x-charger: remove callback API for charger status update
Laxman Dewangan [Wed, 19 Jun 2013 07:50:16 +0000]
power: bq2419x-charger: remove callback API for charger status update

Remove passing of callback APIs through platform data for updating
charging status to gauge driver as this can be achieve now with
battery-charger-gauge-comm driver.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/240073
(cherry picked from commit 3fee7cf3dffa8e197c50f7134bb9bf72ab1f7fc1)

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

5 years agopower: tps65090-charger: remove callback API for charger status update
Laxman Dewangan [Wed, 19 Jun 2013 07:49:59 +0000]
power: tps65090-charger: remove callback API for charger status update

Remove passing of callback APIs through platform data for updating
charging status to gauge driver as this can be achieve now with
battery-charger-gauge-comm driver.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/240072
(cherry picked from commit 3c65a2abf7326486bc99dc44b2895279bd2000ce)

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

5 years agopower: max77665-charger: remove callback API for charger status update
Laxman Dewangan [Wed, 19 Jun 2013 07:47:24 +0000]
power: max77665-charger: remove callback API for charger status update

Remove passing of callback APIs through platform data for updating
charging status to gauge driver as this can be achieve now with
battery-charger-gauge-comm driver.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/240071
(cherry picked from commit 3c7dd4466173676803f6eced4d36827cf1f94a75)

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

5 years agopower: sbs-battery: remove exported API for charger status update
Laxman Dewangan [Wed, 19 Jun 2013 07:46:48 +0000]
power: sbs-battery: remove exported API for charger status update

Battery gauge driver, sbs-battery, have the communication with charger
driver through battery-charger-gauge communication framework and so
no need to export the API for same purpose.

Removing the status_update() API.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/240070
(cherry picked from commit 91447f03fe459dfb74938f316fa89feb651de92f)

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

5 years agopower: max17042: remove exported API for charger status update
Laxman Dewangan [Wed, 19 Jun 2013 07:44:13 +0000]
power: max17042: remove exported API for charger status update

Battery gauge driver, MAX17042, have the communication with charger
driver through battery-charger-gauge communication framework and so
no need to export the API for same purpose.

Removing the status_update() API.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/240069
(cherry picked from commit a620a3fe3f43ea9bf1a35c027f8d9cdebce0c74f)

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

5 years agoARM: tegra: pluto/dalmore: do not pass callback for battery status update
Laxman Dewangan [Wed, 19 Jun 2013 07:41:34 +0000]
ARM: tegra: pluto/dalmore: do not pass callback for battery status update

The battery charger driver used on Pluto and Dalmore are communicating
to gauge driver through battery-charger-gauge communication and hence
no need to pass the callback APIs through platform data.

Removing the callbacks initialisation.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/240068
(cherry picked from commit fbc45a6b7f49787d862d7698662afac1132347c4)

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

5 years agovideo: tegra: dc: dont restore windows in unblank
Rakesh Iyer [Mon, 15 Jul 2013 18:41:05 +0000]
video: tegra: dc: dont restore windows in unblank

During unblank, the original framebuffer should be the window 0.
This is broken so for the short term we will keep windows unchanged
on unblank.

Bug 1299586
Bug 1329807

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

5 years agovideo: tegra: dc: global alpha initialization for fb win
Min-wuk Lee [Tue, 4 Jun 2013 06:17:23 +0000]
video: tegra: dc: global alpha initialization for fb win

Setting initial value of fb window's global alpha
to 255 is necessary in early fb register time.
The fb window is invisible without this change because
tegra_dc_ext_flip_windowattr structure is zeroed out.

Bug 1300799
Bug 1318257

Change-Id: Ia641236e82b5852141267749ec0b626ef450896a
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/235284
(cherry picked from commit c3999d502196a32383fbce0def15ec86df871529)
Reviewed-on: http://git-master/r/247790
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: pluto: memory: add table for 2GB memory
Deepak Nibade [Tue, 23 Jul 2013 13:50:32 +0000]
ARM: tegra: pluto: memory: add table for 2GB memory

- Use API memblock_phys_mem_size() to get memory size
- Based on memory size, select tables at runtime
  for 1GB or 2GB memory for board AP40

Bug 1327872

Change-Id: I89d5ac405e0c4b96d1dedca0740ad429a7551ff6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/252421
(cherry picked from commit b98e0795b726ca4c148e1089d64574aa5586e053)
Reviewed-on: http://git-master/r/253254
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoregulator: tps65090: align driver with mainline
Laxman Dewangan [Thu, 4 Jul 2013 12:50:24 +0000]
regulator: tps65090: align driver with mainline

Aligning the tps65090 regulator driver with mainline driver
with keeping additional feature like setting of wait time of FETs.

bug 1242876

Resubmitting change http://git-master/r/243422 whic was reverted due
to sanity failure due to other change.

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

5 years agoasoc: tegra: fix Coverity issues of resource leak
Deepak Nibade [Thu, 25 Jul 2013 05:55:47 +0000]
asoc: tegra: fix Coverity issues of resource leak

- add kfree in error paths which can result into
  possible memory leak
  Coverity id : 23675
  Coverity id : 23676
  Coverity id : 23747

Bug 1329327

Change-Id: Ie2f27029cd3c72cf35f29877a4935f7b22887665
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/253227
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

5 years agovideo: tegra: remove VIM2_CLK control from T148
Frank Chen [Wed, 10 Jul 2013 01:49:21 +0000]
video: tegra: remove VIM2_CLK control from T148

Sensor clock gate is now controlled by mclk virtual
driver.

Bug 1306878

Change-Id: I0aa1c6aa8c589a3d2e9e15ab413a0d348ebd9b22
Signed-off-by: Frank Chen <frankc@nvidia.com>
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/246952
(cherry picked from commit 3dd8008e1d150917f68c70abb145103ee0684bed)
Reviewed-on: http://git-master/r/253168
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra14: clock: Add virtual mclk for camera
Frank Chen [Wed, 10 Jul 2013 01:43:59 +0000]
ARM: tegra14: clock: Add virtual mclk for camera

Add a virtual clock to control sensor mclk and
clock gate.

Bug 1306878

Change-Id: I8f9ecde5e522b504df0ab66655ce5e9181106a85
Signed-off-by: Frank Chen <frankc@nvidia.com>
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/246951
(cherry picked from commit 024e9b8f3c53e0bd99d1e2e544170e8493f19b11)
Reviewed-on: http://git-master/r/253167
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

5 years agoARM: tegra: tn8 : update power rail accordingly
Ahung Cheng [Tue, 9 Jul 2013 05:56:50 +0000]
ARM: tegra: tn8 : update power rail accordingly

- Update rails - pwrdet, hdmi, backlight and ddr.
- Add smps45 constraint for vdd_gpu.
- Disable roof_floor for smps45 since external gpio control is not ready in gpu init path.
- Correct init_mode for smps10 and ldo8

Bug 1313128

Change-Id: I7f3c8cdd3b75353e008e676ff399242e1203b4ca
Signed-off-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-on: http://git-master/r/250549
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: tegra: laguna: ffd: Select native eDP for Laguna FFD
Hayden Du [Thu, 25 Jul 2013 01:02:54 +0000]
arm: tegra: laguna: ffd: Select native eDP for Laguna FFD

Change-Id: I09ea84f6d594df42870580e882b978a23b33d11b
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/253132
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra11: clock: Keep PLL_REFE enabled during init
Alex Frid [Wed, 24 Apr 2013 21:06:40 +0000]
ARM: tegra11: clock: Keep PLL_REFE enabled during init

Enabled PLL_REFE in early kernel initialization, to provide clock for
h/w sequencers initialization. PLL is disabled in late init.

Bug 1275799

Change-Id: Ie79a3f0989fb3a40714659c7ed082dce2d004d5c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/222651
(cherry picked from commit 2578047dd47e02a396f1318200e5abc79edd52be)
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/253047
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: gadget: tegra_udc: fix Coverity issues
Deepak Nibade [Wed, 24 Jul 2013 12:39:38 +0000]
usb: gadget: tegra_udc: fix Coverity issues

- fix missing NULL check which might result into
  dereferencing NULL pointer
  Coverity id : 23657
  Coverity id : 23658

Bug 1329327

Change-Id: I58621f9eb92470b3ca8007d6d9ecb430d853fa6e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/252905
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agovideo: tegra: dc: add missing break statement
Deepak Nibade [Wed, 24 Jul 2013 08:28:42 +0000]
video: tegra: dc: add missing break statement

fix Coverity issue
Coverity id : 23737

Bug 1329327

Change-Id: I57c0c61effbec506a60806b447ccd283568ba854
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/252803
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoregulator: palmas: add support to control rail through gpios
Laxman Dewangan [Tue, 23 Jul 2013 12:48:52 +0000]
regulator: palmas: add support to control rail through gpios

Add support for the enable/disable rails through GPIO by configuring
rails to external control and providing proper GPIOs number.

bug 1325148

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

5 years agoARM: tegra: laguna: Set init voltage for vdd_gpu
Pradeep Goudagunta [Thu, 11 Jul 2013 10:30:10 +0000]
ARM: tegra: laguna: Set init voltage for vdd_gpu

Set initial voltage constrain for vdd_gpu as 1V.

Bug 1321163

Change-Id: I2c7e85b78eeffd648e30399cf3f0facf263a30df
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/247791
(cherry picked from commit 3a7a2a5f66754b669b479d0895f5b5a7cf2a2544)
Reviewed-on: http://git-master/r/252330
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agovideo:tegra:gk20a: support sw methods for compute
Kirill Artamonov [Sat, 20 Jul 2013 22:56:23 +0000]
video:tegra:gk20a: support sw methods for compute

Add interrupt handler for sw compute method.

bug 1320933

Change-Id: I207ed70d292fea573ac2facc4b34122ef9eb45d5
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/251644
(cherry picked from commit d8cc83afef55c05b5299c3ccf491a66af06579f4)
Reviewed-on: http://git-master/r/251694
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo:tegra:gk20a: increase gr idle timeout
Kirill Artamonov [Sun, 21 Jul 2013 04:46:20 +0000]
video:tegra:gk20a: increase gr idle timeout

10 ms timeout can be easily exceeded by a single drawcall.
Use timeout setting defined in Kconfig for nvhost.

Fix timeout implementation for gk20a_fifo_preempt_channel.

bug 1326868
bug 1324432

Change-Id: I430ab4b1f60fd0fc5f84ace55c7f31087bd4599b
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/249964
(cherry picked from commit e7d722830705cbaef8ceb73adc21780c01182810)
Reviewed-on: http://git-master/r/251693
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo:tegra:gk20a: add debugfs knobs for gk20a
Kirill Artamonov [Wed, 10 Jul 2013 00:35:25 +0000]
video:tegra:gk20a: add debugfs knobs for gk20a

Add bool /d/gk20a/timeouts_enabled to enable timeout
detection for gr engine.

Add u32 /d/gk20a/gr_idle_timeout_default_us to tune
timeout value for gr engine.

Add u32 /d/tegra_host/timeout_default_ms to tune
timeout value for nvhost. Default timeout for jobs
in milliseconds. Set to zero for no timeout.

Change-Id: I98ecb77c070ccafbb9e1b0079a85d9a7fef2369c
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/249403
(cherry picked from commit d8658c8bcc5e7c7db6233ab3e1bb377f02f2ad41)
Reviewed-on: http://git-master/r/251692
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agomedia: video: tegra: implement PCL kerner driver
Charlie Huang [Thu, 6 Jun 2013 01:40:07 +0000]
media: video: tegra: implement PCL kerner driver

Implement unified PCL (physical camera layer) kernel driver. It will
virtualize all camera device driver to minimize kernel development.
Instead, camera devices can be configured and controlled solely from
the user space.

bug 1272149

Change-Id: I94614206e94895221e1697f65185e356887b1de3
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/243508
(cherry picked from commit a9be39befa080a7eefeb469e6a73d4e409388b0f)
Reviewed-on: http://git-master/r/247526
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoARM: tegra14: dvfs: fix thermal vdd_cpu min issue
Seshendra Gadagottu [Wed, 12 Jun 2013 19:47:01 +0000]
ARM: tegra14: dvfs: fix thermal vdd_cpu min issue

Thermal trigger points for temperature dependent minimum
voltage for vdd_cpu is not registered correctly. The issue
wrong offset is corrected.

Bug 1241396

Change-Id: I93dcd57ced90f906a318c02579900f2d6cefa773
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/239353
(cherry picked from commit 5e97c40f6f442c14ab7cec6a8100e7846e704dde)
Reviewed-on: http://git-master/r/247329
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra14: dvfs: Update 3d dvfs tables
Seshendra Gadagottu [Tue, 11 Jun 2013 02:26:46 +0000]
ARM: tegra14: dvfs: Update 3d dvfs tables

Update 3d dvfs clock tables based on latest
silicon validation data.

Bug 1246952

Change-Id: Ibe3e09e5047894b750cb1a1bd2ff7c47c8727593
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/239352
(cherry picked from commit 7618cfbdb42d40359b1b20993be3b18ada0605c2)
Reviewed-on: http://git-master/r/247328
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agomach-tegra: allow bluedroid_pm as module
Mursalin Akon [Fri, 19 Jul 2013 21:53:24 +0000]
mach-tegra: allow bluedroid_pm as module

All inclusion of platform data when
bluedroid_pm is configured as module.

Bug 1229035
Bug 1319882

Change-Id: I68cf03a9650fc9a4e97a6db5b3a0c035b5d013a8
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/251508
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoregulator: max77660: Unmask ext control only when needed
Laxman Dewangan [Mon, 22 Jul 2013 11:30:29 +0000]
regulator: max77660: Unmask ext control only when needed

In place of unmasking ext control configuration, unmask only
when it is configured through regulator platform data.

bug 1327647

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/251910
(cherry picked from commit 2de6f022e611c89ca43d19646dcb9737ac39b1f5)

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

5 years agoregulator: max77660: do not disable rail if external control
Laxman Dewangan [Wed, 24 Jul 2013 08:43:12 +0000]
regulator: max77660: do not disable rail if external control

If any rail is selected for the external control then do not
disable the rail manually.

Also enable the always-on for externally controlled rail.

Enable the full regualtor constraint to disable the unused rails.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/245102
(cherry picked from commit 00f7dd682c3ef702e4228f375b586ab590533956)

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

5 years agoARM: tegra: dalmore: sdhci platform registration
R Raj Kumar [Wed, 24 Jul 2013 05:00:37 +0000]
ARM: tegra: dalmore: sdhci platform registration

Enabled sdhci registration through platform.
Set max clock limit to 156MHz for eMMC, SD and SDIO.

Bug 1249335

Change-Id: Id4893e4117693d94dc180b05bc01fa91cb4d6f59
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/252738
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Jeetesh Burman <jburman@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agommc: tegra: full win should be 50% of partial win
R Raj Kumar [Wed, 17 Jul 2013 11:50:07 +0000]
mmc: tegra: full win should be 50% of partial win

Continue tuning procedure for full window calculation,
for the full window size is greater or equal to 50% of
partial window size, else choose partial window.

Bug 1320353

Reviewed-on: http://git-master/r/250260
(cherry picked from commit c9c82cd6ae70e5bab292680f34269f09ae7b25d4)
Change-Id: Ibe8e800cfcb106976bedd51e1be3b38fe3904d8f

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Change-Id: Iaf3fc1dad0a1ee9928ab8c8eae795db048048a8e
Reviewed-on: http://git-master/r/252339
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agommc: tegra: fix no marginal window case condition
R Raj Kumar [Mon, 15 Jul 2013 11:27:06 +0000]
mmc: tegra: fix no marginal window case condition

Fix the condition of partial window quality when there is no marginal
window for both windows.

Bug 1320353

Reviewed-on: http://git-master/r/249167
(cherry picked from commit 9c754a628a9e9469b78668ad1097b192e8d61874)
Change-Id: Ifd5f9b6db4c64182d7508bc8e09c1374cdc944fe

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Change-Id: I126d4322ea42b336d07edddf1fb75781d1ccef18
Reviewed-on: http://git-master/r/252338
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agovideo: tegra: fix gk20a space alloc
Kevin Huang [Tue, 25 Jun 2013 18:33:07 +0000]
video: tegra: fix gk20a space alloc

Validate gmmu table in buffer map.
Return offset rather than page number.

Bug 1240060.

Change-Id: I54b569ee21558025988b4cf7c8874d7924f4dc65
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/252195
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashish Srivastava <assrivastava@nvidia.com>
Tested-by: Ashish Srivastava <assrivastava@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>

5 years agoARM: tegra: ardbeg: register UTMI3 along with UTMI2
Rohith Seelaboyina [Tue, 16 Jul 2013 10:09:40 +0000]
ARM: tegra: ardbeg: register UTMI3 along with UTMI2

USB 2.0 controller registers UTMI3 along with UTMI2
as UTMI3_XUSB_PORT_OWNER bit is not allocated
through the odmdata.

Change-Id: Ib6bfc28aedbe0fef8d7a8de1e2cb19ca16cf5dca
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/249621
(cherry picked from commit 819b419d8fa4816acd5122757ac47f45294fb1c9)
Reviewed-on: http://git-master/r/251895
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: tegra: fuse: add api for chip minor revision
Naveen Kumar S [Thu, 4 Jul 2013 16:10:06 +0000]
arm: tegra: fuse: add api for chip minor revision

Added function tegra_get_minor_rev() to return minor revision number
of the chip.

Bug 1166110

Change-Id: I087331433cabb35c05fa2ce0bd53013b6fb6624f
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/245330
(cherry picked from commit f29df745d2e97c0feb5f9c195202ca55041fa14c)
Reviewed-on: http://git-master/r/251206
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: change pr_info() to pr_debug()
Shravani Dingari [Thu, 11 Jul 2013 07:11:46 +0000]
ARM: tegra: change pr_info() to pr_debug()

Use pr_debug() instead of pr_info() in
tegra_suspend_check_pwr_stats() as it is blocking
multiple lp0 entries

Bug 1234330

Change-Id: I32c202a58f6ad554efcec030a00f24dd6af52eec
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/247694
(cherry picked from commit 99fe62bebc2675d21ab4753d319d284e527eb25f)
Reviewed-on: http://git-master/r/250699
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agousb: host: tegra: fix delay in driver remove properly
Rohith Seelaboyina [Thu, 27 Jun 2013 12:40:29 +0000]
usb: host: tegra: fix delay in driver remove properly

mdelay is replaced with msleep as the earlier blocks
the cpu and a hang is observed

Bug 1299561

Change-Id: I2c644a6af95ee014a21df2ab6e5d649fc796ee3d
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/243763
(cherry picked from commit c08d3dee06dea7d01d481d1e39c7af09f055921f)
Reviewed-on: http://git-master/r/250674
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agousb: otg: tegra: enable vbus during LP0 resume
Rohith Seelaboyina [Mon, 24 Jun 2013 05:19:09 +0000]
usb: otg: tegra: enable vbus during LP0 resume

enable vbus while resuming from LP0,when ID is low
and vbus is turned before going to LP0

Bug 1298859

Change-Id: I25c03673af623c97fab53710c6de1adfc2f724b3
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/242832
(cherry picked from commit 0162d380221761e5d187521264c2d7f884af335f)
Reviewed-on: http://git-master/r/250671
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agousb: otg: tegra: disable/enable vbus based on cable status
Rohith Seelaboyina [Wed, 19 Jun 2013 08:58:33 +0000]
usb: otg: tegra: disable/enable vbus based on cable status

vbus should be enabled based on cable status after
resuming from LP0.

Bug 1298859

Change-Id: If93010b5cbdf3bf6c6e464bdf80b70362f81df7d
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/240870
(cherry picked from commit 336826534e1c0755157a179b290186532f672bd9)
Reviewed-on: http://git-master/r/250670
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: bbc: add thermal zones support
Hervé Fache [Wed, 10 Jul 2013 15:50:46 +0000]
ARM: tegra: bbc: add thermal zones support

BBC thermal information is exported as statistics.  This patch adds a
mechanism based on the modem statistics to create thermal zones for the
BBC-exported temperature sensors.

Bug 1273958

Signed-off-by: Hervé Fache <hfache@nvidia.com>
Change-Id: Id75d9be803a12c39717cfedb53022eeffbf8c239
Reviewed-on: http://git-master/r/247922
(cherry picked from commit f33ea45f628d1fd6c984d4c69512d7090012d22c)
Reviewed-on: http://git-master/r/250665
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agousb: gadget: tegra: add error check conditions
Rohith Seelaboyina [Wed, 10 Jul 2013 06:49:33 +0000]
usb: gadget: tegra: add error check conditions

Add error check conditions for dma_map_single_attrs
we cannot assume they are successfull everytime.

Bug 1320592

Change-Id: I48aeb9d753f8d9a4a11028e3304a72651535dcfe
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/248313
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: tegra12: enable MC domains
Prashant Gaikwad [Tue, 16 Jul 2013 09:06:28 +0000]
arm: tegra12: enable MC domains

Bug 1307958

Change-Id: If52a863cf3d0f2018b8568d06bc6e736912a7732
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/252275
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoarm: tegra: add t124 specific devices to MC domain
Prashant Gaikwad [Tue, 16 Jul 2013 08:31:57 +0000]
arm: tegra: add t124 specific devices to MC domain

Bug 1307958

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

5 years agodma: tegra: add dma device to MC clock domain
Prashant Gaikwad [Tue, 16 Jul 2013 08:34:34 +0000]
dma: tegra: add dma device to MC clock domain

Bug 1307958

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

5 years agoarm: tegra: use new SMC call for SoC idle state
Prashant Gaikwad [Tue, 9 Jul 2013 07:00:38 +0000]
arm: tegra: use new SMC call for SoC idle state

Bug 1276819

Change-Id: I0b09b8ac73697f11234feab6f414e41e01f7815f
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/246526
(cherry picked from commit a47d87b3baa53cb9096c17358c0289874bc189b1)
Reviewed-on: http://git-master/r/252272
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoarm: tegra: instead of false return real wakeup status
Prashant Gaikwad [Wed, 10 Jul 2013 05:46:55 +0000]
arm: tegra: instead of false return real wakeup status

Gen PD uses active wakeup status to decide if resume is
required or not. Return value of dev_may_wakeup which will
make sure that resume is called for all devices in MC clock
domain.

Change-Id: Id04dab8ccfd275af121c86d2003a721c2366868c
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/247024
(cherry picked from commit 60046f0e80b74b4e7f466a25a76245cedf775652)
Reviewed-on: http://git-master/r/252271
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: host: tegra: remove device from domain when unplugged
Prashant Gaikwad [Tue, 9 Jul 2013 09:41:34 +0000]
usb: host: tegra: remove device from domain when unplugged

Change-Id: I62e23e41f7194d3c608f15f0bc1f8bae33b7d210
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/246613
(cherry picked from commit cc4203d0988653eeb7f7cccd68d8bb6494660f9c)
Reviewed-on: http://git-master/r/252270
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoarm: tegra: add api to remove device from domain
Prashant Gaikwad [Tue, 9 Jul 2013 09:40:15 +0000]
arm: tegra: add api to remove device from domain

Change-Id: Idfd4b1f91e714dc0368c75214020667a542234ec
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/246612
(cherry picked from commit 76fb4be18abdc47c24952985b8293a52d03e1aab)
Reviewed-on: http://git-master/r/252269
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: add usb ehci and xhci to mc domain
Prashant Gaikwad [Tue, 9 Jul 2013 08:59:15 +0000]
arm: tegra: add usb ehci and xhci to mc domain

Add USB EHCI and XHCI devices to MC clock domain
which controls SoC idle state.

Change-Id: I9b7bd1f0f0feee6d93fe61eb15fd6b50d0627836
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/246580
(cherry picked from commit 9c7641bccb503817b03a9730a4c8413c57c2e17e)
Reviewed-on: http://git-master/r/252268
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: resume device only if floor is not already set
Prashant Gaikwad [Wed, 26 Jun 2013 14:47:35 +0000]
arm: tegra: resume device only if floor is not already set

Bug 1304124

Change-Id: Iad4fe7df0c1749c462cd7de155fa5ecde23f5e28
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/242469
(cherry picked from commit 85ca483b895cfe7c91fc4ff49d17d0adb11fcfcf)
Reviewed-on: http://git-master/r/252267
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: add stub runtime PM for BB
Prashant Gaikwad [Tue, 16 Jul 2013 08:45:32 +0000]
arm: tegra: add stub runtime PM for BB

When modem is active device can not enter SoC idle
state. Add stub runtime PM to notify the BB state
to MC clock domain.

Bug 1304124

Change-Id: I37ad5236706d9b765c5ca64b79bc6c3153e98908
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/241947
(cherry picked from commit 65da4905194c6ecdd91e7cd1fa7e25b68ea01f99)
Reviewed-on: http://git-master/r/252266
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: Use rcuidle trace in idle
Prashant Gaikwad [Wed, 10 Apr 2013 06:34:25 +0000]
arm: tegra: Use rcuidle trace in idle

Change-Id: I8a05e20702a30b9afb92056949ace68499692f97
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/218114
(cherry picked from commit 4e486faa12bc5f465de1fabc1846cc28e03d27f7)
Reviewed-on: http://git-master/r/252265
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoarm: tegra: Disable EMC clock in SoC idle state
Prashant Gaikwad [Thu, 25 Apr 2013 12:34:56 +0000]
arm: tegra: Disable EMC clock in SoC idle state

Bug 1294838

Change-Id: I8ba04077b20588b0e9f092ef164712f053b70b8f
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/237510
(cherry picked from commit 22a87133ad417f2cd69e4d83b5fcb84e0ac64ae1)
Reviewed-on: http://git-master/r/252264
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoARM: tegra: common: powergate xusb partitions by default
Bharath Yadav [Wed, 10 Jul 2013 07:26:08 +0000]
ARM: tegra: common: powergate xusb partitions by default

Bug 1320971

Change-Id: Ifbcdac599846ccfedde1cf812b16c545d78e0d86
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Reviewed-on: http://git-master/r/252206
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoARM: tegra12: Enable CPU boost for USB
Rakesh Bodla [Tue, 23 Jul 2013 05:24:08 +0000]
ARM: tegra12: Enable CPU boost for USB

Enabling the CPU boost during USB transfers
for USB performance.

Change-Id: I9f5eed45bbe8234a606d6e2c2a9f6f22c9cf6a66
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/252231
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agovideo: tegra: dc: Fix blending updates
Rakesh Iyer [Tue, 23 Jul 2013 00:14:05 +0000]
video: tegra: dc: Fix blending updates

For gen2 blending, change in the global alpha needs rewrite to blending regs.

Bug 1329268.

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

5 years agoARM: tegra12: clock: Fix LP0 resume hangup at PLL
Kaz Fukuoka [Thu, 11 Jul 2013 22:26:45 +0000]
ARM: tegra12: clock: Fix LP0 resume hangup at PLL

LP0 resume hanged up where PLL functions tried to print error
message when UART clock is still turned off. Fixed as follows.

- Initialize PLLC4, PLLD2, PLLDP with valid frequencies.
- Remove debug print in clk_set in those PLLs.

bug 1322653

Change-Id: I24bbb5261b00f8fa52638c19835d2e94b9c20b05
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/248062
(cherry picked from commit 5a832c6dfc870e0a6c5d099c34441b561e765361)
Reviewed-on: http://git-master/r/252090
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>