Commit a356ab1c authored by Michael Grzeschik's avatar Michael Grzeschik Committed by David S. Miller

arcnet: com20020-pci: add support for PCIFB2 card

We add support for the PCIFB2 card from EAE.

Beside other cards, this card has the backplane mode enabled by default.
Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 52ab12e4
...@@ -201,6 +201,9 @@ static int com20020pci_probe(struct pci_dev *pdev, ...@@ -201,6 +201,9 @@ static int com20020pci_probe(struct pci_dev *pdev,
lp->backplane = (inb(priv->misc) >> (2 + i)) & 0x1; lp->backplane = (inb(priv->misc) >> (2 + i)) & 0x1;
if (!strncmp(ci->name, "EAE PLX-PCI FB2", 15))
lp->backplane = 1;
/* Get the dev_id from the PLX rotary coder */ /* Get the dev_id from the PLX rotary coder */
if (!strncmp(ci->name, "EAE PLX-PCI MA1", 15)) if (!strncmp(ci->name, "EAE PLX-PCI MA1", 15))
dev->dev_id = 0xc; dev->dev_id = 0xc;
...@@ -385,6 +388,31 @@ static struct com20020_pci_card_info card_info_eae_ma1 = { ...@@ -385,6 +388,31 @@ static struct com20020_pci_card_info card_info_eae_ma1 = {
.flags = ARC_CAN_10MBIT, .flags = ARC_CAN_10MBIT,
}; };
static struct com20020_pci_card_info card_info_eae_fb2 = {
.name = "EAE PLX-PCI FB2",
.devcount = 1,
.chan_map_tbl = {
{
.bar = 2,
.offset = 0x00,
.size = 0x08,
},
},
.misc_map = {
.bar = 2,
.offset = 0x10,
.size = 0x04,
},
.leds = {
{
.green = 0x0,
.red = 0x1,
},
},
.rotary = 0x0,
.flags = ARC_CAN_10MBIT,
};
static const struct pci_device_id com20020pci_id_table[] = { static const struct pci_device_id com20020pci_id_table[] = {
{ {
0x1571, 0xa001, 0x1571, 0xa001,
...@@ -530,6 +558,12 @@ static const struct pci_device_id com20020pci_id_table[] = { ...@@ -530,6 +558,12 @@ static const struct pci_device_id com20020pci_id_table[] = {
0, 0, 0, 0,
(kernel_ulong_t)&card_info_eae_ma1 (kernel_ulong_t)&card_info_eae_ma1
}, },
{
0x10B5, 0x9050,
0x10B5, 0x3294,
0, 0,
(kernel_ulong_t)&card_info_eae_fb2
},
{ {
0x14BA, 0x6000, 0x14BA, 0x6000,
PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment