Re: [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support

2011-07-26 Thread Dmitry Eremin-Solenikov
Hello, On Fri, 15 Jul 2011 20:12:40 +0530, Banajit Goswami wrote: > The patches are created against "for-next" branch of Kukjin Kim's tree > at: > git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git > > Patch [1/8] > -- add a common infrastructure to support PWM backlight f

[PATCH] ARM: Exynos4: enable frame buffer on Universal C210 board

2011-07-26 Thread Marek Szyprowski
This patch adds platform definitions to enable s3c-fb driver. Framebuffer window with 480x800x16bpp mode has been defined. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park --- arch/arm/mach-exynos4/Kconfig |2 + arch/arm/mach-exynos4/mach-universal_c210.c | 34 ++

[PATCH] ARM: Exynos4: enable frame buffer on Nuri board

2011-07-26 Thread Marek Szyprowski
This patch adds platform definitions to enable s3c-fb driver. Framebuffer window with 1280x800x16bpp mode has been defined. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park --- arch/arm/mach-exynos4/Kconfig |2 ++ arch/arm/mach-exynos4/mach-nuri.c | 34

Re: [PATCH] Improve slave/cyclic DMA engine documentation (was: [PATCH V4 04/14] DMA: PL330: Add DMA_CYCLIC capability)

2011-07-26 Thread Russell King - ARM Linux
Here's an updated patch. 8<-- From: Russell King DMAEngine: Improve slave/cyclic documentation Improve the documentation for the slave and cyclic DMA engine support reformatting it for easier reading, adding further APIs, splitting it into five steps, and including references to the docu

Re: [PATCH V2 5/7] ARM: S5P64X0: Add file to hold common Framebuffer and LCD code

2011-07-26 Thread Russell King - ARM Linux
On Mon, Jul 25, 2011 at 04:00:23PM -0400, Ajay Kumar wrote: > diff --git a/arch/arm/mach-s5p64x0/Kconfig b/arch/arm/mach-s5p64x0/Kconfig > index 4fee745..ed87151 100644 > --- a/arch/arm/mach-s5p64x0/Kconfig > +++ b/arch/arm/mach-s5p64x0/Kconfig > @@ -32,6 +32,11 @@ config S5P64X0_SETUP_I2C1 >

Re: [PATCH V4 06/14] ARM: SAMSUNG: Add common DMA operations

2011-07-26 Thread Russell King - ARM Linux
On Mon, Jul 25, 2011 at 05:21:44PM +0530, Jassi Brar wrote: > On Mon, Jul 25, 2011 at 6:58 AM, Boojin Kim wrote: > > > + > > +static bool pl330_filter(struct dma_chan *chan, void *param) > > +{ > > +       struct dma_pl330_peri *peri = (struct dma_pl330_peri > > *)chan->private; > > +       unsi

[PATCH] ARM: EXYNOS4: Add support power-domain of EXYNOS4210 on NURI board

2011-07-26 Thread Chanwoo Choi
Signed-off-by: Chanwoo Choi Signed-off-by: Kyungmin Park --- arch/arm/mach-exynos4/Kconfig |1 + arch/arm/mach-exynos4/mach-nuri.c |8 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos4/Kconfig b/arch/arm/mach-exynos4/Kconfig index ed97f05..

[PATCH] ARM: EXYNOS4: Fix wrong devname to support clkdev

2011-07-26 Thread jhbird . choi
From: Jonghwan Choi Signed-off-by: Jonghwan Choi --- arch/arm/mach-exynos4/clock.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-exynos4/clock.c b/arch/arm/mach-exynos4/clock.c index 66494f2..8e9699e 100644 --- a/arch/arm/mach-exynos4/clock.c +++ b/arch

RE: [PATCH V4 12/14] spi/s3c64xx: Add support DMA engine API

2011-07-26 Thread Boojin Kim
Vinod Koul Wrote: > Sent: Monday, July 25, 2011 8:17 PM > To: Boojin Kim > Cc: vinod.k...@intel.com; linux-arm-ker...@lists.infradead.org; linux- > samsung-...@vger.kernel.org; Kukjin Kim; Jassi Brar; Grant Likely; > Mark Brown; Dan Williams > Subject: Re: [PATCH V4 12/14] spi/s3c64xx: Add support

RE: [PATCH V4 06/14] ARM: SAMSUNG: Add common DMA operations

2011-07-26 Thread Boojin Kim
Jassi Brar Wrote: > Sent: Monday, July 25, 2011 8:52 PM > To: Boojin Kim > Cc: linux-arm-ker...@lists.infradead.org; linux-samsung- > s...@vger.kernel.org; Vinod Koul; Dan Williams; Kukjin Kim; Grant > Likely; Mark Brown > Subject: Re: [PATCH V4 06/14] ARM: SAMSUNG: Add common DMA operations > > On

RE: [PATCH V4 04/14] DMA: PL330: Add DMA_CYCLIC capability

2011-07-26 Thread Boojin Kim
Jassi Brar Wrote: > Sent: Monday, July 25, 2011 8:24 PM > To: Boojin Kim > Cc: linux-arm-ker...@lists.infradead.org; linux-samsung- > s...@vger.kernel.org; Vinod Koul; Dan Williams; Kukjin Kim; Grant > Likely; Mark Brown > Subject: Re: [PATCH V4 04/14] DMA: PL330: Add DMA_CYCLIC capability > > On M

RE: [PATCH V4 03/14] DMA: PL330: Support DMA_SLAVE_CONFIG command

2011-07-26 Thread Boojin Kim
Vinod Koul Wrote: > Sent: Monday, July 25, 2011 10:48 PM > To: Boojin Kim > Cc: vinod.k...@intel.com; linux-arm-ker...@lists.infradead.org; linux- > samsung-...@vger.kernel.org; 'Kukjin Kim'; 'Jassi Brar'; 'Grant > Likely'; 'Mark Brown'; 'Dan Williams' > Subject: RE: [PATCH V4 03/14] DMA: PL330: Su

Re: [PATCH V4 03/14] DMA: PL330: Support DMA_SLAVE_CONFIG command

2011-07-26 Thread Russell King - ARM Linux
On Tue, Jul 26, 2011 at 10:04:10PM +0900, Boojin Kim wrote: > Vinod Koul Wrote: > > I meant you should use proper fields for passing info, which in this > > case would be dst_maxburst for specifying destination burst sizes > I think the naming seems to make confusion. > 'Peri->burst_sz' on this cod

Re: [PATCH] Improve slave/cyclic DMA engine documentation (was: [PATCH V4 04/14] DMA: PL330: Add DMA_CYCLIC capability)

2011-07-26 Thread Russell King - ARM Linux
On Tue, Jul 26, 2011 at 08:57:20AM +0100, Russell King - ARM Linux wrote: > Here's an updated patch. Sorry, another one. I've corrected the slave_sg preparation interface, and added a paragraph on preparing the scatterlist for the DMA operation, including mentioning which struct device should be

Re: [PATCH] Improve slave/cyclic DMA engine documentation (was: [PATCH V4 04/14] DMA: PL330: Add DMA_CYCLIC capability)

2011-07-26 Thread Vinod Koul
On Tue, 2011-07-26 at 08:57 +0100, Russell King - ARM Linux wrote: > Here's an updated patch. > > 8<-- > From: Russell King > DMAEngine: Improve slave/cyclic documentation > > Improve the documentation for the slave and cyclic DMA engine support > reformatting it for easier reading, addi

RE: [PATCH V4 12/14] spi/s3c64xx: Add support DMA engine API

2011-07-26 Thread Vinod Koul
On Tue, 2011-07-26 at 18:31 +0900, Boojin Kim wrote: > Vinod Koul Wrote: > > Sent: Monday, July 25, 2011 8:17 PM > > To: Boojin Kim > > Cc: vinod.k...@intel.com; linux-arm-ker...@lists.infradead.org; linux- > > samsung-...@vger.kernel.org; Kukjin Kim; Jassi Brar; Grant Likely; > > Mark Brown; Dan W

Re: [PATCH] Improve slave/cyclic DMA engine documentation (was: [PATCH V4 04/14] DMA: PL330: Add DMA_CYCLIC capability)

2011-07-26 Thread Jassi Brar
On Tue, Jul 26, 2011 at 3:05 PM, Vinod Koul wrote: > On Tue, 2011-07-26 at 08:57 +0100, Russell King - ARM Linux wrote: >> Here's an updated patch. >> >> 8<-- >> From: Russell King >> DMAEngine: Improve slave/cyclic documentation >> >> Improve the documentation for the slave and cyclic DM

Re: [PATCH] Improve slave/cyclic DMA engine documentation (was: [PATCH V4 04/14] DMA: PL330: Add DMA_CYCLIC capability)

2011-07-26 Thread Russell King - ARM Linux
On Tue, Jul 26, 2011 at 08:07:44PM +0530, Jassi Brar wrote: > Dear Vinod, > > Since it came from the RMK, most probably it'll be the best. > > But applying patches upon personal timeout seems very dangerous. Ehh what? Is there any contention over this documentation patch? It's not adding anyt

Re: [PATCH V4 06/14] ARM: SAMSUNG: Add common DMA operations

2011-07-26 Thread Jassi Brar
On Tue, Jul 26, 2011 at 1:32 PM, Russell King - ARM Linux wrote: > On Mon, Jul 25, 2011 at 05:21:44PM +0530, Jassi Brar wrote: >> On Mon, Jul 25, 2011 at 6:58 AM, Boojin Kim wrote: >> >> > + >> > +static bool pl330_filter(struct dma_chan *chan, void *param) >> > +{ >> > +       struct dma_pl330_p

Re: [PATCH] Improve slave/cyclic DMA engine documentation (was: [PATCH V4 04/14] DMA: PL330: Add DMA_CYCLIC capability)

2011-07-26 Thread Jassi Brar
On Tue, Jul 26, 2011 at 10:50 PM, Russell King - ARM Linux wrote: > On Tue, Jul 26, 2011 at 08:07:44PM +0530, Jassi Brar wrote: >> Dear Vinod, >> >>  Since it came from the RMK, most probably it'll be the best. >> >> But applying patches upon personal timeout seems very dangerous. > > Ehh what?  I

Re: [PATCH] Improve slave/cyclic DMA engine documentation (was: [PATCH V4 04/14] DMA: PL330: Add DMA_CYCLIC capability)

2011-07-26 Thread Grant Likely
On Tue, Jul 26, 2011 at 11:55 AM, Jassi Brar wrote: > On Tue, Jul 26, 2011 at 10:50 PM, Russell King - ARM Linux > wrote: >> On Tue, Jul 26, 2011 at 08:07:44PM +0530, Jassi Brar wrote: >>> Dear Vinod, >>> >>>  Since it came from the RMK, most probably it'll be the best. >>> >>> But applying patch

Re: [PATCH V4 06/14] ARM: SAMSUNG: Add common DMA operations

2011-07-26 Thread Russell King - ARM Linux
On Tue, Jul 26, 2011 at 11:13:35PM +0530, Jassi Brar wrote: > Before we start, let me be clear that I don't say it's all possible > today as such. It _is_ possible today. 1. Arrange for individual DMA engine drivers to provide a filter function - eg, pl08x_filter_id() for pl08x channels. 2. H

Re: [PATCH] Improve slave/cyclic DMA engine documentation (was: [PATCH V4 04/14] DMA: PL330: Add DMA_CYCLIC capability)

2011-07-26 Thread Russell King - ARM Linux
On Tue, Jul 26, 2011 at 11:25:13PM +0530, Jassi Brar wrote: > On Tue, Jul 26, 2011 at 10:50 PM, Russell King - ARM Linux > wrote: > > On Tue, Jul 26, 2011 at 08:07:44PM +0530, Jassi Brar wrote: > >> Dear Vinod, > >> > >>  Since it came from the RMK, most probably it'll be the best. > >> > >> But a

Re: [PATCH V4 06/14] ARM: SAMSUNG: Add common DMA operations

2011-07-26 Thread Jassi Brar
On Tue, Jul 26, 2011 at 11:44 PM, Russell King - ARM Linux wrote: > > 1. Arrange for individual DMA engine drivers to provide a filter >   function - eg, pl08x_filter_id() for pl08x channels. > > 2. Have the filter function check chan->device->dev->driver == its >   own struct driver as the very

Re: [PATCH V4 06/14] ARM: SAMSUNG: Add common DMA operations

2011-07-26 Thread Jassi Brar
On Tue, Jul 26, 2011 at 3:05 PM, Boojin Kim wrote: > Jassi Brar Wrote: >> Sent: Monday, July 25, 2011 8:52 PM >> To: Boojin Kim >> Cc: linux-arm-ker...@lists.infradead.org; linux-samsung- >> s...@vger.kernel.org; Vinod Koul; Dan Williams; Kukjin Kim; Grant >> Likely; Mark Brown >> Subject: Re: [PA

Re: [PATCH] Improve slave/cyclic DMA engine documentation (was: [PATCH V4 04/14] DMA: PL330: Add DMA_CYCLIC capability)

2011-07-26 Thread Vinod Koul
On Tue, 2011-07-26 at 23:25 +0530, Jassi Brar wrote: > On Tue, Jul 26, 2011 at 10:50 PM, Russell King - ARM Linux > wrote: > > On Tue, Jul 26, 2011 at 08:07:44PM +0530, Jassi Brar wrote: > >> Dear Vinod, > >> > >> Since it came from the RMK, most probably it'll be the best. > >> > >> But applying

RE: [PATCH V4 12/14] spi/s3c64xx: Add support DMA engine API

2011-07-26 Thread Boojin Kim
Vinod Koul Wrote: > Sent: Tuesday, July 26, 2011 7:15 PM > To: Boojin Kim > Cc: vinod.k...@intel.com; 'Kukjin Kim'; 'Jassi Brar'; 'Grant Likely'; > linux-samsung-soc@vger.kernel.org; 'Mark Brown'; 'Dan Williams'; > linux-arm-ker...@lists.infradead.org > Subject: RE: [PATCH V4 12/14] spi/s3c64xx: Ad

RE: [PATCH V4 06/14] ARM: SAMSUNG: Add common DMA operations

2011-07-26 Thread Boojin Kim
Jassi Brar wrote: > Sent: Wednesday, July 27, 2011 10:34 AM > To: Boojin Kim > Cc: linux-arm-ker...@lists.infradead.org; linux-samsung- > s...@vger.kernel.org; Vinod Koul; Dan Williams; Kukjin Kim; Grant > Likely; Mark Brown > Subject: Re: [PATCH V4 06/14] ARM: SAMSUNG: Add common DMA operations >

[PATCH 01/15] DMA: PL330: Add support runtime PM for PL330 DMAC

2011-07-26 Thread Boojin Kim
Signed-off-by: Boojin Kim Cc: Vinod Koul Cc: Dan Williams Signed-off-by: Kukjin Kim --- drivers/dma/pl330.c | 75 +- 1 files changed, 73 insertions(+), 2 deletions(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 6abe1ec..b7ecf4

[PATCH 03/15] DMA: PL330: Support DMA_SLAVE_CONFIG command

2011-07-26 Thread Boojin Kim
Signed-off-by: Boojin Kim Cc: Vinod Koul Cc: Dan Williams Signed-off-by: Kukjin Kim --- drivers/dma/pl330.c | 56 ++ 1 files changed, 42 insertions(+), 14 deletions(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 5a10df9..a4c4b

[PATCH 10/15] ARM: S5P64X0: Use generic DMA PL330 driver

2011-07-26 Thread Boojin Kim
This patch makes Samsung S5P64X0 to use DMA PL330 driver on DMADEVICE. The S5P64X0 uses DMA generic APIs instead of SAMSUNG specific S3C-PL330 APIs. Signed-off-by: Boojin Kim Signed-off-by: Kukjin Kim --- arch/arm/mach-s5p64x0/Kconfig|4 +- arch/arm/mach-s5p64x0/clock-s5p6440.c

[PATCH V5 00/15] To use DMA generic APIs for Samsung DMA

2011-07-26 Thread Boojin Kim
This patchset adds support DMA generic APIs for Samsung DMA. The changes from V4 are following: - Change DMA cyclic capability operation on '04 patch' - Remove cyclic_task - Initialize 'cyclic' variable on channel request. - Change pl330 data structure on '02, 07, 08, 09, 10 patche

[PATCH 02/15] DMA: PL330: Update PL330 DMA API driver

2011-07-26 Thread Boojin Kim
This patch updates following 3 items. 1. Removes unneccessary code. 2. Add AMBA, PL330 configuration 3. Change the meaning of 'peri_id' variable from PL330 event number to specific dma id by user. Signed-off-by: Boojin Kim Cc: Vinod Koul Cc: Dan Williams Signed-off-by: Kukjin Kim --- drive

[PATCH 08/15] ARM: S5PV210: Use generic DMA PL330 driver

2011-07-26 Thread Boojin Kim
This patch makes Samsung S5PV210 to use DMA PL330 driver on DMADEVICE. The S5PV210 uses DMA generic APIs instead of SAMSUNG specific S3C-PL330 APIs. Signed-off-by: Boojin Kim Signed-off-by: Kukjin Kim --- arch/arm/mach-s5pv210/Kconfig|2 +- arch/arm/mach-s5pv210/clock.c

[PATCH 04/15] DMA: PL330: Add DMA_CYCLIC capability

2011-07-26 Thread Boojin Kim
This patch adds DMA_CYCLIC capability that is used for audio driver. DMA driver activated with it reuses the dma requests that were submitted through tx_submit(). Signed-off-by: Boojin Kim Cc: Vinod Koul Cc: Dan Williams Signed-off-by: Kukjin Kim --- drivers/dma/pl330.c | 97 +++

[PATCH 15/15] ARM: SAMSUNG: Remove Samsung specific enum type for dma direction

2011-07-26 Thread Boojin Kim
This patch removes the samsung specific enum type 's3c2410_dmasrc' and uses 'dma_data_direction' instead. Signed-off-by: Boojin Kim Signed-off-by: Kukjin Kim --- arch/arm/mach-s3c2410/include/mach/dma.h |2 +- arch/arm/mach-s3c2412/dma.c |4 ++-- arch/arm/ma

[PATCH 05/15] ARM: SAMSUNG: Update to use PL330-DMA driver

2011-07-26 Thread Boojin Kim
This patch adds to support PL330-DMA driver on DMADEVICE for S5P SoCs. Signed-off-by: Boojin Kim Signed-off-by: Kukjin Kim --- arch/arm/mach-exynos4/include/mach/dma.h |4 ++-- arch/arm/mach-s5p64x0/include/mach/dma.h |2 +- arch/arm/mach-s5pc100/include/mach/dma.h

[PATCH 09/15] ARM: S5PC100: Use generic DMA PL330 driver

2011-07-26 Thread Boojin Kim
This patch makes Samsung S5PC100 to use DMA PL330 driver on DMADEVICE. The S5PC100 uses DMA generic APIs instead of SAMSUNG specific S3C-PL330 APIs. Signed-off-by: Boojin Kim Signed-off-by: Kukjin Kim --- arch/arm/mach-s5pc100/Kconfig|2 +- arch/arm/mach-s5pc100/clock.c

[PATCH 07/15] ARM: EXYNOS4: Use generic DMA PL330 driver

2011-07-26 Thread Boojin Kim
This patch makes Samsung EXYNOS4 to use DMA PL330 driver on DMADEVICE. The EXYNOS4 uses DMA generic APIs instead of SAMSUNG specific S3C-PL330 APIs. Signed-off-by: Boojin Kim Signed-off-by: Kukjin Kim --- arch/arm/mach-exynos4/Kconfig |2 +- arch/arm/mach-exynos4/clock.c | 16 ++- arch/ar

[PATCH 12/15] spi/s3c64xx: Add support DMA engine API

2011-07-26 Thread Boojin Kim
This patch adds to support DMA generic API to transfer raw SPI data. Basiclly the spi driver uses DMA generic API if architecture supports it. Otherwise, uses Samsung specific S3C-PL330 APIs. Signed-off-by: Boojin Kim Acked-by: Grant Likely Signed-off-by: Kukjin Kim --- drivers/spi/spi_s3c64xx

[PATCH 14/15] ASoC: Samsung: Update DMA interface

2011-07-26 Thread Boojin Kim
This patch adds to support the DMA PL330 driver that uses DMA generic API. Samsung sound driver uses DMA generic API if architecture supports it. Otherwise, use samsung specific S3C-PL330 API driver to transfer PCM data. Signed-off-by: Boojin Kim Cc: Jassi Brar Cc: Liam Girdwood Acked-by: Mark

[PATCH 13/15] spi/s3c64xx: Merge dma control code

2011-07-26 Thread Boojin Kim
This patch modifies to merge the dma control code. Original s3c64xx spi driver has each dma control code for rx and tx channel. This patch merges these dma control codes into one. With this patch, a dma setup function and callback function handle for both rx and tx channel. Signed-off-by: Boojin K

[PATCH 11/15] ARM: SAMSUNG: Remove S3C-PL330-DMA driver

2011-07-26 Thread Boojin Kim
Since DMA generic APIs can be used for Samsung DMA now so that the s3c-pl330 which includes Samsung specific DMA APIs can be removed. Signed-off-by: Boojin Kim Cc: Jassi Brar Signed-off-by: Kukjin Kim --- arch/arm/plat-samsung/Kconfig |6 - arch/arm/plat-samsung/Makefi

[PATCH 06/15] ARM: SAMSUNG: Add common DMA operations

2011-07-26 Thread Boojin Kim
This patch adds common DMA operations which are used for Samsung DMA drivers. Currently there are two types of DMA driver for Samsung SoCs. The one is S3C-DMA for S3C SoCs and the other is PL330-DMA for S5P SoCs. This patch provides funcion pointers for common DMA operations to DMA client driver li

[RFC PATCH] DMA: PL330: Update PL330 DMAC to support runtime PM

2011-07-26 Thread Chanwoo Choi
This patch update runtime PM for PL330 DMAC to reduce power consumption. Signed-off-by: Chanwoo Choi Signed-off-by: Kyungmin Park --- The following patch support runtime PM for PL330 DMAC, but the clock of PL330 is always on. If the clock of PL330 is always on, additional power (10mA) is consume