Re: Regression on colibri-imx7 due to commit 9c1b13b3fd27 ("cyclic: reduce get_timer_us() calls inside hlist_for_each_entry_safe()")

Marek Vasut via U-Boot <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <[email protected]>
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 !
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.