On Tue, Mar 19, 2019 at 11:12:19AM -0700, Andrey Smirnov wrote: > On Wed, Mar 13, 2019 at 3:27 AM Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> wrote: > > > > PBL often needs a way to udelay execution. Since we have a generic timer > > in ARMv8 we can implement a generic udelay. > > > > Now that get_cntpct() and get_cntfrq() are implemented for ARMv7 we > can probably extend this to both ARMv8 and ARMv7. Yes, we could do this. The problem is that this works only on ARMv7 cores that have this timer. What about the others? PBL code that depends on udelay() can then only run on these cores. Arguably we already have this problem when I introduce the symbol for ARMv8, but it probably gets worse when we start using udelay in more places in PBL. Any idea for a way to implement a udelay for the older cores? Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox