Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137257
b: refs/heads/master
c: 2adc1d6
h: refs/heads/master
i:
  137255: a3161a1
v: v3
  • Loading branch information
Sascha Hauer committed Mar 13, 2009
1 parent d88a0e5 commit 91c73ff
Show file tree
Hide file tree
Showing 3 changed files with 43 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: 1a02be0ee77b68aef67b656bc47f0fb4ab177e67
refs/heads/master: 2adc1d654e41f4308193fdd46cee885b7a35c149
40 changes: 40 additions & 0 deletions trunk/arch/arm/mach-mx3/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,46 @@ struct platform_device mxc_i2c_device2 = {
.resource = mxc_i2c2_resources,
};

#ifdef CONFIG_ARCH_MX31
static struct resource mxcsdhc0_resources[] = {
{
.start = MMC_SDHC1_BASE_ADDR,
.end = MMC_SDHC1_BASE_ADDR + SZ_16K - 1,
.flags = IORESOURCE_MEM,
}, {
.start = MXC_INT_MMC_SDHC1,
.end = MXC_INT_MMC_SDHC1,
.flags = IORESOURCE_IRQ,
},
};

static struct resource mxcsdhc1_resources[] = {
{
.start = MMC_SDHC2_BASE_ADDR,
.end = MMC_SDHC2_BASE_ADDR + SZ_16K - 1,
.flags = IORESOURCE_MEM,
}, {
.start = MXC_INT_MMC_SDHC2,
.end = MXC_INT_MMC_SDHC2,
.flags = IORESOURCE_IRQ,
},
};

struct platform_device mxcsdhc_device0 = {
.name = "mxc-mmc",
.id = 0,
.num_resources = ARRAY_SIZE(mxcsdhc0_resources),
.resource = mxcsdhc0_resources,
};

struct platform_device mxcsdhc_device1 = {
.name = "mxc-mmc",
.id = 1,
.num_resources = ARRAY_SIZE(mxcsdhc1_resources),
.resource = mxcsdhc1_resources,
};
#endif /* CONFIG_ARCH_MX31 */

/* i.MX31 Image Processing Unit */

/* The resource order is important! */
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-mx3/devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ extern struct platform_device mxc_i2c_device2;
extern struct platform_device mx3_ipu;
extern struct platform_device mx3_fb;
extern struct platform_device mxc_fec_device;
extern struct platform_device mxcsdhc_device0;
extern struct platform_device mxcsdhc_device1;

0 comments on commit 91c73ff

Please sign in to comment.