summaryrefslogtreecommitdiff
path: root/include/altera.h
diff options
context:
space:
mode:
authorPavel Machek <pavel@denx.de>2014-09-08 14:08:45 +0200
committerMarek Vasut <marex@denx.de>2014-10-06 17:46:50 +0200
commit230fe9b202ff0ca396ad9a564816cc87d42daa6e (patch)
tree2d534e5ca52cb843ab332c1e09f5a3e547b3637d /include/altera.h
parent604364e42cf7dd3c4980901b47ee47eb4b490e4b (diff)
downloadu-boot-imx-230fe9b202ff0ca396ad9a564816cc87d42daa6e.zip
u-boot-imx-230fe9b202ff0ca396ad9a564816cc87d42daa6e.tar.gz
u-boot-imx-230fe9b202ff0ca396ad9a564816cc87d42daa6e.tar.bz2
arm: socfpga: fpga: Add SoCFPGA FPGA programming interface
Add code necessary to program the FPGA part of SoCFPGA from U-Boot with an RBF blob. This patch also integrates the code into the FPGA driver framework in U-Boot so it can be used via the 'fpga' command. Signed-off-by: Pavel Machek <pavel@denx.de> Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <clsee@altera.com> Cc: Dinh Nguyen <dinguyen@altera.com> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Tom Rini <trini@ti.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Pavel Machek <pavel@denx.de> V2: Move the not-CPU specific stuff into drivers/fpga/ and base this on the cleaned up altera FPGA support.
Diffstat (limited to 'include/altera.h')
-rw-r--r--include/altera.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/altera.h b/include/altera.h
index e266a64..c2991ad 100644
--- a/include/altera.h
+++ b/include/altera.h
@@ -40,6 +40,8 @@ enum altera_family {
Altera_CYC2,
/* StratixII Family */
Altera_StratixII,
+ /* SoCFPGA Family */
+ Altera_SoCFPGA,
/* Add new models here */
@@ -91,4 +93,8 @@ typedef struct {
Altera_post_fn post;
} altera_board_specific_func;
+#ifdef CONFIG_FPGA_SOCFPGA
+int socfpga_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size);
+#endif
+
#endif /* _ALTERA_H_ */