diff options
Diffstat (limited to 'arch/blackfin/mach-bf548/boards/ezkit.c')
-rw-r--r-- | arch/blackfin/mach-bf548/boards/ezkit.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c index af7c211a580e..166fa2201ee7 100644 --- a/arch/blackfin/mach-bf548/boards/ezkit.c +++ b/arch/blackfin/mach-bf548/boards/ezkit.c | |||
@@ -61,6 +61,49 @@ const char bfin_board_name[] = "ADSP-BF548-EZKIT"; | |||
61 | * Driver needs to know address, irq and flag pin. | 61 | * Driver needs to know address, irq and flag pin. |
62 | */ | 62 | */ |
63 | 63 | ||
64 | #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) | ||
65 | static struct resource bfin_isp1761_resources[] = { | ||
66 | [0] = { | ||
67 | .name = "isp1761-regs", | ||
68 | .start = 0x2C0C0000, | ||
69 | .end = 0x2C0C0000 + 0xfffff, | ||
70 | .flags = IORESOURCE_MEM, | ||
71 | }, | ||
72 | [1] = { | ||
73 | .start = IRQ_PG7, | ||
74 | .end = IRQ_PG7, | ||
75 | .flags = IORESOURCE_IRQ, | ||
76 | }, | ||
77 | }; | ||
78 | |||
79 | static struct platform_device bfin_isp1761_device = { | ||
80 | .name = "isp1761", | ||
81 | .id = 0, | ||
82 | .num_resources = ARRAY_SIZE(bfin_isp1761_resources), | ||
83 | .resource = bfin_isp1761_resources, | ||
84 | }; | ||
85 | |||
86 | static struct platform_device *bfin_isp1761_devices[] = { | ||
87 | &bfin_isp1761_device, | ||
88 | }; | ||
89 | |||
90 | int __init bfin_isp1761_init(void) | ||
91 | { | ||
92 | unsigned int num_devices = ARRAY_SIZE(bfin_isp1761_devices); | ||
93 | |||
94 | printk(KERN_INFO "%s(): registering device resources\n", __func__); | ||
95 | set_irq_type(bfin_isp1761_resources[1].start, IRQF_TRIGGER_FALLING); | ||
96 | |||
97 | return platform_add_devices(bfin_isp1761_devices, num_devices); | ||
98 | } | ||
99 | |||
100 | void __exit bfin_isp1761_exit(void) | ||
101 | { | ||
102 | platform_device_unregister(&bfin_isp1761_device); | ||
103 | } | ||
104 | arch_initcall(bfin_isp1761_init); | ||
105 | #endif | ||
106 | |||
64 | #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) | 107 | #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) |
65 | 108 | ||
66 | #include <asm/mach/bf54x-lq043.h> | 109 | #include <asm/mach/bf54x-lq043.h> |
@@ -177,6 +220,7 @@ static struct resource bfin_uart_resources[] = { | |||
177 | { | 220 | { |
178 | .start = 0xFFC03100, | 221 | .start = 0xFFC03100, |
179 | .end = 0xFFC031FF, | 222 | .end = 0xFFC031FF, |
223 | .flags = IORESOURCE_MEM, | ||
180 | }, | 224 | }, |
181 | #endif | 225 | #endif |
182 | }; | 226 | }; |