Searched refs:periph_clk (Results 1 – 5 of 5) sorted by relevance
81 struct socfpga_periph_clk *periph_clk; in s10_register_periph() local84 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in s10_register_periph()85 if (WARN_ON(!periph_clk)) in s10_register_periph()88 periph_clk->hw.reg = reg + offset; in s10_register_periph()97 periph_clk->hw.hw.init = &init; in s10_register_periph()99 clk = clk_register(NULL, &periph_clk->hw.hw); in s10_register_periph()101 kfree(periph_clk); in s10_register_periph()115 struct socfpga_periph_clk *periph_clk; in s10_register_cnt_periph() local118 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in s10_register_cnt_periph()119 if (WARN_ON(!periph_clk)) in s10_register_cnt_periph()[all …]
65 struct socfpga_periph_clk *periph_clk; in __socfpga_periph_init() local75 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_base_addr + reg; in __socfpga_periph_init()83 periph_clk->div_reg = clk_mgr_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 …]
75 struct socfpga_periph_clk *periph_clk; in __socfpga_periph_init() local85 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in __socfpga_periph_init()86 if (WARN_ON(!periph_clk)) in __socfpga_periph_init()89 periph_clk->hw.reg = clk_mgr_a10_base_addr + reg; in __socfpga_periph_init()93 periph_clk->div_reg = clk_mgr_a10_base_addr + div_reg[0]; in __socfpga_periph_init()94 periph_clk->shift = div_reg[1]; in __socfpga_periph_init()95 periph_clk->width = div_reg[2]; in __socfpga_periph_init()97 periph_clk->div_reg = NULL; in __socfpga_periph_init()102 periph_clk->fixed_div = 0; in __socfpga_periph_init()104 periph_clk->fixed_div = fixed_div; in __socfpga_periph_init()[all …]
201 clk_disable_unprepare(chip->hlcdc->periph_clk); in atmel_hlcdc_pwm_suspend()216 ret = clk_prepare_enable(chip->hlcdc->periph_clk); in atmel_hlcdc_pwm_resume()267 ret = clk_prepare_enable(hlcdc->periph_clk); in atmel_hlcdc_pwm_probe()285 clk_disable_unprepare(hlcdc->periph_clk); in atmel_hlcdc_pwm_probe()303 clk_disable_unprepare(chip->hlcdc->periph_clk); in atmel_hlcdc_pwm_remove()
79 struct clk *periph_clk; member