aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-mx3/devices.c')
-rw-r--r--arch/arm/mach-mx3/devices.c60
1 files changed, 60 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c
index f8428800f286..c48a341bccf5 100644
--- a/arch/arm/mach-mx3/devices.c
+++ b/arch/arm/mach-mx3/devices.c
@@ -180,3 +180,63 @@ struct platform_device mxc_nand_device = {
180 .num_resources = ARRAY_SIZE(mxc_nand_resources), 180 .num_resources = ARRAY_SIZE(mxc_nand_resources),
181 .resource = mxc_nand_resources, 181 .resource = mxc_nand_resources,
182}; 182};
183
184static struct resource mxc_i2c0_resources[] = {
185 {
186 .start = I2C_BASE_ADDR,
187 .end = I2C_BASE_ADDR + SZ_4K - 1,
188 .flags = IORESOURCE_MEM,
189 },
190 {
191 .start = MXC_INT_I2C,
192 .end = MXC_INT_I2C,
193 .flags = IORESOURCE_IRQ,
194 },
195};
196
197struct platform_device mxc_i2c_device0 = {
198 .name = "imx-i2c",
199 .id = 0,
200 .num_resources = ARRAY_SIZE(mxc_i2c0_resources),
201 .resource = mxc_i2c0_resources,
202};
203
204static struct resource mxc_i2c1_resources[] = {
205 {
206 .start = I2C2_BASE_ADDR,
207 .end = I2C2_BASE_ADDR + SZ_4K - 1,
208 .flags = IORESOURCE_MEM,
209 },
210 {
211 .start = MXC_INT_I2C2,
212 .end = MXC_INT_I2C2,
213 .flags = IORESOURCE_IRQ,
214 },
215};
216
217struct platform_device mxc_i2c_device1 = {
218 .name = "imx-i2c",
219 .id = 1,
220 .num_resources = ARRAY_SIZE(mxc_i2c1_resources),
221 .resource = mxc_i2c1_resources,
222};
223
224static struct resource mxc_i2c2_resources[] = {
225 {
226 .start = I2C3_BASE_ADDR,
227 .end = I2C3_BASE_ADDR + SZ_4K - 1,
228 .flags = IORESOURCE_MEM,
229 },
230 {
231 .start = MXC_INT_I2C3,
232 .end = MXC_INT_I2C3,
233 .flags = IORESOURCE_IRQ,
234 },
235};
236
237struct platform_device mxc_i2c_device2 = {
238 .name = "imx-i2c",
239 .id = 2,
240 .num_resources = ARRAY_SIZE(mxc_i2c2_resources),
241 .resource = mxc_i2c2_resources,
242};