Home
last modified time | relevance | path

Searched refs:spiclk (Results 1 – 25 of 27) sorted by relevance

12

/openbmc/u-boot/drivers/clk/rockchip/
H A Dclk_rk3368.c380 const struct spi_clkreg *spiclk = NULL; in rk3368_spi_get_clk() local
385 spiclk = &spi_clkregs[clk_id - SCLK_SPI0]; in rk3368_spi_get_clk()
393 val = readl(&cru->clksel_con[spiclk->reg]); in rk3368_spi_get_clk()
394 div = extract_bits(val, 7, spiclk->div_shift); in rk3368_spi_get_clk()
402 const struct spi_clkreg *spiclk = NULL; in rk3368_spi_set_clk() local
410 spiclk = &spi_clkregs[clk_id - SCLK_SPI0]; in rk3368_spi_set_clk()
418 rk_clrsetreg(&cru->clksel_con[spiclk->reg], in rk3368_spi_set_clk()
419 ((0x7f << spiclk->div_shift) | in rk3368_spi_set_clk()
420 (0x1 << spiclk->sel_shift)), in rk3368_spi_set_clk()
421 ((src_clk_div << spiclk->div_shift) | in rk3368_spi_set_clk()
[all …]
H A Dclk_rk3399.c631 const struct spi_clkreg *spiclk = NULL; in rk3399_spi_get_clk() local
636 spiclk = &spi_clkregs[clk_id - SCLK_SPI0]; in rk3399_spi_get_clk()
644 val = readl(&cru->clksel_con[spiclk->reg]); in rk3399_spi_get_clk()
645 div = bitfield_extract(val, spiclk->div_shift, in rk3399_spi_get_clk()
653 const struct spi_clkreg *spiclk = NULL; in rk3399_spi_set_clk() local
661 spiclk = &spi_clkregs[clk_id - SCLK_SPI0]; in rk3399_spi_set_clk()
669 rk_clrsetreg(&cru->clksel_con[spiclk->reg], in rk3399_spi_set_clk()
670 ((CLK_SPI_PLL_DIV_CON_MASK << spiclk->div_shift) | in rk3399_spi_set_clk()
671 (CLK_SPI_PLL_SEL_GPLL << spiclk->sel_shift)), in rk3399_spi_set_clk()
672 ((src_clk_div << spiclk->div_shift) | in rk3399_spi_set_clk()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-rockchip.c173 struct clk *spiclk; member
792 rs->spiclk = devm_clk_get(&pdev->dev, "spiclk"); in rockchip_spi_probe()
793 if (IS_ERR(rs->spiclk)) { in rockchip_spi_probe()
795 ret = PTR_ERR(rs->spiclk); in rockchip_spi_probe()
805 ret = clk_prepare_enable(rs->spiclk); in rockchip_spi_probe()
823 rs->freq = clk_get_rate(rs->spiclk); in rockchip_spi_probe()
941 clk_disable_unprepare(rs->spiclk); in rockchip_spi_probe()
957 clk_disable_unprepare(rs->spiclk); in rockchip_spi_remove()
1014 clk_disable_unprepare(rs->spiclk); in rockchip_spi_runtime_suspend()
1030 ret = clk_prepare_enable(rs->spiclk); in rockchip_spi_runtime_resume()
/openbmc/u-boot/arch/nds32/dts/
H A Dae3xx.dts26 spiclk: virt_100mhz { label
93 clocks = <&spiclk>;
/openbmc/linux/Documentation/devicetree/bindings/spi/
H A Dspi-rockchip.yaml55 - const: spiclk
107 clock-names = "spiclk", "apb_pclk";
/openbmc/u-boot/arch/riscv/dts/
H A Dae350_32.dts79 spiclk: virt_100mhz { label
218 clocks = <&spiclk>;
H A Dae350_64.dts79 spiclk: virt_100mhz { label
218 clocks = <&spiclk>;
/openbmc/u-boot/doc/device-tree-bindings/spi/
H A Dspi-atcspi200.txt28 clocks = <&spiclk>;
/openbmc/u-boot/arch/arm/dts/
H A Drk3xxx.dtsi394 clock-names = "spiclk", "apb_pclk";
407 clock-names = "spiclk", "apb_pclk";
H A Drk3368.dtsi296 clock-names = "spiclk", "apb_pclk";
309 clock-names = "spiclk", "apb_pclk";
322 clock-names = "spiclk", "apb_pclk";
H A Drk3399.dtsi644 clock-names = "spiclk", "apb_pclk";
657 clock-names = "spiclk", "apb_pclk";
670 clock-names = "spiclk", "apb_pclk";
683 clock-names = "spiclk", "apb_pclk";
696 clock-names = "spiclk", "apb_pclk";
1095 clock-names = "spiclk", "apb_pclk";
H A Drk3288.dtsi227 clock-names = "spiclk", "apb_pclk";
242 clock-names = "spiclk", "apb_pclk";
257 clock-names = "spiclk", "apb_pclk";
H A Drk3328.dtsi309 clock-names = "spiclk", "apb_pclk";
/openbmc/linux/arch/arm/boot/dts/rockchip/
H A Drk3xxx.dtsi454 clock-names = "spiclk", "apb_pclk";
467 clock-names = "spiclk", "apb_pclk";
H A Drk3288.dtsi279 clock-names = "spiclk", "apb_pclk";
294 clock-names = "spiclk", "apb_pclk";
309 clock-names = "spiclk", "apb_pclk";
H A Drk3128.dtsi446 clock-names = "spiclk", "apb_pclk";
H A Drk3036.dtsi557 clock-names = "spiclk", "apb_pclk";
H A Drv1108.dtsi188 clock-names = "spiclk", "apb_pclk";
H A Drk322x.dtsi422 clock-names = "spiclk", "apb_pclk";
/openbmc/linux/arch/arm64/boot/dts/rockchip/
H A Drk3368.dtsi237 clock-names = "spiclk", "apb_pclk";
250 clock-names = "spiclk", "apb_pclk";
263 clock-names = "spiclk", "apb_pclk";
H A Drk3399.dtsi778 clock-names = "spiclk", "apb_pclk";
793 clock-names = "spiclk", "apb_pclk";
808 clock-names = "spiclk", "apb_pclk";
823 clock-names = "spiclk", "apb_pclk";
838 clock-names = "spiclk", "apb_pclk";
1249 clock-names = "spiclk", "apb_pclk";
H A Drk3588s.dtsi1721 clock-names = "spiclk", "apb_pclk";
1737 clock-names = "spiclk", "apb_pclk";
1753 clock-names = "spiclk", "apb_pclk";
1769 clock-names = "spiclk", "apb_pclk";
2123 clock-names = "spiclk", "apb_pclk";
H A Drk356x.dtsi1283 clock-names = "spiclk", "apb_pclk";
1298 clock-names = "spiclk", "apb_pclk";
1313 clock-names = "spiclk", "apb_pclk";
1328 clock-names = "spiclk", "apb_pclk";
H A Drk3308.dtsi364 clock-names = "spiclk", "apb_pclk";
379 clock-names = "spiclk", "apb_pclk";
394 clock-names = "spiclk", "apb_pclk";
H A Dpx30.dtsi632 clock-names = "spiclk", "apb_pclk";
648 clock-names = "spiclk", "apb_pclk";

12