/openbmc/linux/drivers/clk/socfpga/ |
H A D | clk-periph-s10.c | 105 struct socfpga_periph_clk *periph_clk; in s10_register_periph() local 111 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in s10_register_periph() 112 if (WARN_ON(!periph_clk)) in s10_register_periph() 115 periph_clk->hw.reg = reg + clks->offset; in s10_register_periph() 126 periph_clk->hw.hw.init = &init; in s10_register_periph() 127 hw_clk = &periph_clk->hw.hw; in s10_register_periph() 131 kfree(periph_clk); in s10_register_periph() 141 struct socfpga_periph_clk *periph_clk; in n5x_register_periph() local 147 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in n5x_register_periph() 148 if (WARN_ON(!periph_clk)) in n5x_register_periph() [all …]
|
H A D | clk-periph.c | 55 struct socfpga_periph_clk *periph_clk; in __socfpga_periph_init() local 65 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in __socfpga_periph_init() 66 if (WARN_ON(!periph_clk)) in __socfpga_periph_init() 69 periph_clk->hw.reg = clk_mgr_base_addr + reg; in __socfpga_periph_init() 73 periph_clk->div_reg = clk_mgr_base_addr + div_reg[0]; in __socfpga_periph_init() 74 periph_clk->shift = div_reg[1]; in __socfpga_periph_init() 75 periph_clk->width = div_reg[2]; in __socfpga_periph_init() 77 periph_clk->div_reg = NULL; in __socfpga_periph_init() 82 periph_clk->fixed_div = 0; in __socfpga_periph_init() 84 periph_clk->fixed_div = fixed_div; in __socfpga_periph_init() [all …]
|
H A D | clk-periph-a10.c | 65 struct socfpga_periph_clk *periph_clk; in __socfpga_periph_init() local 75 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in __socfpga_periph_init() 76 if (WARN_ON(!periph_clk)) in __socfpga_periph_init() 79 periph_clk->hw.reg = clk_mgr_a10_base_addr + reg; in __socfpga_periph_init() 83 periph_clk->div_reg = clk_mgr_a10_base_addr + div_reg[0]; in __socfpga_periph_init() 84 periph_clk->shift = div_reg[1]; in __socfpga_periph_init() 85 periph_clk->width = div_reg[2]; in __socfpga_periph_init() 87 periph_clk->div_reg = NULL; in __socfpga_periph_init() 92 periph_clk->fixed_div = 0; in __socfpga_periph_init() 94 periph_clk->fixed_div = fixed_div; in __socfpga_periph_init() [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv7/iproc-common/ |
H A D | timer.c | 50 uint64_t periph_clk; in get_timer() local 55 periph_clk = 500000; in get_timer() 56 tim_clk = lldiv(periph_clk, in get_timer() 71 uint64_t periph_clk; in __udelay() local 74 periph_clk = 500; in __udelay() 76 tim_clk = lldiv(periph_clk, in __udelay()
|
/openbmc/u-boot/drivers/clk/mvebu/ |
H A D | armada-37xx-periph.c | 335 const struct clk_periph *periph_clk = &priv->clks[clk->id]; in periph_clk_enable() local 340 if (!periph_clk->can_gate) in periph_clk_enable() 344 clrbits_le32(priv->reg + CLK_DIS, periph_clk->disable_bit); in periph_clk_enable() 346 setbits_le32(priv->reg + CLK_DIS, periph_clk->disable_bit); in periph_clk_enable() 389 const struct clk_periph *periph_clk = &priv->clks[clk->id]; in armada_37xx_periph_clk_set_rate() local 408 if (!periph_clk->can_gate || !periph_clk->dividers) in armada_37xx_periph_clk_set_rate() 416 if (periph_clk->dividers > 1) in armada_37xx_periph_clk_set_rate() 417 t1 = periph_clk->div_table[1]; in armada_37xx_periph_clk_set_rate() 419 rate = find_best_div(periph_clk->div_table[0], t1, parent_rate, in armada_37xx_periph_clk_set_rate() 424 set_div_val(priv, periph_clk, 0, div_val0); in armada_37xx_periph_clk_set_rate() [all …]
|
/openbmc/u-boot/arch/mips/dts/ |
H A D | brcm,bcm6358.dtsi | 53 periph_clk: periph-clk { label 154 clocks = <&periph_clk BCM6358_CLK_SPI>; 200 clocks = <&periph_clk BCM6358_CLK_ENET0>; 214 clocks = <&periph_clk BCM6358_CLK_ENET1>; 233 clocks = <&periph_clk BCM6358_CLK_EMUSB>, 234 <&periph_clk BCM6358_CLK_USBSU>, 235 <&periph_clk BCM6358_CLK_EPHY>;
|
H A D | brcm,bcm6362.dtsi | 61 periph_clk: periph-clk { label 143 clocks = <&periph_clk BCM6362_CLK_SPI>; 156 clocks = <&periph_clk BCM6362_CLK_HSSPI>, <&hsspi_pll>; 202 clocks = <&periph_clk BCM6362_CLK_USBH>; 233 clocks = <&periph_clk BCM6362_CLK_SWPKT_USB>, 234 <&periph_clk BCM6362_CLK_SWPKT_SAR>, 235 <&periph_clk BCM6362_CLK_ROBOSW>;
|
H A D | brcm,bcm63268.dtsi | 61 periph_clk: periph-clk { label 155 clocks = <&periph_clk BCM63268_CLK_SPI>; 168 clocks = <&periph_clk BCM63268_CLK_HSSPI>, <&hsspi_pll>; 208 clocks = <&periph_clk BCM63268_CLK_USBH>, <&timer_clk BCM63268_TCLK_USB_REF>; 239 clocks = <&periph_clk BCM63268_CLK_GMAC>, 240 <&periph_clk BCM63268_CLK_ROBOSW>, 241 <&periph_clk BCM63268_CLK_ROBOSW250>,
|
H A D | brcm,bcm6368.dtsi | 53 periph_clk: periph-clk { label 154 clocks = <&periph_clk BCM6368_CLK_SPI>; 190 clocks = <&periph_clk BCM6368_CLK_USBH>; 214 clocks = <&periph_clk BCM6368_CLK_SWPKT_USB>, 215 <&periph_clk BCM6368_CLK_SWPKT_SAR>, 216 <&periph_clk BCM6368_CLK_ROBOSW>;
|
H A D | brcm,bcm6318.dtsi | 53 periph_clk: periph-clk { label 148 clocks = <&periph_clk BCM6318_CLK_HSSPI>, <&hsspi_pll>; 185 clocks = <&periph_clk BCM6318_CLK_USB>; 198 clocks = <&periph_clk BCM6318_CLK_ROBOSW250>, 199 <&periph_clk BCM6318_CLK_ROBOSW025>,
|
H A D | brcm,bcm6348.dtsi | 46 periph_clk: periph-clk { label 130 clocks = <&periph_clk BCM6348_CLK_SPI>; 151 clocks = <&periph_clk BCM6348_CLK_USBH>; 200 clocks = <&periph_clk BCM6348_CLK_ENET>;
|
H A D | brcm,bcm6328.dtsi | 60 periph_clk: periph-clk { label 141 clocks = <&periph_clk BCM6328_CLK_HSSPI>, <&hsspi_pll>; 178 clocks = <&periph_clk BCM6328_CLK_USBH>; 209 clocks = <&periph_clk BCM6328_CLK_ROBOSW>;
|
H A D | brcm,bcm6338.dtsi | 46 periph_clk: periph-clk { label 121 clocks = <&periph_clk BCM6338_CLK_SPI>; 153 clocks = <&periph_clk BCM6338_CLK_ENET>;
|
/openbmc/linux/arch/mips/bcm63xx/ |
H A D | timer.c | 23 static struct clk *periph_clk; variable 146 return (clk_get_rate(periph_clk) / (1000 * 1000)) * countdown_us; in bcm63xx_timer_countdown() 192 periph_clk = clk_get(NULL, "periph"); in bcm63xx_timer_init() 193 if (IS_ERR(periph_clk)) in bcm63xx_timer_init()
|
/openbmc/linux/drivers/pwm/ |
H A D | pwm-atmel-hlcdc.c | 191 clk_disable_unprepare(atmel->hlcdc->periph_clk); in atmel_hlcdc_pwm_suspend() 206 ret = clk_prepare_enable(atmel->hlcdc->periph_clk); in atmel_hlcdc_pwm_resume() 259 ret = clk_prepare_enable(hlcdc->periph_clk); in atmel_hlcdc_pwm_probe() 274 clk_disable_unprepare(hlcdc->periph_clk); in atmel_hlcdc_pwm_probe() 289 clk_disable_unprepare(atmel->hlcdc->periph_clk); in atmel_hlcdc_pwm_remove()
|
/openbmc/linux/arch/mips/boot/dts/brcm/ |
H A D | bcm6368.dtsi | 62 periph_clk: clock-controller@10000004 { label 159 clocks = <&periph_clk BCM6368_CLK_NAND>; 174 clocks = <&periph_clk BCM6368_CLK_SPI>; 217 clocks = <&periph_clk BCM6368_CLK_USBH>; 230 clocks = <&periph_clk BCM6368_CLK_IPSEC>;
|
H A D | bcm3368.dtsi | 30 periph_clk: periph-clk { label 94 clocks = <&periph_clk>; 107 clocks = <&periph_clk>;
|
H A D | bcm6362.dtsi | 72 periph_clk: clock-controller@10000004 { label 160 clocks = <&periph_clk BCM6362_CLK_NAND>; 175 clocks = <&periph_clk BCM6362_CLK_SPI>; 193 clocks = <&periph_clk BCM6362_CLK_HSSPI>, 254 clocks = <&periph_clk BCM6362_CLK_USBH>;
|
H A D | bcm63268.dtsi | 72 periph_clk: clock-controller@10000004 { label 160 clocks = <&periph_clk BCM63268_CLK_NAND>; 188 clocks = <&periph_clk BCM63268_CLK_SPI>; 205 clocks = <&periph_clk BCM63268_CLK_HSSPI>, 264 clocks = <&periph_clk BCM63268_CLK_USBH>;
|
H A D | bcm3384_viper.dtsi | 38 periph_clk: periph_clk { label 86 clocks = <&periph_clk>;
|
H A D | bcm3384_zephyr.dtsi | 43 periph_clk: periph_clk { label 104 clocks = <&periph_clk>;
|
/openbmc/linux/drivers/mfd/ |
H A D | atmel-hlcdc.c | 105 hlcdc->periph_clk = devm_clk_get(dev, "periph_clk"); in atmel_hlcdc_probe() 106 if (IS_ERR(hlcdc->periph_clk)) { in atmel_hlcdc_probe() 108 return PTR_ERR(hlcdc->periph_clk); in atmel_hlcdc_probe()
|
/openbmc/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm63138.dtsi | 45 periph_clk: periph_clk { label 134 clocks = <&periph_clk>; 198 clocks = <&periph_clk>; 207 clocks = <&periph_clk>;
|
H A D | bcm5301x.dtsi | 25 clocks = <&periph_clk>; 63 periph_clk: periph_clk { label
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | atmel-hlcdc.txt | 14 Should contain "periph_clk", "sys_clk" and "slow_clk". 28 clock-names = "periph_clk","sys_clk", "slow_clk";
|