diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-05-07 09:19:40 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-05-26 10:18:16 -0400 |
commit | ac7b75b5bbbfd60b752869a22daa3be99b5b4f99 (patch) | |
tree | dac2408210f9e815f98f67c7c6e32216db99fa73 /arch/arm/mach-davinci/dm644x.c | |
parent | 2dbf56aeb7986b54651c93ed171877e8179289bc (diff) |
davinci: EMAC platform support
Add SoC and platform-specific data and init for DaVinci EMAC network
driver.
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/dm644x.c')
-rw-r--r-- | arch/arm/mach-davinci/dm644x.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index d428ef192eac..0419d571bdca 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c | |||
@@ -444,6 +444,25 @@ static struct platform_device dm644x_edma_device = { | |||
444 | }; | 444 | }; |
445 | 445 | ||
446 | /*----------------------------------------------------------------------*/ | 446 | /*----------------------------------------------------------------------*/ |
447 | #if defined(CONFIG_TI_DAVINCI_EMAC) || defined(CONFIG_TI_DAVINCI_EMAC_MODULE) | ||
448 | |||
449 | void dm644x_init_emac(struct emac_platform_data *pdata) | ||
450 | { | ||
451 | pdata->ctrl_reg_offset = DM644X_EMAC_CNTRL_OFFSET; | ||
452 | pdata->ctrl_mod_reg_offset = DM644X_EMAC_CNTRL_MOD_OFFSET; | ||
453 | pdata->ctrl_ram_offset = DM644X_EMAC_CNTRL_RAM_OFFSET; | ||
454 | pdata->mdio_reg_offset = DM644X_EMAC_MDIO_OFFSET; | ||
455 | pdata->ctrl_ram_size = DM644X_EMAC_CNTRL_RAM_SIZE; | ||
456 | pdata->version = EMAC_VERSION_1; | ||
457 | dm644x_emac_device.dev.platform_data = pdata; | ||
458 | platform_device_register(&dm644x_emac_device); | ||
459 | } | ||
460 | #else | ||
461 | |||
462 | void dm644x_init_emac(struct emac_platform_data *unused) {} | ||
463 | |||
464 | #endif | ||
465 | |||
447 | void __init dm644x_init(void) | 466 | void __init dm644x_init(void) |
448 | { | 467 | { |
449 | davinci_clk_init(dm644x_clks); | 468 | davinci_clk_init(dm644x_clks); |