diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-03-13 13:07:57 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2014-05-13 09:13:59 +0200 |
commit | 14cfc4f3735d9704cb6a630ef302be596d380684 (patch) | |
tree | 23c759ab37c1368763488a5548813231cfa1d3d0 /board | |
parent | 2df9d5c431fca07c9868a36b48ee771bde6b19e8 (diff) | |
download | u-boot-imx-14cfc4f3735d9704cb6a630ef302be596d380684.zip u-boot-imx-14cfc4f3735d9704cb6a630ef302be596d380684.tar.gz u-boot-imx-14cfc4f3735d9704cb6a630ef302be596d380684.tar.bz2 |
fpga: xilinx: Simplify load/dump/info function handling
Connect FPGA version with appropriate operations
to remove huge switch-cases for every FPGA family.
Tested on Zynq. Spartan2/Spartan3/Virtex2 just compile test.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/armadeus/apf27/fpga.c | 1 | ||||
-rw-r--r-- | board/astro/mcf5373l/fpga.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/board/armadeus/apf27/fpga.c b/board/armadeus/apf27/fpga.c index 7d6e1e4..65a4812 100644 --- a/board/armadeus/apf27/fpga.c +++ b/board/armadeus/apf27/fpga.c @@ -48,6 +48,7 @@ xilinx_desc fpga[CONFIG_FPGA_COUNT] = { 1196128l/8, (void *)&fpga_fns, 0, + &spartan3_op, "3s200aft256"} }; diff --git a/board/astro/mcf5373l/fpga.c b/board/astro/mcf5373l/fpga.c index 81ec192..1d044d9 100644 --- a/board/astro/mcf5373l/fpga.c +++ b/board/astro/mcf5373l/fpga.c @@ -379,7 +379,8 @@ xilinx_desc xilinx_fpga[CONFIG_FPGA_COUNT] = { slave_serial, XILINX_XC3S4000_SIZE, (void *)&xilinx_fns, - 0} + 0, + &spartan3_op} }; /* Initialize the fpga. Return 1 on success, 0 on failure. */ |