diff options
author | Sam Protsenko <[email protected]> | 2021-11-21 18:56:45 +0200 |
---|---|---|
committer | Wim Van Sebroeck <[email protected]> | 2021-12-28 13:59:04 +0100 |
commit | e249d01b5e8b8263ee2fdb787c954450940a7677 (patch) | |
tree | e852b3f26a4765e3e1243a547c6e1cb9e671f8e7 /net/lapb/lapb_timer.c | |
parent | cf3fad4e62d363e2e79aed8b7af4eb5bec905df0 (diff) |
watchdog: s3c2410: Support separate source clock
Right now all devices supported in the driver have the single clock: it
acts simultaneously as a bus clock (providing register interface
clocking) and source clock (driving watchdog counter). Some newer Exynos
chips, like Exynos850, have two separate clocks for that. In that case
two clocks will be passed to the driver from the resource provider, e.g.
Device Tree. Provide necessary infrastructure to support that case:
- use source clock's rate for all timer related calculations
- use bus clock to gate/ungate the register interface
All devices that use the single clock are kept intact: if only one clock
is passed from Device Tree, it will be used for both purposes as before.
Signed-off-by: Sam Protsenko <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions