提交 fbd5c1c1 编写于 作者: P Phil Elwell 提交者: Zheng Zengkai

clk-bcm2835: Mark used PLLs and dividers CRITICAL

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

The VPU configures and relies on several PLLs and dividers. Mark all
enabled dividers and their PLLs as CRITICAL to prevent the kernel from
switching them off.
Signed-off-by: NPhil Elwell <phil@raspberrypi.org>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 25228f90
......@@ -1384,6 +1384,11 @@ bcm2835_register_pll_divider(struct bcm2835_cprman *cprman,
divider->div.hw.init = &init;
divider->div.table = NULL;
if (!(cprman_read(cprman, data->cm_reg) & data->hold_mask)) {
init.flags |= CLK_IS_CRITICAL;
divider->div.flags |= CLK_IS_CRITICAL;
}
divider->cprman = cprman;
divider->data = divider_data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册