/openbmc/u-boot/drivers/clk/rockchip/ |
H A D | clk_rk3368.c | 380 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 D | clk_rk3399.c | 631 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 D | spi-rockchip.c | 173 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 D | ae3xx.dts | 26 spiclk: virt_100mhz { label 93 clocks = <&spiclk>;
|
/openbmc/linux/Documentation/devicetree/bindings/spi/ |
H A D | spi-rockchip.yaml | 55 - const: spiclk 107 clock-names = "spiclk", "apb_pclk";
|
/openbmc/u-boot/arch/riscv/dts/ |
H A D | ae350_32.dts | 79 spiclk: virt_100mhz { label 218 clocks = <&spiclk>;
|
H A D | ae350_64.dts | 79 spiclk: virt_100mhz { label 218 clocks = <&spiclk>;
|
/openbmc/u-boot/doc/device-tree-bindings/spi/ |
H A D | spi-atcspi200.txt | 28 clocks = <&spiclk>;
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | rk3xxx.dtsi | 394 clock-names = "spiclk", "apb_pclk"; 407 clock-names = "spiclk", "apb_pclk";
|
H A D | rk3368.dtsi | 296 clock-names = "spiclk", "apb_pclk"; 309 clock-names = "spiclk", "apb_pclk"; 322 clock-names = "spiclk", "apb_pclk";
|
H A D | rk3399.dtsi | 644 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 D | rk3288.dtsi | 227 clock-names = "spiclk", "apb_pclk"; 242 clock-names = "spiclk", "apb_pclk"; 257 clock-names = "spiclk", "apb_pclk";
|
H A D | rk3328.dtsi | 309 clock-names = "spiclk", "apb_pclk";
|
/openbmc/linux/arch/arm/boot/dts/rockchip/ |
H A D | rk3xxx.dtsi | 454 clock-names = "spiclk", "apb_pclk"; 467 clock-names = "spiclk", "apb_pclk";
|
H A D | rk3288.dtsi | 279 clock-names = "spiclk", "apb_pclk"; 294 clock-names = "spiclk", "apb_pclk"; 309 clock-names = "spiclk", "apb_pclk";
|
H A D | rk3128.dtsi | 446 clock-names = "spiclk", "apb_pclk";
|
H A D | rk3036.dtsi | 557 clock-names = "spiclk", "apb_pclk";
|
H A D | rv1108.dtsi | 188 clock-names = "spiclk", "apb_pclk";
|
H A D | rk322x.dtsi | 422 clock-names = "spiclk", "apb_pclk";
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3368.dtsi | 237 clock-names = "spiclk", "apb_pclk"; 250 clock-names = "spiclk", "apb_pclk"; 263 clock-names = "spiclk", "apb_pclk";
|
H A D | rk3399.dtsi | 778 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 D | rk3588s.dtsi | 1721 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 D | rk356x.dtsi | 1283 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 D | rk3308.dtsi | 364 clock-names = "spiclk", "apb_pclk"; 379 clock-names = "spiclk", "apb_pclk"; 394 clock-names = "spiclk", "apb_pclk";
|
H A D | px30.dtsi | 632 clock-names = "spiclk", "apb_pclk"; 648 clock-names = "spiclk", "apb_pclk";
|