[RFC 0/5] OMAP groundwork for IOMMU-based DMA API

2011-09-25 Thread Ohad Ben-Cohen
Another step towards generic IOMMU support on OMAP: eliminating the public omap-specific find_iommu_device API. Instead, we now bind iommu clients with their respective iommu device using a private iommu member which is added to ARM's dev_archdata. With this in hand, generic IOMMU API users will

[RFC 1/5] ARM: dev_archdata: add private iommu extension

2011-09-25 Thread Ohad Ben-Cohen
Add a private iommu pointer to the ARM-specific arch data in the device struct, which will be used to attach iommu-specific data to devices which require iommu support. Different iommu implementations (on different platforms) will attach different types of data to this pointer, so 'void *' is curr

[RFC 2/5] ARM: OMAP: omap_device: add a method to set iommu private archdata

2011-09-25 Thread Ohad Ben-Cohen
Make it possible to set an iommu private archdata before a newly-created omap device is registered. Binding iommu client devices with their respective iommu data this way is needed so the generic IOMMU API can later be used without employing any omap-specific IOMMU plumbing. This patch just crude

[RFC 3/5] ARM: OMAP: iommu: declare a private iommu binding struct

2011-09-25 Thread Ohad Ben-Cohen
Declare an omap iommu private struct, which binds an iommu user to its iommu device. This struct should be placed at the iommu user's dev_archdata so generic IOMMU API can be used without having to utilize omap-specific plumbing anymore. While at it, provide an accessor method to ease the retrieva

[RFC 5/5] iommu/omap: eliminate the public omap_find_iommu_device() method

2011-09-25 Thread Ohad Ben-Cohen
Eliminate the public omap_find_iommu_device() method, and don't expect clients to provide the omap_iommu handle anymore. Instead, OMAP's iommu driver should now utilize dev_archdata's private iommu extension to be able to access the required iommu information. Update omap3isp appropriately. Sign

[RFC 4/5] ARM: OMAP3: bind omap3isp_device to its iommu device

2011-09-25 Thread Ohad Ben-Cohen
Bind OMAP3's isp device to the isp's dedicated iommu, by setting the device's archdata iommu member. This way omap3isp will be able to use the generic IOMMU API without having to call any omap-specific binding method. Signed-off-by: Ohad Ben-Cohen Cc: Tony Lindgren Cc: Laurent Pinchart --- ar

Re: [PATCH 4/5] ispccdc: Configure CCDC_SYN_MODE register for UYVY8_2X8 and YUYV8_2X8 formats

2011-09-25 Thread Sakari Ailus
On Wed, Sep 21, 2011 at 11:06:41AM +0200, Laurent Pinchart wrote: > Hi Deepthy, Hi, (Dropped most of people and lists from cc. I don't think Andrew Morton, for example, has immediate interest towards this topic. Feel free to prome me wrong.) > On Wednesday 21 September 2011 07:32:44 Ravi, Deepth

Re: [PATCH 3/6] OMAP4460: Temperature sensor data

2011-09-25 Thread J, KEERTHY
On Sat, Sep 24, 2011 at 1:18 PM, Paul Walmsley wrote: > On Fri, 23 Sep 2011, J, KEERTHY wrote: > >> On Fri, Sep 23, 2011 at 11:33 AM, Paul Walmsley wrote: >> > >> > On Thu, 22 Sep 2011, Keerthy wrote: >> > >> >> @@ -0,0 +1,175 @@ >> >> +/* >> >> + * OMAP system control module header file >> >> +

Re: [PATCH 2/5] [media]: OMAP_VOUT: CLEANUP: Remove redundant code from omap_vout_isr

2011-09-25 Thread Archit Taneja
Hi, On Wednesday 21 September 2011 04:15 PM, Taneja, Archit wrote: Hi, On Wednesday 21 September 2011 03:35 PM, Hiremath, Vaibhav wrote: -Original Message- From: Taneja, Archit Sent: Friday, September 16, 2011 3:31 PM To: Hiremath, Vaibhav Cc: Valkeinen, Tomi; linux-omap@vger.kernel.

Re: [PATCH 07/11] OMAP2+: board-generic: Add DT support to generic board

2011-09-25 Thread Rajendra Nayak
Hi Benoit, On Saturday 24 September 2011 01:53 AM, Benoit Cousson wrote: Re-cycle the original board-generic file to support Device Tree for every OMAP2+ variants. Note: Since it is a completely new content in the existing file I removed the original copyright. The current approach is an interm

[PATCH v3 3/3] OMAPDSS/OMAP_VOUT: Fix incorrect OMAP3-alpha compatibility setting

2011-09-25 Thread Archit Taneja
On OMAP3, in order to enable alpha blending for LCD and TV managers, we needed to set LCDALPHABLENDERENABLE/TVALPHABLENDERENABLE bits in DISPC_CONFIG. On OMAP4, alpha blending is always enabled by default, if the above bits are set, we switch to an OMAP3 compatibility mode where the zorder values i

Re: [PATCH 00/10] OMAP DSS related board changes

2011-09-25 Thread Tomi Valkeinen
On Tue, 2011-09-20 at 11:18 +0300, Tomi Valkeinen wrote: > Hi Tony, > > Here is a bunch of board file patches related to DSS. They have all been sent > for review earlier, and are currently in my tree. Some of them depend on DSS > driver changes, so I'd like to keep them there to avoid compilation

[PATCH v2 0/5] [media]: OMAP_VOUT: Misc fixes and cleanup patches for 3.2

2011-09-25 Thread Archit Taneja
This set includes patches which do the following: - Fix crash if a we call dssdev->driver->update for a disabled panel. - Fix the issue of not being able to request for a buffer which is larger than what we did the last time. - Fix a small bug in omap_vout_isr() - Remove some redundant code in om

[PATCH v2 1/5] OMAP_VOUT: Fix check in reqbuf for buf_size allocation

2011-09-25 Thread Archit Taneja
The commit 383e4f69879d11c86ebdd38b3356f6d0690fb4cc makes reqbuf prevent requesting a larger size buffer than what is allocated at kernel boot during omap_vout_probe. The requested size is compared with vout->buffer_size, this isn't correct as vout->buffer_size is later set to the size requested i

[PATCH v2 2/5] OMAP_VOUT: CLEANUP: Remove redundant code from omap_vout_isr

2011-09-25 Thread Archit Taneja
Currently, there is a lot of redundant code is between DPI and VENC panels, this can be made common by moving out field/interlace specific code to a separate function called omapvid_handle_interlace_display(). There is no functional change made. Signed-off-by: Archit Taneja --- drivers/media/vid

[PATCH v2 3/5] OMAP_VOUT: Fix VSYNC IRQ handling in omap_vout_isr

2011-09-25 Thread Archit Taneja
Currently, in omap_vout_isr(), if the panel type is DPI, and if we get either VSYNC or VSYNC2 interrupts, we proceed ahead to set the current buffers state to VIDEOBUF_DONE and prepare to display the next frame in the queue. On OMAP4, because we have 2 LCD managers, the panel type itself is not su

[PATCH v2 4/5] OMAP_VOUT: Add support for DSI panels

2011-09-25 Thread Archit Taneja
Add support for DSI panels. DSI video mode panels will work directly. For command mode panels, we will need to trigger updates regularly. This isn't done by the omap_vout driver currently. It can still be supported if we connect a framebuffer device to the panel and configure it in auto update mode

[PATCH v2 5/5] OMAP_VOUT: Don't trigger updates in omap_vout_probe

2011-09-25 Thread Archit Taneja
Remove the code in omap_vout_probe() which calls display->driver->update() for all the displays. This isn't correct because: - An update in probe doesn't make sense, because we don't have any valid content to show at this time. - Calling update for a panel which isn't enabled is not supported by