Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137248
b: refs/heads/master
c: 9536ff3
h: refs/heads/master
v: v3
  • Loading branch information
Sascha Hauer committed Mar 13, 2009
1 parent d03443f commit 50e6c68
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2cb536d13cf9fbce029055b7603b3ca4ca1cf407
refs/heads/master: 9536ff33619e13fcc4bd16354faea97dba244f73
43 changes: 41 additions & 2 deletions trunk/arch/arm/mach-mx3/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ struct platform_device mxc_uart_device2 = {
.num_resources = ARRAY_SIZE(uart2),
};

#ifdef CONFIG_ARCH_MX31
static struct resource uart3[] = {
{
.start = UART4_BASE_ADDR,
Expand Down Expand Up @@ -121,6 +122,7 @@ struct platform_device mxc_uart_device4 = {
.resource = uart4,
.num_resources = ARRAY_SIZE(uart4),
};
#endif /* CONFIG_ARCH_MX31 */

/* GPIO port description */
static struct mxc_gpio_port imx_gpio_ports[] = {
Expand Down Expand Up @@ -166,8 +168,8 @@ struct platform_device mxc_w1_master_device = {

static struct resource mxc_nand_resources[] = {
{
.start = NFC_BASE_ADDR,
.end = NFC_BASE_ADDR + 0xfff,
.start = 0, /* runtime dependent */
.end = 0,
.flags = IORESOURCE_MEM
}, {
.start = MXC_INT_NANDFC,
Expand Down Expand Up @@ -290,3 +292,40 @@ struct platform_device mx3_fb = {
.coherent_dma_mask = 0xffffffff,
},
};

#ifdef CONFIG_ARCH_MX35
static struct resource mxc_fec_resources[] = {
{
.start = MXC_FEC_BASE_ADDR,
.end = MXC_FEC_BASE_ADDR + 0xfff,
.flags = IORESOURCE_MEM
}, {
.start = MXC_INT_FEC,
.end = MXC_INT_FEC,
.flags = IORESOURCE_IRQ
},
};

struct platform_device mxc_fec_device = {
.name = "fec",
.id = 0,
.num_resources = ARRAY_SIZE(mxc_fec_resources),
.resource = mxc_fec_resources,
};
#endif

static int mx3_devices_init(void)
{
if (cpu_is_mx31()) {
mxc_nand_resources[0].start = MX31_NFC_BASE_ADDR;
mxc_nand_resources[0].end = MX31_NFC_BASE_ADDR + 0xfff;
}
if (cpu_is_mx35()) {
mxc_nand_resources[0].start = MX35_NFC_BASE_ADDR;
mxc_nand_resources[0].end = MX35_NFC_BASE_ADDR + 0xfff;
}

return 0;
}

subsys_initcall(mx3_devices_init);
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-mx3/devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ extern struct platform_device mxc_i2c_device1;
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;

0 comments on commit 50e6c68

Please sign in to comment.