Skip to content

Commit

Permalink
ARM: shmobile: armadillo800eva: set clock rates before timer init
Browse files Browse the repository at this point in the history
Previously clock rates were set after initialization of timer.
Therefore the timer used the default extal1 clock rate (25MHz)
instead of the correct rate for this board (24MHz).

Signed-off-by: Hideki EIRAKU <hdk@igel.co.jp>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Hideki EIRAKU authored and Simon Horman committed Jan 30, 2013
1 parent f96be91 commit 2f27c40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/arm/mach-shmobile/board-armadillo800eva.c
Original file line number Diff line number Diff line change
Expand Up @@ -1169,8 +1169,6 @@ static void __init eva_init(void)
platform_add_devices(eva_devices,
ARRAY_SIZE(eva_devices));

eva_clock_init();

rmobile_add_device_to_domain("A4LC", &lcdc0_device);
rmobile_add_device_to_domain("A4LC", &hdmi_lcdc_device);
if (usb)
Expand All @@ -1181,6 +1179,9 @@ static void __init eva_earlytimer_init(void)
{
r8a7740_clock_init(MD_CK0 | MD_CK2);
shmobile_earlytimer_init();

/* the rate of extal1 clock must be set before late_time_init */
eva_clock_init();
}

static void __init eva_add_early_devices(void)
Expand Down

0 comments on commit 2f27c40

Please sign in to comment.