Commit 879fea1b authored by Sascha Hauer's avatar Sascha Hauer

[ARM] MX2: Add FEC platform device

The in kernel FEC driver has recently been ported to a platform driver.
Add a platform_device for it and register it for pcm038 and mx27ads.
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent fe7316bf
...@@ -258,7 +258,27 @@ struct platform_device mxc_fb_device = { ...@@ -258,7 +258,27 @@ struct platform_device mxc_fb_device = {
.coherent_dma_mask = 0xFFFFFFFF, .coherent_dma_mask = 0xFFFFFFFF,
}, },
}; };
#endif
#ifdef CONFIG_MACH_MX27
static struct resource mxc_fec_resources[] = {
{
.start = FEC_BASE_ADDR,
.end = 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 #endif
/* GPIO port description */ /* GPIO port description */
......
...@@ -14,3 +14,4 @@ extern struct platform_device mxc_uart_device5; ...@@ -14,3 +14,4 @@ extern struct platform_device mxc_uart_device5;
extern struct platform_device mxc_w1_master_device; extern struct platform_device mxc_w1_master_device;
extern struct platform_device mxc_nand_device; extern struct platform_device mxc_nand_device;
extern struct platform_device mxc_fb_device; extern struct platform_device mxc_fb_device;
extern struct platform_device mxc_fec_device;
...@@ -180,6 +180,7 @@ static int uart_mxc_port5_exit(struct platform_device *pdev) ...@@ -180,6 +180,7 @@ static int uart_mxc_port5_exit(struct platform_device *pdev)
static struct platform_device *platform_devices[] __initdata = { static struct platform_device *platform_devices[] __initdata = {
&mx27ads_nor_mtd_device, &mx27ads_nor_mtd_device,
&mxc_fec_device,
}; };
static int mxc_fec_pins[] = { static int mxc_fec_pins[] = {
......
...@@ -191,6 +191,7 @@ static struct mxc_nand_platform_data pcm038_nand_board_info = { ...@@ -191,6 +191,7 @@ static struct mxc_nand_platform_data pcm038_nand_board_info = {
static struct platform_device *platform_devices[] __initdata = { static struct platform_device *platform_devices[] __initdata = {
&pcm038_nor_mtd_device, &pcm038_nor_mtd_device,
&mxc_w1_master_device, &mxc_w1_master_device,
&mxc_fec_device,
&pcm038_sram_mtd_device, &pcm038_sram_mtd_device,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment