Skip to content

Commit 18b446f

Browse files
committed
Allow backup/restore of SPI cards
1 parent d3db30c commit 18b446f

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

mesaflash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#endif
3333

3434
#ifndef VERSION
35-
#define VERSION "3.5.15"
35+
#define VERSION "3.5.16"
3636
#endif
3737

3838
static int device_flag;

spi_boards.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ void spi_boards_scan(board_access_t *access) {
257257
board_t *board = &boards[boards_count];
258258
board->type = BOARD_SPI;
259259
strcpy(board->dev_addr, access->dev_addr);
260-
strcpy(board->llio.board_name, "7I90HD");
260+
strcpy(board->llio.board_name, "7I90");
261261
board->llio.num_ioport_connectors = 3;
262262
board->llio.pins_per_connector = 24;
263263
board->llio.ioport_connector_name[0] = "P1";
@@ -269,6 +269,8 @@ void spi_boards_scan(board_access_t *access) {
269269
board->llio.read = spi_read;
270270
board->llio.write_flash = local_write_flash;
271271
board->llio.verify_flash = local_verify_flash;
272+
board->llio.backup_flash = &local_backup_flash;
273+
board->llio.restore_flash = &local_restore_flash;
272274
board->llio.reload = &spi_board_reload;
273275
board->llio.fpga_part_number = "6slx9tqg144";
274276
board->open = spi_board_open;
@@ -294,6 +296,8 @@ void spi_boards_scan(board_access_t *access) {
294296
board->llio.read = spi_read;
295297
board->llio.write_flash = local_write_flash;
296298
board->llio.verify_flash = local_verify_flash;
299+
board->llio.backup_flash = &local_backup_flash;
300+
board->llio.restore_flash = &local_restore_flash;
297301
board->llio.reload = &spi_board_reload;
298302
board->llio.fpga_part_number = "6slx9tqg144";
299303
board->open = spi_board_open;
@@ -321,6 +325,8 @@ void spi_boards_scan(board_access_t *access) {
321325
board->llio.read = spi_read;
322326
board->llio.write_flash = local_write_flash;
323327
board->llio.verify_flash = local_verify_flash;
328+
board->llio.backup_flash = &local_backup_flash;
329+
board->llio.restore_flash = &local_restore_flash;
324330
board->llio.reload = &spi_board_reload;
325331
board->llio.fpga_part_number = "6slx9tqg144";
326332
board->open = spi_board_open;

0 commit comments

Comments
 (0)