summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-zynq/include/mach/zynq7000-regs.h
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2019-11-09 15:28:37 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-11-11 09:15:56 +0100
commit096d308b6b780dba72538cf86c5031beaffe5e04 (patch)
tree2ee8ebd9ba40d02def6bd782380f30904d07fc59 /arch/arm/mach-zynq/include/mach/zynq7000-regs.h
parentdb3ea7aae9266e5f9328b25e440ac9cd095f8d17 (diff)
downloadbarebox-096d308b6b780dba72538cf86c5031beaffe5e04.tar.gz
barebox-096d308b6b780dba72538cf86c5031beaffe5e04.tar.xz
ARM: zynq: add bootsource detection
Implement the bootsource detection by reading the BOOT_MODE SLCR register which holds the strap values used to select the boot source. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-zynq/include/mach/zynq7000-regs.h')
-rw-r--r--arch/arm/mach-zynq/include/mach/zynq7000-regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-zynq/include/mach/zynq7000-regs.h b/arch/arm/mach-zynq/include/mach/zynq7000-regs.h
index dd02f5b407..eeecfe1ded 100644
--- a/arch/arm/mach-zynq/include/mach/zynq7000-regs.h
+++ b/arch/arm/mach-zynq/include/mach/zynq7000-regs.h
@@ -63,6 +63,7 @@
#define ZYNQ_FPGA3_CLK_CTRL 0x0A0
#define ZYNQ_CLK_621_TRUE 0x0C4
#define ZYNQ_RST_CTRL_BASE (ZYNQ_SLCR_BASE + 0x200)
+#define ZYNQ_SLCR_BOOT_MODE (ZYNQ_SLCR_BASE + 0x25C)
#define ZYNQ_PSS_RST_CTRL (ZYNQ_RST_CTRL_BASE + 0x000)
#define ZYNQ_DDR_RST_CTRL (ZYNQ_RST_CTRL_BASE + 0x004)
#define ZYNQ_TOPSW_RST_CTRL (ZYNQ_RST_CTRL_BASE + 0x008)