On 7/28/26 11:46 AM, Emanuele Ghidoli wrote:

Hello Emanuele,

+void syscounter_init(void)
  {
      struct sctr_regs *sctr = (struct sctr_regs *)SCTR_BASE_ADDR;
      unsigned long val, freq;
@@ -80,6 +80,12 @@ int timer_init(void)
      gd->arch.tbu = 0;

      gd->arch.timer_rate_hz = freq;
+
+    return 0;
+}
+
+int timer_init(void)
+{
      return 0;
  }
  #endif

Hello Marek,
thanks for the suggestion.

It works, build and tested on Colibri iMX7.

But imx6 is obviously broken:
/home/emanuele/tdx/u-boot-build/u-boot/arch/arm/mach-imx/mx6/soc.c:441:
undefined reference to `syscounter_init'
Excellent, could you please submit this timer patch as a proper fix / patch ?

Thank you !

Reply via email to