Home
last modified time | relevance | path

Searched refs:mux (Results 1 – 25 of 142) sorted by relevance

123456

/arch/arm/mach-imx/
Dclk-fixup-mux.c30 struct clk_mux mux; member
37 struct clk_mux *mux = to_clk_mux(hw); in to_clk_fixup_mux() local
39 return container_of(mux, struct clk_fixup_mux, mux); in to_clk_fixup_mux()
46 return fixup_mux->ops->get_parent(&fixup_mux->mux.hw); in clk_fixup_mux_get_parent()
52 struct clk_mux *mux = to_clk_mux(hw); in clk_fixup_mux_set_parent() local
56 spin_lock_irqsave(mux->lock, flags); in clk_fixup_mux_set_parent()
58 val = readl(mux->reg); in clk_fixup_mux_set_parent()
59 val &= ~(mux->mask << mux->shift); in clk_fixup_mux_set_parent()
60 val |= index << mux->shift; in clk_fixup_mux_set_parent()
62 writel(val, mux->reg); in clk_fixup_mux_set_parent()
[all …]
Dclk-busy.c118 struct clk_mux mux; member
126 struct clk_mux *mux = container_of(hw, struct clk_mux, hw); in to_clk_busy_mux() local
128 return container_of(mux, struct clk_busy_mux, mux); in to_clk_busy_mux()
135 return busy->mux_ops->get_parent(&busy->mux.hw); in clk_busy_mux_get_parent()
143 ret = busy->mux_ops->set_parent(&busy->mux.hw, index); in clk_busy_mux_set_parent()
170 busy->mux.reg = reg; in imx_clk_busy_mux()
171 busy->mux.shift = shift; in imx_clk_busy_mux()
172 busy->mux.mask = BIT(width) - 1; in imx_clk_busy_mux()
173 busy->mux.lock = &imx_ccm_lock; in imx_clk_busy_mux()
182 busy->mux.hw.init = &init; in imx_clk_busy_mux()
[all …]
/arch/arm/boot/dts/
Dmmp2.dtsi50 compatible = "mrvl,mmp2-mux-intc";
55 reg-names = "mux status", "mux mask";
60 compatible = "mrvl,mmp2-mux-intc";
65 reg-names = "mux status", "mux mask";
71 compatible = "mrvl,mmp2-mux-intc";
76 reg-names = "mux status", "mux mask";
81 compatible = "mrvl,mmp2-mux-intc";
86 reg-names = "mux status", "mux mask";
91 compatible = "mrvl,mmp2-mux-intc";
96 reg-names = "mux status", "mux mask";
[all …]
Ddra7xx-clocks.dtsi248 compatible = "ti,mux-clock";
322 compatible = "ti,mux-clock";
356 compatible = "ti,mux-clock";
390 compatible = "ti,mux-clock";
435 compatible = "ti,mux-clock";
461 compatible = "ti,mux-clock";
535 compatible = "ti,mux-clock";
782 compatible = "ti,mux-clock";
790 compatible = "ti,mux-clock";
798 compatible = "ti,mux-clock";
[all …]
Domap54xx-clocks.dtsi415 compatible = "ti,mux-clock";
423 compatible = "ti,mux-clock";
431 compatible = "ti,mux-clock";
439 compatible = "ti,mux-clock";
447 compatible = "ti,mux-clock";
455 compatible = "ti,mux-clock";
463 compatible = "ti,mux-clock";
471 compatible = "ti,mux-clock";
479 compatible = "ti,mux-clock";
487 compatible = "ti,mux-clock";
[all …]
Domap44xx-clocks.dtsi199 compatible = "ti,mux-clock";
349 compatible = "ti,mux-clock";
477 compatible = "ti,mux-clock";
485 compatible = "ti,mux-clock";
493 compatible = "ti,mux-clock";
501 compatible = "ti,mux-clock";
509 compatible = "ti,mux-clock";
517 compatible = "ti,mux-clock";
525 compatible = "ti,mux-clock";
533 compatible = "ti,mux-clock";
[all …]
Dam43xx-clocks.dtsi13 compatible = "ti,mux-clock";
21 compatible = "ti,mux-clock";
29 compatible = "ti,mux-clock";
367 compatible = "ti,mux-clock";
380 compatible = "ti,mux-clock";
387 compatible = "ti,mux-clock";
394 compatible = "ti,mux-clock";
401 compatible = "ti,mux-clock";
408 compatible = "ti,mux-clock";
415 compatible = "ti,mux-clock";
[all …]
Dam33xx-clocks.dtsi13 compatible = "ti,mux-clock";
337 compatible = "ti,mux-clock";
352 compatible = "ti,mux-clock";
359 compatible = "ti,mux-clock";
366 compatible = "ti,mux-clock";
373 compatible = "ti,mux-clock";
380 compatible = "ti,mux-clock";
387 compatible = "ti,mux-clock";
394 compatible = "ti,mux-clock";
425 compatible = "ti,mux-clock";
[all …]
Domap24xx-clocks.dtsi13 compatible = "ti,composite-mux-clock";
27 compatible = "ti,composite-mux-clock";
79 compatible = "ti,mux-clock";
95 compatible = "ti,mux-clock";
153 compatible = "ti,mux-clock";
181 compatible = "ti,mux-clock";
205 compatible = "ti,composite-mux-clock";
433 compatible = "ti,composite-mux-clock";
455 compatible = "ti,composite-mux-clock";
546 compatible = "ti,composite-mux-clock";
[all …]
Domap-gpmc-smsc9221.dtsi31 gpmc,mux-add-data;
48 gpmc,wr-data-mux-bus-ns = <18>;
Domap3xxx-clocks.dtsi19 compatible = "ti,mux-clock";
85 compatible = "ti,composite-mux-clock";
99 compatible = "ti,composite-mux-clock";
113 compatible = "ti,composite-mux-clock";
127 compatible = "ti,composite-mux-clock";
140 compatible = "ti,composite-mux-clock";
352 compatible = "ti,mux-clock";
387 compatible = "ti,mux-clock";
403 compatible = "ti,mux-clock";
518 compatible = "ti,composite-mux-clock";
[all …]
Domap3430-sdp.dts65 gpmc,mux-add-data = <2>;
82 gpmc,wr-data-mux-bus-ns = <90>;
156 gpmc,mux-add-data = <2>;
170 gpmc,wr-data-mux-bus-ns = <30>;
Dat91sam9g15.dtsi18 atmel,mux-mask = <
Dat91sam9x35.dtsi19 atmel,mux-mask = <
Dat91sam9g35.dtsi19 atmel,mux-mask = <
Dat91sam9g25.dtsi20 atmel,mux-mask = <
Dat91sam9x25.dtsi21 atmel,mux-mask = <
Dqcom-apq8064-ifc6410.dts10 mux {
Dqcom-apq8064-cm-qs600.dts10 mux {
/arch/arm/mach-omap2/
Dmux.c51 struct omap_mux mux; member
118 struct omap_mux *m = &e->mux; in _omap_mux_init_gpio()
164 struct omap_mux *mux = NULL; in _omap_mux_get_by_name() local
182 mux = &e->mux; in _omap_mux_get_by_name()
183 m0_entry = mux->muxnames[0]; in _omap_mux_get_by_name()
193 char *mode_cur = mux->muxnames[i]; in _omap_mux_get_by_name()
199 *found_mux = mux; in _omap_mux_get_by_name()
226 struct omap_mux *mux = NULL; in omap_mux_get_by_name() local
227 int mux_mode = _omap_mux_get_by_name(partition, muxname, &mux); in omap_mux_get_by_name()
232 *found_mux = mux; in omap_mux_get_by_name()
[all …]
Dgpmc.c854 bool mux) in gpmc_calc_sync_read_timings() argument
861 if (mux) { in gpmc_calc_sync_read_timings()
873 if (mux) { in gpmc_calc_sync_read_timings()
909 bool mux) in gpmc_calc_sync_write_timings() argument
915 if (mux) { in gpmc_calc_sync_write_timings()
928 if (mux) { in gpmc_calc_sync_write_timings()
971 bool mux) in gpmc_calc_async_read_timings() argument
977 if (mux) in gpmc_calc_async_read_timings()
983 if (mux) in gpmc_calc_async_read_timings()
1011 bool mux) in gpmc_calc_async_write_timings() argument
[all …]
Domap_hwmod.c592 if (!oh->mux || !oh->mux->enabled) in _set_idle_ioring_wakeup()
595 for (j = 0; j < oh->mux->nr_pads_dynamic; j++) { in _set_idle_ioring_wakeup()
596 pad = oh->mux->pads_dynamic[j]; in _set_idle_ioring_wakeup()
613 omap_hwmod_mux(oh->mux, _HWMOD_STATE_IDLE); in _set_idle_ioring_wakeup()
2155 if (oh->mux) in _enable()
2156 omap_hwmod_mux(oh->mux, _HWMOD_STATE_ENABLED); in _enable()
2183 if (oh->mux && (!oh->mux->enabled || in _enable()
2185 oh->mux->pads_dynamic))) { in _enable()
2186 omap_hwmod_mux(oh->mux, _HWMOD_STATE_ENABLED); in _enable()
2293 if (oh->mux && oh->mux->pads_dynamic) { in _idle()
[all …]
/arch/powerpc/sysdev/qe_lib/
Dusb.c25 struct qe_mux __iomem *mux = &qe_immr->qmx; in qe_usb_clock_set() local
50 clrsetbits_be32(&mux->cmxgcr, QE_CMXGCR_USBCS, val); in qe_usb_clock_set()
/arch/arm/mach-davinci/
Dboard-dm365-evm.c631 u8 mux, resets; in evm_init_cpld() local
657 mux = 0; in evm_init_cpld()
664 mux |= BIT(7); in evm_init_cpld()
684 mux |= 2; in evm_init_cpld()
687 mux |= BIT(6) | BIT(5) | BIT(3); in evm_init_cpld()
704 mux |= 1; in evm_init_cpld()
709 mux |= 5; in evm_init_cpld()
714 __raw_writeb(mux, cpld + CPLD_MUX); in evm_init_cpld()
/arch/powerpc/platforms/52xx/
Dmpc52xx_common.c283 u32 mux; in mpc5200_psc_ac97_gpio_reset() local
313 mux = in_be32(&simple_gpio->port_config); in mpc5200_psc_ac97_gpio_reset()
314 out_be32(&simple_gpio->port_config, mux & (~gpio)); in mpc5200_psc_ac97_gpio_reset()
338 out_be32(&simple_gpio->port_config, mux); in mpc5200_psc_ac97_gpio_reset()

123456