diff options
Diffstat (limited to 'arch/arm/mach-versatile/core.c')
-rw-r--r-- | arch/arm/mach-versatile/core.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index 31093af7d05..975eae41ee6 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
27 | #include <linux/amba/bus.h> | 27 | #include <linux/amba/bus.h> |
28 | #include <linux/amba/clcd.h> | 28 | #include <linux/amba/clcd.h> |
29 | #include <linux/amba/pl061.h> | ||
29 | #include <linux/clocksource.h> | 30 | #include <linux/clocksource.h> |
30 | #include <linux/clockchips.h> | 31 | #include <linux/clockchips.h> |
31 | #include <linux/cnt32_to_63.h> | 32 | #include <linux/cnt32_to_63.h> |
@@ -371,6 +372,8 @@ unsigned int mmc_status(struct device *dev) | |||
371 | static struct mmc_platform_data mmc0_plat_data = { | 372 | static struct mmc_platform_data mmc0_plat_data = { |
372 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 373 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
373 | .status = mmc_status, | 374 | .status = mmc_status, |
375 | .gpio_wp = -1, | ||
376 | .gpio_cd = -1, | ||
374 | }; | 377 | }; |
375 | 378 | ||
376 | /* | 379 | /* |
@@ -705,6 +708,16 @@ static struct clcd_board clcd_plat_data = { | |||
705 | .remove = versatile_clcd_remove, | 708 | .remove = versatile_clcd_remove, |
706 | }; | 709 | }; |
707 | 710 | ||
711 | static struct pl061_platform_data gpio0_plat_data = { | ||
712 | .gpio_base = 0, | ||
713 | .irq_base = IRQ_GPIO0_START, | ||
714 | }; | ||
715 | |||
716 | static struct pl061_platform_data gpio1_plat_data = { | ||
717 | .gpio_base = 8, | ||
718 | .irq_base = IRQ_GPIO1_START, | ||
719 | }; | ||
720 | |||
708 | #define AACI_IRQ { IRQ_AACI, NO_IRQ } | 721 | #define AACI_IRQ { IRQ_AACI, NO_IRQ } |
709 | #define AACI_DMA { 0x80, 0x81 } | 722 | #define AACI_DMA { 0x80, 0x81 } |
710 | #define MMCI0_IRQ { IRQ_MMCI0A,IRQ_SIC_MMCI0B } | 723 | #define MMCI0_IRQ { IRQ_MMCI0A,IRQ_SIC_MMCI0B } |
@@ -767,8 +780,8 @@ AMBA_DEVICE(clcd, "dev:20", CLCD, &clcd_plat_data); | |||
767 | AMBA_DEVICE(dmac, "dev:30", DMAC, NULL); | 780 | AMBA_DEVICE(dmac, "dev:30", DMAC, NULL); |
768 | AMBA_DEVICE(sctl, "dev:e0", SCTL, NULL); | 781 | AMBA_DEVICE(sctl, "dev:e0", SCTL, NULL); |
769 | AMBA_DEVICE(wdog, "dev:e1", WATCHDOG, NULL); | 782 | AMBA_DEVICE(wdog, "dev:e1", WATCHDOG, NULL); |
770 | AMBA_DEVICE(gpio0, "dev:e4", GPIO0, NULL); | 783 | AMBA_DEVICE(gpio0, "dev:e4", GPIO0, &gpio0_plat_data); |
771 | AMBA_DEVICE(gpio1, "dev:e5", GPIO1, NULL); | 784 | AMBA_DEVICE(gpio1, "dev:e5", GPIO1, &gpio1_plat_data); |
772 | AMBA_DEVICE(rtc, "dev:e8", RTC, NULL); | 785 | AMBA_DEVICE(rtc, "dev:e8", RTC, NULL); |
773 | AMBA_DEVICE(sci0, "dev:f0", SCI, NULL); | 786 | AMBA_DEVICE(sci0, "dev:f0", SCI, NULL); |
774 | AMBA_DEVICE(uart0, "dev:f1", UART0, NULL); | 787 | AMBA_DEVICE(uart0, "dev:f1", UART0, NULL); |