The Allwinner A31 and most of the other Allwinner SoCs have an IP
maintaining a few other IPs in the SoC in reset by default. Among these
IPs are the A31's High Speed Timers, hence why we can't use the regular
driver construct in every cases, and need to call the registering
function directly during machine initialisation.
Apart from this, the implementation is fairly straightforward, and could
easily be moved to a generic MMIO-based reset controller driver if the
need ever arise.
Signed-off-by: Maxime Ripard <[email protected]>
Acked-by: Philipp Zabel <[email protected]>
"rstc" is NULL here and we should use "rcdev" instead of "rstc->rcdev".
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Philipp Zabel <[email protected]>
This adds a simple API for devices to request being reset
by separate reset controller hardware and implements the
reset signal device tree binding.
Signed-off-by: Philipp Zabel <[email protected]>
Reviewed-by: Stephen Warren <[email protected]>
Reviewed-by: Shawn Guo <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Reviewed-by: Pavel Machek <[email protected]>