aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/board-sffsdr.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@deeprootsystems.com>2009-05-07 09:19:40 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-05-26 10:18:16 -0400
commitac7b75b5bbbfd60b752869a22daa3be99b5b4f99 (patch)
treedac2408210f9e815f98f67c7c6e32216db99fa73 /arch/arm/mach-davinci/board-sffsdr.c
parent2dbf56aeb7986b54651c93ed171877e8179289bc (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/board-sffsdr.c')
-rw-r--r--arch/arm/mach-davinci/board-sffsdr.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/mach-davinci/board-sffsdr.c b/arch/arm/mach-davinci/board-sffsdr.c
index c6525e43ea33..913dad93540b 100644
--- a/arch/arm/mach-davinci/board-sffsdr.c
+++ b/arch/arm/mach-davinci/board-sffsdr.c
@@ -48,11 +48,15 @@
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>
51#include <mach/i2c.h> 52#include <mach/i2c.h>
52#include <mach/serial.h> 53#include <mach/serial.h>
53#include <mach/psc.h> 54#include <mach/psc.h>
54#include <mach/mux.h> 55#include <mach/mux.h>
55 56
57#define SFFSDR_PHY_MASK (0x2)
58#define SFFSDR_MDIO_FREQUENCY (2200000) /* PHY bus frequency */
59
56#define DAVINCI_ASYNC_EMIF_CONTROL_BASE 0x01e00000 60#define DAVINCI_ASYNC_EMIF_CONTROL_BASE 0x01e00000
57#define DAVINCI_ASYNC_EMIF_DATA_CE0_BASE 0x02000000 61#define DAVINCI_ASYNC_EMIF_DATA_CE0_BASE 0x02000000
58 62
@@ -104,8 +108,10 @@ static struct platform_device davinci_sffsdr_nandflash_device = {
104 .resource = davinci_sffsdr_nandflash_resource, 108 .resource = davinci_sffsdr_nandflash_resource,
105}; 109};
106 110
107/* Get Ethernet address from kernel boot params */ 111static struct emac_platform_data sffsdr_emac_pdata = {
108static u8 mac_addr[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; 112 .phy_mask = SFFSDR_PHY_MASK,
113 .mdio_max_freq = SFFSDR_MDIO_FREQUENCY,
114};
109 115
110static struct at24_platform_data eeprom_info = { 116static struct at24_platform_data eeprom_info = {
111 .byte_len = (64*1024) / 8, 117 .byte_len = (64*1024) / 8,
@@ -156,6 +162,7 @@ static __init void davinci_sffsdr_init(void)
156 ARRAY_SIZE(davinci_sffsdr_devices)); 162 ARRAY_SIZE(davinci_sffsdr_devices));
157 sffsdr_init_i2c(); 163 sffsdr_init_i2c();
158 davinci_serial_init(&uart_config); 164 davinci_serial_init(&uart_config);
165 dm644x_init_emac(&sffsdr_emac_pdata);
159 setup_usb(0, 0); /* We support only peripheral mode. */ 166 setup_usb(0, 0); /* We support only peripheral mode. */
160 167
161 /* mux VLYNQ pins */ 168 /* mux VLYNQ pins */