Home
last modified time | relevance | path

Searched refs:ccu_clk (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/arch/arm/cpu/armv7/bcm281xx/
Dclk-core.c258 struct ccu_clock *ccu_clk = to_ccu_clk(c); in ccu_clk_enable() local
271 writel(1, base + ccu_clk->lvm_en_offset); in ccu_clk_enable()
274 ret = wait_bit(base, ccu_clk->lvm_en_offset, 0, 0); in ccu_clk_enable()
279 if (!ccu_clk->freq_bit_shift) in ccu_clk_enable()
280 ccu_clk->freq_bit_shift = 8; in ccu_clk_enable()
283 reg = ccu_clk->freq_id | in ccu_clk_enable()
284 (ccu_clk->freq_id << (ccu_clk->freq_bit_shift)) | in ccu_clk_enable()
285 (ccu_clk->freq_id << (ccu_clk->freq_bit_shift * 2)) | in ccu_clk_enable()
286 (ccu_clk->freq_id << (ccu_clk->freq_bit_shift * 3)); in ccu_clk_enable()
287 writel(reg, base + ccu_clk->policy_freq_offset); in ccu_clk_enable()
[all …]
/external/u-boot/arch/arm/cpu/armv7/bcm235xx/
Dclk-core.c258 struct ccu_clock *ccu_clk = to_ccu_clk(c); in ccu_clk_enable() local
271 writel(1, base + ccu_clk->lvm_en_offset); in ccu_clk_enable()
274 ret = wait_bit(base, ccu_clk->lvm_en_offset, 0, 0); in ccu_clk_enable()
279 if (!ccu_clk->freq_bit_shift) in ccu_clk_enable()
280 ccu_clk->freq_bit_shift = 8; in ccu_clk_enable()
283 reg = ccu_clk->freq_id | in ccu_clk_enable()
284 (ccu_clk->freq_id << (ccu_clk->freq_bit_shift)) | in ccu_clk_enable()
285 (ccu_clk->freq_id << (ccu_clk->freq_bit_shift * 2)) | in ccu_clk_enable()
286 (ccu_clk->freq_id << (ccu_clk->freq_bit_shift * 3)); in ccu_clk_enable()
287 writel(reg, base + ccu_clk->policy_freq_offset); in ccu_clk_enable()
[all …]