diff options
author | Michael Tretter <m.tretter@pengutronix.de> | 2021-06-24 17:00:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-25 09:39:19 +0200 |
commit | 4d5b70a55c389b8f3ca85aec8d39fc480d766330 (patch) | |
tree | 864673a40dbacaf636c103d1b1f48053c41e7baa /drivers/clk/zynqmp/clk-gate-zynqmp.c | |
parent | 30a5e60e7d23fba9c5c12ff93c022a6c236dd01f (diff) | |
download | barebox-4d5b70a55c389b8f3ca85aec8d39fc480d766330.tar.gz barebox-4d5b70a55c389b8f3ca85aec8d39fc480d766330.tar.xz |
ARM: zynqmp: set reset source
The reset reason is available in the APB register set on the ZynqMP.
Read the reset reason and set the reset source accordingly.
There might be multiple bits set in the APB register. Use the MSB for
determining the actual reset source.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Link: https://lore.barebox.org/20210624150054.1205422-2-m.tretter@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clk/zynqmp/clk-gate-zynqmp.c')
0 files changed, 0 insertions, 0 deletions