Skip to content

Commit

Permalink
Fix recover option for 6I24/6I25 (broken by name munging)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcw-mesa committed Jul 19, 2023
1 parent 349ce88 commit 0d1f9ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions anyio.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ supported_board_entry_t supported_boards[] = {
{"6I24", BOARD_PCI},
{"6I25", BOARD_PCI},
{"5I20", BOARD_PCI},
{"RECOVER", BOARD_PCI},
{"4I65", BOARD_PCI},
{"4I68", BOARD_PCI},
{"5I21", BOARD_PCI},
Expand Down
4 changes: 2 additions & 2 deletions mesaflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#endif

#ifndef VERSION
#define VERSION "3.4.7"
#define VERSION "3.4.8"
#endif

static int device_flag;
Expand Down Expand Up @@ -161,7 +161,7 @@ void print_usage() {
printf(" --fallback Use the fallback area of the FLASH memory while executing\n");
printf(" commands.\n");
printf(" --recover Access board using PCI bridge GPIO (currently\n");
printf(" only 6I24/6I25).\n");
printf(" only 6I24/6I25). Use --recover --device recover --write.\n");
printf(" --xml Format output from 'readhmid' command into XML.\n");
printf(" --dbname# <name> Set daughter board name to <name> for FPGA connector <N> \n");
printf(" Allows readhmid to include daughterboard terminal names,\n");
Expand Down
10 changes: 5 additions & 5 deletions pci_boards.c
Original file line number Diff line number Diff line change
Expand Up @@ -930,16 +930,16 @@ void pci_boards_scan(board_access_t *access) {
board_init_struct(board);
if ((dev->vendor_id == VENDORID_XIO2001) && (dev->device_id == DEVICEID_XIO2001)) {
board->type = BOARD_PCI;
strcpy(board->llio.board_name, "6I25 (RECOVER)");
strcpy(board->llio.board_name, "RECOVER");
board->llio.num_ioport_connectors = 2;
board->llio.pins_per_connector = 17;
board->llio.ioport_connector_name[0] = "P3";
board->llio.ioport_connector_name[1] = "P2";
board->llio.fpga_part_number = "6slx9tqg144";
board->llio.ioport_connector_name[0] = "Unknown";
board->llio.ioport_connector_name[1] = "Unknown";
board->llio.ioport_connector_name[2] = "Unknown";
board->llio.fpga_part_number = "Unknown";
board->llio.num_leds = 2;
board->llio.write_flash = &local_write_flash;
board->llio.verify_flash = &local_verify_flash;

board->open = &pci_board_open;
board->close = &pci_board_close;
board->print_info = &pci_print_info;
Expand Down

0 comments on commit 0d1f9ab

Please sign in to comment.