summaryrefslogtreecommitdiff
path: root/include/fpga.h
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2013-04-26 15:04:48 +0200
committerMichal Simek <michal.simek@xilinx.com>2013-05-06 10:41:25 +0200
commit6631db4773cd735688bf3332173a49271df23385 (patch)
tree490f9a4e9bc19b1ef92fa782125ca971e295fa53 /include/fpga.h
parentd5dae85f23c7c902731512e451afde9a6e4a250a (diff)
downloadu-boot-imx-6631db4773cd735688bf3332173a49271df23385.zip
u-boot-imx-6631db4773cd735688bf3332173a49271df23385.tar.gz
u-boot-imx-6631db4773cd735688bf3332173a49271df23385.tar.bz2
fpga: Check device name against bitstream name
Ensure that wrong bitstream won't be loaded to current device. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/fpga.h')
-rw-r--r--include/fpga.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fpga.h b/include/fpga.h
index 38f62c0..ebefba8 100644
--- a/include/fpga.h
+++ b/include/fpga.h
@@ -71,5 +71,7 @@ extern int fpga_load(int devnum, const void *buf, size_t bsize);
extern int fpga_loadbitstream(int devnum, char *fpgadata, size_t size);
extern int fpga_dump(int devnum, const void *buf, size_t bsize);
extern int fpga_info(int devnum);
+extern const fpga_desc *const fpga_validate(int devnum, const void *buf,
+ size_t bsize, char *fn);
#endif /* _FPGA_H_ */