6 years agocommon: add dma_mmap_from_coherent() function
Marek Szyprowski [Fri, 23 Mar 2012 12:05:14 +0000]
common: add dma_mmap_from_coherent() function

Add a common helper for dma-mapping core for mapping a coherent buffer
to userspace.

Reported-by: Subash Patel <subashrp@gmail.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-By: Subash Patel <subash.ramaswamy@linaro.org>

6 years agoARM: dma-mapping: use PMD size for section unmap
Vitaly Andrianov [Mon, 14 May 2012 17:49:56 +0000]
ARM: dma-mapping: use PMD size for section unmap

The dma_contiguous_remap() function clears existing section maps using
the wrong size (PGDIR_SIZE instead of PMD_SIZE).  This is a bug which
does not affect non-LPAE systems, where PGDIR_SIZE and PMD_SIZE are the same.
On LPAE systems, however, this bug causes the kernel to hang at this point.

This fix has been tested on both LPAE and non-LPAE kernel builds.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

6 years agocma: fix migration mode
Minchan Kim [Fri, 11 May 2012 07:37:13 +0000]
cma: fix migration mode

__alloc_contig_migrate_range calls migrate_pages with wrong argument
for migrate_mode. Fix it.

Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Minchan Kim <minchan@kernel.org>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

6 years agoARM: integrate CMA with DMA-mapping subsystem
Marek Szyprowski [Thu, 29 Dec 2011 12:09:51 +0000]
ARM: integrate CMA with DMA-mapping subsystem

This patch adds support for CMA to dma-mapping subsystem for ARM
architecture. By default a global CMA area is used, but specific devices
are allowed to have their private memory areas if required (they can be
created with dma_declare_contiguous() function during board
initialisation).

Contiguous memory areas reserved for DMA are remapped with 2-level page
tables on boot. Once a buffer is requested, a low memory kernel mapping
is updated to to match requested memory access type.

GFP_ATOMIC allocations are performed from special pool which is created
early during boot. This way remapping page attributes is not needed on
allocation time.

CMA has been enabled unconditionally for ARMv6+ systems.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
CC: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>

Conflicts:

arch/arm/mm/mmu.c

Change-Id: I6d2b534e6ea7b1e1eb6824fa6ce554c9656963f2
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>

6 years agoX86: integrate CMA with DMA-mapping subsystem
Marek Szyprowski [Thu, 29 Dec 2011 12:09:51 +0000]
X86: integrate CMA with DMA-mapping subsystem

This patch adds support for CMA to dma-mapping subsystem for x86
architecture that uses common pci-dma/pci-nommu implementation. This
allows to test CMA on KVM/QEMU and a lot of common x86 boxes.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
CC: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>

6 years agodrivers: add Contiguous Memory Allocator
Marek Szyprowski [Thu, 29 Dec 2011 12:09:51 +0000]
drivers: add Contiguous Memory Allocator

The Contiguous Memory Allocator is a set of helper functions for DMA
mapping framework that improves allocations of contiguous memory chunks.

CMA grabs memory on system boot, marks it with MIGRATE_CMA migrate type
and gives back to the system. Kernel is allowed to allocate only movable
pages within CMA's managed memory so that it can be used for example for
page cache when DMA mapping do not use it. On
dma_alloc_from_contiguous() request such pages are migrated out of CMA
area to free required contiguous block and fulfill the request. This
allows to allocate large contiguous chunks of memory at any time
assuming that there is enough free memory available in the system.

This code is heavily based on earlier works by Michal Nazarewicz.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>

6 years agomm: trigger page reclaim in alloc_contig_range() to stabilise watermarks
Marek Szyprowski [Wed, 25 Jan 2012 11:49:24 +0000]
mm: trigger page reclaim in alloc_contig_range() to stabilise watermarks

alloc_contig_range() performs memory allocation so it also should keep
track on keeping the correct level of memory watermarks. This commit adds
a call to *_slowpath style reclaim to grab enough pages to make sure that
the final collection of contiguous pages from freelists will not starve
the system.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
CC: Michal Nazarewicz <mina86@mina86.com>
Tested-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>

6 years agomm: extract reclaim code from __alloc_pages_direct_reclaim()
Marek Szyprowski [Wed, 25 Jan 2012 11:09:52 +0000]
mm: extract reclaim code from __alloc_pages_direct_reclaim()

This patch extracts common reclaim code from __alloc_pages_direct_reclaim()
function to separate function: __perform_reclaim() which can be later used
by alloc_contig_range().

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Tested-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>

6 years agomm: Serialize access to min_free_kbytes
Mel Gorman [Mon, 25 Apr 2011 21:36:42 +0000]
mm: Serialize access to min_free_kbytes

There is a race between the min_free_kbytes sysctl, memory hotplug
and transparent hugepage support enablement.  Memory hotplug uses a
zonelists_mutex to avoid a race when building zonelists. Reuse it to
serialise watermark updates.

[a.p.zijlstra@chello.nl: Older patch fixed the race with spinlock]
Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Tested-by: Barry Song <Baohua.Song@csr.com>

6 years agomm: page_isolation: MIGRATE_CMA isolation functions added
Michal Nazarewicz [Tue, 3 Apr 2012 13:06:15 +0000]
mm: page_isolation: MIGRATE_CMA isolation functions added

This commit changes various functions that change pages and
pageblocks migrate type between MIGRATE_ISOLATE and
MIGRATE_MOVABLE in such a way as to allow to work with
MIGRATE_CMA migrate type.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Tested-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>

6 years agomm: mmzone: MIGRATE_CMA migration type added
Michal Nazarewicz [Thu, 29 Dec 2011 12:09:50 +0000]
mm: mmzone: MIGRATE_CMA migration type added

The MIGRATE_CMA migration type has two main characteristics:
(i) only movable pages can be allocated from MIGRATE_CMA
pageblocks and (ii) page allocator will never change migration
type of MIGRATE_CMA pageblocks.

This guarantees (to some degree) that page in a MIGRATE_CMA page
block can always be migrated somewhere else (unless there's no
memory left in the system).

It is designed to be used for allocating big chunks (eg. 10MiB)
of physically contiguous memory.  Once driver requests
contiguous memory, pages from MIGRATE_CMA pageblocks may be
migrated away to create a contiguous block.

To minimise number of migrations, MIGRATE_CMA migration type
is the last type tried when page allocator falls back to other
migration types when requested.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Tested-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>

6 years agomm: page_alloc: change fallbacks array handling
Michal Nazarewicz [Wed, 11 Jan 2012 14:31:33 +0000]
mm: page_alloc: change fallbacks array handling

This commit adds a row for MIGRATE_ISOLATE type to the fallbacks array
which was missing from it.  It also, changes the array traversal logic
a little making MIGRATE_RESERVE an end marker.  The letter change,
removes the implicit MIGRATE_UNMOVABLE from the end of each row which
was read by __rmqueue_fallback() function.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Tested-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>

6 years agomm: page_alloc: introduce alloc_contig_range()
Michal Nazarewicz [Thu, 29 Dec 2011 12:09:50 +0000]
mm: page_alloc: introduce alloc_contig_range()

This commit adds the alloc_contig_range() function which tries
to allocate given range of pages.  It tries to migrate all
already allocated pages that fall in the range thus freeing them.
Once all pages in the range are freed they are removed from the
buddy system thus allocated for the caller to use.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Tested-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>

6 years agomm: compaction: export some of the functions
Michal Nazarewicz [Thu, 29 Dec 2011 12:09:50 +0000]
mm: compaction: export some of the functions

This commit exports some of the functions from compaction.c file
outside of it adding their declaration into internal.h header
file so that other mm related code can use them.

This forced compaction.c to always be compiled (as opposed to being
compiled only if CONFIG_COMPACTION is defined) but as to avoid
introducing code that user did not ask for, part of the compaction.c
is now wrapped in on #ifdef.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Tested-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>

6 years agomm: compaction: introduce isolate_freepages_range()
Michal Nazarewicz [Mon, 30 Jan 2012 12:24:03 +0000]
mm: compaction: introduce isolate_freepages_range()

This commit introduces isolate_freepages_range() function which
generalises isolate_freepages_block() so that it can be used on
arbitrary PFN ranges.

isolate_freepages_block() is left with only minor changes.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Tested-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>

6 years agomm: compaction: introduce map_pages()
Michal Nazarewicz [Mon, 30 Jan 2012 12:23:47 +0000]
mm: compaction: introduce map_pages()

This commit creates a map_pages() function which map pages freed
using split_free_pages().  This merely moves some code from
isolate_freepages() so that it can be reused in other places.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>

6 years agomm: compaction: introduce isolate_migratepages_range()
Michal Nazarewicz [Mon, 30 Jan 2012 12:16:26 +0000]
mm: compaction: introduce isolate_migratepages_range()

This commit introduces isolate_migratepages_range() function which
extracts functionality from isolate_migratepages() so that it can be
used on arbitrary PFN ranges.

isolate_migratepages() function is implemented as a simple wrapper
around isolate_migratepages_range().

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Tested-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>

6 years agomm: page_alloc: remove trailing whitespace
Michal Nazarewicz [Wed, 11 Jan 2012 14:16:11 +0000]
mm: page_alloc: remove trailing whitespace

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>

6 years agoRevert "Avoid aliasing mappings in DMA coherent allocator"
Hiroshi DOYU [Fri, 13 Jul 2012 09:46:14 +0000]
Revert "Avoid aliasing mappings in DMA coherent allocator"

This reverts commit 386c5b21da6dc7b403084e0cb503f0876badd9d1.

6 years agoARM: tegra: dalmore: fix power tree entry
Laxman Dewangan [Thu, 6 Sep 2012 17:36:18 +0000]
ARM: tegra: dalmore: fix power tree entry

Following are multiple changes in dalmore power:
- Add missing entres.
- Add the device name for some of the controller rails.

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

6 years agoi2c: tegra: rename fast clock and div clock
Chaitanya Bandi [Thu, 6 Sep 2012 15:35:28 +0000]
i2c: tegra: rename fast clock and div clock

Rename fast clock to "fast-clk" and div clock to
"div-clk" in driver and clock table to have aligned
with mainline.

This is based on change:
---------
commit f16e6e77a105ec53496f0d8343895da342917873
Author: Laxman Dewangan <ldewangan@nvidia.com>
i2c: tegra: pass proper name for getting clock
---------

Change-Id: Ib3a70b7b47c38db6eba32e526137325f0b134e6b
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/130198
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: introduce board-id header
Laxman Dewangan [Thu, 30 Aug 2012 12:31:51 +0000]
ARM: tegra: introduce board-id header

In place of defining the board-id on different boardfile,
introducing the header file for all board-id.
This file will contains all Tegra board definition and
will be used across platform.

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

6 years agoARM: tegra: pluto: fix power rail entry
Laxman Dewangan [Thu, 6 Sep 2012 13:40:02 +0000]
ARM: tegra: pluto: fix power rail entry

Following are multiple changes in pluto power:
- Add missing entres.
- Add the device name for some of the controller rails.
- Clear interrupt polarity bit in PMC register.
- Fix multiple checkpatch error.

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

6 years agoarm: tegra: dalmore: Add AUO panel timing
Animesh Kishore [Tue, 4 Sep 2012 10:19:01 +0000]
arm: tegra: dalmore: Add AUO panel timing

Add panel timing info.

Bug 1028789

Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Change-Id: I5f17e36ef7cb22734303d69371c6bf167f5b62a9
Reviewed-on: http://git-master/r/130157
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: pluto: Add fb dimensions for LG panel
Animesh Kishore [Tue, 4 Sep 2012 11:20:35 +0000]
arm: tegra: pluto: Add fb dimensions for LG panel

Add fb width and height.

Bug 1028791

Change-Id: I2e40b08b9719a87ebae4fa84725b3cb619c66372
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/130149
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: fuse: rename regulator name as per chip pin name
Laxman Dewangan [Sun, 2 Sep 2012 08:55:37 +0000]
ARM: tegra: fuse: rename regulator name as per chip pin name

The pin name for fuse supply for different chip have different
name as follows:
- Tegra20 has the name as vdd_fuse.
- Tegra30 and later have the name as vpp_fuse.

Correcting name of the regulator supply and implementing same
in odm driver.

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

6 years agoarm: tegra: dalmore/pluto: Fix backlight and pwm
Animesh Kishore [Sun, 2 Sep 2012 11:09:08 +0000]
arm: tegra: dalmore/pluto: Fix backlight and pwm

Assign correct gpio to backlight enable and
internal pwm.

Bug 1017692

Change-Id: I93864612c2694c8a9fe06e01836e95c9a61cbe76
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/130139
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: config: Add tegra11 defconfig
Ramalingam C [Thu, 6 Sep 2012 11:18:45 +0000]
arm: tegra: config: Add tegra11 defconfig

Adding the L4T defconfig for the tegra11 based boards.

Change-Id: Ib71c9b01fe8f70f644483dbc7947e133a9032136
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/130128
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: config: Add Pluto and Dalmore
Ramalingam C [Thu, 6 Sep 2012 10:36:46 +0000]
arm: tegra: config: Add Pluto and Dalmore

Adding the config variables for the dalmore_t30 and pluto_t30
boards in tegra3_defconfig

Change-Id: Iaaaa949e06424a32116821952256e51b43e18737
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/130104
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra : Add IMX091 camera sensor support.
Sunil Gangele [Thu, 6 Sep 2012 08:37:34 +0000]
arm: tegra : Add IMX091 camera sensor support.

Support for IMX091 Camera sensor driver.

Bug 961418
Signed-off-by: Sunil Gangele <sgangele@nvidia.com>
Change-Id: I5b79e89f8b1733e954e418f91011c30b28f4a512
Reviewed-on: http://git-master/r/130010
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agodriver: Add IMX091 Camera sensor support in kernel.
Sunil Gangele [Thu, 6 Sep 2012 08:24:09 +0000]
driver: Add IMX091 Camera sensor support in kernel.

Support for IMX091 Camera sensor driver.

Bug 961418
Signed-off-by: Sunil Gangele <sgangele@nvidia.com>
Change-Id: I323f189b8c2dda6002e8639dd705b1bfde2cfdea
Reviewed-on: http://git-master/r/130003
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agodrivers:video:tegra: Fix CDMA timeout recovery
Arto Merilainen [Mon, 3 Sep 2012 12:48:49 +0000]
drivers:video:tegra: Fix CDMA timeout recovery

This patch fixes wait base handling in CDMA timeouts.

Bug 1025617

Change-Id: Ia93e55631c1159da161d5c4f257d3beebf0d3149
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/129973
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agovideo: tegra: host: Implement Tegra11 3D reg read
Terje Bergstrom [Mon, 3 Sep 2012 11:59:39 +0000]
video: tegra: host: Implement Tegra11 3D reg read

Implement 3D register read using Tegra11 gr3d direct to memory
write.

Bug 1038891

Change-Id: I5dc3a6cc3ce2363af4b90ba2be291da74e4541d5
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/129953
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: host: Implement Tegra3 3D reg read
Terje Bergstrom [Mon, 3 Sep 2012 11:51:04 +0000]
video: tegra: host: Implement Tegra3 3D reg read

Implement 3D register read using Tegra3 gr3d direct to memory
write.

Bug 1038891

Change-Id: I70481608f7e06280c7c1378ae5e2454fca5342ed
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/129952
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: host: Make 3D reg read device op
Terje Bergstrom [Mon, 3 Sep 2012 09:55:35 +0000]
video: tegra: host: Make 3D reg read device op

Make 3D register read an operation of the 3D device. For now,
implement it for Tegra20 and use the same implementation on other
chips.

Bug 1038891

Change-Id: Ic483d3554c5a3bad38d54043997a2a416cf37ea9
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/129951
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: host: Sync Tegra11 gr3d with Tegra3
Terje Bergstrom [Tue, 28 Aug 2012 12:19:11 +0000]
video: tegra: host: Sync Tegra11 gr3d with Tegra3

Tegra3 gr3d context switching has some fixes and changes that do not
exist yet in Tegra11:

 * FDC flush
 * Dynamic syncpt id
 * Usage of constant instead of magic numbers in reg names
 * Removal of __init on non-init functions
 * ISP channel has sync points listed
 * 2D submits are serialized
 * Some clock rates were misaligned
 * Some #include rearrangement and white space alignment

Change-Id: Id7c917a137ebf510206a94abbb7ceb1aa563a643
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/129950
Reviewed-by: Automatic_Commit_Validation_User

6 years agoRevert "video: tegra: update nvmap_alloc_handle interface"
Michal Pecio [Tue, 4 Sep 2012 22:25:40 +0000]
Revert "video: tegra: update nvmap_alloc_handle interface"

This reverts commit dc64dc2fad1856e649781298e43b5ee92357976a
and related commit cd23fcb0d3c68545ff16b24ca9df9de0531e6f68.

Reason: userspace ABI breakage.

Bug 1035482

Change-Id: I6b9aa12af782bf9b5bf172da0e9599e39ac968b7
Signed-off-by: Michal Pecio <mpecio@nvidia.com>
Reviewed-on: http://git-master/r/129881
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: Tegra3: defconfig: fix bcmdhd fw and nvram path
Syed Rafiuddin [Wed, 6 Jun 2012 04:44:09 +0000]
ARM: Tegra3: defconfig: fix bcmdhd fw and nvram path

change CONFIG_BCMDHD_FW_PATH to bcm4330/fw_bcmdhd.bin
and CONFIG_BCMDHD_NVRAM_PATH path nvram_4330.txt

Bug 976783

Change-Id: I8ff0b690201cd1bdb83329d10c1a4a9692889bb2
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/105073
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: dalmore: initialize 3rd usb port
Graziano Misuraca [Wed, 5 Sep 2012 22:16:00 +0000]
ARM: tegra: dalmore: initialize 3rd usb port

Change-Id: I74ff45003bc64eec12967c96f5a83c4f7fefb441
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/129850
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: rt5640: remove passing of regulator name
Laxman Dewangan [Fri, 31 Aug 2012 08:54:37 +0000]
ARM: tegra: rt5640: remove passing of regulator name

Hardcode the regulator name based on device pin names and
passing correct information through platform data.

Change-Id: I657bbc17626654389041f316f36ca1649757d6ff
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/129845
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoARM: tegra: fix dalmore-t114 compilation errors
aghuge [Wed, 5 Sep 2012 12:43:59 +0000]
ARM: tegra: fix dalmore-t114 compilation errors

Bug 1035282

Change-Id: I6e158ce88a8cce4818fe6ec633b1bb58564d8b18
Signed-off-by: aghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/129834
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: T114: Update tegra11_android_defconfig
aghuge [Wed, 5 Sep 2012 07:44:26 +0000]
ARM: tegra: T114: Update tegra11_android_defconfig

Change-Id: Ibbaa79718b1e81585f3fd5a827bf2d89866e45bd
Signed-off-by: aghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/129833
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra11: Remove cache initialization
Bo Yan [Wed, 29 Aug 2012 05:59:49 +0000]
ARM: tegra11: Remove cache initialization

T11x has no external L2 cache, cache initialization is unnecessary.
The required data latency has been set in bootloader and secondary
CPU startup routine before cache is enabled.

Change-Id: I2e013cc2587374af7d693990b1baf5c4e1a4cdc8
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/129832
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: dalmore: Enable display subsystem
Vineel Kumar Reddy Kovvuri [Mon, 3 Sep 2012 14:05:56 +0000]
arm: tegra: dalmore: Enable display subsystem

enabled TEGRA_PANEL_ENABLE macro

Bug 1042382

Change-Id: Iaaf434eb02e2c852ab65c3f2f63947a491fbc7a9
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/129831
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: pluto: enable 8bit mode for eMMC
Gaurav Batra [Thu, 30 Aug 2012 00:14:53 +0000]
arm: tegra: pluto: enable 8bit mode for eMMC

Change-Id: Ia46e3719915ff7d3c13ed1918df9544b3e37b6a8
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/129830
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: Tegra: Dalmore: Enable keyboard support
Graziano Misuraca [Tue, 4 Sep 2012 21:24:25 +0000]
ARM: Tegra: Dalmore: Enable keyboard support

kbc was added for dalmore but it was never actually
initialized.

Bug 1017712

Change-Id: I67609fd33b582d7e5b45de63ec351f2087eaa2af
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/129829
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: pluto: enable keyboard support
Laxman Dewangan [Fri, 31 Aug 2012 14:26:09 +0000]
ARM: tegra: pluto: enable keyboard support

Enable keyboard support by initializing require
key related driver registration.

Change-Id: I531b3ea4613541397e37ba1850a4894e9ac5984d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/129828
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoarm: tegra: pluto: Support for hdmi
Gaurav Batra [Sat, 1 Sep 2012 00:58:26 +0000]
arm: tegra: pluto: Support for hdmi

Added code for hotplug_init and postsuspend
functions for hdmi.

Change-Id: I5ac086d1581c536c5dcae761d7d60798c246080c
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/129827
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>

6 years agoarm: tegra: Add panel reset support
Animesh Kishore [Fri, 31 Aug 2012 13:38:31 +0000]
arm: tegra: Add panel reset support

Most dsi panels need to be reseted
before init.

Bug 1034528
Bug 1028791
Bug 1028790
Bug 1028789
Bug 1012298

Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Change-Id: I30d681cd9784c9d05a2b49652507b44bd8ccfa97
Reviewed-on: http://git-master/r/129826
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoMerge remote-tracking branch 'experimental/dev/android-t114-3.4-rebased' into android...
Varun Wadekar [Fri, 31 Aug 2012 07:28:23 +0000]
Merge remote-tracking branch 'experimental/dev/android-t114-3.4-rebased' into android-t114-3.4

this is part of the merge from main to dev-t114 from main-jb-2012.08.30-B4

Change-Id: I7c2e7e2d84fa37d5de754ed2f5eace7ccac37519

6 years agomfd: aic3262: Add support for HP detection
Manoj Gangwal [Thu, 30 Aug 2012 10:09:30 +0000]
mfd: aic3262: Add support for HP detection

Bug 1041365

Change-Id: Iaff67abf1e54e15bd159f4818ef1d06416234893
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/128473
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Tested-by: Scott Peterson <speterson@nvidia.com>

6 years agoasoc: aic326x codecs: Fix HP detection issue.
Manoj Gangwal [Thu, 30 Aug 2012 09:53:09 +0000]
asoc: aic326x codecs: Fix HP detection issue.

There was issue with the flags used in headset
detection function of TI codec.

Bug 1041365

Change-Id: I44c990ebbe30ebdbd79d486ce3f1f03f6c3c507e
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/128469
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Tested-by: Scott Peterson <speterson@nvidia.com>

6 years agoasoc: aic326x machine: Route voice call to asi2
Manoj Gangwal [Wed, 29 Aug 2012 13:50:53 +0000]
asoc: aic326x machine: Route voice call to asi2

Route voice call to asi2 for TAI

Bug 1034241

Change-Id: I5f6de84e6892207991d28a1d817487aa10b71099
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/128225
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoasoc: soc-dapm: Add support for TI driver
Manoj Gangwal [Wed, 22 Aug 2012 16:55:49 +0000]
asoc: soc-dapm: Add support for TI driver

Bug 1034241

Change-Id: Ie136f34030952f86244c5650bdd3844ed704d6b8
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/125283
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoarm: tegra: kai: correct compass orientation
Chandler Zhang [Tue, 28 Aug 2012 09:42:59 +0000]
arm: tegra: kai: correct compass orientation

The previous orientation matrix was incorrect and breaks compass
function.

Bug 1034522

Change-Id: I0567b512a709bd0cce8307312aee3ac386f77c1f
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/127815
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoiio:isl29028: change proximity default period.
Erik Lilliebjerg [Mon, 27 Aug 2012 13:12:06 +0000]
iio:isl29028: change proximity default period.

Changed proximity default period for the most power savings.

Bug 1013133

Change-Id: I6d96510718aff3e23e6aa560c29339494f1a7557
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/127547
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoASoC: Tegra: Add ALSA ctl to set DMA address
Sumit Bhattacharya [Mon, 27 Aug 2012 08:07:39 +0000]
ASoC: Tegra: Add ALSA ctl to set DMA address

Add support for setting of DMA address through alsa control for AVP
rendering. This is required to directly do DMA from IRAM to I2S.

Bug 1024403

Change-Id: I6b79ae6e9a562160a19d238b817e1a8b407ac208
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/127436
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Niranjan Wartikar <nwartikar@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoarm: tegra: la: Add config option for latency allowance.
Krishna Reddy [Thu, 23 Aug 2012 20:57:47 +0000]
arm: tegra: la: Add config option for latency allowance.

This allows enable/disable latency allowance.

Change-Id: Iee2cb320f40de902e0c2792c516d7ac108451224
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/126984
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: dc: fix boot issue with HDMI
Deepak Nibade [Thu, 16 Aug 2012 11:58:51 +0000]
video: tegra: dc: fix boot issue with HDMI

Set default mode for probe and resume to enable initialization of dc.1
Skipping this initialization results in hard system hang.

bug 1030415

Change-Id: Icd8fe08a7803490117ed20caf0185f5cd4fb0d0b
Reviewed-on: http://git-master/r/124001
(cherry picked from commit 50fa5e50b74a0534d7524fb6d7dcaa65b2e6e74c)
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/126782
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: nvmap: Add config to fill page pools at init.
Krishna Reddy [Mon, 23 Jul 2012 22:23:52 +0000]
video: tegra: nvmap: Add config to fill page pools at init.

This config option allows disabling page pool fill during page pool init
and avoids increase in boottime.

Change-Id: Icdffd5c3e7114d9c368c8900c53adf72be2f3462
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/123545
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: dc: move set default videomode out of _tegra_dc_enable.
Marvin Zhang [Fri, 3 Aug 2012 00:03:21 +0000]
video: tegra: dc: move set default videomode out of _tegra_dc_enable.

Set default videomode happens during probe and resume. _tegra_dc_enable
is also called during hotplug, setting default videomode there causes
hdcp test failure.

Bug 991805

Reviewed-on: http://git-master/r/121052
(cherry picked from commit 7d4e0461a88b8cf638963e69829274824fecc38b)
Change-Id: Ic71ca4df54a2c7f4a6cb2b56143cd86f718bd39e
Signed-off-by: Marvin Zhang <mzhang@nvidia.com>
Reviewed-on: http://git-master/r/121981
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoenterprise pinmux: set the pinmux for audio ports
Nikesh Oswal [Tue, 28 Aug 2012 14:21:04 +0000]
enterprise pinmux: set the pinmux for audio ports

Bug: 1039342

Change-Id: Ie96b123129dc7e78569dbfee781a717c76538668

Reviewed-on: http://git-master/r/127868
(cherry picked from commit 92f2d2099e3411dfa1966e8ead58dc5654f3124c)

Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Change-Id: Ida83875fe9dbad386f101a6aca572a6b2b7b2018
Reviewed-on: http://git-master/r/128101
Reviewed-by: Niranjan Wartikar <nwartikar@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoarm: mm: Fix cpa_lock deadlock during split_large_page.
Krishna Reddy [Tue, 24 Jul 2012 05:14:47 +0000]
arm: mm: Fix cpa_lock deadlock during split_large_page.

cpa_lock should be released before allocating memory in split_large_page.
Bug 997083

Change-Id: I262d94a1f75ebf225e5361893620f34150746313
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/120164

6 years agospi: tegra: Add stub runtime power management
Laxman Dewangan [Wed, 29 Aug 2012 11:42:05 +0000]
spi: tegra: Add stub runtime power management

Add stub runtime_pm calls which go through the flow of enabling and
disabling but don't actually do anything with the device itself as
there's nothing useful we can do. This provides the core PM framework
with information about when the device is idle, enabling chip wide
power savings.

Change-Id: Ie795c16840ccbe07e1a8bfac1a1c5a87281e6849
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/128184
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoi2c: tegra: Add stub runtime power management
Laxman Dewangan [Wed, 29 Aug 2012 10:11:37 +0000]
i2c: tegra: Add stub runtime power management

Add stub runtime_pm calls which go through the flow of enabling and
disabling but don't actually do anything with the device itself as
there's nothing useful we can do. This provides the core PM framework
with information about when the device is idle, enabling chip wide
power savings.
The change is based on change done by Mark Brown for s3c2410 i2c bus
driver.
----------
Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
    i2c-s3c2410: Add stub runtime power management
----------

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

6 years agoi2c: tegra: rename fast clock and div clock
Laxman Dewangan [Wed, 29 Aug 2012 09:49:04 +0000]
i2c: tegra: rename fast clock and div clock

Rename fast clock to "fast-clk" and div clock to
"div-clk" in driver and clock table to have aligned
with mainline as:
This is based on change:
---------
commit f16e6e77a105ec53496f0d8343895da342917873
Author: Laxman Dewangan <ldewangan@nvidia.com>
    i2c: tegra: pass proper name for getting clock
---------

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

6 years agoi2c: tegra: remove support for I2C_M_REV_DIR_ADDR
Laxman Dewangan [Wed, 29 Aug 2012 09:41:59 +0000]
i2c: tegra: remove support for I2C_M_REV_DIR_ADDR

The Tegra i2c controller actually can not support the reverse of
direction address (toggling r/w bit of address) as controller
take 7 bit address from configuration and HW make it 8 bit address
based on read/write flag.
Hence reverting this protocol mangling support.

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

6 years agovideo: tegra: host: Use unsigned integer in sysfs
Terje Bergstrom [Wed, 29 Aug 2012 05:16:09 +0000]
video: tegra: host: Use unsigned integer in sysfs

Sync point values are unsigned, but sysfs creates the text
representation as signed. Correct to use unsigned representation.

Bug 1039058

Change-Id: I96de13952eeeba9510bae179a036459ddee18dcd
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/128075
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Michal Pecio <mpecio@nvidia.com>

6 years agovideo: tegra: nvmap: wrap fast_cache_maint_outer inside its CONFIG
Varun Wadekar [Fri, 31 Aug 2012 04:33:37 +0000]
video: tegra: nvmap: wrap fast_cache_maint_outer inside its CONFIG

Use CONFIG_NVMAP_OUTER_CACHE_MAINT_BY_SET_WAYS to define
fast_cache_maint_outer().

Change-Id: I374598e3d1c10aaac3910d5477e32759cab1c7a8
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agomfd: palmas: add palmas gpio
Mallikarjun Kasoju [Thu, 30 Aug 2012 15:40:22 +0000]
mfd: palmas: add palmas gpio

Add palmas gpio numbers

BUG 982704

Change-Id: I3638dbd86dd43052db808c89363d086e2dbafec8
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/128563
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: dalmore: remove unused code for fixed regulator registartion
Laxman Dewangan [Thu, 30 Aug 2012 12:23:17 +0000]
ARM: tegra: dalmore: remove unused code for fixed regulator registartion

Remove unnecessary code when doing fixed regulator registration.

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

6 years agoARM: tegra: dalmore/pluto: Set SDMMC drive strengths
naveenk [Thu, 30 Aug 2012 14:06:02 +0000]
ARM: tegra: dalmore/pluto: Set SDMMC drive strengths

Bug 1017708

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

6 years agoarm: tegra: power detect T11x support
Bitan Biswas [Wed, 29 Aug 2012 12:55:44 +0000]
arm: tegra: power detect T11x support

Power detect and no io power chart updated for T11x

bug 1039236

Change-Id: Id669d994cc6ec140c53f4c0a5adeb9473fea7126
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/128207
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: pluto: added board KBC file
aghuge [Wed, 29 Aug 2012 12:42:32 +0000]
ARM: tegra: pluto: added board KBC file

Bug 1017712

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

6 years agoARM: tegra: pluto: sdhci device registration
naveenk [Wed, 29 Aug 2012 10:11:01 +0000]
ARM: tegra: pluto: sdhci device registration

Bug 1017708

Change-Id: I67ac76a6c69b4f1439afb93f6c5569dc6659cda2
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/128148
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: dalmore: sdhci device registration
naveenk [Wed, 29 Aug 2012 09:26:35 +0000]
ARM: tegra: dalmore: sdhci device registration

Bug 1017708

Change-Id: I17dbe98528e9fbc67f49c71d96424156676e178d
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/128145
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra11: clock: Limit EMC clock change rate
Alex Frid [Wed, 29 Aug 2012 06:36:06 +0000]
ARM: tegra11: clock: Limit EMC clock change rate

Made sure adjacent EMC clock rate changes are separated by delay of
at least 100us (necessary for ISO clients to fill FIFOs). Added
debugfs interface for delay tuning.

Bug 1009461

Change-Id: I3ce098c168db973c3843eb61850085d613f0070c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/128109
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoARM: tegra11: clock: Implement EMC set rate operation
Alex Frid [Wed, 29 Aug 2012 04:15:11 +0000]
ARM: tegra11: clock: Implement EMC set rate operation

Implemented EMC set rate operation down to final clock change
procedure. The latter is still subbed. Added respective rate stats.

Change-Id: I2bf55849824adec442f5c85fcded0e25d786c987
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/128108
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoARM: tegra11: clock: Add EPP clock for ISP channel
Terje Bergstrom [Wed, 29 Aug 2012 05:47:07 +0000]
ARM: tegra11: clock: Add EPP clock for ISP channel

Adding EPP clock is for using EPP to support rgb capture
in ISP channel.

Bug 988546

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

6 years agoARM: tegra: config: enable palmas PMIC
Pradeep Goudagunta [Thu, 30 Aug 2012 12:33:32 +0000]
ARM: tegra: config: enable palmas PMIC

-Enable palmas mfd
-Enable palamas regulator
-Enable palamas gpio

Bug 982704

Change-Id: Ic5795ccc641015b7c95343370ca0fe6e573795ab
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/127939
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agommc: sdhci: Fix sdhci clk warnings
naveenk [Thu, 30 Aug 2012 09:03:16 +0000]
mmc: sdhci: Fix sdhci clk warnings

Bug 1017708

Change-Id: Id296ed1b39d12c26109162e150d96865a2712fe4
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/128456
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoregulator: tps51632: write VMAX when lock bit is not set
Laxman Dewangan [Thu, 30 Aug 2012 08:00:01 +0000]
regulator: tps51632: write VMAX when lock bit is not set

TPS51632 hw behavior is that VMAX register can be written only
once as it get locked after first write. The lock get reset only
when device is power-reset. Write register only when lock bit is
not enabled.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I949439a0019ca44212128a23aea842d8be88523a
Reviewed-on: http://git-master/r/128445
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>

6 years agoregulator: tps51632: correct manufacturer name
Laxman Dewangan [Thu, 30 Aug 2012 07:52:11 +0000]
regulator: tps51632: correct manufacturer name

The device is from TI and hence correcting the
manufacturer name.

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

6 years agoARM: tegra: pluto: Add fixed regulator
Mallikarjun Kasoju [Thu, 30 Aug 2012 16:03:48 +0000]
ARM: tegra: pluto: Add fixed regulator

Add pluto fixed regulator

BUG 982704

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

6 years agoARM: tegra: dalmore: fill tps65090 power rails
Pradeep Goudagunta [Thu, 30 Aug 2012 10:15:46 +0000]
ARM: tegra: dalmore: fill tps65090 power rails

-Add power rails for E1612-tps65090.
-Add E1612 t30/t114 fixed regulators.
-Add supply_reg for some max77663 regulators.

Bug 982726

Change-Id: I65e3e78af64d812390ba406f37901d887cc2549a
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/127258
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: Tegra: Add audio regulators for Dalmore and Kai
Vijay Mali [Tue, 28 Aug 2012 11:49:53 +0000]
ARM: Tegra: Add audio regulators for Dalmore and Kai

Add regulator id in platform data
Pass this info to ALSA driver using platform data

Change-Id: Ia2523b934f68bec9ea9306fe93fc3000d534f0c6
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/127834
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoarm: tegra: pluto: Use tegra11 devices for T114
Chaitanya Bandi [Mon, 27 Aug 2012 14:21:23 +0000]
arm: tegra: pluto: Use tegra11 devices for T114

Using tegra11 devices for T114

Bug 1017711

Change-Id: I8b7432a712269207cf7a57a8c34f82e0a3169bd1
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/127558
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoarm: tegra: dalmore: Use tegra11 i2c devices for T114
Chaitanya Bandi [Mon, 27 Aug 2012 13:25:15 +0000]
arm: tegra: dalmore: Use tegra11 i2c devices for T114

Using tegra11 devices for T114

Bug 1017711

Change-Id: Idb59d168177b3c615db6d3b7edfe25f8086e5b36
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/127549
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra11: clock: Construct cpufreq table
Alex Frid [Sun, 26 Aug 2012 10:20:08 +0000]
ARM: tegra11: clock: Construct cpufreq table

Dynamically constructed cpufreq table based on CPU dvfs tables for
the particular chip (rather than use pre-populated tables that can
only approximate dvfs ladders for different chips within SKU range).

Change-Id: Ie86cae192000fa105f9ab10b8f370b2d8b78b521
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/127376
Reviewed-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoARM: tegra11: dvfs: Integrate estimated cvb table
Alex Frid [Sun, 26 Aug 2012 02:01:45 +0000]
ARM: tegra11: dvfs: Integrate estimated cvb table

Integrated estimated cpu cvb table. Since cvb coefficients can
be negative change the respective cvb structure types. Added
speedo and voltage scales to represent coefficients as integer
32-bit numbers.

Change-Id: I8f4b816e0a2348320117b215bdbb8a1984d466cb
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/127372
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoasoc:tegra: ALC5640 machine driver for T114
Vijay Mali [Fri, 17 Aug 2012 06:25:43 +0000]
asoc:tegra: ALC5640 machine driver for T114

Updated regulator and GPIO for dalmore

Change-Id: I20b8e453ead8b24a314d2747900ba2b96eccd541
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/124278
Reviewed-by: Scott Peterson <speterson@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoinput-cfboost: improve boost latency
Michal Pecio [Wed, 29 Aug 2012 23:52:39 +0000]
input-cfboost: improve boost latency

Place a request for one online CPU core to eliminate a 70ms delay before
transition to the G-core on Tegra3.

Change-Id: Ie81f37c0b85a574d9f1432c67818bdd4c3436c9b
Signed-off-by: Michal Pecio <mpecio@nvidia.com>
Reviewed-on: http://git-master/r/122188
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agocpufreq: add input-cfboost
Michal Pecio [Wed, 29 Aug 2012 23:40:28 +0000]
cpufreq: add input-cfboost

Add a module which can be used alongside any cpufreq governor to
temporarily raise CPU frequency upon input events.

Change-Id: Id0c69e5c7194c0e27ec176787cdc076b461d749e
Signed-off-by: Michal Pecio <mpecio@nvidia.com>
Reviewed-on: http://git-master/r/122180
Reviewed-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: curacao: Add memory board file
Alex Frid [Wed, 29 Aug 2012 01:27:45 +0000]
ARM: curacao: Add memory board file

Added memory board file with stub for EMC scaling initialization.
No actual table is provided.

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

6 years agoARM: tegra11: clock: Add EMC scaling table to platform data
Alex Frid [Tue, 28 Aug 2012 23:24:18 +0000]
ARM: tegra11: clock: Add EMC scaling table to platform data

Change-Id: I942f8932ed0c39428e28c13b79b83514d13c34a8
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/128106
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoARM: tegra11: clock: Rename and move EMC table structure
Alex Frid [Tue, 28 Aug 2012 18:29:21 +0000]
ARM: tegra11: clock: Rename and move EMC table structure

Renamed EMC clock scaling table structure, and moved its definition
to common tegra header.

Change-Id: I2b37192cb808c43588d05c6cb9bafc24abbc4933
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/128105
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoARM: tegra: clock: Add emc/mc registers definitions
Alex Frid [Tue, 28 Aug 2012 04:59:36 +0000]
ARM: tegra: clock: Add emc/mc registers definitions

Change-Id: I5ce0cbea842df7f49724cb6d12e37aaf1c6cf836
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/128104
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoMerge commit 'v3.4.10' into android-t114-3.4
Varun Wadekar [Thu, 30 Aug 2012 10:31:56 +0000]
Merge commit 'v3.4.10' into android-t114-3.4

6 years agoarm: tegra: tai: keep smps4 ON
Seema Khowala [Tue, 28 Aug 2012 23:10:58 +0000]
arm: tegra: tai: keep smps4 ON

Bug 1029431

Change-Id: I79ba7e363feeaec86912445ce005ea65a3960718
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/127994
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

6 years agoARM: tegra: tai: Add tai machine num
Seema Khowala [Tue, 28 Aug 2012 22:20:57 +0000]
ARM: tegra: tai: Add tai machine num

http://www.arm.linux.org.uk/developer/machines/list.php?id=4311
Bug 1002637

Change-Id: Id52214c1780294e4e4a6607b954c05e9be950fdd
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/127978
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>