Searched refs:periph_clk (Results 1 - 9 of 9) sorted by relevance

/linux-4.4.14/drivers/clk/socfpga/
H A Dclk-periph.c65 struct socfpga_periph_clk *periph_clk; __socfpga_periph_init() local
75 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); __socfpga_periph_init()
76 if (WARN_ON(!periph_clk)) __socfpga_periph_init()
79 periph_clk->hw.reg = clk_mgr_base_addr + reg; __socfpga_periph_init()
83 periph_clk->div_reg = clk_mgr_base_addr + div_reg[0]; __socfpga_periph_init()
84 periph_clk->shift = div_reg[1]; __socfpga_periph_init()
85 periph_clk->width = div_reg[2]; __socfpga_periph_init()
87 periph_clk->div_reg = NULL; __socfpga_periph_init()
92 periph_clk->fixed_div = 0; __socfpga_periph_init()
94 periph_clk->fixed_div = fixed_div; __socfpga_periph_init()
106 periph_clk->hw.hw.init = &init; __socfpga_periph_init()
108 clk = clk_register(NULL, &periph_clk->hw.hw); __socfpga_periph_init()
110 kfree(periph_clk); __socfpga_periph_init()
H A Dclk-periph-a10.c75 struct socfpga_periph_clk *periph_clk; __socfpga_periph_init() local
85 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); __socfpga_periph_init()
86 if (WARN_ON(!periph_clk)) __socfpga_periph_init()
89 periph_clk->hw.reg = clk_mgr_a10_base_addr + reg; __socfpga_periph_init()
93 periph_clk->div_reg = clk_mgr_a10_base_addr + div_reg[0]; __socfpga_periph_init()
94 periph_clk->shift = div_reg[1]; __socfpga_periph_init()
95 periph_clk->width = div_reg[2]; __socfpga_periph_init()
97 periph_clk->div_reg = NULL; __socfpga_periph_init()
102 periph_clk->fixed_div = 0; __socfpga_periph_init()
104 periph_clk->fixed_div = fixed_div; __socfpga_periph_init()
116 periph_clk->hw.hw.init = &init; __socfpga_periph_init()
118 clk = clk_register(NULL, &periph_clk->hw.hw); __socfpga_periph_init()
120 kfree(periph_clk); __socfpga_periph_init()
/linux-4.4.14/drivers/mfd/
H A Datmel-hlcdc.c106 hlcdc->periph_clk = devm_clk_get(dev, "periph_clk"); atmel_hlcdc_probe()
107 if (IS_ERR(hlcdc->periph_clk)) { atmel_hlcdc_probe()
109 return PTR_ERR(hlcdc->periph_clk); atmel_hlcdc_probe()
/linux-4.4.14/arch/mips/bcm63xx/
H A Dtimer.c22 static struct clk *periph_clk; variable in typeref:struct:clk
145 return (clk_get_rate(periph_clk) / (1000 * 1000)) * countdown_us; bcm63xx_timer_countdown()
191 periph_clk = clk_get(NULL, "periph"); bcm63xx_timer_init()
192 if (IS_ERR(periph_clk)) bcm63xx_timer_init()
/linux-4.4.14/include/linux/mfd/
H A Datmel-hlcdc.h72 * @periph_clk: the hlcdc peripheral clock
79 struct clk *periph_clk; member in struct:atmel_hlcdc
/linux-4.4.14/drivers/pwm/
H A Dpwm-atmel-hlcdc.c258 ret = clk_prepare_enable(hlcdc->periph_clk); atmel_hlcdc_pwm_probe()
277 clk_disable_unprepare(hlcdc->periph_clk); atmel_hlcdc_pwm_probe()
295 clk_disable_unprepare(chip->hlcdc->periph_clk); atmel_hlcdc_pwm_remove()
/linux-4.4.14/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_dc.c511 ret = clk_prepare_enable(dc->hlcdc->periph_clk); atmel_hlcdc_dc_load()
513 dev_err(dev->dev, "failed to enable periph_clk\n"); atmel_hlcdc_dc_load()
552 clk_disable_unprepare(dc->hlcdc->periph_clk); atmel_hlcdc_dc_load()
578 clk_disable_unprepare(dc->hlcdc->periph_clk); atmel_hlcdc_dc_unload()
/linux-4.4.14/arch/mips/alchemy/common/
H A Dclock.c332 * L/RCLK = periph_clk / (divisor + 1) alchemy_clk_setup_lrclk()
/linux-4.4.14/arch/mips/include/asm/mach-au1x00/
H A Dau1000.h56 #define ALCHEMY_PERIPH_CLK "periph_clk"

Completed in 362 milliseconds