summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSerah Peterson <speterson@phytec.com>2013-07-28 19:53:12 -0700
committerAnthony Felice <tony.felice@timesys.com>2013-08-28 18:27:03 -0400
commitb83402db963329917a4a9ed58159c025d5c588eb (patch)
treeb724f02a826a2603d39ab8d13f0b2099573979a7 /include
parentde7d2d435d0466e168ff117ddf718e8db8870fd2 (diff)
PHYTEC: FEC1: support added for ETH1
To use FEC1 instead of FEC0 on the phyCORE-Vybrid, modify include/configs/pcm052.h and replace #undef CONFIG_PCM052_FEC1 with #define CONFIG_PCM052_FEC1 FEC1/ETH1 is the only available ethernet port on the Cosmic board and is enabled by default. Signed-off-by: Serah Peterson <speterson@phytec.com> Signed-off-by: Russell Robinson Jr <rrobinson@phytec.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/pcm052.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/configs/pcm052.h b/include/configs/pcm052.h
index 6b0b2b1ec3..1493edd93d 100644
--- a/include/configs/pcm052.h
+++ b/include/configs/pcm052.h
@@ -161,7 +161,14 @@
# define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
# define CONFIG_ETH1ADDR 00:e0:0c:bc:e5:61
+
+# undef CONFIG_PCM052_FEC1 // if defined, use ETH1 instead of ETH0
+# ifdef CONFIG_PCM052_FEC1
+# define CONFIG_ETHPRIME "FEC1"
+# else
# define CONFIG_ETHPRIME "FEC0"
+# endif
+
# define CONFIG_IPADDR 192.168.3.10
# define CONFIG_NETMASK 255.255.255.0
# define CONFIG_SERVERIP 192.168.3.11
@@ -180,7 +187,6 @@
#endif
#define CONFIG_BOOTDELAY 3
-#define CONFIG_ETHPRIME "FEC0"
#define CONFIG_LOADADDR 0x80010000 /* loadaddr env var */
#define CONFIG_ARP_TIMEOUT 200UL