summaryrefslogtreecommitdiff
path: root/board/theadorable/theadorable.h
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2016-02-12 14:24:07 +0100
committerStefan Roese <sr@denx.de>2016-03-24 09:48:34 +0100
commitaea02abec59e8ea8e78c7926162c2b0f6073f32c (patch)
tree7b8a7d01b37991b2b64bb246fc917fc4fbde7c6a /board/theadorable/theadorable.h
parent84d6919118042cba56fe50ee57b1b6351e740cf4 (diff)
downloadu-boot-imx-aea02abec59e8ea8e78c7926162c2b0f6073f32c.zip
u-boot-imx-aea02abec59e8ea8e78c7926162c2b0f6073f32c.tar.gz
u-boot-imx-aea02abec59e8ea8e78c7926162c2b0f6073f32c.tar.bz2
arm: mvebu: theadorable: Add StratixV FPGA programming support
This patch adds support for Altera StratixV bitstream programming. 2 FPGAs are connected to the SPI busses. This patch uses board specific write code to program the bitstream via SPI direct write mode. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Luka Perkov <luka.perkov@sartura.hr> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/theadorable/theadorable.h')
-rw-r--r--board/theadorable/theadorable.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/theadorable/theadorable.h b/board/theadorable/theadorable.h
new file mode 100644
index 0000000..89fe117
--- /dev/null
+++ b/board/theadorable/theadorable.h
@@ -0,0 +1,12 @@
+/*
+ * Copyright (C) 2016 Stefan Roese <sr@denx.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+/* Base addresses for the SPI direct access mode */
+#define SPI_BUS0_DEV1_BASE 0xe0000000
+#define SPI_BUS0_DEV1_SIZE (1 << 20)
+#define SPI_BUS1_DEV2_BASE (SPI_BUS0_DEV1_BASE + SPI_BUS0_DEV1_SIZE)
+
+void board_fpga_add(void);