2 * File: arch/blackfin/mach-bf561/tepla.c
4 * Copyright 2004-2007 Analog Devices Inc.
5 * Only SMSC91C1111 was registered, may do more later.
7 * Copyright 2005 National ICT Australia (NICTA), Aidan Williams <aidan@nicta.com.au>
8 * Thanks to Jamey Hicks.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
15 #include <linux/device.h>
16 #include <linux/platform_device.h>
17 #include <linux/irq.h>
19 const char bfin_board_name
[] = "Tepla-BF561";
22 * Driver needs to know address, irq and flag pin.
24 static struct resource smc91x_resources
[] = {
28 .flags
= IORESOURCE_MEM
,
30 .start
= IRQ_PROG_INTB
,
32 .flags
= IORESOURCE_IRQ
|IORESOURCE_IRQ_HIGHLEVEL
,
36 .flags
= IORESOURCE_IRQ
|IORESOURCE_IRQ_HIGHLEVEL
,
40 static struct platform_device smc91x_device
= {
43 .num_resources
= ARRAY_SIZE(smc91x_resources
),
44 .resource
= smc91x_resources
,
47 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
48 #ifdef CONFIG_BFIN_SIR0
49 static struct resource bfin_sir0_resources
[] = {
53 .flags
= IORESOURCE_MEM
,
56 .start
= IRQ_UART0_RX
,
57 .end
= IRQ_UART0_RX
+1,
58 .flags
= IORESOURCE_IRQ
,
63 .flags
= IORESOURCE_DMA
,
67 static struct platform_device bfin_sir0_device
= {
70 .num_resources
= ARRAY_SIZE(bfin_sir0_resources
),
71 .resource
= bfin_sir0_resources
,
76 static struct platform_device
*tepla_devices
[] __initdata
= {
78 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
79 #ifdef CONFIG_BFIN_SIR0
85 static int __init
tepla_init(void)
87 printk(KERN_INFO
"%s(): registering device resources\n", __func__
);
88 return platform_add_devices(tepla_devices
, ARRAY_SIZE(tepla_devices
));
91 arch_initcall(tepla_init
);