/linux/drivers/clk/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 6 The <linux/clk.h> calls support software clock gating and 16 Select this option when the clock API in <linux/clk.h> is implemented 19 'struct clk'. 29 clk, useful across many platforms, as well as an 30 implementation of the clock API in include/linux/clk.h. 31 Architectures utilizing the common struct clk should select 43 source "drivers/clk/versatile/Kconfig" 59 Low-Noise JESD204B Compliant Clock Jitter Cleaner With Dual Loop PLLs 88 These multi-function devices have two fixed-rate oscillators, clocked at 32KHz each. [all …]
|
/linux/drivers/clk/ux500/ |
H A D | clk-prcmu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2012 ST-Ericsson SA 9 #include <linux/clk-provider.h> 10 #include <linux/mfd/dbx500-prcmu.h> 14 #include "clk.h" 28 u8 source; member 36 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_prepare() local 38 return prcmu_request_clock(clk->cg_sel, true); in clk_prcmu_prepare() 43 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_unprepare() local 44 if (prcmu_request_clock(clk->cg_sel, false)) in clk_prcmu_unprepare() [all …]
|
H A D | u8500_of_clk.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2012 ST-Ericsson SA 11 #include <linux/clk-provider.h> 12 #include <linux/mfd/dbx500-prcmu.h> 14 #include "clk.h" 16 #include "reset-prcc.h" 18 static struct clk *prcc_pclk[(PRCC_NUM_PERIPH_CLUSTERS + 1) * PRCC_PERIPHS_PER_CLUSTER]; 19 static struct clk *prcc_kclk[(PRCC_NUM_PERIPH_CLUSTERS + 1) * PRCC_PERIPHS_PER_CLUSTER]; 22 #define PRCC_SHOW(clk, base, bit) \ argument 23 clk[(base * PRCC_PERIPHS_PER_CLUSTER) + bit] [all …]
|
/linux/drivers/clk/tegra/ |
H A D | clk-super.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/clk-provider.h> 13 #include "clk.h" 28 #define super_state_to_src_shift(m, s) ((m->width * s)) 29 #define super_state_to_src_mask(m) (((1 << m->width) - 1)) 38 u8 source, shift; in clk_super_get_parent() local 40 val = readl_relaxed(mux->reg); in clk_super_get_parent() 50 source = (val >> shift) & super_state_to_src_mask(mux); in clk_super_get_parent() 54 * PLLX/2 is the input source to CCLKLP. in clk_super_get_parent() 56 if ((mux->flags & TEGRA_DIVIDER_2) && !(val & SUPER_LP_DIV2_BYPASS) && in clk_super_get_parent() [all …]
|
H A D | clk-tegra210-emc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2015-2020, NVIDIA CORPORATION. All rights reserved. 7 #include <linux/clk.h> 8 #include <linux/clk-provider.h> 9 #include <linux/clk/tegra.h> 15 #include "clk.h" 37 struct clk *parents[8]; 57 value = readl_relaxed(emc->regs + CLK_SOURCE_EMC); in tegra210_clk_emc_get_parent() 71 * ->set_rate(), so the parent rate passed in here was cached from the in tegra210_clk_emc_recalc_rate() 72 * parent before the ->set_rate() call. in tegra210_clk_emc_recalc_rate() [all …]
|
H A D | clk-tegra124-emc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/clk/tegra/clk-emc.c 11 #include <linux/clk-provider.h> 12 #include <linux/clk.h> 14 #include <linux/clk/tegra.h> 27 #include "clk.h" 49 * clock source as the current parent, we must first change to a backup 50 * timing that has a different clock source. 68 struct clk *parent; 75 struct clk *prev_parent; [all …]
|
/linux/drivers/cpufreq/ |
H A D | spear-cpufreq.c | 2 * drivers/cpufreq/spear-cpufreq.c 16 #include <linux/clk.h> 28 struct clk *clk; member 34 static struct clk *spear1340_cpu_get_possible_parent(unsigned long newfreq) in spear1340_cpu_get_possible_parent() 36 struct clk *sys_pclk; in spear1340_cpu_get_possible_parent() 39 * In SPEAr1340, cpu clk's parent sys clk can take input from in spear1340_cpu_get_possible_parent() 50 * As sys clk can have multiple source with their own range in spear1340_cpu_get_possible_parent() 60 return ERR_PTR(-EINVAL); in spear1340_cpu_get_possible_parent() 72 * access a source clock (clk) which might not be ancestor of cpu at present. 73 * Hence in SPEAr1340 we would operate on source clock directly before switching [all …]
|
H A D | tegra124-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/clk.h> 20 struct clk *cpu_clk; 21 struct clk *pllp_clk; 22 struct clk *pllx_clk; 23 struct clk *dfll_clk; 29 struct clk *orig_parent; in tegra124_cpu_switch_to_dfll() 32 ret = clk_set_rate(priv->dfll_clk, clk_get_rate(priv->cpu_clk)); in tegra124_cpu_switch_to_dfll() 36 orig_parent = clk_get_parent(priv->cpu_clk); in tegra124_cpu_switch_to_dfll() 37 clk_set_parent(priv->cpu_clk, priv->pllp_clk); in tegra124_cpu_switch_to_dfll() [all …]
|
/linux/arch/arm64/boot/dts/xilinx/ |
H A D | zynqmp-zc1751-xm019-dc5.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * dts file for Xilinx ZynqMP zc1751-xm019-dc5 5 * (C) Copyright 2015 - 2021, Xilinx, Inc. 11 /dts-v1/; 14 #include "zynqmp-clk-ccf.dtsi" 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h> 19 model = "ZynqMP zc1751-xm019-dc5 RevA"; 20 compatible = "xlnx,zynqmp-zc1751", "xlnx,zynqmp"; 33 stdout-path = "serial0:115200n8"; [all …]
|
/linux/drivers/net/can/mscan/ |
H A D | mpc5xxx_can.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2004-2005 Andrey Volkov <avolkov@varma-el.com>, 7 * Copyright (C) 2008-2009 Wolfgang Grandegger <wg@grandegger.com> 23 #include <linux/clk.h> 40 { .compatible = "fsl,mpc5200-cdm", }, 57 * (IP_CLK) can be selected as MSCAN clock source. According to in mpc52xx_can_get_clock() 68 freq = mpc5xxx_get_bus_frequency(&ofdev->dev); in mpc52xx_can_get_clock() 78 dev_err(&ofdev->dev, "can't get clock node!\n"); in mpc52xx_can_get_clock() 84 dev_err(&ofdev->dev, "can't map clock node!\n"); in mpc52xx_can_get_clock() 88 if (in_8(&cdm->ipb_clk_sel) & 0x1) in mpc52xx_can_get_clock() [all …]
|
/linux/arch/arm64/boot/dts/nuvoton/ |
H A D | ma35d1-iot-512m.dts | 1 // SPDX-License-Identifier: GPL-2.0 4 * Author: Shan-Chun Hung <schung@nuvoton.com> 8 /dts-v1/; 12 model = "Nuvoton MA35D1-IoT"; 13 compatible = "nuvoton,ma35d1-iot", "nuvoton,ma35d1"; 24 stdout-path = "serial0:115200n8"; 32 clk_hxt: clock-hxt { 33 compatible = "fixed-clock"; 34 #clock-cells = <0>; 35 clock-frequency = <24000000>; [all …]
|
H A D | ma35d1-som-256m.dts | 1 // SPDX-License-Identifier: GPL-2.0 4 * Author: Shan-Chun Hung <schung@nuvoton.com> 8 /dts-v1/; 12 model = "Nuvoton MA35D1-SOM"; 13 compatible = "nuvoton,ma35d1-som", "nuvoton,ma35d1"; 24 stdout-path = "serial0:115200n8"; 32 clk_hxt: clock-hxt { 33 compatible = "fixed-clock"; 34 #clock-cells = <0>; 35 clock-frequency = <24000000>; [all …]
|
/linux/drivers/clocksource/ |
H A D | timer-fsl-ftm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 #include <linux/clk.h> 34 if (priv->big_endian) in ftm_readl() 42 if (priv->big_endian) in ftm_writel() 52 /* select and enable counter clock source */ in ftm_counter_enable() 55 val |= priv->ps | FTM_SC_CLK(1); in ftm_counter_enable() 63 /* disable counter clock source */ in ftm_counter_disable() 108 return ftm_readl(priv->clksrc_base + FTM_CNT); in ftm_read_sched_clock() 119 * a, the counter source clock is disabled. in ftm_set_next_event() 121 ftm_counter_disable(priv->clkevt_base); in ftm_set_next_event() [all …]
|
H A D | timer-cadence-ttc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2011-2013 Xilinx 10 #include <linux/clk.h> 23 * This driver configures the 2 16/32-bit count-up timers as follows: 26 * T2: Timer 2, clockevent source for hrtimers 30 * common to all the timer channels (T1, T2, and T3). With a pre-scaler of 32, 34 * obtained from device tree. The pre-scaler of 32 is used. 50 #define TTC_CLK_CNTRL_CSRC_MASK (1 << 5) /* clock source */ 55 * Setup the timers to use pre-scaling, using a fixed value for now that will 60 #define CLK_CNTRL_PRESCALE ((PRESCALE_EXPONENT - 1) << 1) [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | fsl,sai.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Shengjiu Wang <shengjiu.wang@nxp.com> 21 - items: 22 - enum: 23 - fsl,imx6ul-sai 24 - fsl,imx7d-sai 25 - const: fsl,imx6sx-sai 27 - items: [all …]
|
/linux/sound/soc/sunxi/ |
H A D | sun8i-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * (C) Copyright 2010-2016 9 * Mylène Josserand <mylene.josserand@free-electrons.com> 14 #include <linux/clk.h> 27 #include <sound/soc-dapm.h> 227 struct clk *clk_bus; 228 struct clk *clk_module; 251 if (scodec->clk_bus) { in sun8i_codec_runtime_resume() 252 ret = clk_prepare_enable(scodec->clk_bus); in sun8i_codec_runtime_resume() 259 regcache_cache_only(scodec->regmap, false); in sun8i_codec_runtime_resume() [all …]
|
/linux/sound/soc/fsl/ |
H A D | fsl_utils.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/clk.h> 10 #include <linux/clk-provider.h> 18 * fsl_asoc_get_dma_channel - determine the dma channel for a SSI node 42 return -EINVAL; in fsl_asoc_get_dma_channel() 44 if (!of_device_is_compatible(dma_channel_np, "fsl,ssi-dma-channe in fsl_asoc_get_dma_channel() 121 fsl_asoc_reparent_pll_clocks(struct device * dev,struct clk * clk,struct clk * pll8k_clk,struct clk * pll11k_clk,u64 ratio) fsl_asoc_reparent_pll_clocks() argument [all...] |
/linux/sound/soc/codecs/ |
H A D | jz4760.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/clk.h> 18 #include <sound/soc-dai.h> 19 #include <sound/soc-dapm.h> 166 struct clk *clk; member 173 struct regmap *regmap = jz_codec->regmap; in jz4760_codec_set_bias_level() 199 struct snd_soc_component *codec = dai->component; in jz4760_codec_startup() 208 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in jz4760_codec_startup() 216 struct snd_soc_component *codec = dai->component; in jz4760_codec_shutdown() 219 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in jz4760_codec_shutdown() [all …]
|
H A D | jz4770.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/clk.h> 17 #include <sound/soc-dai.h> 18 #include <sound/soc-dapm.h> 182 struct clk *clk; member 189 struct regmap *regmap = jz_codec->regmap; in jz4770_codec_set_bias_level() 219 struct snd_soc_component *codec = dai->component; in jz4770_codec_startup() 227 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in jz4770_codec_startup() 236 struct snd_soc_component *codec = dai->component; in jz4770_codec_shutdown() 239 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in jz4770_codec_shutdown() [all …]
|
H A D | jz4725b.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include <linux/clk.h> 163 struct clk *clk; member 167 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(jz4725b_dac_tlv, -2250, 150, 0); 169 0, 11, TLV_DB_SCALE_ITEM(-2250, 0, 0), 170 12, 31, TLV_DB_SCALE_ITEM(-2250, 150, 0), 174 0, 11, TLV_DB_SCALE_ITEM(-3350, 200, 0), 175 12, 23, TLV_DB_SCALE_ITEM(-1050, 100, 0), 228 SOC_SINGLE("High-Pass Filter Capture Switch", 251 SOC_DAPM_ENUM("ADC Source Capture Route", jz4725b_codec_adc_src_enum); [all …]
|
/linux/drivers/watchdog/ |
H A D | davinci_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 2006-2013 Texas Instruments. 21 #include <linux/clk.h> 24 #define MODULE_NAME "DAVINCI-WDT: " 60 * @base - base io address of WD device 61 * @clk - source clock of WDT 62 * @wdd - hold watchdog device as is in WDT core 66 struct clk *clk; member 77 wdt_freq = clk_get_rate(davinci_wdt->clk); in davinci_wdt_start() 79 /* disable, internal clock source */ in davinci_wdt_start() [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mp-beacon-kit.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/usb/pd.h> 9 #include <dt-bindings/phy/phy-imx8-pcie.h> 11 #include "imx8mp-beacon-som.dtsi" 15 compatible = "beacon,imx8mp-beacon-kit", "fsl,imx8mp"; 23 stdout-path = &uart2; 26 clk_xtal25: clock-xtal25 { 27 compatible = "fixed-clock"; 28 #clock-cells = <0>; [all …]
|
/linux/drivers/clk/qcom/ |
H A D | clk-regmap-mux-div.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 #include <linux/clk-provider.h> 11 #include "clk-regmap.h" 14 * struct mux_div_clk - combined mux/divider clock 18 * @src_width: number of bits in source select 19 * @src_shift: lowest bit of source select field 23 * @clkr: handle between common and hardware-specific interfaces 37 struct clk *pclk;
|
/linux/drivers/irqchip/ |
H A D | irq-imx-intmux.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * interrupt source # 0 +---->| | 9 * interrupt source # 1 +++-->| | 10 * ... | | | channel # 0 |--------->interrupt out # 0 13 * interrupt source # X-1 +++-->|________________| 17 * +---->| | 19 * | +-->| | 20 * | | | | channel # 1 |--------->interrupt out # 1 30 * +---->| | 32 * +-->| | [all …]
|
/linux/drivers/gpu/drm/mcde/ |
H A D | mcde_drm.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * (C) ST-Ericsson SA 2013 52 /* One-shot mode: flow stops after one frame */ 57 * Command mode with bus turn-around (BTA) and tearing effect 63 /* Video mode with the formatter itself as sync source */ 65 /* DPI video with the formatter itsels as sync source */ 85 struct clk *mcde_clk; 86 struct clk *lcd_clk; 87 struct clk *hdmi_clk; 89 struct clk *fifoa_clk; [all …]
|