Skip to content

Commit

Permalink
[ARM] colibri: fix support for DM9000 ethernet device
Browse files Browse the repository at this point in the history
Two changes are necessary to enable proper operation of the DM9000 device with
the Colibri PXA 270 board: firstly, the IRQ type needs to be configured for
rising edge interrupts, and secondly this configuration needs to be
communicated through to the DM9000.

[[email protected]: remove set_irq_type() call as per ben-linux request]
Signed-off-by: Michael Abbott <[email protected]>
Cc: Daniel Mack <[email protected]>
Cc: Jeff Garzik <[email protected]>
Cc: Ben Dooks <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Araneidae authored and Russell King committed May 17, 2008
1 parent 7cc09c2 commit d0afc85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/arm/mach-pxa/colibri.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static struct resource dm9000_resources[] = {
[2] = {
.start = COLIBRI_ETH_IRQ,
.end = COLIBRI_ETH_IRQ,
.flags = IORESOURCE_IRQ,
.flags = IORESOURCE_IRQ | IRQF_TRIGGER_RISING,
},
};

Expand All @@ -119,7 +119,6 @@ static void __init colibri_init(void)
/* DM9000 LAN */
pxa_gpio_mode(GPIO78_nCS_2_MD);
pxa_gpio_mode(GPIO_DM9000 | GPIO_IN);
set_irq_type(COLIBRI_ETH_IRQ, IRQT_FALLING);

platform_add_devices(colibri_devices, ARRAY_SIZE(colibri_devices));
}
Expand Down

0 comments on commit d0afc85

Please sign in to comment.