/Linux-v6.1/drivers/clk/imx/ |
D | clk-imx35.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/clk.h> 16 #include "clk.h" 34 unsigned char arm, ahb, sel; member 38 { .arm = 1, .ahb = 4, .sel = 0}, 39 { .arm = 1, .ahb = 3, .sel = 1}, 40 { .arm = 2, .ahb = 2, .sel = 0}, 41 { .arm = 0, .ahb = 0, .sel = 0}, 42 { .arm = 0, .ahb = 0, .sel = 0}, 43 { .arm = 0, .ahb = 0, .sel = 0}, [all …]
|
D | clk-imx6q.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2011-2013 Freescale Semiconductor, Inc. 10 #include <linux/clk.h> 12 #include <linux/clk-provider.h> 19 #include <dt-bindings/clock/imx6qdl-clock.h> 21 #include "clk.h" 149 return -ENOENT; in ldb_di_sel_by_clock_id() 160 return -ENOENT; in ldb_di_sel_by_clock_id() 170 int parent, child, sel; in of_assigned_ldb_sels() local 172 num_parents = of_count_phandle_with_args(node, "assigned-clock-parents", in of_assigned_ldb_sels() [all …]
|
/Linux-v6.1/drivers/i2c/busses/ |
D | i2c-cbus-gpio.c | 4 * Copyright (C) 2004-2010 Nokia Corporation 40 struct gpio_desc *clk; member 42 struct gpio_desc *sel; member 46 * cbus_send_bit - sends one bit over the bus 52 gpiod_set_value(host->dat, bit ? 1 : 0); in cbus_send_bit() 53 gpiod_set_value(host->clk, 1); in cbus_send_bit() 54 gpiod_set_value(host->clk, 0); in cbus_send_bit() 58 * cbus_send_data - sends @len amount of data over the bus 67 for (i = len; i > 0; i--) in cbus_send_data() 68 cbus_send_bit(host, data & (1 << (i - 1))); in cbus_send_data() [all …]
|
/Linux-v6.1/drivers/clk/qcom/ |
D | clk-krait.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/clk-provider.h> 13 #include <asm/krait-l2-accessors.h> 15 #include "clk-krait.h" 23 static void __krait_mux_set_sel(struct krait_mux_clk *mux, int sel) in __krait_mux_set_sel() argument 30 regval = krait_get_l2_indirect_reg(mux->offset); in __krait_mux_set_sel() 33 if (mux->disable_sec_src_gating) { in __krait_mux_set_sel() 35 krait_set_l2_indirect_reg(mux->offset, regval); in __krait_mux_set_sel() 38 regval &= ~(mux->mask << mux->shift); in __krait_mux_set_sel() 39 regval |= (sel & mux->mask) << mux->shift; in __krait_mux_set_sel() [all …]
|
/Linux-v6.1/drivers/clk/tegra/ |
D | clk-pll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/clk.h> 11 #include <linux/clk-provider.h> 13 #include "clk.h" 31 #define PLL_MISC_CPCON_MASK ((1 << PLL_MISC_CPCON_WIDTH) - 1) 34 #define PLL_MISC_LFCON_MASK ((1 << PLL_MISC_LFCON_WIDTH) - 1) 37 #define PLL_MISC_VCOCON_MASK ((1 << PLL_MISC_VCOCON_WIDTH) - 1) 230 #define pll_readl(offset, p) readl_relaxed(p->clk_base + offset) 231 #define pll_readl_base(p) pll_readl(p->params->base_reg, p) 232 #define pll_readl_misc(p) pll_readl(p->params->misc_reg, p) [all …]
|
/Linux-v6.1/sound/soc/mediatek/mt8186/ |
D | mt8186-afe-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // mt8186-afe-gpio.c -- Mediatek 8186 afe gpio ctrl 11 #include "mt8186-afe-common.h" 12 #include "mt8186-afe-gpio.h" 113 return -EINVAL; in mt8186_afe_gpio_select() 119 return -EIO; in mt8186_afe_gpio_select() 140 dev_err(dev, "%s(), MOSI CLK ON select fail!\n", __func__); in mt8186_afe_gpio_adda_dl() 158 dev_err(dev, "%s(), MOSI CLK ON select fail!\n", __func__); in mt8186_afe_gpio_adda_dl() 173 dev_err(dev, "%s(), MISO CLK ON select fail!\n", __func__); in mt8186_afe_gpio_adda_ul() 191 dev_err(dev, "%s(), MISO CLK OFF select fail!\n", __func__); in mt8186_afe_gpio_adda_ul() [all …]
|
/Linux-v6.1/sound/soc/sh/rcar/ |
D | adg.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Helper routines for R-Car sound ADG. 6 #include <linux/clk-provider.h> 29 struct clk *clk[CLKMAX]; member 30 struct clk *clkout[CLKOUTMAX]; 31 struct clk *null_clk; 50 ((pos) = adg->clk[i]); \ 55 ((pos) = adg->clkout[i]); \ 57 #define rsnd_priv_to_adg(priv) ((struct rsnd_adg *)(priv)->adg) 73 for (i = 3; i >= 0; i--) { in rsnd_adg_calculate_rbgx() [all …]
|
/Linux-v6.1/drivers/media/i2c/ |
D | ov6650.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net> 25 #include <linux/clk.h> 29 #include <linux/v4l2-mediabus.h> 32 #include <media/v4l2-ctrls.h> 33 #include <media/v4l2-device.h> 36 #define REG_GAIN 0x00 /* range 00 - 3F */ 51 /* [5:0]: Internal Clock Pre-Scaler */ 165 #define W_QCIF (DEF_HSTOP - DEF_HSTRT) 167 #define H_QCIF (DEF_VSTOP - DEF_VSTRT) [all …]
|
D | mt9m001.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/clk.h> 18 #include <media/v4l2-ctrls.h> 19 #include <media/v4l2-device.h> 20 #include <media/v4l2-event.h> 21 #include <media/v4l2-subdev.h> 83 /* Order important - see above */ 92 /* exposure/auto-exposure cluster */ 99 struct clk *clk; member 181 dev_dbg(&client->dev, "%s\n", __func__); in mt9m001_init() [all …]
|
D | mt9p031.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2011, Javier Martin <javier.martin@vista-silicon.com> 12 #include <linux/clk.h> 27 #include <media/v4l2-async.h> 28 #include <media/v4l2-ctrls.h> 29 #include <media/v4l2-device.h> 30 #include <media/v4l2-fwnode.h> 31 #include <media/v4l2-subdev.h> 33 #include "aptina-pll.h" 129 struct clk *clk; member [all …]
|
D | mt9t001.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2010-2011, Laurent Pinchart <laurent.pinchart@ideasonboard.com> 12 #include <linux/clk.h> 19 #include <linux/v4l2-mediabus.h> 22 #include <media/v4l2-ctrls.h> 23 #include <media/v4l2-device.h> 24 #include <media/v4l2-subdev.h> 119 struct clk *clk; member 153 struct i2c_client *client = v4l2_get_subdevdata(&mt9t001->subdev); in mt9t001_set_output_control() 154 u16 value = (mt9t001->output_control & ~clear) | set; in mt9t001_set_output_control() [all …]
|
D | mt9t112.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net> 20 * v4l-utils compliance tools will report errors. 23 #include <linux/clk.h> 30 #include <linux/v4l2-mediabus.h> 34 #include <media/v4l2-common.h> 35 #include <media/v4l2-image-sizes.h> 36 #include <media/v4l2-subdev.h> 95 struct clk *clk; member 158 msg[0].addr = client->addr; in __mt9t112_reg_read() [all …]
|
D | mt9v032.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/clk.h> 23 #include <linux/v4l2-mediabus.h> 27 #include <media/v4l2-ctrls.h> 28 #include <media/v4l2-device.h> 29 #include <media/v4l2-fwnode.h> 30 #include <media/v4l2-subdev.h> 203 struct clk *clk; member 228 struct regmap *map = mt9v032->regmap; in mt9v032_update_aec_agc() 229 u16 value = mt9v032->aec_agc; in mt9v032_update_aec_agc() [all …]
|
D | tw9910.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net> 18 #include <linux/clk.h> 26 #include <linux/v4l2-mediabus.h> 30 #include <media/v4l2-subdev.h> 136 #define IFSEL_S 0x10 /* 01 : S-video decoding */ 146 /* 1 : ITU-R-656 compatible data sequence format */ 147 #define LEN 0x40 /* 0 : 8-bit YCrCb 4:2:2 output format */ 148 /* 1 : 16-bit YCrCb 4:2:2 output format.*/ 150 /* 0 : free-run output mode */ [all …]
|
/Linux-v6.1/include/linux/mfd/ |
D | imx25-tsadc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 struct clk; 11 struct clk *clk; member 54 _MX25_ADCQ_ITEM((item) - 8, (x)) : _MX25_ADCQ_ITEM((item), (x))) 103 /* ADCQ_CFG (TICR, TCC0-7,GCC0-7) */ 107 #define MX25_ADCQ_CFG_NOS(x) (((x) - 1) << 16) 118 #define MX25_ADCQ_CFG_REFP(sel) ((sel) << 7) argument 124 #define MX25_ADCQ_CFG_IN(sel) ((sel) << 4) argument 133 #define MX25_ADCQ_CFG_REFN(sel) ((sel) << 2) argument
|
/Linux-v6.1/drivers/media/platform/qcom/camss/ |
D | camss-vfe.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * camss-vfe.c 5 * Qualcomm MSM Camera Subsystem - VFE (Video Front End) Module 7 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. 8 * Copyright (C) 2015-2018 Linaro Ltd. 10 #include <linux/clk.h> 20 #include <media/media-entity.h> 21 #include <media/v4l2-device.h> 22 #include <media/v4l2-subdev.h> 24 #include "camss-vfe.h" [all …]
|
/Linux-v6.1/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | phy_shim.c | 18 * This is "two-way" interface, acting as the SHIM layer between driver 20 * to do some preprocessing, then reach PHY. On the PHY->driver direction, 35 struct brcms_info *wl; /* pointer to os-specific private state */ 47 physhim->wlc_hw = wlc_hw; in wlc_phy_shim_attach() 48 physhim->wlc = wlc; in wlc_phy_shim_attach() 49 physhim->wl = wl; in wlc_phy_shim_attach() 64 brcms_init_timer(physhim->wl, (void (*)(void *))fn, in wlapi_init_timer() 86 brcms_intrson(physhim->wl); in wlapi_intrson() 91 return brcms_intrsoff(physhim->wl); in wlapi_intrsoff() 96 brcms_intrsrestore(physhim->wl, macintmask); in wlapi_intrsrestore() [all …]
|
/Linux-v6.1/drivers/regulator/ |
D | ti-abb-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 2012-2013 Texas Instruments, Inc. 12 #include <linux/clk.h> 27 * FAST_OPP: sets ABB LDO to Forward Body-Bias 28 * SLOW_OPP: sets ABB LDO to Reverse Body-Bias 35 * struct ti_abb_info - ABB information per voltage setting 48 * struct ti_abb_reg - Register description for ABB block 51 * @sr2_wtcnt_value_mask: setup register- sr2_wtcnt_value mask 52 * @fbb_sel_mask: setup register- FBB sel mask 53 * @rbb_sel_mask: setup register- RBB sel mask [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/i2c/ |
D | i2c-cbus-gpio.txt | 1 Device tree bindings for i2c-cbus-gpio driver 4 - compatible = "i2c-cbus-gpio"; 5 - gpios: clk, dat, sel 6 - #address-cells = <1>; 7 - #size-cells = <0>; 10 - child nodes conforming to i2c bus binding 15 compatible = "i2c-cbus-gpio"; 16 gpios = <&gpio 66 0 /* clk */ 18 &gpio 64 0 /* sel */ 20 #address-cells = <1>; [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/spi/ |
D | mediatek,spi-mt65xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/mediatek,spi-mt65xx.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Leilk Liu <leilk.liu@mediatek.com> 13 - $ref: "/schemas/spi/spi-controller.yaml#" 18 - items: 19 - enum: 20 - mediatek,mt7629-spi 21 - mediatek,mt8365-spi [all …]
|
/Linux-v6.1/drivers/staging/rts5208/ |
D | rtsx_card.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Driver for Realtek PCI-Express card reader 5 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved. 25 struct sd_info *sd_card = &chip->sd_card; in do_remaining_work() 27 struct xd_info *xd_card = &chip->xd_card; in do_remaining_work() 29 struct ms_info *ms_card = &chip->ms_card; in do_remaining_work() 31 if (chip->card_ready & SD_CARD) { in do_remaining_work() 32 if (sd_card->seq_mode) { in do_remaining_work() 34 sd_card->cleanup_counter++; in do_remaining_work() 36 sd_card->cleanup_counter = 0; in do_remaining_work() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/net/ |
D | stm32-dwmac.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: "http://devicetree.org/schemas/net/stm32-dwmac.yaml#" 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 11 - Alexandre Torgue <alexandre.torgue@foss.st.com> 12 - Christophe Roullier <christophe.roullier@foss.st.com> 23 - st,stm32-dwmac 24 - st,stm32mp1-dwmac 26 - compatible 29 - $ref: "snps,dwmac.yaml#" [all …]
|
/Linux-v6.1/sound/soc/meson/ |
D | t9015.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/clk.h> 51 struct clk *pclk; 57 struct snd_soc_component *component = dai->component; in t9015_dai_set_fmt() 70 return -EINVAL; in t9015_dai_set_fmt() 77 return -EINVAL; in t9015_dai_set_fmt() 87 .name = "t9015-hifi", 101 static const DECLARE_TLV_DB_MINMAX_MUTE(dac_vol_tlv, -9525, 0); 138 SND_SOC_DAPM_MUX("Right DAC Sel", SND_SOC_NOPM, 0, 0, 140 SND_SOC_DAPM_MUX("Left DAC Sel", SND_SOC_NOPM, 0, 0, [all …]
|
/Linux-v6.1/drivers/mmc/host/ |
D | sdhci_am654.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * sdhci_am654.c - SDHCI driver for TI's AM654 SOCs 5 * Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com 8 #include <linux/clk.h> 18 #include "sdhci-cqhci.h" 19 #include "sdhci-pltfm.h" 106 [MMC_TIMING_LEGACY] = {"ti,otap-del-sel-legacy", 107 "ti,itap-del-sel-legacy", 109 [MMC_TIMING_MMC_HS] = {"ti,otap-del-sel-mmc-hs", 110 "ti,itap-del-sel-mmc-hs", [all …]
|
/Linux-v6.1/drivers/clk/renesas/ |
D | rcar-usb2-clock-sel.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Renesas R-Car USB2.0 clock selector 7 * Based on renesas-cpg-mssr.c 12 #include <linux/clk.h> 13 #include <linux/clk-provider.h> 32 { .id = "hs-usb-if", }, 47 u16 val = readw(priv->base + USB20_CLKSET0); in usb2_clock_sel_enable_extal_only() 50 priv->extal, priv->xtal, val); in usb2_clock_sel_enable_extal_only() 52 if (priv->extal && !priv->xtal && val != CLKSET0_EXTAL_ONLY) in usb2_clock_sel_enable_extal_only() 53 writew(CLKSET0_EXTAL_ONLY, priv->base + USB20_CLKSET0); in usb2_clock_sel_enable_extal_only() [all …]
|