|
@@ -34,6 +34,7 @@
|
|
|
#include <asm/mach/map.h>
|
|
|
#include <asm/mach-types.h>
|
|
|
#include <asm/mach/arch.h>
|
|
|
+#include <asm/mach/time.h>
|
|
|
|
|
|
static struct map_desc sh7377_io_desc[] __initdata = {
|
|
|
/* create a 1:1 entity map for 0xe6xxxxxx
|
|
@@ -475,6 +476,12 @@ void __init sh7377_add_standard_devices(void)
|
|
|
ARRAY_SIZE(sh7377_devices));
|
|
|
}
|
|
|
|
|
|
+static void __init sh7377_earlytimer_init(void)
|
|
|
+{
|
|
|
+ sh7377_clock_init();
|
|
|
+ shmobile_earlytimer_init();
|
|
|
+}
|
|
|
+
|
|
|
#define SMSTPCR3 0xe615013c
|
|
|
#define SMSTPCR3_CMT1 (1 << 29)
|
|
|
|
|
@@ -488,4 +495,7 @@ void __init sh7377_add_early_devices(void)
|
|
|
|
|
|
/* setup early console here as well */
|
|
|
shmobile_setup_console();
|
|
|
+
|
|
|
+ /* override timer setup with soc-specific code */
|
|
|
+ shmobile_timer.init = sh7377_earlytimer_init;
|
|
|
}
|