1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Rich Ireland, Enterasys Networks, rireland@enterasys.com.
12 /* Slave Parallel Implementation function table */
22 xilinx_rdata_fn rdata;
23 xilinx_wdata_fn wdata;
25 xilinx_abort_fn abort;
27 } xilinx_spartan2_slave_parallel_fns;
29 /* Slave Serial Implementation function table */
38 } xilinx_spartan2_slave_serial_fns;
40 #if defined(CONFIG_FPGA_SPARTAN2)
41 extern struct xilinx_fpga_op spartan2_op;
42 # define FPGA_SPARTAN2_OPS &spartan2_op
44 # define FPGA_SPARTAN2_OPS NULL
48 *********************************************************************/
49 /* Spartan-II (2.5V) */
50 #define XILINX_XC2S15_SIZE 197728/8
51 #define XILINX_XC2S30_SIZE 336800/8
52 #define XILINX_XC2S50_SIZE 559232/8
53 #define XILINX_XC2S100_SIZE 781248/8
54 #define XILINX_XC2S150_SIZE 1040128/8
55 #define XILINX_XC2S200_SIZE 1335872/8
57 /* Spartan-IIE (1.8V) */
58 #define XILINX_XC2S50E_SIZE 630048/8
59 #define XILINX_XC2S100E_SIZE 863840/8
60 #define XILINX_XC2S150E_SIZE 1134496/8
61 #define XILINX_XC2S200E_SIZE 1442016/8
62 #define XILINX_XC2S300E_SIZE 1875648/8
65 *********************************************************************/
66 /* Spartan-II devices */
67 #define XILINX_XC2S15_DESC(iface, fn_table, cookie) \
68 { xilinx_spartan2, iface, XILINX_XC2S15_SIZE, fn_table, cookie, \
71 #define XILINX_XC2S30_DESC(iface, fn_table, cookie) \
72 { xilinx_spartan2, iface, XILINX_XC2S30_SIZE, fn_table, cookie, \
75 #define XILINX_XC2S50_DESC(iface, fn_table, cookie) \
76 { xilinx_spartan2, iface, XILINX_XC2S50_SIZE, fn_table, cookie, \
79 #define XILINX_XC2S100_DESC(iface, fn_table, cookie) \
80 { xilinx_spartan2, iface, XILINX_XC2S100_SIZE, fn_table, cookie, \
83 #define XILINX_XC2S150_DESC(iface, fn_table, cookie) \
84 { xilinx_spartan2, iface, XILINX_XC2S150_SIZE, fn_table, cookie, \
87 #define XILINX_XC2S200_DESC(iface, fn_table, cookie) \
88 { xilinx_spartan2, iface, XILINX_XC2S200_SIZE, fn_table, cookie, \
91 #define XILINX_XC2S50E_DESC(iface, fn_table, cookie) \
92 { xilinx_spartan2, iface, XILINX_XC2S50E_SIZE, fn_table, cookie, \
95 #define XILINX_XC2S100E_DESC(iface, fn_table, cookie) \
96 { xilinx_spartan2, iface, XILINX_XC2S100E_SIZE, fn_table, cookie, \
99 #define XILINX_XC2S150E_DESC(iface, fn_table, cookie) \
100 { xilinx_spartan2, iface, XILINX_XC2S150E_SIZE, fn_table, cookie, \
103 #define XILINX_XC2S200E_DESC(iface, fn_table, cookie) \
104 { xilinx_spartan2, iface, XILINX_XC2S200E_SIZE, fn_table, cookie, \
107 #define XILINX_XC2S300E_DESC(iface, fn_table, cookie) \
108 { xilinx_spartan2, iface, XILINX_XC2S300E_SIZE, fn_table, cookie, \
111 #endif /* _SPARTAN2_H_ */