Debian Codegraph @

src/soc/xilinx/zynq7000/reset.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <device/mmio.h>
4 #include <reset.h>
5
6 #define SLCR_UNLOCK ((void *)0xF8000008u)
7 #define SLCR_UNLOCK_KEY 0xDF0D
8 #define PSS_RST_CTRL ((void *)0xF8000200u)
9 void do_board_reset(void)
10 {
11 write16(SLCR_UNLOCK, SLCR_UNLOCK_KEY);
12 write32(PSS_RST_CTRL, 1);
13 }