mcbsp.c (4814ced5116e3b73dc4f63eec84999739fc8ed11) | mcbsp.c (425925dd750acc17234977decfda1f9cc223389a) |
---|---|
1/* 2 * linux/arch/arm/mach-omap2/mcbsp.c 3 * 4 * Copyright (C) 2008 Instituto Nokia de Tecnologia 5 * Contact: Eduardo Valentin <eduardo.valentin@indt.org.br> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 20 unchanged lines hidden (view full) --- 29/* McBSP internal signal muxing functions */ 30 31void omap2_mcbsp1_mux_clkr_src(u8 mux) 32{ 33 u32 v; 34 35 v = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0); 36 if (mux == CLKR_SRC_CLKR) | 1/* 2 * linux/arch/arm/mach-omap2/mcbsp.c 3 * 4 * Copyright (C) 2008 Instituto Nokia de Tecnologia 5 * Contact: Eduardo Valentin <eduardo.valentin@indt.org.br> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 20 unchanged lines hidden (view full) --- 29/* McBSP internal signal muxing functions */ 30 31void omap2_mcbsp1_mux_clkr_src(u8 mux) 32{ 33 u32 v; 34 35 v = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0); 36 if (mux == CLKR_SRC_CLKR) |
37 v &= OMAP2_MCBSP1_CLKR_MASK; | 37 v &= ~OMAP2_MCBSP1_CLKR_MASK; |
38 else if (mux == CLKR_SRC_CLKX) 39 v |= OMAP2_MCBSP1_CLKR_MASK; 40 omap_ctrl_writel(v, OMAP2_CONTROL_DEVCONF0); 41} 42EXPORT_SYMBOL(omap2_mcbsp1_mux_clkr_src); 43 44void omap2_mcbsp1_mux_fsr_src(u8 mux) 45{ 46 u32 v; 47 48 v = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0); 49 if (mux == FSR_SRC_FSR) | 38 else if (mux == CLKR_SRC_CLKX) 39 v |= OMAP2_MCBSP1_CLKR_MASK; 40 omap_ctrl_writel(v, OMAP2_CONTROL_DEVCONF0); 41} 42EXPORT_SYMBOL(omap2_mcbsp1_mux_clkr_src); 43 44void omap2_mcbsp1_mux_fsr_src(u8 mux) 45{ 46 u32 v; 47 48 v = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0); 49 if (mux == FSR_SRC_FSR) |
50 v &= OMAP2_MCBSP1_FSR_MASK; | 50 v &= ~OMAP2_MCBSP1_FSR_MASK; |
51 else if (mux == FSR_SRC_FSX) 52 v |= OMAP2_MCBSP1_FSR_MASK; 53 omap_ctrl_writel(v, OMAP2_CONTROL_DEVCONF0); 54} 55EXPORT_SYMBOL(omap2_mcbsp1_mux_fsr_src); 56 57/* McBSP CLKS source switching function */ 58 --- 241 unchanged lines hidden --- | 51 else if (mux == FSR_SRC_FSX) 52 v |= OMAP2_MCBSP1_FSR_MASK; 53 omap_ctrl_writel(v, OMAP2_CONTROL_DEVCONF0); 54} 55EXPORT_SYMBOL(omap2_mcbsp1_mux_fsr_src); 56 57/* McBSP CLKS source switching function */ 58 --- 241 unchanged lines hidden --- |