summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-03-25 12:57:18 -0400
committerTom Rini <trini@konsulko.com>2016-03-25 12:57:18 -0400
commita6164205ee933fa956d9f07f4ae08b39b64629e7 (patch)
treef69f88b79602a47527409b83aa0c30091362f95b /include
parentb5b84be8a7356d4c3618b6edcb501885e53569f5 (diff)
parent7497a6a1f13eb86d68a936edecfd682bbad5752d (diff)
downloadtalos-obmc-uboot-a6164205ee933fa956d9f07f4ae08b39b64629e7.tar.gz
talos-obmc-uboot-a6164205ee933fa956d9f07f4ae08b39b64629e7.zip
Merge git://www.denx.de/git/u-boot-marvell
Diffstat (limited to 'include')
-rw-r--r--include/altera.h20
-rw-r--r--include/configs/sheevaplug.h6
-rw-r--r--include/configs/theadorable.h5
3 files changed, 28 insertions, 3 deletions
diff --git a/include/altera.h b/include/altera.h
index c2991ad800..48d3eb73c9 100644
--- a/include/altera.h
+++ b/include/altera.h
@@ -10,6 +10,19 @@
#ifndef _ALTERA_H_
#define _ALTERA_H_
+/*
+ * For the StratixV FPGA programming via SPI, the following
+ * information is coded in the 32bit cookie:
+ * Bit 31 ... Bit 0
+ * SPI-Bus | SPI-Dev | Config-Pin | Done-Pin
+ */
+#define FPGA_COOKIE(bus, dev, config, done) \
+ (((bus) << 24) | ((dev) << 16) | ((config) << 8) | (done))
+#define COOKIE2SPI_BUS(c) (((c) >> 24) & 0xff)
+#define COOKIE2SPI_DEV(c) (((c) >> 16) & 0xff)
+#define COOKIE2CONFIG(c) (((c) >> 8) & 0xff)
+#define COOKIE2DONE(c) ((c) & 0xff)
+
enum altera_iface {
/* insert all new types after this */
min_altera_iface_type,
@@ -40,6 +53,8 @@ enum altera_family {
Altera_CYC2,
/* StratixII Family */
Altera_StratixII,
+ /* StratixV Family */
+ Altera_StratixV,
/* SoCFPGA Family */
Altera_SoCFPGA,
@@ -89,6 +104,7 @@ typedef struct {
Altera_done_fn done;
Altera_clk_fn clk;
Altera_data_fn data;
+ Altera_write_fn write;
Altera_abort_fn abort;
Altera_post_fn post;
} altera_board_specific_func;
@@ -97,4 +113,8 @@ typedef struct {
int socfpga_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size);
#endif
+#ifdef CONFIG_FPGA_STRATIX_V
+int stratixv_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size);
+#endif
+
#endif /* _ALTERA_H_ */
diff --git a/include/configs/sheevaplug.h b/include/configs/sheevaplug.h
index c529636a66..f9fb9bc9af 100644
--- a/include/configs/sheevaplug.h
+++ b/include/configs/sheevaplug.h
@@ -64,12 +64,12 @@
#define CONFIG_MTDPARTS \
"orion_nand:512K(uboot)," \
- "512K(env),1M(script),6M(kernel)," \
- "12M(ramdisk),4M(spare),-(rootfs)\0"
+ "512K(env),4M(kernel)," \
+ "-(rootfs)\0"
#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
"=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
- "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
+ "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
"x_bootcmd_usb=usb start\0" \
"x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
diff --git a/include/configs/theadorable.h b/include/configs/theadorable.h
index 9f186add71..a4bcf21210 100644
--- a/include/configs/theadorable.h
+++ b/include/configs/theadorable.h
@@ -114,6 +114,11 @@
#define CONFIG_VGA_AS_SINGLE_DEVICE
#define CONFIG_CMD_BMP
+/* FPGA programming support */
+#define CONFIG_FPGA
+#define CONFIG_FPGA_ALTERA
+#define CONFIG_FPGA_STRATIX_V
+
/*
* mv-common.h should be defined after CMD configs since it used them
* to enable certain macros
OpenPOWER on IntegriCloud