libanyio: add support for 6i24 PCIE board

Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
This commit is contained in:
Michael Geszkiewicz 2015-01-16 18:50:06 +01:00
parent 8ff61c78f3
commit d3348b8dcf
3 changed files with 31 additions and 0 deletions

View file

@ -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},

View file

@ -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;

View file

@ -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