Skip to content

Commit

Permalink
clk-bcm2835: Mark used PLLs and dividers CRITICAL
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Phil Elwell authored and popcornmix committed Feb 20, 2017
1 parent 36345ea commit ce8f06e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/clk/bcm/clk-bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -1366,6 +1366,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 = data;

Expand Down

0 comments on commit ce8f06e

Please sign in to comment.