diff options
Diffstat (limited to 'arch/blackfin/mach-bf548/boards')
-rw-r--r-- | arch/blackfin/mach-bf548/boards/cm_bf548.c | 166 | ||||
-rw-r--r-- | arch/blackfin/mach-bf548/boards/ezkit.c | 156 |
2 files changed, 274 insertions, 48 deletions
diff --git a/arch/blackfin/mach-bf548/boards/cm_bf548.c b/arch/blackfin/mach-bf548/boards/cm_bf548.c index 24192aaa9275..f53ad682530b 100644 --- a/arch/blackfin/mach-bf548/boards/cm_bf548.c +++ b/arch/blackfin/mach-bf548/boards/cm_bf548.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/platform_device.h> | 32 | #include <linux/platform_device.h> |
33 | #include <linux/mtd/mtd.h> | 33 | #include <linux/mtd/mtd.h> |
34 | #include <linux/mtd/partitions.h> | 34 | #include <linux/mtd/partitions.h> |
35 | #include <linux/mtd/physmap.h> | ||
35 | #include <linux/spi/spi.h> | 36 | #include <linux/spi/spi.h> |
36 | #include <linux/spi/flash.h> | 37 | #include <linux/spi/flash.h> |
37 | #include <linux/irq.h> | 38 | #include <linux/irq.h> |
@@ -42,6 +43,7 @@ | |||
42 | #include <asm/gpio.h> | 43 | #include <asm/gpio.h> |
43 | #include <asm/nand.h> | 44 | #include <asm/nand.h> |
44 | #include <asm/portmux.h> | 45 | #include <asm/portmux.h> |
46 | #include <asm/bfin_sdh.h> | ||
45 | #include <mach/bf54x_keys.h> | 47 | #include <mach/bf54x_keys.h> |
46 | #include <asm/dpmc.h> | 48 | #include <asm/dpmc.h> |
47 | #include <linux/input.h> | 49 | #include <linux/input.h> |
@@ -186,44 +188,107 @@ static struct platform_device bfin_uart_device = { | |||
186 | #endif | 188 | #endif |
187 | 189 | ||
188 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 190 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
189 | static struct resource bfin_sir_resources[] = { | ||
190 | #ifdef CONFIG_BFIN_SIR0 | 191 | #ifdef CONFIG_BFIN_SIR0 |
192 | static struct resource bfin_sir0_resources[] = { | ||
191 | { | 193 | { |
192 | .start = 0xFFC00400, | 194 | .start = 0xFFC00400, |
193 | .end = 0xFFC004FF, | 195 | .end = 0xFFC004FF, |
194 | .flags = IORESOURCE_MEM, | 196 | .flags = IORESOURCE_MEM, |
195 | }, | 197 | }, |
198 | { | ||
199 | .start = IRQ_UART0_RX, | ||
200 | .end = IRQ_UART0_RX+1, | ||
201 | .flags = IORESOURCE_IRQ, | ||
202 | }, | ||
203 | { | ||
204 | .start = CH_UART0_RX, | ||
205 | .end = CH_UART0_RX+1, | ||
206 | .flags = IORESOURCE_DMA, | ||
207 | }, | ||
208 | }; | ||
209 | static struct platform_device bfin_sir0_device = { | ||
210 | .name = "bfin_sir", | ||
211 | .id = 0, | ||
212 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), | ||
213 | .resource = bfin_sir0_resources, | ||
214 | }; | ||
196 | #endif | 215 | #endif |
197 | #ifdef CONFIG_BFIN_SIR1 | 216 | #ifdef CONFIG_BFIN_SIR1 |
217 | static struct resource bfin_sir1_resources[] = { | ||
198 | { | 218 | { |
199 | .start = 0xFFC02000, | 219 | .start = 0xFFC02000, |
200 | .end = 0xFFC020FF, | 220 | .end = 0xFFC020FF, |
201 | .flags = IORESOURCE_MEM, | 221 | .flags = IORESOURCE_MEM, |
202 | }, | 222 | }, |
223 | { | ||
224 | .start = IRQ_UART1_RX, | ||
225 | .end = IRQ_UART1_RX+1, | ||
226 | .flags = IORESOURCE_IRQ, | ||
227 | }, | ||
228 | { | ||
229 | .start = CH_UART1_RX, | ||
230 | .end = CH_UART1_RX+1, | ||
231 | .flags = IORESOURCE_DMA, | ||
232 | }, | ||
233 | }; | ||
234 | static struct platform_device bfin_sir1_device = { | ||
235 | .name = "bfin_sir", | ||
236 | .id = 1, | ||
237 | .num_resources = ARRAY_SIZE(bfin_sir1_resources), | ||
238 | .resource = bfin_sir1_resources, | ||
239 | }; | ||
203 | #endif | 240 | #endif |
204 | #ifdef CONFIG_BFIN_SIR2 | 241 | #ifdef CONFIG_BFIN_SIR2 |
242 | static struct resource bfin_sir2_resources[] = { | ||
205 | { | 243 | { |
206 | .start = 0xFFC02100, | 244 | .start = 0xFFC02100, |
207 | .end = 0xFFC021FF, | 245 | .end = 0xFFC021FF, |
208 | .flags = IORESOURCE_MEM, | 246 | .flags = IORESOURCE_MEM, |
209 | }, | 247 | }, |
248 | { | ||
249 | .start = IRQ_UART2_RX, | ||
250 | .end = IRQ_UART2_RX+1, | ||
251 | .flags = IORESOURCE_IRQ, | ||
252 | }, | ||
253 | { | ||
254 | .start = CH_UART2_RX, | ||
255 | .end = CH_UART2_RX+1, | ||
256 | .flags = IORESOURCE_DMA, | ||
257 | }, | ||
258 | }; | ||
259 | static struct platform_device bfin_sir2_device = { | ||
260 | .name = "bfin_sir", | ||
261 | .id = 2, | ||
262 | .num_resources = ARRAY_SIZE(bfin_sir2_resources), | ||
263 | .resource = bfin_sir2_resources, | ||
264 | }; | ||
210 | #endif | 265 | #endif |
211 | #ifdef CONFIG_BFIN_SIR3 | 266 | #ifdef CONFIG_BFIN_SIR3 |
267 | static struct resource bfin_sir3_resources[] = { | ||
212 | { | 268 | { |
213 | .start = 0xFFC03100, | 269 | .start = 0xFFC03100, |
214 | .end = 0xFFC031FF, | 270 | .end = 0xFFC031FF, |
215 | .flags = IORESOURCE_MEM, | 271 | .flags = IORESOURCE_MEM, |
216 | }, | 272 | }, |
217 | #endif | 273 | { |
274 | .start = IRQ_UART3_RX, | ||
275 | .end = IRQ_UART3_RX+1, | ||
276 | .flags = IORESOURCE_IRQ, | ||
277 | }, | ||
278 | { | ||
279 | .start = CH_UART3_RX, | ||
280 | .end = CH_UART3_RX+1, | ||
281 | .flags = IORESOURCE_DMA, | ||
282 | }, | ||
218 | }; | 283 | }; |
219 | 284 | static struct platform_device bfin_sir3_device = { | |
220 | static struct platform_device bfin_sir_device = { | ||
221 | .name = "bfin_sir", | 285 | .name = "bfin_sir", |
222 | .id = 0, | 286 | .id = 3, |
223 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 287 | .num_resources = ARRAY_SIZE(bfin_sir3_resources), |
224 | .resource = bfin_sir_resources, | 288 | .resource = bfin_sir3_resources, |
225 | }; | 289 | }; |
226 | #endif | 290 | #endif |
291 | #endif | ||
227 | 292 | ||
228 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) | 293 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
229 | static struct resource smsc911x_resources[] = { | 294 | static struct resource smsc911x_resources[] = { |
@@ -271,8 +336,8 @@ static struct musb_hdrc_config musb_config = { | |||
271 | .dyn_fifo = 0, | 336 | .dyn_fifo = 0, |
272 | .soft_con = 1, | 337 | .soft_con = 1, |
273 | .dma = 1, | 338 | .dma = 1, |
274 | .num_eps = 7, | 339 | .num_eps = 8, |
275 | .dma_channels = 7, | 340 | .dma_channels = 8, |
276 | .gpio_vrsel = GPIO_PH6, | 341 | .gpio_vrsel = GPIO_PH6, |
277 | }; | 342 | }; |
278 | 343 | ||
@@ -302,6 +367,19 @@ static struct platform_device musb_device = { | |||
302 | }; | 367 | }; |
303 | #endif | 368 | #endif |
304 | 369 | ||
370 | static struct resource bfin_gpios_resources = { | ||
371 | .start = 0, | ||
372 | .end = MAX_BLACKFIN_GPIOS - 1, | ||
373 | .flags = IORESOURCE_IRQ, | ||
374 | }; | ||
375 | |||
376 | static struct platform_device bfin_gpios_device = { | ||
377 | .name = "simple-gpio", | ||
378 | .id = -1, | ||
379 | .num_resources = 1, | ||
380 | .resource = &bfin_gpios_resources, | ||
381 | }; | ||
382 | |||
305 | #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE) | 383 | #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE) |
306 | static struct resource bfin_atapi_resources[] = { | 384 | static struct resource bfin_atapi_resources[] = { |
307 | { | 385 | { |
@@ -372,9 +450,58 @@ static struct platform_device bf5xx_nand_device = { | |||
372 | #endif | 450 | #endif |
373 | 451 | ||
374 | #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) | 452 | #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) |
453 | static struct bfin_sd_host bfin_sdh_data = { | ||
454 | .dma_chan = CH_SDH, | ||
455 | .irq_int0 = IRQ_SDH_MASK0, | ||
456 | .pin_req = {P_SD_D0, P_SD_D1, P_SD_D2, P_SD_D3, P_SD_CLK, P_SD_CMD, 0}, | ||
457 | }; | ||
458 | |||
375 | static struct platform_device bf54x_sdh_device = { | 459 | static struct platform_device bf54x_sdh_device = { |
376 | .name = "bfin-sdh", | 460 | .name = "bfin-sdh", |
377 | .id = 0, | 461 | .id = 0, |
462 | .dev = { | ||
463 | .platform_data = &bfin_sdh_data, | ||
464 | }, | ||
465 | }; | ||
466 | #endif | ||
467 | |||
468 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | ||
469 | static struct mtd_partition para_partitions[] = { | ||
470 | { | ||
471 | .name = "bootloader(nor)", | ||
472 | .size = 0x40000, | ||
473 | .offset = 0, | ||
474 | }, { | ||
475 | .name = "linux kernel(nor)", | ||
476 | .size = 0x400000, | ||
477 | .offset = MTDPART_OFS_APPEND, | ||
478 | }, { | ||
479 | .name = "file system(nor)", | ||
480 | .size = MTDPART_SIZ_FULL, | ||
481 | .offset = MTDPART_OFS_APPEND, | ||
482 | } | ||
483 | }; | ||
484 | |||
485 | static struct physmap_flash_data para_flash_data = { | ||
486 | .width = 2, | ||
487 | .parts = para_partitions, | ||
488 | .nr_parts = ARRAY_SIZE(para_partitions), | ||
489 | }; | ||
490 | |||
491 | static struct resource para_flash_resource = { | ||
492 | .start = 0x20000000, | ||
493 | .end = 0x207fffff, | ||
494 | .flags = IORESOURCE_MEM, | ||
495 | }; | ||
496 | |||
497 | static struct platform_device para_flash_device = { | ||
498 | .name = "physmap-flash", | ||
499 | .id = 0, | ||
500 | .dev = { | ||
501 | .platform_data = ¶_flash_data, | ||
502 | }, | ||
503 | .num_resources = 1, | ||
504 | .resource = ¶_flash_resource, | ||
378 | }; | 505 | }; |
379 | #endif | 506 | #endif |
380 | 507 | ||
@@ -642,7 +769,18 @@ static struct platform_device *cm_bf548_devices[] __initdata = { | |||
642 | #endif | 769 | #endif |
643 | 770 | ||
644 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 771 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
645 | &bfin_sir_device, | 772 | #ifdef CONFIG_BFIN_SIR0 |
773 | &bfin_sir0_device, | ||
774 | #endif | ||
775 | #ifdef CONFIG_BFIN_SIR1 | ||
776 | &bfin_sir1_device, | ||
777 | #endif | ||
778 | #ifdef CONFIG_BFIN_SIR2 | ||
779 | &bfin_sir2_device, | ||
780 | #endif | ||
781 | #ifdef CONFIG_BFIN_SIR3 | ||
782 | &bfin_sir3_device, | ||
783 | #endif | ||
646 | #endif | 784 | #endif |
647 | 785 | ||
648 | #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) | 786 | #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) |
@@ -679,7 +817,7 @@ static struct platform_device *cm_bf548_devices[] __initdata = { | |||
679 | #endif | 817 | #endif |
680 | 818 | ||
681 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 819 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
682 | /* &i2c_bfin_twi0_device, */ | 820 | &i2c_bfin_twi0_device, |
683 | #if !defined(CONFIG_BF542) | 821 | #if !defined(CONFIG_BF542) |
684 | &i2c_bfin_twi1_device, | 822 | &i2c_bfin_twi1_device, |
685 | #endif | 823 | #endif |
@@ -688,6 +826,12 @@ static struct platform_device *cm_bf548_devices[] __initdata = { | |||
688 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 826 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
689 | &bfin_device_gpiokeys, | 827 | &bfin_device_gpiokeys, |
690 | #endif | 828 | #endif |
829 | |||
830 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | ||
831 | ¶_flash_device, | ||
832 | #endif | ||
833 | |||
834 | &bfin_gpios_device, | ||
691 | }; | 835 | }; |
692 | 836 | ||
693 | static int __init cm_bf548_init(void) | 837 | static int __init cm_bf548_init(void) |
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c index 5288187a3ace..309c16014cae 100644 --- a/arch/blackfin/mach-bf548/boards/ezkit.c +++ b/arch/blackfin/mach-bf548/boards/ezkit.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include <asm/nand.h> | 45 | #include <asm/nand.h> |
46 | #include <asm/dpmc.h> | 46 | #include <asm/dpmc.h> |
47 | #include <asm/portmux.h> | 47 | #include <asm/portmux.h> |
48 | #include <asm/bfin_sdh.h> | ||
48 | #include <mach/bf54x_keys.h> | 49 | #include <mach/bf54x_keys.h> |
49 | #include <linux/input.h> | 50 | #include <linux/input.h> |
50 | #include <linux/spi/ad7877.h> | 51 | #include <linux/spi/ad7877.h> |
@@ -52,16 +53,16 @@ | |||
52 | /* | 53 | /* |
53 | * Name the Board for the /proc/cpuinfo | 54 | * Name the Board for the /proc/cpuinfo |
54 | */ | 55 | */ |
55 | const char bfin_board_name[] = "ADSP-BF548-EZKIT"; | 56 | const char bfin_board_name[] = "ADI BF548-EZKIT"; |
56 | 57 | ||
57 | /* | 58 | /* |
58 | * Driver needs to know address, irq and flag pin. | 59 | * Driver needs to know address, irq and flag pin. |
59 | */ | 60 | */ |
60 | 61 | ||
61 | #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) | 62 | #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) |
62 | static struct resource bfin_isp1761_resources[] = { | 63 | #include <linux/usb/isp1760.h> |
64 | static struct resource bfin_isp1760_resources[] = { | ||
63 | [0] = { | 65 | [0] = { |
64 | .name = "isp1761-regs", | ||
65 | .start = 0x2C0C0000, | 66 | .start = 0x2C0C0000, |
66 | .end = 0x2C0C0000 + 0xfffff, | 67 | .end = 0x2C0C0000 + 0xfffff, |
67 | .flags = IORESOURCE_MEM, | 68 | .flags = IORESOURCE_MEM, |
@@ -73,32 +74,25 @@ static struct resource bfin_isp1761_resources[] = { | |||
73 | }, | 74 | }, |
74 | }; | 75 | }; |
75 | 76 | ||
76 | static struct platform_device bfin_isp1761_device = { | 77 | static struct isp1760_platform_data isp1760_priv = { |
77 | .name = "isp1761", | 78 | .is_isp1761 = 0, |
78 | .id = 0, | 79 | .port1_disable = 0, |
79 | .num_resources = ARRAY_SIZE(bfin_isp1761_resources), | 80 | .bus_width_16 = 1, |
80 | .resource = bfin_isp1761_resources, | 81 | .port1_otg = 0, |
82 | .analog_oc = 0, | ||
83 | .dack_polarity_high = 0, | ||
84 | .dreq_polarity_high = 0, | ||
81 | }; | 85 | }; |
82 | 86 | ||
83 | static struct platform_device *bfin_isp1761_devices[] = { | 87 | static struct platform_device bfin_isp1760_device = { |
84 | &bfin_isp1761_device, | 88 | .name = "isp1760-hcd", |
89 | .id = 0, | ||
90 | .dev = { | ||
91 | .platform_data = &isp1760_priv, | ||
92 | }, | ||
93 | .num_resources = ARRAY_SIZE(bfin_isp1760_resources), | ||
94 | .resource = bfin_isp1760_resources, | ||
85 | }; | 95 | }; |
86 | |||
87 | int __init bfin_isp1761_init(void) | ||
88 | { | ||
89 | unsigned int num_devices = ARRAY_SIZE(bfin_isp1761_devices); | ||
90 | |||
91 | printk(KERN_INFO "%s(): registering device resources\n", __func__); | ||
92 | set_irq_type(bfin_isp1761_resources[1].start, IRQF_TRIGGER_FALLING); | ||
93 | |||
94 | return platform_add_devices(bfin_isp1761_devices, num_devices); | ||
95 | } | ||
96 | |||
97 | void __exit bfin_isp1761_exit(void) | ||
98 | { | ||
99 | platform_device_unregister(&bfin_isp1761_device); | ||
100 | } | ||
101 | arch_initcall(bfin_isp1761_init); | ||
102 | #endif | 96 | #endif |
103 | 97 | ||
104 | #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) | 98 | #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) |
@@ -262,44 +256,107 @@ static struct platform_device bfin_uart_device = { | |||
262 | #endif | 256 | #endif |
263 | 257 | ||
264 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 258 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
265 | static struct resource bfin_sir_resources[] = { | ||
266 | #ifdef CONFIG_BFIN_SIR0 | 259 | #ifdef CONFIG_BFIN_SIR0 |
260 | static struct resource bfin_sir0_resources[] = { | ||
267 | { | 261 | { |
268 | .start = 0xFFC00400, | 262 | .start = 0xFFC00400, |
269 | .end = 0xFFC004FF, | 263 | .end = 0xFFC004FF, |
270 | .flags = IORESOURCE_MEM, | 264 | .flags = IORESOURCE_MEM, |
271 | }, | 265 | }, |
266 | { | ||
267 | .start = IRQ_UART0_RX, | ||
268 | .end = IRQ_UART0_RX+1, | ||
269 | .flags = IORESOURCE_IRQ, | ||
270 | }, | ||
271 | { | ||
272 | .start = CH_UART0_RX, | ||
273 | .end = CH_UART0_RX+1, | ||
274 | .flags = IORESOURCE_DMA, | ||
275 | }, | ||
276 | }; | ||
277 | static struct platform_device bfin_sir0_device = { | ||
278 | .name = "bfin_sir", | ||
279 | .id = 0, | ||
280 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), | ||
281 | .resource = bfin_sir0_resources, | ||
282 | }; | ||
272 | #endif | 283 | #endif |
273 | #ifdef CONFIG_BFIN_SIR1 | 284 | #ifdef CONFIG_BFIN_SIR1 |
285 | static struct resource bfin_sir1_resources[] = { | ||
274 | { | 286 | { |
275 | .start = 0xFFC02000, | 287 | .start = 0xFFC02000, |
276 | .end = 0xFFC020FF, | 288 | .end = 0xFFC020FF, |
277 | .flags = IORESOURCE_MEM, | 289 | .flags = IORESOURCE_MEM, |
278 | }, | 290 | }, |
291 | { | ||
292 | .start = IRQ_UART1_RX, | ||
293 | .end = IRQ_UART1_RX+1, | ||
294 | .flags = IORESOURCE_IRQ, | ||
295 | }, | ||
296 | { | ||
297 | .start = CH_UART1_RX, | ||
298 | .end = CH_UART1_RX+1, | ||
299 | .flags = IORESOURCE_DMA, | ||
300 | }, | ||
301 | }; | ||
302 | static struct platform_device bfin_sir1_device = { | ||
303 | .name = "bfin_sir", | ||
304 | .id = 1, | ||
305 | .num_resources = ARRAY_SIZE(bfin_sir1_resources), | ||
306 | .resource = bfin_sir1_resources, | ||
307 | }; | ||
279 | #endif | 308 | #endif |
280 | #ifdef CONFIG_BFIN_SIR2 | 309 | #ifdef CONFIG_BFIN_SIR2 |
310 | static struct resource bfin_sir2_resources[] = { | ||
281 | { | 311 | { |
282 | .start = 0xFFC02100, | 312 | .start = 0xFFC02100, |
283 | .end = 0xFFC021FF, | 313 | .end = 0xFFC021FF, |
284 | .flags = IORESOURCE_MEM, | 314 | .flags = IORESOURCE_MEM, |
285 | }, | 315 | }, |
316 | { | ||
317 | .start = IRQ_UART2_RX, | ||
318 | .end = IRQ_UART2_RX+1, | ||
319 | .flags = IORESOURCE_IRQ, | ||
320 | }, | ||
321 | { | ||
322 | .start = CH_UART2_RX, | ||
323 | .end = CH_UART2_RX+1, | ||
324 | .flags = IORESOURCE_DMA, | ||
325 | }, | ||
326 | }; | ||
327 | static struct platform_device bfin_sir2_device = { | ||
328 | .name = "bfin_sir", | ||
329 | .id = 2, | ||
330 | .num_resources = ARRAY_SIZE(bfin_sir2_resources), | ||
331 | .resource = bfin_sir2_resources, | ||
332 | }; | ||
286 | #endif | 333 | #endif |
287 | #ifdef CONFIG_BFIN_SIR3 | 334 | #ifdef CONFIG_BFIN_SIR3 |
335 | static struct resource bfin_sir3_resources[] = { | ||
288 | { | 336 | { |
289 | .start = 0xFFC03100, | 337 | .start = 0xFFC03100, |
290 | .end = 0xFFC031FF, | 338 | .end = 0xFFC031FF, |
291 | .flags = IORESOURCE_MEM, | 339 | .flags = IORESOURCE_MEM, |
292 | }, | 340 | }, |
293 | #endif | 341 | { |
342 | .start = IRQ_UART3_RX, | ||
343 | .end = IRQ_UART3_RX+1, | ||
344 | .flags = IORESOURCE_IRQ, | ||
345 | }, | ||
346 | { | ||
347 | .start = CH_UART3_RX, | ||
348 | .end = CH_UART3_RX+1, | ||
349 | .flags = IORESOURCE_DMA, | ||
350 | }, | ||
294 | }; | 351 | }; |
295 | 352 | static struct platform_device bfin_sir3_device = { | |
296 | static struct platform_device bfin_sir_device = { | ||
297 | .name = "bfin_sir", | 353 | .name = "bfin_sir", |
298 | .id = 0, | 354 | .id = 3, |
299 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 355 | .num_resources = ARRAY_SIZE(bfin_sir3_resources), |
300 | .resource = bfin_sir_resources, | 356 | .resource = bfin_sir3_resources, |
301 | }; | 357 | }; |
302 | #endif | 358 | #endif |
359 | #endif | ||
303 | 360 | ||
304 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) | 361 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
305 | static struct resource smsc911x_resources[] = { | 362 | static struct resource smsc911x_resources[] = { |
@@ -347,8 +404,8 @@ static struct musb_hdrc_config musb_config = { | |||
347 | .dyn_fifo = 0, | 404 | .dyn_fifo = 0, |
348 | .soft_con = 1, | 405 | .soft_con = 1, |
349 | .dma = 1, | 406 | .dma = 1, |
350 | .num_eps = 7, | 407 | .num_eps = 8, |
351 | .dma_channels = 7, | 408 | .dma_channels = 8, |
352 | .gpio_vrsel = GPIO_PE7, | 409 | .gpio_vrsel = GPIO_PE7, |
353 | }; | 410 | }; |
354 | 411 | ||
@@ -448,9 +505,19 @@ static struct platform_device bf5xx_nand_device = { | |||
448 | #endif | 505 | #endif |
449 | 506 | ||
450 | #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) | 507 | #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) |
508 | |||
509 | static struct bfin_sd_host bfin_sdh_data = { | ||
510 | .dma_chan = CH_SDH, | ||
511 | .irq_int0 = IRQ_SDH_MASK0, | ||
512 | .pin_req = {P_SD_D0, P_SD_D1, P_SD_D2, P_SD_D3, P_SD_CLK, P_SD_CMD, 0}, | ||
513 | }; | ||
514 | |||
451 | static struct platform_device bf54x_sdh_device = { | 515 | static struct platform_device bf54x_sdh_device = { |
452 | .name = "bfin-sdh", | 516 | .name = "bfin-sdh", |
453 | .id = 0, | 517 | .id = 0, |
518 | .dev = { | ||
519 | .platform_data = &bfin_sdh_data, | ||
520 | }, | ||
454 | }; | 521 | }; |
455 | #endif | 522 | #endif |
456 | 523 | ||
@@ -589,7 +656,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
589 | { | 656 | { |
590 | .modalias = "ad7877", | 657 | .modalias = "ad7877", |
591 | .platform_data = &bfin_ad7877_ts_info, | 658 | .platform_data = &bfin_ad7877_ts_info, |
592 | .irq = IRQ_PJ11, /* newer boards (Rev 1.4+) use IRQ_PB4 */ | 659 | .irq = IRQ_PB4, /* old boards (<=Rev 1.3) use IRQ_PJ11 */ |
593 | .max_speed_hz = 12500000, /* max spi clock (SCK) speed in HZ */ | 660 | .max_speed_hz = 12500000, /* max spi clock (SCK) speed in HZ */ |
594 | .bus_num = 0, | 661 | .bus_num = 0, |
595 | .chip_select = 2, | 662 | .chip_select = 2, |
@@ -812,7 +879,18 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
812 | #endif | 879 | #endif |
813 | 880 | ||
814 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 881 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
815 | &bfin_sir_device, | 882 | #ifdef CONFIG_BFIN_SIR0 |
883 | &bfin_sir0_device, | ||
884 | #endif | ||
885 | #ifdef CONFIG_BFIN_SIR1 | ||
886 | &bfin_sir1_device, | ||
887 | #endif | ||
888 | #ifdef CONFIG_BFIN_SIR2 | ||
889 | &bfin_sir2_device, | ||
890 | #endif | ||
891 | #ifdef CONFIG_BFIN_SIR3 | ||
892 | &bfin_sir3_device, | ||
893 | #endif | ||
816 | #endif | 894 | #endif |
817 | 895 | ||
818 | #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) | 896 | #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) |
@@ -827,6 +905,10 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
827 | &musb_device, | 905 | &musb_device, |
828 | #endif | 906 | #endif |
829 | 907 | ||
908 | #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) | ||
909 | &bfin_isp1760_device, | ||
910 | #endif | ||
911 | |||
830 | #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE) | 912 | #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE) |
831 | &bfin_atapi_device, | 913 | &bfin_atapi_device, |
832 | #endif | 914 | #endif |