OMAP: McBSP: Fixes and cleanups after SCM conversion
Subsystems (3)
v2 cover OMAP: McBSP: Fixes and cleanups after SCM conversion
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
Signature · 1 line
Jarkko
PATCH v2 1/3 OMAP: McBSP: Fix CLKR and FSR signal muxing
Fix bit clear. Now it clears all other bits than mask bit where it should clear only it.
--- arch/arm/mach-omap2/mcbsp.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/mcbsp.c +2 -2
@@ -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 );
Signature · 1 line
1.7.1
PATCH v2 2/3 OMAP: McBSP: Swap CLKS source definition
In reply to Jarkko NikulaThis 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.
--- arch/arm/plat-omap/include/plat/mcbsp.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/plat-omap/include/plat/mcbsp.h +2 -2
@@ -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 {
Signature · 1 line
1.7.1
PATCH v2 3/3 OMAP: McBSP: Remove null omap44xx ops comment
In reply to Jarkko NikulaIt seems these comments where accidentally added so remove them.
--- arch/arm/mach-omap2/mcbsp.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
arch/arm/mach-omap2/mcbsp.c +0 -3
@@ -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)
Signature · 1 line
1.7.1
v2 cover OMAP: McBSP: Fixes and cleanups after SCM conversion
In reply to Jarkko NikulaQuoted 8 lines · 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: