diff options
Diffstat (limited to 'arch/blackfin/mach-bf518/boards/ezbrd.c')
-rw-r--r-- | arch/blackfin/mach-bf518/boards/ezbrd.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf518/boards/ezbrd.c b/arch/blackfin/mach-bf518/boards/ezbrd.c index b76953b475da..15f1351c8645 100644 --- a/arch/blackfin/mach-bf518/boards/ezbrd.c +++ b/arch/blackfin/mach-bf518/boards/ezbrd.c | |||
@@ -44,6 +44,7 @@ | |||
44 | #include <asm/reboot.h> | 44 | #include <asm/reboot.h> |
45 | #include <asm/portmux.h> | 45 | #include <asm/portmux.h> |
46 | #include <asm/dpmc.h> | 46 | #include <asm/dpmc.h> |
47 | #include <asm/bfin_sdh.h> | ||
47 | #include <linux/spi/ad7877.h> | 48 | #include <linux/spi/ad7877.h> |
48 | 49 | ||
49 | /* | 50 | /* |
@@ -522,6 +523,23 @@ static struct platform_device bfin_device_gpiokeys = { | |||
522 | }; | 523 | }; |
523 | #endif | 524 | #endif |
524 | 525 | ||
526 | #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) | ||
527 | |||
528 | static struct bfin_sd_host bfin_sdh_data = { | ||
529 | .dma_chan = CH_RSI, | ||
530 | .irq_int0 = IRQ_RSI_INT0, | ||
531 | .pin_req = {P_RSI_DATA0, P_RSI_DATA1, P_RSI_DATA2, P_RSI_DATA3, P_RSI_CMD, P_RSI_CLK, 0}, | ||
532 | }; | ||
533 | |||
534 | static struct platform_device bf51x_sdh_device = { | ||
535 | .name = "bfin-sdh", | ||
536 | .id = 0, | ||
537 | .dev = { | ||
538 | .platform_data = &bfin_sdh_data, | ||
539 | }, | ||
540 | }; | ||
541 | #endif | ||
542 | |||
525 | static struct resource bfin_gpios_resources = { | 543 | static struct resource bfin_gpios_resources = { |
526 | .start = 0, | 544 | .start = 0, |
527 | .end = MAX_BLACKFIN_GPIOS - 1, | 545 | .end = MAX_BLACKFIN_GPIOS - 1, |
@@ -600,6 +618,10 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
600 | &bfin_device_gpiokeys, | 618 | &bfin_device_gpiokeys, |
601 | #endif | 619 | #endif |
602 | 620 | ||
621 | #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) | ||
622 | &bf51x_sdh_device, | ||
623 | #endif | ||
624 | |||
603 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | 625 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) |
604 | &ezbrd_flash_device, | 626 | &ezbrd_flash_device, |
605 | #endif | 627 | #endif |