diff options
Diffstat (limited to 'arch/arm/mach-versatile/versatile_pb.c')
-rw-r--r-- | arch/arm/mach-versatile/versatile_pb.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/arm/mach-versatile/versatile_pb.c b/arch/arm/mach-versatile/versatile_pb.c index aa051c0884f8..9af8d8154df5 100644 --- a/arch/arm/mach-versatile/versatile_pb.c +++ b/arch/arm/mach-versatile/versatile_pb.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/device.h> | 23 | #include <linux/device.h> |
24 | #include <linux/sysdev.h> | 24 | #include <linux/sysdev.h> |
25 | #include <linux/amba/bus.h> | 25 | #include <linux/amba/bus.h> |
26 | #include <linux/amba/pl061.h> | ||
26 | #include <linux/io.h> | 27 | #include <linux/io.h> |
27 | 28 | ||
28 | #include <mach/hardware.h> | 29 | #include <mach/hardware.h> |
@@ -43,6 +44,18 @@ | |||
43 | static struct mmc_platform_data mmc1_plat_data = { | 44 | static struct mmc_platform_data mmc1_plat_data = { |
44 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 45 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
45 | .status = mmc_status, | 46 | .status = mmc_status, |
47 | .gpio_wp = -1, | ||
48 | .gpio_cd = -1, | ||
49 | }; | ||
50 | |||
51 | static struct pl061_platform_data gpio2_plat_data = { | ||
52 | .gpio_base = 16, | ||
53 | .irq_base = IRQ_GPIO2_START, | ||
54 | }; | ||
55 | |||
56 | static struct pl061_platform_data gpio3_plat_data = { | ||
57 | .gpio_base = 24, | ||
58 | .irq_base = IRQ_GPIO3_START, | ||
46 | }; | 59 | }; |
47 | 60 | ||
48 | #define UART3_IRQ { IRQ_SIC_UART3, NO_IRQ } | 61 | #define UART3_IRQ { IRQ_SIC_UART3, NO_IRQ } |
@@ -70,8 +83,8 @@ AMBA_DEVICE(sci1, "fpga:0a", SCI1, NULL); | |||
70 | AMBA_DEVICE(mmc1, "fpga:0b", MMCI1, &mmc1_plat_data); | 83 | AMBA_DEVICE(mmc1, "fpga:0b", MMCI1, &mmc1_plat_data); |
71 | 84 | ||
72 | /* DevChip Primecells */ | 85 | /* DevChip Primecells */ |
73 | AMBA_DEVICE(gpio2, "dev:e6", GPIO2, NULL); | 86 | AMBA_DEVICE(gpio2, "dev:e6", GPIO2, &gpio2_plat_data); |
74 | AMBA_DEVICE(gpio3, "dev:e7", GPIO3, NULL); | 87 | AMBA_DEVICE(gpio3, "dev:e7", GPIO3, &gpio3_plat_data); |
75 | 88 | ||
76 | static struct amba_device *amba_devs[] __initdata = { | 89 | static struct amba_device *amba_devs[] __initdata = { |
77 | &uart3_device, | 90 | &uart3_device, |