Skip to content

Commit 5c083e5

Browse files
Phil Elwellpopcornmix
Phil Elwell
authored andcommitted
clk-bcm2835: Mark used PLLs and dividers CRITICAL
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: Phil Elwell <[email protected]>
1 parent 9cc1a2c commit 5c083e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/clk/bcm/clk-bcm2835.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,6 +1366,11 @@ bcm2835_register_pll_divider(struct bcm2835_cprman *cprman,
13661366
divider->div.hw.init = &init;
13671367
divider->div.table = NULL;
13681368

1369+
if (!(cprman_read(cprman, data->cm_reg) & data->hold_mask)) {
1370+
init.flags |= CLK_IS_CRITICAL;
1371+
divider->div.flags |= CLK_IS_CRITICAL;
1372+
}
1373+
13691374
divider->cprman = cprman;
13701375
divider->data = data;
13711376

0 commit comments

Comments
 (0)