20 #include <asm/system.h>
26 static void am35xx_enable_emac_int(
void)
37 static void am35xx_disable_emac_int(
void)
54 .interrupt_enable = am35xx_enable_emac_int,
55 .interrupt_disable = am35xx_disable_emac_int,
61 void *
pdata,
int pdata_len)
68 WARN(1,
"Can't build omap_device for %s:%s.\n",
84 pr_err(
"Could not find davinci_mdio hwmod\n");
88 am35xx_mdio_pdata.bus_freq = mdio_bus_freq;
90 ret = omap_davinci_emac_dev_init(oh, &am35xx_mdio_pdata,
91 sizeof(am35xx_mdio_pdata));
93 pr_err(
"Could not build davinci_mdio hwmod device\n");
99 pr_err(
"Could not find davinci_emac hwmod\n");
103 am35xx_emac_pdata.
rmii_en = rmii_en;
105 ret = omap_davinci_emac_dev_init(oh, &am35xx_emac_pdata,
106 sizeof(am35xx_emac_pdata));
108 pr_err(
"Could not build davinci_emac hwmod device\n");