Skip to content
Snippets Groups Projects
Commit 4ce1e23b authored by York Sun's avatar York Sun Committed by Wolfgang Denk
Browse files

Fix 8313ERDB board configuration


Change LCRR clock ratio from 2 to 4 to commodate VSC7385.
Correct TSEC1 vs TSEC2 assignment.
Define ETHADDR and ETH1ADDR always.

Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
parent 180a90ab
No related branches found
No related tags found
No related merge requests found
...@@ -42,9 +42,12 @@ ...@@ -42,9 +42,12 @@
/* /*
* On-board devices * On-board devices
*
* TSEC1 is VSC switch
* TSEC2 is SoC TSEC
*/ */
#define CONFIG_VSC7385_ENET #define CONFIG_VSC7385_ENET
#define CONFIG_TSEC2
#ifdef CFG_66MHZ #ifdef CFG_66MHZ
#define CONFIG_83XX_CLKIN 66666667 /* in Hz */ #define CONFIG_83XX_CLKIN 66666667 /* in Hz */
...@@ -80,7 +83,7 @@ ...@@ -80,7 +83,7 @@
#ifdef CONFIG_VSC7385_ENET #ifdef CONFIG_VSC7385_ENET
#define CONFIG_TSEC2 #define CONFIG_TSEC1
/* The flash address and size of the VSC7385 firmware image */ /* The flash address and size of the VSC7385 firmware image */
#define CONFIG_VSC7385_IMAGE 0xFE7FE000 #define CONFIG_VSC7385_IMAGE 0xFE7FE000
...@@ -209,7 +212,7 @@ ...@@ -209,7 +212,7 @@
/* /*
* Local Bus LCRR and LBCR regs * Local Bus LCRR and LBCR regs
*/ */
#define CFG_LCRR LCRR_EADC_1 | LCRR_CLKDIV_2 /* 0x00010002 */ #define CFG_LCRR LCRR_EADC_1 | LCRR_CLKDIV_4
#define CFG_LBC_LBCR ( 0x00040000 /* TODO */ \ #define CFG_LBC_LBCR ( 0x00040000 /* TODO */ \
| (0xFF << LBCR_BMT_SHIFT) \ | (0xFF << LBCR_BMT_SHIFT) \
| 0xF ) /* 0x0004ff0f */ | 0xF ) /* 0x0004ff0f */
...@@ -523,13 +526,8 @@ ...@@ -523,13 +526,8 @@
*/ */
#define CONFIG_ENV_OVERWRITE #define CONFIG_ENV_OVERWRITE
#ifdef CONFIG_HAS_ETH0
#define CONFIG_ETHADDR 00:E0:0C:00:95:01 #define CONFIG_ETHADDR 00:E0:0C:00:95:01
#endif
#ifdef CONFIG_HAS_ETH1
#define CONFIG_ETH1ADDR 00:E0:0C:00:95:02 #define CONFIG_ETH1ADDR 00:E0:0C:00:95:02
#endif
#define CONFIG_IPADDR 10.0.0.2 #define CONFIG_IPADDR 10.0.0.2
#define CONFIG_SERVERIP 10.0.0.1 #define CONFIG_SERVERIP 10.0.0.1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment