diff options
author | Graf Yang <graf.yang@analog.com> | 2008-04-24 15:09:15 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-04-24 15:09:15 -0400 |
commit | 5be36d22b28f01e5074f78b29aa6128da0a53641 (patch) | |
tree | 1fda8bcb0680eda6a826fc3753ee8c9f52a2c75b /arch/blackfin/mach-bf561/boards/ezkit.c | |
parent | 37b6972ad8fb08d438fd600888aff212b1b193b0 (diff) |
[Blackfin] arch: add Blackfin on-chip SIR IrDA driver support
- add platform device resources in board files
- add new bfin_sir.h to each machines
Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf561/boards/ezkit.c')
-rw-r--r-- | arch/blackfin/mach-bf561/boards/ezkit.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf561/boards/ezkit.c b/arch/blackfin/mach-bf561/boards/ezkit.c index 8eb79e526ad0..0d74b7d99209 100644 --- a/arch/blackfin/mach-bf561/boards/ezkit.c +++ b/arch/blackfin/mach-bf561/boards/ezkit.c | |||
@@ -220,6 +220,25 @@ static struct platform_device bfin_uart_device = { | |||
220 | }; | 220 | }; |
221 | #endif | 221 | #endif |
222 | 222 | ||
223 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | ||
224 | static struct resource bfin_sir_resources[] = { | ||
225 | #ifdef CONFIG_BFIN_SIR0 | ||
226 | { | ||
227 | .start = 0xFFC00400, | ||
228 | .end = 0xFFC004FF, | ||
229 | .flags = IORESOURCE_MEM, | ||
230 | }, | ||
231 | #endif | ||
232 | }; | ||
233 | |||
234 | static struct platform_device bfin_sir_device = { | ||
235 | .name = "bfin_sir", | ||
236 | .id = 0, | ||
237 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | ||
238 | .resource = bfin_sir_resources, | ||
239 | }; | ||
240 | #endif | ||
241 | |||
223 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | 242 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) |
224 | static struct mtd_partition ezkit_partitions[] = { | 243 | static struct mtd_partition ezkit_partitions[] = { |
225 | { | 244 | { |
@@ -445,6 +464,10 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
445 | &bfin_uart_device, | 464 | &bfin_uart_device, |
446 | #endif | 465 | #endif |
447 | 466 | ||
467 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | ||
468 | &bfin_sir_device, | ||
469 | #endif | ||
470 | |||
448 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | 471 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) |
449 | &bfin_pata_device, | 472 | &bfin_pata_device, |
450 | #endif | 473 | #endif |