Skip to content

Commit

Permalink
vexpress: Initialise the sysregs before setting up the clocks
Browse files Browse the repository at this point in the history
Following arm64 commit bc3ee18 (arm64: init: Move of_clk_init to
time_init()), vexpress_osc_of_setup() is called via of_clk_init() long
before initcalls are issued. Initialising the vexpress oscillators
requires the vespress sysregs to be already initialised, so this patch
adds an explicit call to vexpress_sysreg_of_early_init() in vexpress
oscillator setup function.

Signed-off-by: Catalin Marinas <[email protected]>
Tested-by: Will Deacon <[email protected]>
Acked-by: Will Deacon <[email protected]>
Tested-by: Pawel Moll <[email protected]>
Acked-by: Pawel Moll <[email protected]>
Cc: Mike Turquette <[email protected]>
  • Loading branch information
ctmarinas committed May 4, 2014
1 parent 7a8d1ec commit e715eb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/clk/versatile/clk-vexpress-osc.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ void __init vexpress_osc_of_setup(struct device_node *node)
struct clk *clk;
u32 range[2];

vexpress_sysreg_of_early_init();

osc = kzalloc(sizeof(*osc), GFP_KERNEL);
if (!osc)
return;
Expand Down

0 comments on commit e715eb2

Please sign in to comment.