]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
NET: mvgbe: add support for Dove
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tue, 4 Dec 2012 08:32:01 +0000 (09:32 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 25 Jun 2013 00:10:15 +0000 (19:10 -0500)
Marvell Dove also uses mvgbe as ethernet driver, therefore add support
for Dove to reuse the current driver.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
drivers/net/mvgbe.c
drivers/net/mvgbe.h

index 4b588235a5e0ca9e1a775979e845920ccc2f44ad..319fe8aba9718710984735f15471983f04a71db3 100644 (file)
@@ -43,6 +43,8 @@
 #include <asm/arch/kirkwood.h>
 #elif defined(CONFIG_ORION5X)
 #include <asm/arch/orion5x.h>
+#elif defined(CONFIG_DOVE)
+#include <asm/arch/dove.h>
 #endif
 
 #include "mvgbe.h"
index d8a5429de4acfbc8a589047cff46b3f88239d579..7f5d98ff5eda777a0074a14b141bf0ad3d23d29e 100644 (file)
 #define EBAR_TARGET_GUNIT                      0x00000007
 
 /* Window attrib */
+#if defined(CONFIG_DOVE)
+#define EBAR_DRAM_CS0                          0x00000000
+#define EBAR_DRAM_CS1                          0x00000000
+#define EBAR_DRAM_CS2                          0x00000000
+#define EBAR_DRAM_CS3                          0x00000000
+#else
 #define EBAR_DRAM_CS0                          0x00000E00
 #define EBAR_DRAM_CS1                          0x00000D00
 #define EBAR_DRAM_CS2                          0x00000B00
 #define EBAR_DRAM_CS3                          0x00000700
+#endif
 
 /* DRAM Target interface */
 #define EBAR_DRAM_NO_CACHE_COHERENCY           0x00000000