D | clk-system.c | 43 struct clk_system *sys = to_clk_system(hw); in clk_system_prepare() local 45 regmap_write(sys->regmap, AT91_PMC_SCER, 1 << sys->id); in clk_system_prepare() 47 if (!is_pck(sys->id)) in clk_system_prepare() 50 while (!clk_system_ready(sys->regmap, sys->id)) in clk_system_prepare() 58 struct clk_system *sys = to_clk_system(hw); in clk_system_unprepare() local 60 regmap_write(sys->regmap, AT91_PMC_SCDR, 1 << sys->id); in clk_system_unprepare() 65 struct clk_system *sys = to_clk_system(hw); in clk_system_is_prepared() local 68 regmap_read(sys->regmap, AT91_PMC_SCSR, &status); in clk_system_is_prepared() 70 if (!(status & (1 << sys->id))) in clk_system_is_prepared() 73 if (!is_pck(sys->id)) in clk_system_is_prepared() [all …]
|