diff options
Diffstat (limited to 'arch/arm/mach-davinci/board-da850-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index eaa1fc1bc5f5..d98934629604 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c | |||
@@ -26,6 +26,9 @@ | |||
26 | #include <mach/cp_intc.h> | 26 | #include <mach/cp_intc.h> |
27 | #include <mach/da8xx.h> | 27 | #include <mach/da8xx.h> |
28 | 28 | ||
29 | #define DA850_EVM_PHY_MASK 0x1 | ||
30 | #define DA850_EVM_MDIO_FREQUENCY 2200000 /* PHY bus frequency */ | ||
31 | |||
29 | static struct davinci_i2c_platform_data da850_evm_i2c_0_pdata = { | 32 | static struct davinci_i2c_platform_data da850_evm_i2c_0_pdata = { |
30 | .bus_freq = 100, /* kHz */ | 33 | .bus_freq = 100, /* kHz */ |
31 | .bus_delay = 0, /* usec */ | 34 | .bus_delay = 0, /* usec */ |
@@ -37,6 +40,7 @@ static struct davinci_uart_config da850_evm_uart_config __initdata = { | |||
37 | 40 | ||
38 | static __init void da850_evm_init(void) | 41 | static __init void da850_evm_init(void) |
39 | { | 42 | { |
43 | struct davinci_soc_info *soc_info = &davinci_soc_info; | ||
40 | int ret; | 44 | int ret; |
41 | 45 | ||
42 | ret = da8xx_register_edma(); | 46 | ret = da8xx_register_edma(); |
@@ -54,6 +58,20 @@ static __init void da850_evm_init(void) | |||
54 | pr_warning("da850_evm_init: i2c0 registration failed: %d\n", | 58 | pr_warning("da850_evm_init: i2c0 registration failed: %d\n", |
55 | ret); | 59 | ret); |
56 | 60 | ||
61 | soc_info->emac_pdata->phy_mask = DA850_EVM_PHY_MASK; | ||
62 | soc_info->emac_pdata->mdio_max_freq = DA850_EVM_MDIO_FREQUENCY; | ||
63 | soc_info->emac_pdata->rmii_en = 0; | ||
64 | |||
65 | ret = da8xx_pinmux_setup(da850_cpgmac_pins); | ||
66 | if (ret) | ||
67 | pr_warning("da850_evm_init: cpgmac mux setup failed: %d\n", | ||
68 | ret); | ||
69 | |||
70 | ret = da8xx_register_emac(); | ||
71 | if (ret) | ||
72 | pr_warning("da850_evm_init: emac registration failed: %d\n", | ||
73 | ret); | ||
74 | |||
57 | ret = da8xx_register_watchdog(); | 75 | ret = da8xx_register_watchdog(); |
58 | if (ret) | 76 | if (ret) |
59 | pr_warning("da830_evm_init: watchdog registration failed: %d\n", | 77 | pr_warning("da830_evm_init: watchdog registration failed: %d\n", |