Skip to content
Snippets Groups Projects
  • Simon Glass's avatar
    77dd7c68
    x86: timer: use a timer base of 0 · 77dd7c68
    Simon Glass authored
    
    On x86 platforms the timer is reset to 0 when the SoC is reset. Having
    this as the timer base is useful since it provides an indication of how
    long it takes before U-Boot is running.
    
    When U-Boot sets the timer base to something else, time is lost and we
    no-longer have an accurate account of the time since reset. This
    particularly affects bootstage.
    
    Change the default to not read the timer base, leaving it at 0. Add an
    option for when U-Boot is the secondary bootloader.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
    77dd7c68
    History
    x86: timer: use a timer base of 0
    Simon Glass authored
    
    On x86 platforms the timer is reset to 0 when the SoC is reset. Having
    this as the timer base is useful since it provides an indication of how
    long it takes before U-Boot is running.
    
    When U-Boot sets the timer base to something else, time is lost and we
    no-longer have an accurate account of the time since reset. This
    particularly affects bootstage.
    
    Change the default to not read the timer base, leaving it at 0. Add an
    option for when U-Boot is the secondary bootloader.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>