Skip to content
  • Cédric Le Goater's avatar
    854123bf
    wdt: Add Aspeed watchdog device model · 854123bf
    Cédric Le Goater authored
    
    
    The Aspeed SoC includes a set of watchdog timers using 32-bit
    decrement counters, which can be based either on the APB clock or
    a 1 MHz clock.
    
    The watchdog timer is designed to prevent system deadlock and, in
    general, it should be restarted before timeout. When a timeout occurs,
    different types of signals can be generated, ARM reset, SOC reset,
    System reset, CPU Interrupt, external signal or boot from alternate
    block. The current model only performs the system reset function as
    this is used by U-Boot and Linux.
    
    Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
    Message-id: 1485452251-1593-2-git-send-email-clg@kaod.org
    [clg: - fixed compile breakage
          - fixed io region size
          - added watchdog_perform_action() on timer expiry
          - wrote a commit log
          - merged fixes from Andrew Jeffery to scale the reload value ]
    Signed-off-by: default avatarCédric Le Goater <clg@kaod.org>
    Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    854123bf
    wdt: Add Aspeed watchdog device model
    Cédric Le Goater authored
    
    
    The Aspeed SoC includes a set of watchdog timers using 32-bit
    decrement counters, which can be based either on the APB clock or
    a 1 MHz clock.
    
    The watchdog timer is designed to prevent system deadlock and, in
    general, it should be restarted before timeout. When a timeout occurs,
    different types of signals can be generated, ARM reset, SOC reset,
    System reset, CPU Interrupt, external signal or boot from alternate
    block. The current model only performs the system reset function as
    this is used by U-Boot and Linux.
    
    Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
    Message-id: 1485452251-1593-2-git-send-email-clg@kaod.org
    [clg: - fixed compile breakage
          - fixed io region size
          - added watchdog_perform_action() on timer expiry
          - wrote a commit log
          - merged fixes from Andrew Jeffery to scale the reload value ]
    Signed-off-by: default avatarCédric Le Goater <clg@kaod.org>
    Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Loading