Skip to content

Commit

Permalink
libanyio: add support for 6i24 PCIE board
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Geszkiewicz <[email protected]>
  • Loading branch information
micges committed Jan 16, 2015
1 parent 8ff61c7 commit d3348b8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions anyio.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ supported_board_entry_t supported_boards[] = {
{"4I74", BOARD_PCI},
{"5I24", BOARD_PCI},
{"5I25", BOARD_PCI},
{"6I24", BOARD_PCI},
{"6I25", BOARD_PCI},
{"5I20", BOARD_PCI},
{"4I65", BOARD_PCI},
Expand Down
29 changes: 29 additions & 0 deletions pci_boards.c
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,35 @@ void pci_boards_scan(board_access_t *access) {
board->fallback_support = 1;
board->llio.verbose = access->verbose;

boards_count++;
} else if (dev->device_id == DEVICEID_MESA6I24) {
board->type = BOARD_PCI;
strncpy((char *) board->llio.board_name, "6I24", 4);
board->llio.num_ioport_connectors = 3;
board->llio.pins_per_connector = 24;
board->llio.ioport_connector_name[0] = "P2";
board->llio.ioport_connector_name[1] = "P3";
board->llio.ioport_connector_name[2] = "P4";
board->llio.fpga_part_number = "6slx16ftg256";
board->llio.num_leds = 2;
board->llio.read = &pci_read;
board->llio.write = &pci_write;
board->llio.write_flash = &local_write_flash;
board->llio.verify_flash = &local_verify_flash;
board->llio.reload = &pci_board_reload;
board->llio.private = board;

board->open = &pci_board_open;
board->close = &pci_board_close;
board->print_info = &pci_print_info;
pci_fix_bar_lengths(dev);
board->mem_base = dev->base_addr[0] & PCI_ADDR_MEM_MASK;
board->len = dev->size[0];
board->dev = dev;
board->flash = BOARD_FLASH_HM2;
board->fallback_support = 1;
board->llio.verbose = access->verbose;

boards_count++;
} else if (dev->device_id == DEVICEID_MESA6I25) {
board->type = BOARD_PCI;
Expand Down
1 change: 1 addition & 0 deletions pci_boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#define DEVICEID_MESA4I74 0x4174
#define DEVICEID_MESA5I24 0x5124
#define DEVICEID_MESA5I25 0x5125
#define DEVICEID_MESA6I24 0x6124
#define DEVICEID_MESA6I25 0x6125
#define DEVICEID_PLX9030 0x9030
#define DEVICEID_PLX9054 0x9054
Expand Down

0 comments on commit d3348b8

Please sign in to comment.