linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/3] OMAP: McBSP: Fixes and cleanups after SCM conversion
@ 2010-10-06  5:50 Jarkko Nikula
  2010-10-06  5:50 ` [PATCHv2 1/3] OMAP: McBSP: Fix CLKR and FSR signal muxing Jarkko Nikula
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jarkko Nikula @ 2010-10-06  5:50 UTC (permalink / raw)
  To: linux-arm-kernel

This set does a few fixes and cleanups to the Paul Walmsley's OMAP System
Control Module function exports removal set:

http://marc.info/?l=linux-arm-kernel&m=128597757826159&w=2

v2:
- Paul's ack added
- lakml cc'ed


-- 
Jarkko

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCHv2 1/3] OMAP: McBSP: Fix CLKR and FSR signal muxing
  2010-10-06  5:50 [PATCHv2 0/3] OMAP: McBSP: Fixes and cleanups after SCM conversion Jarkko Nikula
@ 2010-10-06  5:50 ` Jarkko Nikula
  2010-10-06  5:50 ` [PATCHv2 2/3] OMAP: McBSP: Swap CLKS source definition Jarkko Nikula
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Jarkko Nikula @ 2010-10-06  5:50 UTC (permalink / raw)
  To: linux-arm-kernel

Fix bit clear. Now it clears all other bits than mask bit where it should
clear only it.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
---
 arch/arm/mach-omap2/mcbsp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c
index eba9fa1..f6b772e 100644
--- a/arch/arm/mach-omap2/mcbsp.c
+++ b/arch/arm/mach-omap2/mcbsp.c
@@ -34,7 +34,7 @@ void omap2_mcbsp1_mux_clkr_src(u8 mux)
 
 	v = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0);
 	if (mux == CLKR_SRC_CLKR)
-		v &= OMAP2_MCBSP1_CLKR_MASK;
+		v &= ~OMAP2_MCBSP1_CLKR_MASK;
 	else if (mux == CLKR_SRC_CLKX)
 		v |= OMAP2_MCBSP1_CLKR_MASK;
 	omap_ctrl_writel(v, OMAP2_CONTROL_DEVCONF0);
@@ -47,7 +47,7 @@ void omap2_mcbsp1_mux_fsr_src(u8 mux)
 
 	v = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0);
 	if (mux == FSR_SRC_FSR)
-		v &= OMAP2_MCBSP1_FSR_MASK;
+		v &= ~OMAP2_MCBSP1_FSR_MASK;
 	else if (mux == FSR_SRC_FSX)
 		v |= OMAP2_MCBSP1_FSR_MASK;
 	omap_ctrl_writel(v, OMAP2_CONTROL_DEVCONF0);
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCHv2 2/3] OMAP: McBSP: Swap CLKS source definition
  2010-10-06  5:50 [PATCHv2 0/3] OMAP: McBSP: Fixes and cleanups after SCM conversion Jarkko Nikula
  2010-10-06  5:50 ` [PATCHv2 1/3] OMAP: McBSP: Fix CLKR and FSR signal muxing Jarkko Nikula
@ 2010-10-06  5:50 ` Jarkko Nikula
  2010-10-06  5:50 ` [PATCHv2 3/3] OMAP: McBSP: Remove null omap44xx ops comment Jarkko Nikula
  2010-10-06  5:58 ` [PATCHv2 0/3] OMAP: McBSP: Fixes and cleanups after SCM conversion Peter Ujfalusi
  3 siblings, 0 replies; 5+ messages in thread
From: Jarkko Nikula @ 2010-10-06  5:50 UTC (permalink / raw)
  To: linux-arm-kernel

This is just a readability and debugging improvement. As selection bit in
DEVCONF register is cleared when using 96 MHz PRCM source and set when using
external CLKS pin, change definitions to be sync with these.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
---
 arch/arm/plat-omap/include/plat/mcbsp.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/plat-omap/include/plat/mcbsp.h b/arch/arm/plat-omap/include/plat/mcbsp.h
index 4da6f94..e19abf2 100644
--- a/arch/arm/plat-omap/include/plat/mcbsp.h
+++ b/arch/arm/plat-omap/include/plat/mcbsp.h
@@ -321,8 +321,8 @@
 #define FSR_SRC_FSX		1
 
 /* McBSP functional clock sources */
-#define MCBSP_CLKS_PAD_SRC	0
-#define MCBSP_CLKS_PRCM_SRC	1
+#define MCBSP_CLKS_PRCM_SRC	0
+#define MCBSP_CLKS_PAD_SRC	1
 
 /* we don't do multichannel for now */
 struct omap_mcbsp_reg_cfg {
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCHv2 3/3] OMAP: McBSP: Remove null omap44xx ops comment
  2010-10-06  5:50 [PATCHv2 0/3] OMAP: McBSP: Fixes and cleanups after SCM conversion Jarkko Nikula
  2010-10-06  5:50 ` [PATCHv2 1/3] OMAP: McBSP: Fix CLKR and FSR signal muxing Jarkko Nikula
  2010-10-06  5:50 ` [PATCHv2 2/3] OMAP: McBSP: Swap CLKS source definition Jarkko Nikula
@ 2010-10-06  5:50 ` Jarkko Nikula
  2010-10-06  5:58 ` [PATCHv2 0/3] OMAP: McBSP: Fixes and cleanups after SCM conversion Peter Ujfalusi
  3 siblings, 0 replies; 5+ messages in thread
From: Jarkko Nikula @ 2010-10-06  5:50 UTC (permalink / raw)
  To: linux-arm-kernel

It seems these comments where accidentally added so remove them.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
---
 arch/arm/mach-omap2/mcbsp.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c
index f6b772e..f9c9df5 100644
--- a/arch/arm/mach-omap2/mcbsp.c
+++ b/arch/arm/mach-omap2/mcbsp.c
@@ -240,21 +240,18 @@ static struct omap_mcbsp_platform_data omap44xx_mcbsp_pdata[] = {
 		.dma_rx_sync    = OMAP44XX_DMA_MCBSP2_RX,
 		.dma_tx_sync    = OMAP44XX_DMA_MCBSP2_TX,
 		.tx_irq         = OMAP44XX_IRQ_MCBSP2,
-		/* XXX .ops ? */
 	},
 	{
 		.phys_base      = OMAP44XX_MCBSP3_BASE,
 		.dma_rx_sync    = OMAP44XX_DMA_MCBSP3_RX,
 		.dma_tx_sync    = OMAP44XX_DMA_MCBSP3_TX,
 		.tx_irq         = OMAP44XX_IRQ_MCBSP3,
-		/* XXX .ops ? */
 	},
 	{
 		.phys_base      = OMAP44XX_MCBSP4_BASE,
 		.dma_rx_sync    = OMAP44XX_DMA_MCBSP4_RX,
 		.dma_tx_sync    = OMAP44XX_DMA_MCBSP4_TX,
 		.tx_irq         = OMAP44XX_IRQ_MCBSP4,
-		/* XXX .ops ? */
 	},
 };
 #define OMAP44XX_MCBSP_PDATA_SZ		ARRAY_SIZE(omap44xx_mcbsp_pdata)
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCHv2 0/3] OMAP: McBSP: Fixes and cleanups after SCM conversion
  2010-10-06  5:50 [PATCHv2 0/3] OMAP: McBSP: Fixes and cleanups after SCM conversion Jarkko Nikula
                   ` (2 preceding siblings ...)
  2010-10-06  5:50 ` [PATCHv2 3/3] OMAP: McBSP: Remove null omap44xx ops comment Jarkko Nikula
@ 2010-10-06  5:58 ` Peter Ujfalusi
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Ujfalusi @ 2010-10-06  5:58 UTC (permalink / raw)
  To: linux-arm-kernel

On Wednesday 06 October 2010 08:50:39 ext Jarkko Nikula wrote:
> This set does a few fixes and cleanups to the Paul Walmsley's OMAP System
> Control Module function exports removal set:
> 
> http://marc.info/?l=linux-arm-kernel&m=128597757826159&w=2
> 
> v2:
> - Paul's ack added
> - lakml cc'ed

For all:
Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-06  5:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-06  5:50 [PATCHv2 0/3] OMAP: McBSP: Fixes and cleanups after SCM conversion Jarkko Nikula
2010-10-06  5:50 ` [PATCHv2 1/3] OMAP: McBSP: Fix CLKR and FSR signal muxing Jarkko Nikula
2010-10-06  5:50 ` [PATCHv2 2/3] OMAP: McBSP: Swap CLKS source definition Jarkko Nikula
2010-10-06  5:50 ` [PATCHv2 3/3] OMAP: McBSP: Remove null omap44xx ops comment Jarkko Nikula
2010-10-06  5:58 ` [PATCHv2 0/3] OMAP: McBSP: Fixes and cleanups after SCM conversion Peter Ujfalusi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).