• Antonio Nino Diaz's avatar
    Implement generic delay timer · 0bcedb22
    Antonio Nino Diaz authored
    Add delay timer implementation based on the system generic counter.
    This either uses the platform's implementation of
    `plat_get_syscnt_freq()` or explicit clock multiplier/divider values
    provided by the platform.
    
    The current implementation of udelay has been modified to avoid
    unnecessary calculations while waiting on the loop and to make it
    easier to check for overflows.
    
    Change-Id: I9062e1d506dc2f68367fd9289250b93444721732
    0bcedb22
generic_delay_timer.c 2.71 KB