diff options
author | Vipin KUMAR <vipin.kumar@st.com> | 2012-05-07 07:36:43 (GMT) |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-07-07 12:07:40 (GMT) |
commit | 8eb0ee6a649d09a41155bf6c9dbd4d531ed41f9e (patch) | |
tree | 46aec28c0e72412257764894261718c8712012e9 /include/configs/spear3xx.h | |
parent | deb005622782bf568a4daa8daeb8adf95b606492 (diff) | |
download | u-boot-8eb0ee6a649d09a41155bf6c9dbd4d531ed41f9e.tar.xz |
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>
Diffstat (limited to 'include/configs/spear3xx.h')
-rw-r--r-- | include/configs/spear3xx.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/configs/spear3xx.h b/include/configs/spear3xx.h index 035b321..f3e3354 100644 --- a/include/configs/spear3xx.h +++ b/include/configs/spear3xx.h @@ -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 |