5 years agoarm: tegra14: bbc: update core suspend about EMC rate
Vinayak Pane [Thu, 6 Jun 2013 23:07:11 +0000]
arm: tegra14: bbc: update core suspend about EMC rate

Inform LP1BB entry part about the current BBC emc floor and
the corresponding voltage required. These EMC parameters can
be used by LP1 entry low power routine to set optimal values
before entering in LP1BB hw state. The EMC parameter should
also be used by lp1bb exit routine to set the required EMC
frequency and voltage to minimize suspend-resume latency.

Bug 1270116
Bug 1301005

Change-Id: I1a979ae92fd4d579cd5ecc293f5c40203b440e4d
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/238239
(cherry picked from commit 6b083a4101c7d30dd14b391b2381ed91b938306f)
Reviewed-on: http://git-master/r/254495
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoarm: tegra14: bbc: prepare for lp1bb state
Vinayak Pane [Fri, 24 May 2013 23:54:16 +0000]
arm: tegra14: bbc: prepare for lp1bb state

There is window when BBC driver may not be aware of upcoming
paging event. During LP1BB suspend the EMC rate is used whatever
the system was using before suspend. That EMC rate may not be well
suited for BBC to operate in LP1BB state. Changing the emc clock
rate to set at the maximum floor for BBC. The LP1BB entry part
should reduce it down to the actual frequency floor.

Also for RPC request during LP1BB this new minimum floor gives a
safeguard against the resume time to raise EMC frequency.

Bug 1294872

Change-Id: I3b98cfac174f9dac12307923a1ef54c2c9430bad
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/238238
(cherry picked from commit 36a3bffaf90209f1a6b607a2a3bf581e9731ae49)
Reviewed-on: http://git-master/r/254494
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agoarm: tegra14: bb: abort suspend when IPC is pending
Vinayak Pane [Wed, 12 Jun 2013 00:06:19 +0000]
arm: tegra14: bb: abort suspend when IPC is pending

If BBC has asserted IPC interrupt then abort the system
suspend. This is to reduce the wakeup latency for BBC
requests.
Also, add function to check for pending BB IPC interrupt.

Bug 1304608

Change-Id: Ie3766ab82c9e7f359cc9866dcf7ee163ab1aabc6
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/237796
(cherry picked from commit 7d65d264cae1810faa3e8193125a0da61da8dfce)
Reviewed-on: http://git-master/r/254492
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agovideo: tegra: host: fix gk20a rail gate/ungate sequence
Mayuresh Kulkarni [Fri, 12 Jul 2013 16:53:55 +0000]
video: tegra: host: fix gk20a rail gate/ungate sequence

bug 1324512

Change-Id: I6d95c5ae454be6e5a3c377a23fc0283d576aa016
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/253397
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agovideo: tegra: host: Use dma_map_sg()
Terje Bergstrom [Thu, 25 Jul 2013 05:08:14 +0000]
video: tegra: host: Use dma_map_sg()

Use dma_map_sg_attrs() for mapping in nvhost_memmgr.c. Also remove
touching sg fields. This causes dma_address to be set to only the first
chunk, so gk20a memory management code was adjusted to deal with that.

Also sets maximum dma chunk size to biggest possible number.

Bug 1325300

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

5 years agovideo: tegra: host: Reimplement nvmap_pin in nvhost
Terje Bergstrom [Thu, 4 Apr 2013 12:31:50 +0000]
video: tegra: host: Reimplement nvmap_pin in nvhost

Reimplement mapping buffer to device memory in nvhost. This allows
separating memory areas of devices from each other.

Adds also dma parameters for each host1x device.

Bug 1259839
Bug 1174439

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

5 years agodrivers: tegra: gk20a: Add debugfs node for load
Prashant Malani [Tue, 9 Jul 2013 00:30:54 +0000]
drivers: tegra: gk20a: Add debugfs node for load

Add a debugfs node to provide load measurements
for gk20a.
This uses counters in the PMU to measure the busy
and total cycles, and calculates load using this.

Bug 1320968

Change-Id: Id66d9002b49ec787d8dc957d19826a3433415bd0
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/250476
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra: move cpu-based timers out of timer.c
Peng Du [Tue, 16 Jul 2013 03:40:52 +0000]
ARM: tegra: move cpu-based timers out of timer.c

This change cleans up timer.c by pulling out cpu-based timers
(ie. arch & twd) into their own files. timer.c now hosts code
only for the Tegra SOC timers and common init code.

Also relocated deep power down (DPD) code from timer.c to pm.c
so that it can be shared by other chip family.

Change-Id: I247e514270e5a81a5eb1bde6d7f75692cbede1f0
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/250353
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>

5 years agoarch: config: tegra enable support to debug clocks in mods config
Vivek Aseeja [Mon, 29 Jul 2013 18:04:56 +0000]
arch: config: tegra enable support to debug clocks in mods config

enable CONFIG_TEGRA_CLOCK_DEBUG_MODS support in mods defconfig

Change-Id: I781c090056075bb31732b033c96ecbe6d0ab13b9
Signed-off-by: Vivek Aseeja <vaseeja@nvidia.com>
Reviewed-on: http://git-master/r/255152
Reviewed-by: Lael Jones <lajones@nvidia.com>
Tested-by: Lael Jones <lajones@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra12: clock: Update PLLC2/3 lock timeout message
Kaz Fukuoka [Fri, 26 Jul 2013 00:27:16 +0000]
ARM: tegra12: clock: Update PLLC2/3 lock timeout message

Since PLLC2/3 lock bits may fluctuate after the lock with no adverse
functional effect, report timeout as debug (not error) print. At the
same time expand information in the message for detailed debugging.

bug 1325603
Ported from http://git-master/r/223688 (change for Tegra14)

Change-Id: I9147692e3773a56cd59c797301c7c66f911e396b
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/253878
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoARM: tegra12: Change resistor value based on reworked/nonreowrked
Rohit Vijayaraghavan [Thu, 25 Jul 2013 22:45:11 +0000]
ARM: tegra12: Change resistor value based on reworked/nonreowrked

Identify whether a reworked board or not. Then set the respective
resistors accordingly and proceed.

Bug 1325536

Signed-off-by: Rohit Vijayaraghavan <rohitv@nvidia.com>
Change-Id: I243c2e78db01b0f78c49f3053d1e89c260f4e57b
Reviewed-on: http://git-master/r/253772
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>

5 years agotlk_driver: use dma_alloc_coherent for uncached mem
Chris Johnson [Tue, 23 Jul 2013 18:20:34 +0000]
tlk_driver: use dma_alloc_coherent for uncached mem

Instead of relying on change page attribute calls, instead use DMA
routines to get uncached mem. This will go away in the near future
when we can map these buffers directly in the kernel.

Change-Id: I6a375f2b1b09f987deae8a61e0907209b90c870e
Signed-off-by: Chris Johnson <cwj@nvidia.com>
Reviewed-on: http://git-master/r/252523
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aaron Gamble <jgamble@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Aaron Gamble <jgamble@nvidia.com>

5 years agosecurity: tlk_driver: return failure for IOCTL_FILE_NEW_REQ during suspend
Varun Wadekar [Tue, 2 Jul 2013 07:26:15 +0000]
security: tlk_driver: return failure for IOCTL_FILE_NEW_REQ during suspend

The user space daemon will retry 3 times whenever it receives errors for new
requests.

Bug 1314244

Change-Id: I57f1740d7b24d2f3f3f97e7e83a5434f54d05bdb
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/244187
(cherry picked from commit 639efa238a01be8fd9debf4c8511c9eac942fc46)
Reviewed-on: http://git-master/r/249874
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Aaron Gamble <jgamble@nvidia.com>

5 years agosecurity: tlk_driver: use local stack for context save/restore
Varun Wadekar [Tue, 25 Jun 2013 05:42:35 +0000]
security: tlk_driver: use local stack for context save/restore

With secure storage there is a situation when we getback from the SMC call,
but find that the stack is completely corrupted due to SVC handling in the
kernel. To avoid such scenarios, use a local stack to save/restore our context.

Bug 1291402

Change-Id: If7d4c336aa0cc664b7c7f7134becb68d03e22ece
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/241681
(cherry picked from commit 4fb8a5f59ce565cb684d9aaa816a465d7c3a5d04)
Reviewed-on: http://git-master/r/249872
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Aaron Gamble <jgamble@nvidia.com>

5 years agotlk: New API changes for tlk
James Zhao [Fri, 7 Jun 2013 22:51:20 +0000]
tlk: New API changes for tlk

- add new parameter passing support for variable number of parameter
- some clean up of naming conventions

Bug 1310292

Change-Id: Ie9669456682fe2b85eb79a3d9cb4cbac9eba8d54
Signed-off-by: James Zhao <jamesz@nvidia.com>
Reviewed-on: http://git-master/r/239104
(cherry picked from commit da4ee985be76b4f02284510d2eb7e851fb50bc0b)
Reviewed-on: http://git-master/r/249870
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Aaron Gamble <jgamble@nvidia.com>

5 years agosecurity: nv_tee_driver: handle "daemon not present" scenario
Varun Wadekar [Wed, 12 Jun 2013 05:53:54 +0000]
security: nv_tee_driver: handle "daemon not present" scenario

During each request from the daemon, set a bit in a global variable
indicating that the daemon is alive and kicking. For each request from
secure world, check this bit to see if the daemon is present, and send
error if not present.

Bug 1291402

Change-Id: Ie8c59a465451b1781b4f379c0b6f661b05a417da
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/237850
(cherry picked from commit 205baa9bb3f4d2ba150253284ac7af9733938a01)
Reviewed-on: http://git-master/r/249869
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Aaron Gamble <jgamble@nvidia.com>

5 years agosecurity: nv_tee_driver: make wait_for_completion calls freezable
Varun Wadekar [Tue, 11 Jun 2013 10:03:20 +0000]
security: nv_tee_driver: make wait_for_completion calls freezable

Bug 1305672

Change-Id: I21efcac292bfc2001087614437a4fee68fe5db69
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/237571
(cherry picked from commit 3d8d572a2aabe7d6943cd39ce42d82394c87ff5a)
Reviewed-on: http://git-master/r/249868
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Aaron Gamble <jgamble@nvidia.com>
Reviewed-by: James Zhao <jamesz@nvidia.com>
Tested-by: James Zhao <jamesz@nvidia.com>

5 years agovideo: tegra: gk20a: add sysfs nodes.
Kevin Huang [Thu, 25 Jul 2013 18:19:01 +0000]
video: tegra: gk20a: add sysfs nodes.

Create gk20a sysfs nodes to toggle status of elcg, blcg and slcg.

Bug 1327269

Change-Id: I6c206e8ff7f8620ca960b9d7c617857cf42c36db
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/253574
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: config: tegra[3/11]: Turn off PCI VGA arbitration
Preetham Chandru R [Tue, 23 Jul 2013 11:34:57 +0000]
arm: config: tegra[3/11]: Turn off PCI VGA arbitration

Not used in tegra. With it, the driver continously
spews on console.

Bug 930042

Change-Id: If86b57b4349d23e5757ca5c8431eed0f3e431bce
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/252388
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agomfd: as3722: cache only regulator register
Laxman Dewangan [Mon, 29 Jul 2013 12:22:14 +0000]
mfd: as3722: cache only regulator register

Caching the regulator register rather than saying all registers
are non-volatile.

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

5 years agoasoc: tegra: fix Coverity issues of NULL dereference
Deepak Nibade [Mon, 29 Jul 2013 10:00:16 +0000]
asoc: tegra: fix Coverity issues of NULL dereference

- fix dereference after null check
  Coverity id : 23554
  Coverity id : 23555
- fix dereference of null return value
  Coverity id : 23338
- fix dereference before null check
  Coverity id : 23683
  Coverity id : 23684

Bug 1329327

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

5 years agoARM: tegra: powermon: Fix copyrights from GPLv3 to GPLv2
Bharat Nihalani [Tue, 23 Jul 2013 12:40:27 +0000]
ARM: tegra: powermon: Fix copyrights from GPLv3 to GPLv2

This change is done for all boards.

Change-Id: I4db494717a62fd9df366088a04245f007d4cf5b2
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/252410
(cherry picked from commit 78a94c5b80e390d63e4e240be62cb0bff1fc4cfa)
Reviewed-on: http://git-master/r/254248
Reviewed-by: Automatic_Commit_Validation_User

5 years agovideo: tegra: host: enable vic power-gating
Mayuresh Kulkarni [Wed, 24 Jul 2013 11:35:19 +0000]
video: tegra: host: enable vic power-gating

bug 1324512

Change-Id: Ibb9ff1f0b60e84752eef55cd0a1899822e65c6fb
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/253401
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: gk20a: enable ELCG with higher idle time.
Kevin Huang [Tue, 23 Jul 2013 21:39:52 +0000]
video: tegra: gk20a: enable ELCG with higher idle time.

Bug 1327269

Change-Id: I65d5e80462625cf96a9cfc05e50209f22866a2ee
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/252593
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ken Adams <kadams@nvidia.com>

5 years agoTegra12: ARM: Clocks: Update gpu clocks and voltage
Krishna Sitaraman [Fri, 19 Jul 2013 19:23:45 +0000]
Tegra12: ARM: Clocks:  Update gpu clocks and voltage

Increase gpu clock to 350Mhz and set vdd_gpu to 0.9V.

Change-Id: Id6adb4fa8790beab5971f7ec9467de130d625b9f
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/251437
(cherry picked from commit 3d16e8b0611e328ac50eebf50981a71c45b78248)
Reviewed-on: http://git-master/r/254240
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoarm: tegra: disable one shot mode for sharp 25x16
Mitch Luban [Mon, 22 Jul 2013 22:27:47 +0000]
arm: tegra: disable one shot mode for sharp 25x16

Bug 1334200

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

5 years agovideo: tegra: dsi: Fix pad disable during suspend
Animesh Kishore [Fri, 26 Jul 2013 07:45:20 +0000]
video: tegra: dsi: Fix pad disable during suspend

Replace direct register writes with correct api.

Change-Id: I0b5365083bfad410cdfba5624e683a6cc3c1210f
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/254071
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agomedia: video: tegra: ov2710: remove unused code
Deepak Nibade [Fri, 26 Jul 2013 06:37:21 +0000]
media: video: tegra: ov2710: remove unused code

- fix Coverity issue
  Coverity id : 23456

Bug 1329327

Change-Id: I7ad994db88726151b1f29139b6924d04472bbffa
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/254037
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm: tegra: ardbeg: Disable always on and boot on for avdd_dsi_csi
Animesh Kishore [Fri, 19 Jul 2013 10:56:51 +0000]
arm: tegra: ardbeg: Disable always on and boot on for avdd_dsi_csi

Bug 1325539

Change-Id: I0544443417e5e9f6639753d051bcf7f2b61fd89b
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/251317
(cherry picked from commit 82b947a4768514534ae173799152a5f2014e8412)
Reviewed-on: http://git-master/r/253961
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoarm: tegra: ardbeg: Add os idle aggressiveness for sharp 25x16
Animesh Kishore [Fri, 19 Jul 2013 10:59:04 +0000]
arm: tegra: ardbeg: Add os idle aggressiveness for sharp 25x16

Bug 1325539

Change-Id: I4defe4689253f7c16f6e59ab37e678cda1002489
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/251318
(cherry picked from commit 996a4bace62b01e3af3ac5c429673abd2301e3ce)
Reviewed-on: http://git-master/r/253960
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agovideo: tegra: dsi: Implement ganged mode os idle
Animesh Kishore [Fri, 19 Jul 2013 11:00:11 +0000]
video: tegra: dsi: Implement ganged mode os idle

- Add code for OS idle power save in ganged mode
- Turn off various pad and controller HW logic in os idle

Bug 1325539

Change-Id: I38104bd57aabd0b670c6dd8b84df43062e5cdd93
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/251319
(cherry picked from commit e557919293e17879438eaab2cb6c289ee2f1a17b)
Reviewed-on: http://git-master/r/253959
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agovideo: tegra: dc: Add clockgating to eDP and LVDS
Chao Xu [Thu, 25 Jul 2013 23:45:54 +0000]
video: tegra: dc: Add clockgating to eDP and LVDS

Change-Id: I4ed2c655b67cdde7d7fdec1fc61adc58c2684307
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/253845
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Xue Dong <xdong@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoARM: tegra: clock: Add CONFIG_TEGRA_CLOCK_DEBUG_MODS
Kaz Fukuoka [Mon, 22 Jul 2013 23:25:44 +0000]
ARM: tegra: clock: Add CONFIG_TEGRA_CLOCK_DEBUG_MODS

Add a function for clock debug and verification.
- Add CONFIG_TEGRA_CLOCK_DEBUG_MODS
- Add tegra_clk_set_max()

Change-Id: I4cc66c7ec83f08afc4275de4bb5dcdd64c7c8f25
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/253726
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoARM: tegra: clock: Update max dvfs rate
Alex Frid [Fri, 19 Jul 2013 20:48:01 +0000]
ARM: tegra: clock: Update max dvfs rate

When changing clock maximum rate via debugfs interface, update top
dvfs entry accordingly.

Change-Id: I6b7d05ad86ab3a08840cf6ac309a5f4cffa5fc78
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/253725
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Tested-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lael Jones <lajones@nvidia.com>
Tested-by: Lael Jones <lajones@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: Tegra: Re-register warning on temperature_overheat change
Diwakar Tundlam [Wed, 17 Jul 2013 22:05:48 +0000]
ARM: Tegra: Re-register warning on temperature_overheat change

Modified overheat warning message to be clearer. Use a non-modifiable
thermal trip point to handle the warning. This is bound to a cooling
device that is automatically registered.

Bug 1321177

Change-Id: I976d1bf6116b7ece3b67a7cb4efba142ef57d07d
Reviewed-on: http://git-master/r/251511
(cherry picked from commit 18ff4844f0242b5ca83ed0690bde752f67afb2c4)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/253713
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agovideo: tegra: gk20a: Add gk20a_clk_set/get_cap
Kaz Fukuoka [Wed, 17 Jul 2013 22:59:27 +0000]
video: tegra: gk20a: Add gk20a_clk_set/get_cap

Change-Id: I5fd7d9bf167e4c46c3d66bfa26ecfb3e200703bb
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/253694
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra12: clock: Fix SOR0 clock divider
Kaz Fukuoka [Wed, 17 Jul 2013 00:01:01 +0000]
ARM: tegra12: clock: Fix SOR0 clock divider

Change-Id: Ib7e3a3859877449b27f0ab51e6cb74966f231f07
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/249982
(cherry picked from commit 14492a2b718da28f02e80c6f4f5694bffeb540ab)
Reviewed-on: http://git-master/r/253662
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoconfig: tegra12: Enable SMMU
Mursalin Akon [Thu, 25 Jul 2013 17:54:22 +0000]
config: tegra12: Enable SMMU

Change-Id: I191faf2b797880a069f8e4075398832a378c7d95
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/253556
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agovideo: tegra: host: enable force context restore for vic
Mayuresh Kulkarni [Tue, 23 Jul 2013 10:49:06 +0000]
video: tegra: host: enable force context restore for vic

bug 1324512

Change-Id: I401325529ed330519a07efc972e20e216e57d350
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/253400
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: add a flag to force restore gather
Mayuresh Kulkarni [Tue, 23 Jul 2013 10:41:32 +0000]
video: tegra: host: add a flag to force restore gather

- add a flag which when set will force the restore gather
to each submit
- this is needed for some clients like VIC who lose the
information in this gather buffer on power-gating

bug 1324512

Change-Id: I22e8403a4d214d0f57e4dd555ce201580e5a5078
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/253399
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agovideo: tegra: host: change vic03 init strategy
Mayuresh Kulkarni [Wed, 24 Jul 2013 10:53:36 +0000]
video: tegra: host: change vic03 init strategy

- always call vic03_boot from nvhost_vic03_init.
- this is to ensure that we load a new instance of firmware in it.
- if suppose, before call to nvhost_vic03_deinit, it gets power-gated then
runtime pm call-back will restore it
- if user space closes the channel before it is power-gated,
it gets ready for next channel open
- add a flag to indicate that vic is booted and do not attempt
to reboot it
- fix misc issues (related to pin/unpin and cleanup)

Change-Id: I2d40aec16f21cf3c556988373de7e374663f4d0b
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/253398
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: config: Enable SMMU
Terje Bergstrom [Thu, 25 Jul 2013 08:38:34 +0000]
ARM: config: Enable SMMU

Change-Id: Iee255c91de963540fd86c67bbf0a16ee93dce12d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/253309
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>

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>