diff options
| -rw-r--r-- | arch/arm/mach-ux500/devices-db8500.c | 76 | ||||
| -rw-r--r-- | arch/arm/mach-ux500/include/mach/devices.h | 7 |
2 files changed, 83 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/devices-db8500.c b/arch/arm/mach-ux500/devices-db8500.c index 9280d2561111..f2e01a6dafe7 100644 --- a/arch/arm/mach-ux500/devices-db8500.c +++ b/arch/arm/mach-ux500/devices-db8500.c | |||
| @@ -110,6 +110,82 @@ struct platform_device u8500_i2c4_device = { | |||
| 110 | .num_resources = ARRAY_SIZE(u8500_i2c4_resources), | 110 | .num_resources = ARRAY_SIZE(u8500_i2c4_resources), |
| 111 | }; | 111 | }; |
| 112 | 112 | ||
| 113 | /* | ||
| 114 | * SD/MMC | ||
| 115 | */ | ||
| 116 | |||
| 117 | struct amba_device u8500_sdi0_device = { | ||
| 118 | .dev = { | ||
| 119 | .init_name = "sdi0", | ||
| 120 | }, | ||
| 121 | .res = { | ||
| 122 | .start = U8500_SDI0_BASE, | ||
| 123 | .end = U8500_SDI0_BASE + SZ_4K - 1, | ||
| 124 | .flags = IORESOURCE_MEM, | ||
| 125 | }, | ||
| 126 | .irq = {IRQ_DB8500_SDMMC0, NO_IRQ}, | ||
| 127 | }; | ||
| 128 | |||
| 129 | struct amba_device u8500_sdi1_device = { | ||
| 130 | .dev = { | ||
| 131 | .init_name = "sdi1", | ||
| 132 | }, | ||
| 133 | .res = { | ||
| 134 | .start = U8500_SDI1_BASE, | ||
| 135 | .end = U8500_SDI1_BASE + SZ_4K - 1, | ||
| 136 | .flags = IORESOURCE_MEM, | ||
| 137 | }, | ||
| 138 | .irq = {IRQ_DB8500_SDMMC1, NO_IRQ}, | ||
| 139 | }; | ||
| 140 | |||
| 141 | struct amba_device u8500_sdi2_device = { | ||
| 142 | .dev = { | ||
| 143 | .init_name = "sdi2", | ||
| 144 | }, | ||
| 145 | .res = { | ||
| 146 | .start = U8500_SDI2_BASE, | ||
| 147 | .end = U8500_SDI2_BASE + SZ_4K - 1, | ||
| 148 | .flags = IORESOURCE_MEM, | ||
| 149 | }, | ||
| 150 | .irq = {IRQ_DB8500_SDMMC2, NO_IRQ}, | ||
| 151 | }; | ||
| 152 | |||
| 153 | struct amba_device u8500_sdi3_device = { | ||
| 154 | .dev = { | ||
| 155 | .init_name = "sdi3", | ||
| 156 | }, | ||
| 157 | .res = { | ||
| 158 | .start = U8500_SDI3_BASE, | ||
| 159 | .end = U8500_SDI3_BASE + SZ_4K - 1, | ||
| 160 | .flags = IORESOURCE_MEM, | ||
| 161 | }, | ||
| 162 | .irq = {IRQ_DB8500_SDMMC3, NO_IRQ}, | ||
| 163 | }; | ||
| 164 | |||
| 165 | struct amba_device u8500_sdi4_device = { | ||
| 166 | .dev = { | ||
| 167 | .init_name = "sdi4", | ||
| 168 | }, | ||
| 169 | .res = { | ||
| 170 | .start = U8500_SDI4_BASE, | ||
| 171 | .end = U8500_SDI4_BASE + SZ_4K - 1, | ||
| 172 | .flags = IORESOURCE_MEM, | ||
| 173 | }, | ||
| 174 | .irq = {IRQ_DB8500_SDMMC4, NO_IRQ}, | ||
| 175 | }; | ||
| 176 | |||
| 177 | struct amba_device u8500_sdi5_device = { | ||
| 178 | .dev = { | ||
| 179 | .init_name = "sdi5", | ||
| 180 | }, | ||
| 181 | .res = { | ||
| 182 | .start = U8500_SDI5_BASE, | ||
| 183 | .end = U8500_SDI5_BASE + SZ_4K - 1, | ||
| 184 | .flags = IORESOURCE_MEM, | ||
| 185 | }, | ||
| 186 | .irq = {IRQ_DB8500_SDMMC5, NO_IRQ}, | ||
| 187 | }; | ||
| 188 | |||
| 113 | static struct resource dma40_resources[] = { | 189 | static struct resource dma40_resources[] = { |
| 114 | [0] = { | 190 | [0] = { |
| 115 | .start = U8500_DMA_BASE, | 191 | .start = U8500_DMA_BASE, |
diff --git a/arch/arm/mach-ux500/include/mach/devices.h b/arch/arm/mach-ux500/include/mach/devices.h index c2b2f2574947..33a120c2e82e 100644 --- a/arch/arm/mach-ux500/include/mach/devices.h +++ b/arch/arm/mach-ux500/include/mach/devices.h | |||
| @@ -27,6 +27,13 @@ extern struct platform_device u8500_i2c0_device; | |||
| 27 | extern struct platform_device u8500_i2c4_device; | 27 | extern struct platform_device u8500_i2c4_device; |
| 28 | extern struct platform_device u8500_dma40_device; | 28 | extern struct platform_device u8500_dma40_device; |
| 29 | 29 | ||
| 30 | extern struct amba_device u8500_sdi0_device; | ||
| 31 | extern struct amba_device u8500_sdi1_device; | ||
| 32 | extern struct amba_device u8500_sdi2_device; | ||
| 33 | extern struct amba_device u8500_sdi3_device; | ||
| 34 | extern struct amba_device u8500_sdi4_device; | ||
| 35 | extern struct amba_device u8500_sdi5_device; | ||
| 36 | |||
| 30 | void dma40_u8500ed_fixup(void); | 37 | void dma40_u8500ed_fixup(void); |
| 31 | 38 | ||
| 32 | #endif | 39 | #endif |
