summaryrefslogtreecommitdiff
path: root/include/spartan3.h
diff options
context:
space:
mode:
authorWolfgang Wegner <w.wegner@astro-kom.de>2009-10-30 16:55:02 +0100
committerTsiChung Liew <tsicliew@gmail.com>2010-03-24 11:08:43 -0500
commit89083346d0627a5e6e271e61bd34ab5121f9462b (patch)
tree6a46d3fe57befe0d6d0097bbf5f57c7d2bad95c5 /include/spartan3.h
parent9d79e5758c3a6776be9a86856823d28e7154a481 (diff)
downloadu-boot-imx-89083346d0627a5e6e271e61bd34ab5121f9462b.zip
u-boot-imx-89083346d0627a5e6e271e61bd34ab5121f9462b.tar.gz
u-boot-imx-89083346d0627a5e6e271e61bd34ab5121f9462b.tar.bz2
add block write function to spartan3 slave serial load
Using seperate function calls for each bit-bang of slave serial load can be painfully slow. This patch adds the possibility to supply a block write function that loads the complete block of data in one call (like it can already be done with Altera FPGAs). On an MCF5373L (240 MHz) loading an XC3S4000 this reduces the load time from around 15 seconds to around 3 seconds Signed-off-by: Wolfgang Wegner <w.wegner at astro-kom.de>
Diffstat (limited to 'include/spartan3.h')
-rw-r--r--include/spartan3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/spartan3.h b/include/spartan3.h
index 30b1c2d..d5a589d 100644
--- a/include/spartan3.h
+++ b/include/spartan3.h
@@ -57,6 +57,7 @@ typedef struct {
Xilinx_done_fn done;
Xilinx_wr_fn wr;
Xilinx_post_fn post;
+ Xilinx_bwr_fn bwr; /* block write function */
} Xilinx_Spartan3_Slave_Serial_fns;
/* Device Image Sizes