SPEAr: Add macb driver support for spear310 and spear320

SPEAr310 and SPEAr320 SoCs have an extra ethernet controller. The
driver for this device is already supported by u-boot, so configuring
board configuration file and defining base addresses etc to make use
of the common driver

Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
Vipin KUMAR
2012-05-07 13:06:43 +05:30
committed by Albert ARIBAUD
parent deb0056227
commit 8eb0ee6a64
5 changed files with 78 additions and 6 deletions

View File

@@ -44,6 +44,19 @@
/* Ethernet driver configuration */
#define CONFIG_DW_ALTDESCRIPTOR 1
#if defined(CONFIG_SPEAR310)
#define CONFIG_MACB 1
#define CONFIG_MACB0_PHY 0x01
#define CONFIG_MACB1_PHY 0x03
#define CONFIG_MACB2_PHY 0x05
#define CONFIG_MACB3_PHY 0x07
#elif defined(CONFIG_SPEAR320)
#define CONFIG_MACB 1
#define CONFIG_MACB0_PHY 0x01
#endif
/* Serial Configuration (PL011) */
#define CONFIG_SYS_SERIAL0 0xD0000000