@@ -132,6 +132,14 @@ static void __init kzm_init(void)
#endif
}
+void sh73a0_register_twd(void);
+
+static __init void kzm9g_init_time(void)
+{
+ shmobile_timer_init();
+ sh73a0_register_twd();
+}
+
static const char *kzm9g_boards_compat_dt[] __initdata = {
"renesas,kzm9g-reference",
NULL,
@@ -144,6 +152,6 @@ DT_MACHINE_START(KZM9G_DT, "kzm9g-reference")
.nr_irqs = NR_IRQS_LEGACY,
.init_irq = sh73a0_init_irq_intc_dt,
.init_machine = kzm_init,
- .init_time = shmobile_timer_init,
+ .init_time = kzm9g_init_time,
.dt_compat = kzm9g_boards_compat_dt,
MACHINE_END
locks up with no console output. To actually boot and get the twd running
I have to do
@@ -140,10 +140,10 @@ static const char *kzm9g_boards_compat_dt[] __initdata = {
DT_MACHINE_START(KZM9G_DT, "kzm9g-reference")
.smp = smp_ops(sh73a0_smp_ops),
.map_io = sh73a0_map_io,
- .init_early = sh73a0_init_delay,
+ .init_early = sh73a0_add_early_devices,
.nr_irqs = NR_IRQS_LEGACY,
.init_irq = sh73a0_init_irq_intc_dt,
.init_machine = kzm_init,
- .init_time = shmobile_timer_init,
+ .init_time = sh73a0_earlytimer_init,
.dt_compat = kzm9g_boards_compat_dt,
MACHINE_END