diff options
author | Barry Song <barry.song@analog.com> | 2009-11-02 02:29:07 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-12-15 00:16:38 -0500 |
commit | 706a01b1c6d50b0940ca31d2dc21ba54f095f5af (patch) | |
tree | e51ae118ecb0f20febca0e9dea54148c57ce4d67 /arch/blackfin/mach-bf537 | |
parent | 1f13f2fdca71408ad211936b85e673b72e91911a (diff) |
Blackfin: bf537-stamp: add CAN resources
Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf537')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index 187e6fd76968..70349d3817e0 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -302,6 +302,44 @@ static struct platform_device isp1362_hcd_device = { | |||
302 | }; | 302 | }; |
303 | #endif | 303 | #endif |
304 | 304 | ||
305 | #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) | ||
306 | unsigned short bfin_can_peripherals[] = { | ||
307 | P_CAN0_RX, P_CAN0_TX, 0 | ||
308 | }; | ||
309 | |||
310 | static struct resource bfin_can_resources[] = { | ||
311 | { | ||
312 | .start = 0xFFC02A00, | ||
313 | .end = 0xFFC02FFF, | ||
314 | .flags = IORESOURCE_MEM, | ||
315 | }, | ||
316 | { | ||
317 | .start = IRQ_CAN_RX, | ||
318 | .end = IRQ_CAN_RX, | ||
319 | .flags = IORESOURCE_IRQ, | ||
320 | }, | ||
321 | { | ||
322 | .start = IRQ_CAN_TX, | ||
323 | .end = IRQ_CAN_TX, | ||
324 | .flags = IORESOURCE_IRQ, | ||
325 | }, | ||
326 | { | ||
327 | .start = IRQ_CAN_ERROR, | ||
328 | .end = IRQ_CAN_ERROR, | ||
329 | .flags = IORESOURCE_IRQ, | ||
330 | }, | ||
331 | }; | ||
332 | |||
333 | static struct platform_device bfin_can_device = { | ||
334 | .name = "bfin_can", | ||
335 | .num_resources = ARRAY_SIZE(bfin_can_resources), | ||
336 | .resource = bfin_can_resources, | ||
337 | .dev = { | ||
338 | .platform_data = &bfin_can_peripherals, /* Passed to driver */ | ||
339 | }, | ||
340 | }; | ||
341 | #endif | ||
342 | |||
305 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 343 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
306 | static struct platform_device bfin_mii_bus = { | 344 | static struct platform_device bfin_mii_bus = { |
307 | .name = "bfin_mii_bus", | 345 | .name = "bfin_mii_bus", |
@@ -1675,6 +1713,10 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
1675 | &ax88180_device, | 1713 | &ax88180_device, |
1676 | #endif | 1714 | #endif |
1677 | 1715 | ||
1716 | #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) | ||
1717 | &bfin_can_device, | ||
1718 | #endif | ||
1719 | |||
1678 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 1720 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
1679 | &bfin_mii_bus, | 1721 | &bfin_mii_bus, |
1680 | &bfin_mac_device, | 1722 | &bfin_mac_device, |