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

clk-bcm2835: Don't wait for pllh lock

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------
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>
上级 6b76283d
...@@ -644,6 +644,7 @@ static int bcm2835_pll_on(struct clk_hw *hw) ...@@ -644,6 +644,7 @@ static int bcm2835_pll_on(struct clk_hw *hw)
spin_unlock(&cprman->regs_lock); spin_unlock(&cprman->regs_lock);
/* Wait for the PLL to lock. */ /* Wait for the PLL to lock. */
if (strcmp(data->name, "pllh")) {
timeout = ktime_add_ns(ktime_get(), LOCK_TIMEOUT_NS); timeout = ktime_add_ns(ktime_get(), LOCK_TIMEOUT_NS);
while (!(cprman_read(cprman, CM_LOCK) & data->lock_mask)) { while (!(cprman_read(cprman, CM_LOCK) & data->lock_mask)) {
if (ktime_after(ktime_get(), timeout)) { if (ktime_after(ktime_get(), timeout)) {
...@@ -654,6 +655,7 @@ static int bcm2835_pll_on(struct clk_hw *hw) ...@@ -654,6 +655,7 @@ static int bcm2835_pll_on(struct clk_hw *hw)
cpu_relax(); cpu_relax();
} }
}
cprman_write(cprman, data->a2w_ctrl_reg, cprman_write(cprman, data->a2w_ctrl_reg,
cprman_read(cprman, data->a2w_ctrl_reg) | cprman_read(cprman, data->a2w_ctrl_reg) |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册