diff options
author | Alex Landau <landau.alex@gmail.com> | 2007-07-12 00:11:48 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-07-12 00:11:48 -0400 |
commit | f40d24d909ad99c802a6813ff32b6feb20ab8c71 (patch) | |
tree | 5404a10d8c894f82334965a4ea5af603ac334b6e /arch/blackfin/mach-bf537/boards | |
parent | 9be343c5bcd1cf285c2150f363bc9dd7aab8b7fb (diff) |
Blackfin arch: Port the dm9000 driver to Blackfin by using the correct low-level io routines
Signed-off-by: Alex Landau <landau.alex@gmail.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/mach-bf537/boards')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index c6373530898f..9c43d7756510 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -157,6 +157,28 @@ static struct platform_device smc91x_device = { | |||
157 | }; | 157 | }; |
158 | #endif | 158 | #endif |
159 | 159 | ||
160 | #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) | ||
161 | static struct resource dm9000_resources[] = { | ||
162 | [0] = { | ||
163 | .start = 0x203FB800, | ||
164 | .end = 0x203FB800 + 8, | ||
165 | .flags = IORESOURCE_MEM, | ||
166 | }, | ||
167 | [1] = { | ||
168 | .start = IRQ_PF9, | ||
169 | .end = IRQ_PF9, | ||
170 | .flags = (IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE), | ||
171 | }, | ||
172 | }; | ||
173 | |||
174 | static struct platform_device dm9000_device = { | ||
175 | .name = "dm9000", | ||
176 | .id = -1, | ||
177 | .num_resources = ARRAY_SIZE(dm9000_resources), | ||
178 | .resource = dm9000_resources, | ||
179 | }; | ||
180 | #endif | ||
181 | |||
160 | #if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE) | 182 | #if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE) |
161 | static struct resource sl811_hcd_resources[] = { | 183 | static struct resource sl811_hcd_resources[] = { |
162 | { | 184 | { |
@@ -568,6 +590,10 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
568 | &smc91x_device, | 590 | &smc91x_device, |
569 | #endif | 591 | #endif |
570 | 592 | ||
593 | #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) | ||
594 | &dm9000_device, | ||
595 | #endif | ||
596 | |||
571 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 597 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
572 | &bfin_mac_device, | 598 | &bfin_mac_device, |
573 | #endif | 599 | #endif |