Commit 8b4339f7 authored by Gerhard Uttenthaler's avatar Gerhard Uttenthaler Committed by Marc Kleine-Budde
parent 79ca81e7
...@@ -372,14 +372,21 @@ static int ems_pci_add_card(struct pci_dev *pdev, ...@@ -372,14 +372,21 @@ static int ems_pci_add_card(struct pci_dev *pdev,
SET_NETDEV_DEV(dev, &pdev->dev); SET_NETDEV_DEV(dev, &pdev->dev);
dev->dev_id = i; dev->dev_id = i;
if (card->version == 1) if (card->version == 1) {
/* reset int flag of pita */ /* reset int flag of pita */
writel(PITA2_ICR_INT0_EN | PITA2_ICR_INT0, writel(PITA2_ICR_INT0_EN | PITA2_ICR_INT0,
card->conf_addr + PITA2_ICR); card->conf_addr + PITA2_ICR);
else } else if (card->version == 2) {
/* enable IRQ in PLX 9030 */ /* enable IRQ in PLX 9030 */
writel(PLX_ICSR_ENA_CLR, writel(PLX_ICSR_ENA_CLR,
card->conf_addr + PLX_ICSR); card->conf_addr + PLX_ICSR);
} else {
/* Enable IRQ in AX99100 */
writel(ASIX_LINTSR_INT0AC, card->conf_addr + ASIX_LINTSR);
/* Enable local INT0 input enable */
writel(readl(card->conf_addr + ASIX_LIEMR) | ASIX_LIEMR_L0EINTEN,
card->conf_addr + ASIX_LIEMR);
}
/* Register SJA1000 device */ /* Register SJA1000 device */
err = register_sja1000dev(dev); err = register_sja1000dev(dev);
......
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