Home
last modified time | relevance | path

Searched refs:periph_clk (Results 1 – 7 of 7) sorted by relevance

/drivers/clk/socfpga/
Dclk-periph-s10.c105 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 …]
Dclk-periph.c55 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 …]
Dclk-periph-a10.c65 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 …]
/drivers/pwm/
Dpwm-atmel-hlcdc.c190 clk_disable_unprepare(chip->hlcdc->periph_clk); in atmel_hlcdc_pwm_suspend()
205 ret = clk_prepare_enable(chip->hlcdc->periph_clk); in atmel_hlcdc_pwm_resume()
257 ret = clk_prepare_enable(hlcdc->periph_clk); in atmel_hlcdc_pwm_probe()
272 clk_disable_unprepare(hlcdc->periph_clk); in atmel_hlcdc_pwm_probe()
287 clk_disable_unprepare(chip->hlcdc->periph_clk); in atmel_hlcdc_pwm_remove()
/drivers/mfd/
Datmel-hlcdc.c107 hlcdc->periph_clk = devm_clk_get(dev, "periph_clk"); in atmel_hlcdc_probe()
108 if (IS_ERR(hlcdc->periph_clk)) { in atmel_hlcdc_probe()
110 return PTR_ERR(hlcdc->periph_clk); in atmel_hlcdc_probe()
/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_dc.c672 ret = clk_prepare_enable(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_load()
710 clk_disable_unprepare(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_load()
730 clk_disable_unprepare(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_unload()
803 clk_disable_unprepare(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_drm_suspend()
813 clk_prepare_enable(dc->hlcdc->periph_clk); in atmel_hlcdc_dc_drm_resume()
/drivers/clk/sprd/
Dsc9863a-clk.c703 static SPRD_COMP_CLK_DATA(periph_clk, "periph-clk", gic_parents, 0xa5c,
769 &periph_clk.common,
843 [CLK_PERIPH] = &periph_clk.common.hw,