|
@@ -330,7 +330,7 @@ static struct emac_platform_data dm644x_emac_pdata = {
|
|
|
static struct resource dm644x_emac_resources[] = {
|
|
|
{
|
|
|
.start = DM644X_EMAC_BASE,
|
|
|
- .end = DM644X_EMAC_BASE + 0x47ff,
|
|
|
+ .end = DM644X_EMAC_BASE + SZ_16K - 1,
|
|
|
.flags = IORESOURCE_MEM,
|
|
|
},
|
|
|
{
|
|
@@ -350,6 +350,21 @@ static struct platform_device dm644x_emac_device = {
|
|
|
.resource = dm644x_emac_resources,
|
|
|
};
|
|
|
|
|
|
+static struct resource dm644x_mdio_resources[] = {
|
|
|
+ {
|
|
|
+ .start = DM644X_EMAC_MDIO_BASE,
|
|
|
+ .end = DM644X_EMAC_MDIO_BASE + SZ_4K - 1,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device dm644x_mdio_device = {
|
|
|
+ .name = "davinci_mdio",
|
|
|
+ .id = 0,
|
|
|
+ .num_resources = ARRAY_SIZE(dm644x_mdio_resources),
|
|
|
+ .resource = dm644x_mdio_resources,
|
|
|
+};
|
|
|
+
|
|
|
/*
|
|
|
* Device specific mux setup
|
|
|
*
|
|
@@ -777,7 +792,12 @@ static int __init dm644x_init_devices(void)
|
|
|
clk_add_alias("master", dm644x_ccdc_dev.name, "vpss_master", NULL);
|
|
|
clk_add_alias("slave", dm644x_ccdc_dev.name, "vpss_slave", NULL);
|
|
|
platform_device_register(&dm644x_edma_device);
|
|
|
+
|
|
|
+ platform_device_register(&dm644x_mdio_device);
|
|
|
platform_device_register(&dm644x_emac_device);
|
|
|
+ clk_add_alias(NULL, dev_name(&dm644x_mdio_device.dev),
|
|
|
+ NULL, &dm644x_emac_device.dev);
|
|
|
+
|
|
|
platform_device_register(&dm644x_vpss_device);
|
|
|
platform_device_register(&dm644x_ccdc_dev);
|
|
|
platform_device_register(&vpfe_capture_dev);
|