diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/generic_board.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/generic_board.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf533/boards/generic_board.c b/arch/blackfin/mach-bf533/boards/generic_board.c index 82b1f6a60e3f..986eeec53b1f 100644 --- a/arch/blackfin/mach-bf533/boards/generic_board.c +++ b/arch/blackfin/mach-bf533/boards/generic_board.c | |||
@@ -72,6 +72,35 @@ static struct platform_device smc91x_device = { | |||
72 | }; | 72 | }; |
73 | #endif | 73 | #endif |
74 | 74 | ||
75 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | ||
76 | #ifdef CONFIG_BFIN_SIR0 | ||
77 | static struct resource bfin_sir0_resources[] = { | ||
78 | { | ||
79 | .start = 0xFFC00400, | ||
80 | .end = 0xFFC004FF, | ||
81 | .flags = IORESOURCE_MEM, | ||
82 | }, | ||
83 | { | ||
84 | .start = IRQ_UART0_RX, | ||
85 | .end = IRQ_UART0_RX+1, | ||
86 | .flags = IORESOURCE_IRQ, | ||
87 | }, | ||
88 | { | ||
89 | .start = CH_UART0_RX, | ||
90 | .end = CH_UART0_RX+1, | ||
91 | .flags = IORESOURCE_DMA, | ||
92 | }, | ||
93 | }; | ||
94 | |||
95 | static struct platform_device bfin_sir0_device = { | ||
96 | .name = "bfin_sir", | ||
97 | .id = 0, | ||
98 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), | ||
99 | .resource = bfin_sir0_resources, | ||
100 | }; | ||
101 | #endif | ||
102 | #endif | ||
103 | |||
75 | static struct platform_device *generic_board_devices[] __initdata = { | 104 | static struct platform_device *generic_board_devices[] __initdata = { |
76 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) | 105 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) |
77 | &rtc_device, | 106 | &rtc_device, |
@@ -80,6 +109,12 @@ static struct platform_device *generic_board_devices[] __initdata = { | |||
80 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) | 109 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) |
81 | &smc91x_device, | 110 | &smc91x_device, |
82 | #endif | 111 | #endif |
112 | |||
113 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | ||
114 | #ifdef CONFIG_BFIN_SIR0 | ||
115 | &bfin_sir0_device, | ||
116 | #endif | ||
117 | #endif | ||
83 | }; | 118 | }; |
84 | 119 | ||
85 | static int __init generic_board_init(void) | 120 | static int __init generic_board_init(void) |