Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137230
b: refs/heads/master
c: c5d4dbf
h: refs/heads/master
v: v3
  • Loading branch information
Sascha Hauer committed Mar 13, 2009
1 parent 70df57e commit f7ad0a2
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 824b16e66b70f5df61345f5708c149f6886eef30
refs/heads/master: c5d4dbff965b77b39c0188e4146892d76c775a98
42 changes: 42 additions & 0 deletions trunk/arch/arm/mach-mx2/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,48 @@ struct platform_device mxc_fec_device = {
};
#endif

static struct resource mxc_i2c_1_resources[] = {
[0] = {
.start = I2C_BASE_ADDR,
.end = I2C_BASE_ADDR + 0x0fff,
.flags = IORESOURCE_MEM
},
[1] = {
.start = MXC_INT_I2C,
.end = MXC_INT_I2C,
.flags = IORESOURCE_IRQ
}
};

struct platform_device mxc_i2c_device0 = {
.name = "imx-i2c",
.id = 0,
.num_resources = ARRAY_SIZE(mxc_i2c_1_resources),
.resource = mxc_i2c_1_resources
};

#ifdef CONFIG_MACH_MX27
static struct resource mxc_i2c_2_resources[] = {
[0] = {
.start = I2C2_BASE_ADDR,
.end = I2C2_BASE_ADDR + 0x0fff,
.flags = IORESOURCE_MEM
},
[1] = {
.start = MXC_INT_I2C2,
.end = MXC_INT_I2C2,
.flags = IORESOURCE_IRQ
}
};

struct platform_device mxc_i2c_device1 = {
.name = "imx-i2c",
.id = 1,
.num_resources = ARRAY_SIZE(mxc_i2c_2_resources),
.resource = mxc_i2c_2_resources
};
#endif

static struct resource mxc_pwm_resources[] = {
[0] = {
.start = PWM_BASE_ADDR,
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-mx2/devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ extern struct platform_device mxc_nand_device;
extern struct platform_device mxc_fb_device;
extern struct platform_device mxc_fec_device;
extern struct platform_device mxc_pwm_device;
extern struct platform_device mxc_i2c_device0;
extern struct platform_device mxc_i2c_device1;

0 comments on commit f7ad0a2

Please sign in to comment.