Skip to content

Commit

Permalink
ARM: OMAP2: Fix missing omap2xxx_clkt_vps_late_init function calls
Browse files Browse the repository at this point in the history
During the migration to the common clock framework, calls to the
functions omap2xxx_clkt_vps_late_init() were not preserved for
OMAP2420 and OMAP2430. This causes the variables "sys_ck_rate" and
"curr_prcm_set" to be uninitialised on boot. On reboot, this causes the
following error message to be displayed because the appropriate MPU
clock frequency (derived from sys_ck_rate) cannot be found.

"Could not set MPU rate to 4294MHz"

Fix this by adding back calls to omap2xxx_clkt_vps_late_init() in the
OMAP2420 and OMAP2430 clock initialisation code.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
[paul@pwsan.com: dropped the duplicated call to
 omap2xxx_clkt_vps_check_bootloader_rates() after consultation with Jon;
 updated patch description]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
  • Loading branch information
Jon Hunter authored and Paul Walmsley committed Jan 18, 2013
1 parent 12d82e4 commit bdcc612
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-omap2/cclock2420_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -1935,6 +1935,8 @@ int __init omap2420_clk_init(void)
omap2_init_clk_hw_omap_clocks(c->lk.clk);
}

omap2xxx_clkt_vps_late_init();

omap2_clk_disable_autoidle_all();

omap2_clk_enable_init_clocks(enable_init_clks,
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mach-omap2/cclock2430_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -2050,6 +2050,8 @@ int __init omap2430_clk_init(void)
omap2_init_clk_hw_omap_clocks(c->lk.clk);
}

omap2xxx_clkt_vps_late_init();

omap2_clk_disable_autoidle_all();

omap2_clk_enable_init_clocks(enable_init_clks,
Expand Down

0 comments on commit bdcc612

Please sign in to comment.