aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHideki EIRAKU <hdk@igel.co.jp>2013-01-18 00:02:05 -0500
committerSimon Horman <horms+renesas@verge.net.au>2013-01-29 23:24:07 -0500
commit2f27c40656fecba44e839c77910f75ee1024df62 (patch)
treecf74a50fc699c1c8090f7d6f1d227ddb171fcc6c
parentf96be91ad23f44df9ab2e3370e42e2515ea59481 (diff)
ARM: shmobile: armadillo800eva: set clock rates before timer init
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>
-rw-r--r--arch/arm/mach-shmobile/board-armadillo800eva.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c
index f107e82d7e43..9008ad102a88 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva.c
@@ -1169,8 +1169,6 @@ static void __init eva_init(void)
1169 platform_add_devices(eva_devices, 1169 platform_add_devices(eva_devices,
1170 ARRAY_SIZE(eva_devices)); 1170 ARRAY_SIZE(eva_devices));
1171 1171
1172 eva_clock_init();
1173
1174 rmobile_add_device_to_domain("A4LC", &lcdc0_device); 1172 rmobile_add_device_to_domain("A4LC", &lcdc0_device);
1175 rmobile_add_device_to_domain("A4LC", &hdmi_lcdc_device); 1173 rmobile_add_device_to_domain("A4LC", &hdmi_lcdc_device);
1176 if (usb) 1174 if (usb)
@@ -1181,6 +1179,9 @@ static void __init eva_earlytimer_init(void)
1181{ 1179{
1182 r8a7740_clock_init(MD_CK0 | MD_CK2); 1180 r8a7740_clock_init(MD_CK0 | MD_CK2);
1183 shmobile_earlytimer_init(); 1181 shmobile_earlytimer_init();
1182
1183 /* the rate of extal1 clock must be set before late_time_init */
1184 eva_clock_init();
1184} 1185}
1185 1186
1186static void __init eva_add_early_devices(void) 1187static void __init eva_add_early_devices(void)