Skip to content

Commit 3e65725

Browse files
Phil Elwellpopcornmix
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 <phil@raspberrypi.org>
1 parent eb94396 commit 3e65725

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎drivers/clk/bcm/clk-bcm2835.c‎

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

1387+
if (!(cprman_read(cprman, data->cm_reg) & data->hold_mask)) {
1388+
init.flags |= CLK_IS_CRITICAL;
1389+
divider->div.flags |= CLK_IS_CRITICAL;
1390+
}
1391+
13871392
divider->cprman = cprman;
13881393
divider->data = divider_data;
13891394

0 commit comments

Comments
 (0)