/openbmc/linux/arch/riscv/boot/dts/canaan/ |
H A D | k210.dtsi | 91 clocks = <&sysclk K210_CLK_SRAM0>, 92 <&sysclk K210_CLK_SRAM1>, 93 <&sysclk K210_CLK_AI>; 139 clocks = <&sysclk K210_CLK_CPU>; 162 clocks = <&sysclk K210_CLK_DMA>, <&sysclk K210_CLK_DMA>; 179 clocks = <&sysclk K210_CLK_APB0>; 186 clocks = <&sysclk K210_CLK_APB0>, 187 <&sysclk K210_CLK_GPIO>; 207 clocks = <&sysclk K210_CLK_UART1>, 208 <&sysclk K210_CLK_APB0>; [all …]
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | mpc8xx.c | 55 void mpc8xx_set_clocks(u32 sysclk) in mpc8xx_set_clocks() argument 59 dt_fixup_cpu_clocks(sysclk, sysclk / 16, sysclk); in mpc8xx_set_clocks() 63 setprop(node, "clock-frequency", &sysclk, 4); in mpc8xx_set_clocks() 67 setprop(node, "clock-frequency", &sysclk, 4); in mpc8xx_set_clocks() 72 u32 sysclk = mpc885_get_clock(crystal); in mpc885_fixup_clocks() local 73 if (!sysclk) in mpc885_fixup_clocks() 76 mpc8xx_set_clocks(sysclk); in mpc885_fixup_clocks()
|
H A D | cuboot-acadia.c | 43 unsigned long sysclk, cpr_plld, cpr_pllc, cpr_primad, plloutb, i; in get_clocks() local 57 sysclk = (in_8((unsigned char *)0x80000000) == 0xc) ? 66666666 : 33333000; in get_clocks() 114 freqOPB = (sysclk *pllFbkDiv) /pllOpbDiv; in get_clocks() 116 freqEBC = (sysclk * pllFbkDiv) / pllExtBusDiv; in get_clocks() 118 plloutb = ((sysclk * ((cpr_pllc & PLLC_SRC_MASK) ? in get_clocks()
|
/openbmc/u-boot/drivers/clk/ |
H A D | clk_stm32h7.c | 590 static u32 stm32_get_timer_rate(struct stm32_clk *priv, u32 sysclk, in stm32_get_timer_rate() argument 605 return sysclk; in stm32_get_timer_rate() 607 return sysclk / 2; in stm32_get_timer_rate() 609 return sysclk / 4; in stm32_get_timer_rate() 617 return sysclk; in stm32_get_timer_rate() 622 return sysclk / psc; in stm32_get_timer_rate() 633 ulong sysclk = 0; in stm32_clk_get_rate() local 647 sysclk = stm32_get_PLL1_rate(regs, PLL1_P_CK); in stm32_clk_get_rate() 650 sysclk = stm32_get_rate(regs, HSE); in stm32_clk_get_rate() 654 sysclk = stm32_get_rate(regs, CSI); in stm32_clk_get_rate() [all …]
|
H A D | clk_stm32f.c | 330 static u32 stm32_get_hclk_rate(struct stm32_rcc_regs *regs, u32 sysclk) in stm32_get_hclk_rate() argument 342 return sysclk >> shift; in stm32_get_hclk_rate() 362 static u32 stm32_get_timer_rate(struct stm32_clk *priv, u32 sysclk, in stm32_get_timer_rate() argument 377 return stm32_get_hclk_rate(regs, sysclk); in stm32_get_timer_rate() 379 return (sysclk >> shift) * 4; in stm32_get_timer_rate() 387 return sysclk; in stm32_get_timer_rate() 389 return (sysclk >> shift) * 2; in stm32_get_timer_rate() 396 u32 sysclk = 0; in stm32_clk_get_rate() local 413 sysclk = vco / pllp; in stm32_clk_get_rate() 424 return stm32_get_hclk_rate(regs, sysclk); in stm32_clk_get_rate() [all …]
|
/openbmc/linux/sound/soc/ti/ |
H A D | davinci-evm.c | 26 unsigned sysclk; member 60 unsigned sysclk = ((struct snd_soc_card_drvdata_davinci *) in evm_hw_params() local 61 snd_soc_card_get_drvdata(soc_card))->sysclk; in evm_hw_params() 64 ret = snd_soc_dai_set_sysclk(codec_dai, 0, sysclk, SND_SOC_CLOCK_OUT); in evm_hw_params() 69 ret = snd_soc_dai_set_sysclk(cpu_dai, 0, sysclk, SND_SOC_CLOCK_OUT); in evm_hw_params() 223 ret = of_property_read_u32(np, "ti,codec-clock-rate", &drvdata->sysclk); in davinci_evm_probe() 231 drvdata->sysclk = clk_get_rate(drvdata->mclk); in davinci_evm_probe() 233 unsigned int requestd_rate = drvdata->sysclk; in davinci_evm_probe() 234 clk_set_rate(drvdata->mclk, drvdata->sysclk); in davinci_evm_probe() 235 drvdata->sysclk = clk_get_rate(drvdata->mclk); in davinci_evm_probe() [all …]
|
/openbmc/linux/arch/powerpc/platforms/83xx/ |
H A D | mpc832x_rdb.c | 41 static int __init of_fsl_spi_probe(char *type, char *compatible, u32 sysclk, in of_fsl_spi_probe() argument 62 pdata.sysclk = sysclk; in of_fsl_spi_probe() 127 u32 sysclk = -1; in fsl_spi_init() local 131 sysclk = get_brgfreq(); in fsl_spi_init() 132 if (sysclk == -1) { in fsl_spi_init() 133 sysclk = fsl_get_sys_freq(); in fsl_spi_init() 134 if (sysclk == -1) in fsl_spi_init() 138 ret = of_fsl_spi_probe(NULL, "fsl,spi", sysclk, board_infos, in fsl_spi_init() 141 of_fsl_spi_probe("spi", "fsl_spi", sysclk, board_infos, in fsl_spi_init()
|
/openbmc/linux/arch/arm/boot/dts/arm/ |
H A D | integratorap-im-pd1.dts | 41 clocks = <&sysclk>; 51 clocks = <&sysclk>; 169 clocks = <&impd1_uartclk>, <&sysclk>; 177 clocks = <&impd1_uartclk>, <&sysclk>; 185 clocks = <&impd1_sspclk>, <&sysclk>; 197 clocks = <&sysclk>; 209 clocks = <&sysclk>; 217 clocks = <&sysclk>; 226 clocks = <&sysclk>, <&sysclk>; 239 clocks = <&sysclk>; [all …]
|
H A D | mps2.dtsi | 81 sysclk: clk-sys { label 151 clocks = <&sysclk>; 159 clocks = <&sysclk>; 166 clocks = <&sysclk>, <&sysclk>, <&sysclk>; 177 clocks = <&sysclk>; 185 clocks = <&sysclk>; 193 clocks = <&sysclk>; 202 clocks = <&sysclk>, <&sysclk>;
|
/openbmc/qemu/hw/arm/ |
H A D | stm32vldiscovery.c | 43 Clock *sysclk; in stm32vldiscovery_init() local 46 sysclk = clock_new(OBJECT(machine), "SYSCLK"); in stm32vldiscovery_init() 47 clock_set_hz(sysclk, SYSCLK_FRQ); in stm32vldiscovery_init() 51 qdev_connect_clock_in(dev, "sysclk", sysclk); in stm32vldiscovery_init()
|
H A D | netduinoplus2.c | 40 Clock *sysclk; in netduinoplus2_init() local 43 sysclk = clock_new(OBJECT(machine), "SYSCLK"); in netduinoplus2_init() 44 clock_set_hz(sysclk, SYSCLK_FRQ); in netduinoplus2_init() 48 qdev_connect_clock_in(dev, "sysclk", sysclk); in netduinoplus2_init()
|
H A D | netduino2.c | 40 Clock *sysclk; in netduino2_init() local 43 sysclk = clock_new(OBJECT(machine), "SYSCLK"); in netduino2_init() 44 clock_set_hz(sysclk, SYSCLK_FRQ); in netduino2_init() 48 qdev_connect_clock_in(dev, "sysclk", sysclk); in netduino2_init()
|
H A D | olimex-stm32-h405.c | 43 Clock *sysclk; in olimex_stm32_h405_init() local 46 sysclk = clock_new(OBJECT(machine), "SYSCLK"); in olimex_stm32_h405_init() 47 clock_set_hz(sysclk, SYSCLK_FRQ); in olimex_stm32_h405_init() 51 qdev_connect_clock_in(dev, "sysclk", sysclk); in olimex_stm32_h405_init()
|
/openbmc/linux/sound/soc/xilinx/ |
H A D | xlnx_i2s.c | 30 unsigned int sysclk; member 46 drv_data->sysclk = 0; in xlnx_i2s_set_sclkout_div() 58 drv_data->sysclk = freq; in xlnx_i2s_set_sysclk() 82 if (drv_data->sysclk) in xlnx_i2s_startup() 97 if (drv_data->sysclk) { in xlnx_i2s_hw_params() 106 sclk_div = drv_data->sysclk / sclk / 2; in xlnx_i2s_hw_params() 108 if ((drv_data->sysclk % sclk != 0) || in xlnx_i2s_hw_params() 111 drv_data->sysclk, sclk); in xlnx_i2s_hw_params()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-fsl-lib.c | 101 mpc8xxx_spi->spibrg = pdata->sysclk; in mpc8xxx_spi_probe() 135 pdata->sysclk = get_brgfreq(); in of_mpc8xxx_spi_probe() 136 if (pdata->sysclk == -1) { in of_mpc8xxx_spi_probe() 137 pdata->sysclk = fsl_get_sys_freq(); in of_mpc8xxx_spi_probe() 138 if (pdata->sysclk == -1) in of_mpc8xxx_spi_probe() 142 ret = of_property_read_u32(np, "clock-frequency", &pdata->sysclk); in of_mpc8xxx_spi_probe()
|
/openbmc/linux/sound/soc/loongson/ |
H A D | loongson_i2s.c | 66 u32 sysclk = i2s->sysclk; in loongson_i2s_hw_params() local 78 mclk_ratio = DIV_ROUND_CLOSEST(clk_rate, (sysclk * 2)) - 1; in loongson_i2s_hw_params() 89 bclk_ratio = DIV_ROUND_CLOSEST(sysclk, in loongson_i2s_hw_params() 91 mclk_ratio = clk_rate / sysclk; in loongson_i2s_hw_params() 93 sysclk) - (mclk_ratio << 16); in loongson_i2s_hw_params() 121 i2s->sysclk = freq; in loongson_i2s_set_dai_sysclk()
|
/openbmc/linux/Documentation/devicetree/bindings/clock/ |
H A D | qoriq-clock.txt | 65 - clocks: If clock-frequency is not specified, sysclk may be provided 72 "sysclk" and "coreclk". 84 0 sysclk must be 0 121 * "fsl,qoriq-sysclk-1.0": for input system clock (v1.0). 123 * "fsl,qoriq-sysclk-2.0": for input system clock (v2.0). 128 clock-specifier. Should be <0> for "fsl,qoriq-sysclk-[1,2].0" 154 sysclk: sysclk { 156 compatible = "fsl,qoriq-sysclk-1.0"; 157 clock-output-names = "sysclk"; 164 clocks = <&sysclk>; [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/ |
H A D | fsl_lsch3_speed.c | 68 unsigned long sysclk = CONFIG_SYS_CLK_FREQ; in get_sys_info() local 73 sys_info->freq_systembus = sysclk; in get_sys_info() 80 sys_info->freq_ddrbus = sysclk; in get_sys_info() 82 sys_info->freq_ddrbus2 = sysclk; in get_sys_info() 112 freq_c_pll[i] = sysclk * ratio[i]; in get_sys_info()
|
/openbmc/linux/sound/soc/meson/ |
H A D | axg-pdm.c | 95 struct clk *sysclk; member 176 return clk_set_rate(priv->sysclk, sys_rate); in axg_pdm_set_sysclk() 178 return clk_set_rate(priv->sysclk, priv->cfg->sys_rate); in axg_pdm_set_sysclk() 187 spmax = DIV_ROUND_UP_ULL((u64)clk_get_rate(priv->sysclk), in axg_pdm_set_sample_pointer() 389 ret = clk_set_rate(priv->sysclk, priv->cfg->sys_rate); in axg_pdm_dai_probe() 395 ret = clk_prepare_enable(priv->sysclk); in axg_pdm_dai_probe() 420 clk_disable_unprepare(priv->sysclk); in axg_pdm_dai_probe() 430 clk_disable_unprepare(priv->sysclk); in axg_pdm_dai_remove() 622 priv->sysclk = devm_clk_get(dev, "sysclk"); in axg_pdm_probe() 623 if (IS_ERR(priv->sysclk)) in axg_pdm_probe() [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | fsl-ls1043a.dtsi | 16 sysclk: sysclk { label 20 clock-output-names = "sysclk"; 44 clocks = <&sysclk>; 163 clocks = <&sysclk>; 172 clocks = <&sysclk>; 182 clocks = <&sysclk>; 190 clocks = <&sysclk>; 199 clocks = <&sysclk>; 208 clocks = <&sysclk>;
|
/openbmc/u-boot/arch/arm/cpu/armv7/ls102xa/ |
H A D | clock.c | 40 unsigned long sysclk = CONFIG_SYS_CLK_FREQ; in get_sys_info() local 42 sys_info->freq_systembus = sysclk; in get_sys_info() 46 sys_info->freq_ddrbus = sysclk; in get_sys_info() 57 freq_c_pll[i] = sysclk * ratio[i]; in get_sys_info()
|
/openbmc/u-boot/board/freescale/common/ |
H A D | ngpixis.c | 155 void pixis_sysclk_set(unsigned long sysclk) in pixis_sysclk_set() argument 160 freq_word = ics307_sysclk_calculator(sysclk); in pixis_sysclk_set() 177 unsigned long sysclk; in pixis_reset_cmd() local 202 sysclk = simple_strtoul(argv[i + 1], NULL, 0); in pixis_reset_cmd() 204 pixis_sysclk_set(sysclk); in pixis_reset_cmd()
|
H A D | pixis.c | 27 static int set_px_sysclk(unsigned long sysclk) in set_px_sysclk() argument 31 switch (sysclk) { in set_px_sysclk() 486 unsigned long sysclk; in pixis_reset_cmd() local 490 sysclk = simple_strtoul(p_cf_sysclk, NULL, 10); in pixis_reset_cmd() 494 if (!(set_px_sysclk(sysclk) in pixis_reset_cmd()
|
/openbmc/linux/sound/soc/atmel/ |
H A D | mchp-i2s-mcc.c | 247 unsigned int sysclk; member 325 dev->sysclk = freq; in mchp_i2s_mcc_set_sysclk() 423 unsigned int sysclk; in mchp_i2s_mcc_config_divs() local 428 if (!dev->sysclk) in mchp_i2s_mcc_config_divs() 429 sysclk = bclk; in mchp_i2s_mcc_config_divs() 431 sysclk = dev->sysclk; in mchp_i2s_mcc_config_divs() 438 lcm_rate = lcm(sysclk, bclk); in mchp_i2s_mcc_config_divs() 439 if ((lcm_rate / sysclk % 2 == 1 && lcm_rate / sysclk > 2) || in mchp_i2s_mcc_config_divs() 444 (clk_rate == sysclk || clk_rate / (sysclk * 2) <= GENMASK(5, 0)) && in mchp_i2s_mcc_config_divs() 487 if (dev->sysclk) in mchp_i2s_mcc_config_divs() [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | max9860.c | 260 u8 sysclk = 0; in max9860_hw_params() local 369 sysclk = MAX9860_FREQ_12MHZ; in max9860_hw_params() 372 sysclk = MAX9860_FREQ_13MHZ; in max9860_hw_params() 375 sysclk = MAX9860_FREQ_19_2MHZ; in max9860_hw_params() 386 if (sysclk && params_rate(params) == 16000) in max9860_hw_params() 387 sysclk |= MAX9860_16KHZ; in max9860_hw_params() 401 if (!sysclk) { in max9860_hw_params() 404 sysclk |= MAX9860_16KHZ; in max9860_hw_params() 410 sysclk |= max9860->psclk; in max9860_hw_params() 411 dev_dbg(component->dev, "SYSCLK %02x\n", sysclk); in max9860_hw_params() [all …]
|