aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/board-sffsdr.c
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@mvista.com>2009-04-15 15:40:56 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-05-28 18:17:45 -0400
commit972412b648dcf0c4303dca7e515d5c24ce3cd1d5 (patch)
tree2531253bcc50ef71665405ad1aa0f8f2f035f41f /arch/arm/mach-davinci/board-sffsdr.c
parent65e866a9741126c678e6dcd5d4fa8c9eca18e945 (diff)
davinci: Move emac platform_data to SoC-specific files
Since most of the emac platform_data is really SoC specific and not board specific, move it to the SoC-specific files. Put a pointer to the platform_data in the soc_info structure so the board-specific code can set some of the platform_data if it needs to. Signed-off-by: Mark A. Greer <mgreer@mvista.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/board-sffsdr.c')
-rw-r--r--arch/arm/mach-davinci/board-sffsdr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-davinci/board-sffsdr.c b/arch/arm/mach-davinci/board-sffsdr.c
index 938b4467809e..748a8e48541e 100644
--- a/arch/arm/mach-davinci/board-sffsdr.c
+++ b/arch/arm/mach-davinci/board-sffsdr.c
@@ -48,7 +48,6 @@
48 48
49#include <mach/dm644x.h> 49#include <mach/dm644x.h>
50#include <mach/common.h> 50#include <mach/common.h>
51#include <mach/emac.h>
52#include <mach/i2c.h> 51#include <mach/i2c.h>
53#include <mach/serial.h> 52#include <mach/serial.h>
54#include <mach/psc.h> 53#include <mach/psc.h>
@@ -158,11 +157,14 @@ static void __init davinci_sffsdr_map_io(void)
158 157
159static __init void davinci_sffsdr_init(void) 158static __init void davinci_sffsdr_init(void)
160{ 159{
160 struct davinci_soc_info *soc_info = &davinci_soc_info;
161
161 platform_add_devices(davinci_sffsdr_devices, 162 platform_add_devices(davinci_sffsdr_devices,
162 ARRAY_SIZE(davinci_sffsdr_devices)); 163 ARRAY_SIZE(davinci_sffsdr_devices));
163 sffsdr_init_i2c(); 164 sffsdr_init_i2c();
164 davinci_serial_init(&uart_config); 165 davinci_serial_init(&uart_config);
165 dm644x_init_emac(&sffsdr_emac_pdata); 166 soc_info->emac_pdata->phy_mask = SFFSDR_PHY_MASK;
167 soc_info->emac_pdata->mdio_max_freq = SFFSDR_MDIO_FREQUENCY;
166 setup_usb(0, 0); /* We support only peripheral mode. */ 168 setup_usb(0, 0); /* We support only peripheral mode. */
167 169
168 /* mux VLYNQ pins */ 170 /* mux VLYNQ pins */