]> asedeno.scripts.mit.edu Git - linux.git/commit
clocksource/drivers/dw_apb: Add reset control
authorDinh Nguyen <dinguyen@kernel.org>
Mon, 17 Sep 2018 14:52:14 +0000 (09:52 -0500)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 7 Oct 2018 12:16:35 +0000 (14:16 +0200)
commit1f174a1a2cdebc65138e6ed1448b842e73200bb5
tree0173a325eb2a804a228b77acffb4de46a6665700
parent9414229c9c53d3604032aa80f3d2e9ba5770cd4a
clocksource/drivers/dw_apb: Add reset control

Add code to retrieve the reset property from the dw-apb timers and if
the property is available, the safe operation is to assert the timer
into reset, and followed by a deassert of the timer reset (brings the
timer out of reset).

This patch is needed for systems where the bootloader has left the timer
not used in reset.

 - Trivial conflict with commit a74bd1ad7a:
    "Convert to using %pOFn instead of device_node.name"

Reported-by: Marek Vasut <marex@denx.de>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/dw_apb_timer_of.c