Re: [PATCH 3/3] ARM: EXYNOS4: Add support for 8-bit bus width in SDHCI for ORIGEN

2011-09-01 Thread Tushar Behera
Hi Kukjin, On Wednesday 31 August 2011 06:31 AM, Kukjin Kim wrote: Tushar Behera wrote: Platform data for SDHCI controller on ORIGEN board is missing the support for 8-bit bus width. The platform data is extended in sync with other EXYNOS4 machines. Signed-off-by: Tushar Behera --- arch/arm

Re: [PATCH 2/3] ARM: EXYNOS4: Add support for secondary MMC port on ORIGEN

2011-09-01 Thread Tushar Behera
Hi Kukjin, On Wednesday 31 August 2011 06:23 AM, Kukjin Kim wrote: Tushar Behera wrote: -Original Message- From: Tushar Behera [mailto:tushar.beh...@linaro.org] Sent: Friday, August 26, 2011 6:39 PM To: linux-samsung-soc@vger.kernel.org Cc: linaro-...@lists.linaro.org; kgene@samsung

Re: [PATCH 0/2] video: s3c-fb: Add window positioning support

2011-09-01 Thread Florian Tobias Schandinat
Hi all, On 08/25/2011 07:51 PM, Ajay Kumar wrote: > Just as a note, there are many drivers like mx3fb.c, au1200fb.c and OMAP > seem to be doing window/plane positioning in their driver code. > Is it possible to have this window positioning support at a common place? Good point. Congratulations fo

[PATCH] gpio: exynos4: Add device tree support

2011-09-01 Thread Thomas Abraham
As gpio chips get registered, a device tree node which represents the gpio chip is searched and attached to it. A translate function is also provided to convert the gpio specifier into actual platform settings for pin function selection, pull up/down and drive strength settings. Signed-off-by: Tho

[PATCH 01/19 v4] s5p-fimc: Remove registration of video nodes from probe()

2011-09-01 Thread Sylwester Nawrocki
Do not register video nodes during FIMC device probe. Also make fimc_register_m2m_device() public for use by the media device driver. The video nodes are to be registered during the media device driver initialization, altogether with the subdev devnodes. The video capture nodes need to be registere

[PATCH 09/19 v4] s5p-fimc: Add media operations in the capture entity driver

2011-09-01 Thread Sylwester Nawrocki
Add the link_setup handler for the camera capture video node. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-fimc/fimc-capture.c | 32 +++ drivers/media/video/s5p-fimc/fimc-core.h|2 + 2 files changed, 34 insertions(+

[PATCH 04/19 v4] s5p-fimc: Remove sensor management code from FIMC capture driver

2011-09-01 Thread Sylwester Nawrocki
The sensor subdevs need to be shared between all available FIMC instances. Remove their registration from FIMC capture driver so they can then be registered to the media device driver. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-fimc/fimc-capture.c

[PATCH 03/19 v4] s5p-fimc: Limit number of available inputs to one

2011-09-01 Thread Sylwester Nawrocki
The current driver allowed camera sensors to be used only with single FIMC H/W instance, FIMC0..FIMC2/3, designated at compile time. Remaining FIMC entities could be used for video processing only, as mem-to-mem devices. Required camera could be selected with S_INPUT ioctl at one devnode only. How

[PATCH 10/19 v4] s5p-fimc: Add PM helper function for streaming control

2011-09-01 Thread Sylwester Nawrocki
Move the camera capture H/W initialization sequence to a separate function. This is needed for reuse in the following runtime PM code. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-fimc/fimc-capture.c | 74 +++ drivers/media

[PATCH 14/19 v4] s5p-fimc: Add support for JPEG capture

2011-09-01 Thread Sylwester Nawrocki
Add support for transparent DMA transfer of JPEG data with MIPI-CSI2 USER1 format. In JPEG mode the color effect, scaling and cropping is not supported as well as image rotation and flipping thus these controls are marked as inactive if V4L2_PIX_FMT_JPEG pixel format was selected. Signed-off-by: S

[PATCH 13/19 v4] s5p-fimc: Add subdev for the FIMC processing block

2011-09-01 Thread Sylwester Nawrocki
Add a subdev to expose the host's scaling and composition functions. The camera frame composition onto an output buffer may be configured through set/get_crop at FIMC.{n} source pad. Additionally allow crop, composition and controls to be modified during streaming. Make sure the default format is s

[PATCH 06/19 v4] s5p-fimc: Add the media device driver

2011-09-01 Thread Sylwester Nawrocki
Add a top level media device driver aggregating FIMC video devnodes, MIPI-CSIS and sensor subdevs. This driver gathers all media entities and creates the possible links between them during initialization. By default some links will be activated to enable access to all available sensors in the syste

[PATCH 11/19 v4] s5p-fimc: Correct color format enumeration

2011-09-01 Thread Sylwester Nawrocki
Replace fimc_find_format() and find_mbus_format() with single function that can return a pointer to the private format description based on fourcc, media bus code or index in the table. Create separate VIDIOC_ENUM_FMT ioctl handlers for video capture and mem-to-mem video node. This is needed becau

[PATCH 17/19 v4] s5p-fimc: Add runtime PM support in the camera capture driver

2011-09-01 Thread Sylwester Nawrocki
Add support for whole pipeline suspend/resume. Sensors must support suspend/resume through s_power subdev operation. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-fimc/fimc-capture.c | 83 +++--- drivers/media/video/s5p-fimc/fim

[PATCH 15/19 v4] s5p-fimc: Add v4l2_device notification support for single frame capture

2011-09-01 Thread Sylwester Nawrocki
Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-fimc/fimc-capture.c | 47 +++ drivers/media/video/s5p-fimc/fimc-core.h|2 + drivers/media/video/s5p-fimc/fimc-mdevice.c |1 + include/media/s5p_fimc.h

[PATCH 08/19 v4] s5p-fimc: Convert to the new control framework

2011-09-01 Thread Sylwester Nawrocki
Convert the v4l controls code to use the new control framework. fimc_ctrls_activate/deactivate functions are introduced for the transparent DMA transfer mode (JPEG), where the rotation and flipping controls are not supported. The capture video node does not inherit sensors' controls when the subd

[PATCH 18/19 v4] s5p-fimc: Correct crop offset alignment on exynos4

2011-09-01 Thread Sylwester Nawrocki
Horizontal crop offset must be multiple of 2 otherwise color distortion occurs. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-fimc/fimc-core.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/video/s5p-fimc/fi

[PATCH 16/19 v4] s5p-fimc: Use consistent names for the buffer list functions

2011-09-01 Thread Sylwester Nawrocki
Also correct and improve *_queue_add/pop functions description. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-fimc/fimc-capture.c |6 ++-- drivers/media/video/s5p-fimc/fimc-core.c|6 ++-- drivers/media/video/s5p-fimc/fimc-core.h| 38

[PATCH 19/19 v4] s5p-fimc: Remove single-planar capability flags

2011-09-01 Thread Sylwester Nawrocki
The driver supports only multi-planar API and conversion to single-planar API should be done in libv4l2. Remove misleading single planar capability flags to avoid problems in applications and libv4l2. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-fim

[PATCH 12/19 v4] s5p-fimc: Convert to use media pipeline operations

2011-09-01 Thread Sylwester Nawrocki
In the camera capture driver use fimc_pipeline_* calls provided by the media device driver part, in place where v4l2_subdev_call() were used. This way the capture driver don't need to differentiate between various H/W pipeline setups, i.e. if the MIPI-CSI receiver subdev is used or not. Remove the

[PATCH 05/19 v4] s5p-fimc: Remove v4l2_device from video capture and m2m driver

2011-09-01 Thread Sylwester Nawrocki
Currently there is a v4l2_device instance being registered per each (capture and memory-to-memory) video node created per FIMC H/W instance. This patch is a prerequisite for using the top level v4l2_device instantiated by the media device driver. To retain current debug trace semantic (so it's poss

[PATCH 07/19 v4] s5p-fimc: Conversion to use struct v4l2_fh

2011-09-01 Thread Sylwester Nawrocki
This is a prerequisite for the patch converting the driver to use the control framework. As the capture driver does not use per file handle contexts, two separate ioctl handlers are created for it (vidioc_try_fmt_mplane, and vidioc_g_fmt_mplane) so there is no handlers shared between the memory-to-

[PATCH 0/19 v4] s5p-fimc driver conversion to media controller and control framework

2011-09-01 Thread Sylwester Nawrocki
Hello, following is a fourth version of the patchset converting s5p-fimc driver to the media controller API and the new control framework. Mauro, could you please have a look at the patches and let me know of any doubts? I tried to provide possibly detailed description of what each patch does an

[PATCH 02/19 v4] s5p-fimc: Remove sclk_cam clock handling

2011-09-01 Thread Sylwester Nawrocki
There are 2 separate clock outputs available in the SoC for external sensors. These two clocks can be shared among all FIMC entities and there is currently no any arbitration of the clocks in the driver. So make the capture driver not touching these clocks and let them be be properly handled at th

Re: [PATCH v2 4/6] DMA: PL330: Add device tree support

2011-09-01 Thread Rob Herring
On 09/01/2011 04:04 AM, Thomas Abraham wrote: > For PL330 dma controllers instantiated from device tree, the channel > lookup is based on phandle of the dma controller and dma request id > specified by the client node. During probe, the private data of each > channel of the controller is set to poi

[PATCH v2 6/6] ARM: EXYNOS4: Limit usage of pl330 device instance to non-dt build

2011-09-01 Thread Thomas Abraham
The pl330 device instances and associated platform data is required only for non-device-tree builds. With device tree, all of this information is obtained from the device tree. Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos4/Kconfig |7 +++ arch/arm/mach-exynos4/Makefile |3

[PATCH v2 5/6] ARM: SAMSUNG: Add device tree support for pl330 dma engine wrappers

2011-09-01 Thread Thomas Abraham
A new dma request id 'DMACH_DT_PROP' is introduced for client drivers requesting a dma channel. This request indicates that a device tree node property represting the dma channel is available in 'struct samsung_dma_info'. The dma channel request wrapper uses the node property value as the value for

[PATCH v2 4/6] DMA: PL330: Add device tree support

2011-09-01 Thread Thomas Abraham
For PL330 dma controllers instantiated from device tree, the channel lookup is based on phandle of the dma controller and dma request id specified by the client node. During probe, the private data of each channel of the controller is set to point to the device node of the dma controller. The 'chan

[PATCH v2 3/6] ARM: EXYNOS4: Modify platform data for pl330 driver

2011-09-01 Thread Thomas Abraham
With the 'struct dma_pl330_peri' removed, the platfrom data for dma driver can be simplified to a simple list of peripheral request ids. Cc: Jassi Brar Cc: Boojin Kim Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos4/dma.c | 223 --- 1 files chang

[PATCH v2 2/6] DMA: PL330: Infer transfer direction from transfer request instead of platform data

2011-09-01 Thread Thomas Abraham
The transfer direction for a channel can be inferred from the transfer request and the need for specifying transfer direction in platfrom data can be eliminated. So the structure definition 'struct dma_pl330_peri' is no longer required. The channel's private data is set to point to a channel id sp

[PATCH v2 1/6] DMA: PL330: move filter function into driver

2011-09-01 Thread Thomas Abraham
The dma channel selection filter function is moved from plat-samsung into the pl330 driver. In additon to that, a check is added in the filter function to ensure that the channel on which the filter has been invoked is pl330 channel instance (and avoid any incorrect access of chan->private in a sys

[PATCH v2 0/6] Add device tree support for PL330 dma controller driver

2011-09-01 Thread Thomas Abraham
This patchset adds device tree support for PL330 driver and uses it to add device tree support for Samsung platforms, specifically Exynos4. First patch moves the pl330_filter function from Samsung specific wrappers to pl330 dma driver and also adds a check to ensure that the filter function procee

Re: [PATCH 4/6] DMA: PL330: Add device tree support

2011-09-01 Thread Thomas Abraham
Hi Rob, On 31 August 2011 21:34, Rob Herring wrote: > Thomas, [...] > > As it says in Documentation/devicetree/bindings/arm/primecell.txt, you > should have "arm,primecell" and a value for the specific peripheral. It > should be in order of most specific to least specific. > > What Linux uses c

Re: [PATCH V2] mmc: core: eMMC4.5 Add the timeout for switch

2011-09-01 Thread Jaehoon Chung
Hi Girish. I agreed for Mr.Jeon's opinion. I think that need not to check for any exception case. (Mr.Jeon mentioned the below comment, just using default cmd6_timeout) Thanks, Jaehoon Chung Girish K S wrote: > Hello Mr Jeon, > In case if the timeout is specified by the >