Commit bb256f803c9f620eb5a7d1c02e53360392cffbdd

Authored by Afzal Mohammed
Committed by Tony Lindgren
1 parent 4f288f081b

ARM: OMAP2+: AM43x: basic dt support

Describe minimal DT boot machine details for AM43x based SoC's. AM43x
SoC's are ARM Cortex-A9 based with one core. AM43x is similar to
AM335x w.r.t L4 PER/WKUP memory map. AM43x has a sync timer, here that
is being used as clocksource, while 1ms dmtimer as clockevent.

Signed-off-by: Ankur Kishore <a-kishore@ti.com>
Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

Showing 2 changed files with 17 additions and 1 deletions Side-by-side Diff

arch/arm/mach-omap2/board-generic.c
... ... @@ -185,4 +185,20 @@
185 185 .restart = omap44xx_restart,
186 186 MACHINE_END
187 187 #endif
  188 +
  189 +#ifdef CONFIG_SOC_AM43XX
  190 +static const char *am43_boards_compat[] __initdata = {
  191 + "ti,am43",
  192 + NULL,
  193 +};
  194 +
  195 +DT_MACHINE_START(AM43_DT, "Generic AM43 (Flattened Device Tree)")
  196 + .map_io = am33xx_map_io,
  197 + .init_early = am43xx_init_early,
  198 + .init_irq = omap_gic_of_init,
  199 + .init_machine = omap_generic_init,
  200 + .init_time = omap3_sync32k_timer_init,
  201 + .dt_compat = am43_boards_compat,
  202 +MACHINE_END
  203 +#endif
arch/arm/mach-omap2/timer.c
... ... @@ -582,7 +582,7 @@
582 582 2, "timer_sys_ck", NULL);
583 583 #endif /* CONFIG_ARCH_OMAP2 */
584 584  
585   -#ifdef CONFIG_ARCH_OMAP3
  585 +#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_AM43XX)
586 586 OMAP_SYS_32K_TIMER_INIT(3, 1, "timer_32k_ck", "ti,timer-alwon",
587 587 2, "timer_sys_ck", NULL);
588 588 OMAP_SYS_32K_TIMER_INIT(3_secure, 12, "secure_32k_fck", "ti,timer-secure",