24 Aug, 2020

1 commit

  • When the timer counts to the upper limit, an overflow interrupt is
    generated, and the count is reset with the value in the TIME_INI
    register. But the software expects to start counting from 0 when
    the count overflows, so it forces TIME_INI to 0 to solve the
    potential interrupt storm problem.

    Signed-off-by: Guo Ren
    Tested-by: Xu Kai
    Cc: Daniel Lezcano
    Cc: Thomas Gleixner
    Signed-off-by: Daniel Lezcano
    Link: https://lore.kernel.org/r/1597735877-71115-1-git-send-email-guoren@kernel.org

    Guo Ren
     

03 Nov, 2018

1 commit

  • The driver is for gx6605s SOC system timer and there are two
    same timers in gx6605s. We use one for clkevt and another one for
    clksrc.

    The timer is mmio map to access, so we need give mmio address in dts.

    The counter at 0x0 offset is clock event.
    The counter at 0x40 offset is clock source.

    Signed-off-by: Guo Ren
    Cc: Daniel Lezcano
    Cc: Thomas Gleixner
    Signed-off-by: Daniel Lezcano

    Guo Ren