| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix an issue related with the offsets of the registers
- Each user (Ducati, Tesla ...) should not have its own ctx
memory since the mbox module is one for all of them. A share
ctx is created to store the needed registers when saving.
- save_context function is saving just the irqs per user and
calling the mbox_shutdown.
- restore_context function is calling the mbox_startup and
restoring just the irqs per user. mbox-startup function is
setting all the rest of the register to the original state.
There is no need to save the Messages.
Currently ipu_pm is not taking in to consideration Tesla for
disabling or not mbox.
This patch depends on the following list of patches provided
by Hari Kanigeri:
- omap:change spinlock to mutexlock
- omap:mailbox-add notification support for multiple readers
- SYSLINK:notify-adapt to new mailbox interface
Signed-off-by: Miguel Vadillo <vadillo@ti.com>
Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
Signed-off-by: Juan Gutierrez <jgutierrez@ti.com>
Signed-off-by: Paul Hunt <hunt@ti.com>
|
|
|
|
|
|
|
| |
Expose kernel methods to map a set of physical pages into TILER 1D
(reserve area + pin memory), and free those areas.
Signed-off-by: Lajos Molnar <molnar@ti.com>
|
|
|
|
|
|
|
|
|
| |
Move the virt2phys functionality into a common function,
and export it so that it can be used by different drivers.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: Mark Tyler <mark.tyler@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
|
|
|
|
|
|
|
|
| |
This patch adds a tiler notifier callback mechanism
for events. This covers file close events.
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Updated comments.
Simplified common expression when copying ioctl data.
Simplified block_info filling.
Removed unused variables, initializers, macros.
Fixed issue with registering buffer with no blocks.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
TILER: Minor comment & code cleanup
Updated header comments.
Removed extranous headers.
Made ssptr_id flag read-only, as it should not be changed once tiler
is being used.
__analize_area now returns error values.
1D stride is explicitly set to 0 by describe.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Removed unnecessary initializations.
Simplified page allocation logic by directly allocating pages
instead of going through free_page list.
Made page and memory allocation global, so that page cache can
be shared between PATs.
Now deinitialization logic works with multiple PATs.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
TILER: Simplified dmm.c
Removed unnecessary type casting.
Updated logic to common bitfield setting macro.
Removed unnecessary step-by-step register modifications.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
TILER: Cleaned up tcm API definitions.
Fixed comments.
Removed unused methods.
Removed AREA_FMT macro that caused a checkpatch failure.
Added further error checking to tcm methods.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
|
|
|
|
| |
This circumvents the idea of tilview, but is needed and omap_vout
and dss2 cannot currently share a tilview object. Once 2D areas
areas are integrated into dss2, this method can be removed.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Created tiler_view_t to abstract a view on a tiler 2d rectangle.
Manipulations include crop, rotate and mirror, and provide access
to horizontal and vertical increments to be used by other
subsystems.
Fixed issue with tiler_ops->xy that returned incorrect x, y
coordinates (it returned them thinking of an x & y-mirrored view.)
Simplified macro names in tiler-geom.c.
Separated ioctl definitions in tiler.h.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
|
|
|
| |
This is desired so that user-space components need not keep track
of the size of the buffer for unmapping.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Removed unneeded/unused macro definitions.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
TILER: Removed redundant hardcoded TILER constants.
tiler-geom.c now calculates most tiler-geometry related constants,
and exposes them to other functions via a tiler_geom structure.
Removed unused TILER calculation macros.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
TILER: Removed unnecessary adjustment by TILFMT_8BIT
Since TILFMT_8BIT is not 0, we don't need to adjust array access
by tiler format.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
TILER: Removed unused get_parent() API from TCM.
Since TILER maintains a list of blocks within TCM areas, we do not
use this method. Also, this method is only used when looking up
blocks by ssptr, which is not used by MemMgr API-s.
Originally, this method was provided to optimize this lookup.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
|
|
|
|
|
| |
Moved all non-static internal functions into a function table.
Also renamed tiler-ioctl.c to tiler-iface.c as it contains multiple
external interfaces (file & API).
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Moved file operations, buffer/process management and major kernel
API-s to tiler-ioctl.c.
Moved tiler geometric manipulations to tiler-geom.c.
Added wrappers around block manipulations so that other tiler
source files can manipulate blocks without needing to share the
main tiler mutex.
Listed non-static files in tiler-pri.h.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
|
|
|
|
|
| |
These give the optimal packings for block sizes less than 64 slots
wide.
Also added reservation ioctls.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
TILER block lookup is now based on key & id. However, it is still
possible to look up a block's key & id based on its system space
address.
Signed-off-by: Lajos Molnar <molnar@ti.com>
TILER: Added address space support for mmap.
Now each TILER buffer occupies a range of the correct size in
TILER's mmap memory space (offset + size).
Signed-off-by: Lajos Molnar <molnar@ti.com>
TILER: Added support for partial mmaping of TILER buffers
Added support for mmapping only a portion of a TILER buffer.
Also added helper functions that can be used by other drivers that
use TILER to mmap and ioremap portions of TILER blocks.
Signed-off-by: Lajos Molnar <molnar@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changed tiler_alloc/x, tiler_map/x and tiler_free APIs to use
tiler_block_t structure.
Simplified tiler_mmap using information in this structure.
Now storing and able to reconstruct exact dimension of each
allocated tiler block.
Fixed issue with virtual stride of 1D buffers when using an
offset.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
|
|
|
| |
Tiler allocations are autopacked, so these API-s are no longer
needed. For more optimal allocations, tiler_reserve and
tiler_reserve_nv12 can be used to prereserve these blocks.
Signed-off-by: Lajos Molnar <molnar@ti.com>
|
|
|
|
|
|
|
| |
This patch requires similar changes in user space API/memmgr
header files.
Signed-off-by: Lajos Molnar <molnar@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The reference count of blocks increases on alloc, and by registered
buffers that contain that block.
When all tiler drivers of a process are closed:
- blocks allocated by it are marked "freed"
- buffers registered by it are unregistered
All blocks that are no longer marked "allocated" and are not
referenced by registered buffers are actually freed.
Blocks allocated by the kernel API are tracked separately, and
are not release when tiler drivers are closed. They are only
freed using tiler_free, or when the kernel driver closes.
Fixed a bug with querying buffers by address, which did not
account for the new TCM support for 1D buffers and block management.
Added support for clearing PAT for freed blocks.
Added extended tiler kernel API-s for specifying group ids, pids,
alignment and offset.
tiler_allocx
tiler_reserve
tiler_reservex
tiler_map
tiler_mapx
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added instance support for DMM PAT programming (dmm.c)
Created TMM interface for flexible tiler memory management (PAT or not).
Added instance support to DMM PAT memory pages management (dmm_mem.c)
Removed unused get_page/free_page methods.
Fixed TILER_GET_ACC_MODE macro to return correct tiler_fmt values.
Fixed a few sizeof style errors, and simplified dmm_mem.c
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
| |
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
|
|
|
| |
Signed-off-by: David Sin <davidsin@ti.com>
TILER: Don't dereference sysptr in tiler_alloc_packed function
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
| |
Signed-off-by: David Sin <davidsin@ti.com>
|
|
|
|
|
| |
Change-Id: I4bd96e76af31d0991ce9e67b0c499f0d6f39a1a8
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
|
|
|
|
|
|
| |
This update was missing for Panda.
Signed-off-by: Xavier Boudet <x-boudet@ti.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Added most of the generic GPU initialisation code to mach-omap2.
Change-Id: I90f137c18dcb79aa9b65761147d0aedeed021a27
Signed-off-by: Tony Lofthouse <tony.lofthouse@ti.com>
Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org>
|
|
|
|
|
| |
Change-Id: I4bd96e76af31d0991ce9e67b0c499f0d6f39a1a8
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
|
|
|
|
| |
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
|
|
| |
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
|
|
| |
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
|
|
| |
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
|
|
|
|
| |
Enable the twl6040 codec on PandaBoard.
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
|
|
|
|
|
|
|
|
| |
Add platform device for DMIC codec interfaces available
in OMAP4.
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
|
|
|
|
|
|
|
| |
Add platform device for Audio Backend.
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
|
|
|
|
| |
Signed-off-by: Liam Girdwood <lrg@ti.com>
|
|
|
|
|
|
|
|
|
|
| |
bank area
Add AESS memory bank data in hwmod in order to provide memory
address information to the driver.
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: sebastien Guiriec <s-guiriec@ti.com>
|
|
|
|
| |
Signed-off-by: Liam Girdwood <lrg@ti.com>
|
|
|
|
|
|
|
| |
Configure, and enable the twl6040 codec on SDP4430.
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
|
|
|
|
|
|
|
| |
Add twl4030_vibra platform data, and the needed regulators
for twl6040 vibrator.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Allign the platform data names for twl4030 audio submodule:
twl4030_audio_data: for the core MFD driver
twl4030_codec_data: for ASoC codec driver
twl4030_vibra_data: for the input/ForceFeedback driver
To avoid breakage, change all depending drivers, files
to use the new types.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
|
|
|
|
|
|
|
|
|
| |
twl-common
Some regulator config can be moved out from board files,
since they are close to identical.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
|
|
|
|
|
|
|
|
|
| |
Reduce the amount of duplicated code by moving the common
configuration for twl4030/5030/tpsxx to the twl-common file.
Use the omap3_pmic_get_config function from board files to
properly configure the PMIC with the common fields.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
|
|
|
|
|
|
|
|
|
|
| |
Reduce the amount of duplicated code by moving the common
configuration for TWL6030 (on OMAP4 platform) to the
twl-common file.
Use the omap4_pmic_get_config function from board files to
properly configure the PMIC with the common fields.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
|
|
|
|
|
|
|
| |
Introduce a new file, which will be used to configure
common pmic (TWL) devices, regulators, and TWL audio.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
|
|
|
|
| |
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
|
|
|
|
|
| |
Without btwilink device instantiation, nothing happens on the
bluetooth side
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
|
|
|
|
|
|
|
| |
Bluetooth driver for wl12xx BT module now assumes there are more
members defined in platform_data, blows up if they aren't there.
This patch adds them.
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
|
|
|
|
|
|
|
| |
i2c_bus_num to panel_generic_dpi_data to probe the eeprom
The i2c_bus_num can be used to probe needed information from the eeprom,
like EDID from DVI monitors.
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
video output
Tested with following kernel command line arguments:
vram=32M omapfb.vram=0:8M,1:8M
The omapfb.vram is necessary to properly size the FB, else FB are
sized for a 640x480 screen, and cannot be properly re-sized afterwards.
Signed-off-by: Sebastien Jan <s-jan@ti.com>
|
|
|
|
|
|
| |
Enable basic device tree support on Pandaboard
Signed-off-by: Grant Likely <grant.likely@linaro.org>
|
|
|
|
|
|
| |
Clean up casting warning
Signed-off-by: Andy Green <andy.green@linaro.org>
|