aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
Commit message (Collapse)AuthorAge
...
* omap:mbox: save and restore supportMiguel Vadillo2012-08-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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>
* OMAP: TILER: Expose 1D mapping/unmapping operationsLajos Molnar2012-08-17
| | | | | | | 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>
* TILER: Add tiler_virt2phys functionSuman Anna2012-08-17
| | | | | | | | | 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>
* TILER: Notifier callback mechanism for eventsAngela Stegmaier2012-08-17
| | | | | | | | 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>
* TILER: Cleaned up tiler-iface.c and tiler.h, _tiler.hLajos Molnar2012-08-17
| | | | | | | | | | | | | | | | | | | | | | | | | 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>
* TILER: Cleaned up tmm-pat.cLajos Molnar2012-08-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* TILER: Added tilview_create to create views from a pointer.Lajos Molnar2012-08-17
| | | | | | | | | 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>
* TILER: Better abstracted geometric manipulations.Lajos Molnar2012-08-17
| | | | | | | | | | | | | | | | | 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>
* TILER: Make URBUF return the length of the buffer unregistered.Lajos Molnar2012-08-17
| | | | | | | | 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>
* TILER: Removed unused DMM macro definitionsLajos Molnar2012-08-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* TILER: Use function table for non-static methods.Lajos Molnar2012-08-17
| | | | | | | | | | 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>
* TILER: Detailed reorganization of tiler driverLajos Molnar2012-08-17
| | | | | | | | | | | | | | | | 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>
* TILER: Added close to optimal NV12 packing reservation logic.Lajos Molnar2012-08-17
| | | | | | | | | | 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: Added key-id enforcement.Lajos Molnar2012-08-17
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* TILER: Update to v2.0 kernel API, remove d2cmap limitationLajos Molnar2012-08-17
| | | | | | | | | | | | | | | | 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: Remove tiler_pack_alloc and tiler_pack_alloc_nv12 APIsLajos Molnar2012-08-17
| | | | | | | | 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>
* TILER: Updated to v2.0 userspace API.Lajos Molnar2012-08-17
| | | | | | | This patch requires similar changes in user space API/memmgr header files. Signed-off-by: Lajos Molnar <molnar@ti.com>
* TILER: Added reference counting and cleanup. Fixed query bugs.Lajos Molnar2012-08-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* TILER: Added support for multiple containers and PAT instances.Lajos Molnar2012-08-17
| | | | | | | | | | | | 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>
* TILER: Export latest DMM header to mach directoryDavid Sin2012-08-17
| | | | Signed-off-by: David Sin <davidsin@ti.com>
* TILER: Correct rot/pack API mismatches; Add missing API prototypesDavid Sin2012-08-17
| | | | | | | | 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>
* TILER: Add DMM/TILER headers to OMAP include dirDavid Sin2012-08-17
| | | | Signed-off-by: David Sin <davidsin@ti.com>
* Kernel changes for hwmod and omap_device initialization for GPU.Hemant Hariyani2012-08-17
| | | | | Change-Id: I4bd96e76af31d0991ce9e67b0c499f0d6f39a1a8 Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
* DSS2: Adding i2c_bus_num to panel_generic_dpi_data to probe the eeprom for pandaXavier Boudet2012-08-17
| | | | | | This update was missing for Panda. Signed-off-by: Xavier Boudet <x-boudet@ti.com>
* OMAP4: SGX-KM: Enable SGX initialisationVikram Pandita2012-08-17
| | | | | | | | | | | 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>
* Kernel changes for hwmod and omap_device initialization for GPU.Hemant Hariyani2012-08-17
| | | | | Change-Id: I4bd96e76af31d0991ce9e67b0c499f0d6f39a1a8 Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
* omap2 panda hdmi audio use new resource schemeAndy Green2012-08-17
| | | | Signed-off-by: Andy Green <andy.green@linaro.org>
* omap dss hdmi make hdmi default portAndy Green2012-08-17
| | | | Signed-off-by: Andy Green <andy.green@linaro.org>
* omap2 panda add hdmi deviceAndy Green2012-08-17
| | | | Signed-off-by: Andy Green <andy.green@linaro.org>
* omap panda remove stray audio conf callAndy Green2012-08-17
| | | | Signed-off-by: Andy Green <andy.green@linaro.org>
* Subject: [PATCH 103/104] OMAP4: Panda: Add twl6040 codec platform supportJassi Brar2012-08-17
| | | | | | Enable the twl6040 codec on PandaBoard. Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
* Subject: [PATCH 066/104] OMAP4: DMIC: Add DMIC codec platform deviceLiam Girdwood2012-08-17
| | | | | | | | 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>
* Subject: [PATCH 065/104] OMAP4: ABE: Add ABE platform deviceLiam Girdwood2012-08-17
| | | | | | | Add platform device for Audio Backend. Signed-off-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* Subject: [PATCH 064/104] OMAP: hwmod - enable mcpdm hwmod device.Liam Girdwood2012-08-17
| | | | Signed-off-by: Liam Girdwood <lrg@ti.com>
* Subject: [PATCH 063/104] OMAP4: hwmod data: Update AESS data with memory ↵Sebastien Guiriec2012-08-17
| | | | | | | | | | 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>
* Subject: [PATCH 062/104] OMAP4: hwmod - enable AESS hwmod device.Liam Girdwood2012-08-17
| | | | Signed-off-by: Liam Girdwood <lrg@ti.com>
* Subject: [PATCH 053/104] OMAP4: SDP4430: Add twl6040 codec platform supportMisael Lopez Cruz2012-08-17
| | | | | | | 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>
* Subject: [PATCH 047/104] OMAP4: SDP4430: Add twl6040 vibrator platform supportPeter Ujfalusi2012-08-17
| | | | | | | Add twl4030_vibra platform data, and the needed regulators for twl6040 vibrator. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
* Subject: [PATCH 042/104] MFD: twl4030-audio: Rename platform dataPeter Ujfalusi2012-08-17
| | | | | | | | | | | | 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>
* Subject: [PATCH 040/104] OMAP3: Move common regulator configuration to ↵Peter Ujfalusi2012-08-17
| | | | | | | | | 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>
* Subject: [PATCH 039/104] OMAP3: Move common twl configuration to twl-commonPeter Ujfalusi2012-08-17
| | | | | | | | | 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>
* Subject: [PATCH 038/104] OMAP4: Move common twl6030 configuration to twl-commonPeter Ujfalusi2012-08-17
| | | | | | | | | | 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>
* Subject: [PATCH 037/104] OMAP: New twl-common for common TWL configurationPeter Ujfalusi2012-08-17
| | | | | | | 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>
* omap2 panda kim suspend resume stubsAndy Green2012-08-17
| | | | Signed-off-by: Andy Green <andy.green@linaro.org>
* omap2 panda add btwilink deviceAndy Green2012-08-17
| | | | | | | Without btwilink device instantiation, nothing happens on the bluetooth side Signed-off-by: Andy Green <andy.green@linaro.org>
* omap2 panda upgrade bluetooth supportAndy Green2012-08-17
| | | | | | | | | 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>
* Subject: [PATCH 20/21] Subject: [PATCH 18/19] OMAP2: DSS2: Adding ↵Jassi Brar2012-08-17
| | | | | | | | | 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>
* Subject: [PATCH 19/21] Subject: [PATCH 19/19] panda: select HDMI as default ↵Sebastien Jan2012-08-17
| | | | | | | | | | | | 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>
* Subject: [PATCH 1/3] arm/dt: Add Pandaboard devicetree supportGrant Likely2012-08-17
| | | | | | Enable basic device tree support on Pandaboard Signed-off-by: Grant Likely <grant.likely@linaro.org>
* OMAP2+: PANDA: Clean up casting warning on MAC setting codeAndy Green2012-08-17
| | | | | | Clean up casting warning Signed-off-by: Andy Green <andy.green@linaro.org>