mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
Merge git://git.denx.de/u-boot-net
This commit is contained in:
commit
3238639d40
126 changed files with 267 additions and 659 deletions
19
README
19
README
|
@ -2110,18 +2110,6 @@ CBFS (Coreboot Filesystem) support
|
||||||
Some PHY like Intel LXT971A need extra delay after
|
Some PHY like Intel LXT971A need extra delay after
|
||||||
command issued before MII status register can be read
|
command issued before MII status register can be read
|
||||||
|
|
||||||
- Ethernet address:
|
|
||||||
CONFIG_ETHADDR
|
|
||||||
CONFIG_ETH1ADDR
|
|
||||||
CONFIG_ETH2ADDR
|
|
||||||
CONFIG_ETH3ADDR
|
|
||||||
CONFIG_ETH4ADDR
|
|
||||||
CONFIG_ETH5ADDR
|
|
||||||
|
|
||||||
Define a default value for Ethernet address to use
|
|
||||||
for the respective Ethernet interface, in case this
|
|
||||||
is not determined automatically.
|
|
||||||
|
|
||||||
- IP address:
|
- IP address:
|
||||||
CONFIG_IPADDR
|
CONFIG_IPADDR
|
||||||
|
|
||||||
|
@ -2876,8 +2864,8 @@ CBFS (Coreboot Filesystem) support
|
||||||
completely disabled. Anybody can change or delete
|
completely disabled. Anybody can change or delete
|
||||||
these parameters.
|
these parameters.
|
||||||
|
|
||||||
Alternatively, if you #define _both_ CONFIG_ETHADDR
|
Alternatively, if you define _both_ an ethaddr in the
|
||||||
_and_ CONFIG_OVERWRITE_ETHADDR_ONCE, a default
|
default env _and_ CONFIG_OVERWRITE_ETHADDR_ONCE, a default
|
||||||
Ethernet address is installed in the environment,
|
Ethernet address is installed in the environment,
|
||||||
which can be changed exactly ONCE by the user. [The
|
which can be changed exactly ONCE by the user. [The
|
||||||
serial# is unaffected by this, i. e. it remains
|
serial# is unaffected by this, i. e. it remains
|
||||||
|
@ -5626,7 +5614,8 @@ o If both the SROM and the environment contain a MAC address, and the
|
||||||
warning is printed.
|
warning is printed.
|
||||||
|
|
||||||
o If neither SROM nor the environment contain a MAC address, an error
|
o If neither SROM nor the environment contain a MAC address, an error
|
||||||
is raised.
|
is raised. If CONFIG_NET_RANDOM_ETHADDR is defined, then in this case
|
||||||
|
a random, locally-assigned MAC is used.
|
||||||
|
|
||||||
If Ethernet drivers implement the 'write_hwaddr' function, valid MAC addresses
|
If Ethernet drivers implement the 'write_hwaddr' function, valid MAC addresses
|
||||||
will be programmed into hardware as part of the initialization process. This
|
will be programmed into hardware as part of the initialization process. This
|
||||||
|
|
|
@ -29,13 +29,6 @@ int checkboard(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_BFIN_MAC
|
#ifdef CONFIG_BFIN_MAC
|
||||||
static void board_init_enetaddr(uchar *mac_addr)
|
|
||||||
{
|
|
||||||
puts("Warning: Generating 'random' MAC address\n");
|
|
||||||
net_random_ethaddr(mac_addr);
|
|
||||||
eth_setenv_enetaddr("ethaddr", mac_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
int retry = 3;
|
int retry = 3;
|
||||||
|
@ -107,12 +100,6 @@ static void turn_leds_off(void)
|
||||||
/* miscellaneous platform dependent initialisations */
|
/* miscellaneous platform dependent initialisations */
|
||||||
int misc_init_r(void)
|
int misc_init_r(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_BFIN_MAC
|
|
||||||
uchar enetaddr[6];
|
|
||||||
if (!eth_getenv_enetaddr("ethaddr", enetaddr))
|
|
||||||
board_init_enetaddr(enetaddr);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
gpio_cfi_flash_init();
|
gpio_cfi_flash_init();
|
||||||
init_tlv320aic31();
|
init_tlv320aic31();
|
||||||
init_mute_pin();
|
init_mute_pin();
|
||||||
|
|
|
@ -29,28 +29,14 @@ int checkboard(void)
|
||||||
#if defined(CONFIG_BFIN_MAC)
|
#if defined(CONFIG_BFIN_MAC)
|
||||||
static void board_init_enetaddr(uchar *mac_addr)
|
static void board_init_enetaddr(uchar *mac_addr)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SYS_NO_FLASH
|
#ifndef CONFIG_SYS_NO_FLASH
|
||||||
# define USE_MAC_IN_FLASH 0
|
|
||||||
#else
|
|
||||||
# define USE_MAC_IN_FLASH 1
|
|
||||||
#endif
|
|
||||||
bool valid_mac = false;
|
|
||||||
|
|
||||||
if (USE_MAC_IN_FLASH) {
|
|
||||||
/* we cram the MAC in the last flash sector */
|
/* we cram the MAC in the last flash sector */
|
||||||
uchar *board_mac_addr = (uchar *)0x203F0096;
|
uchar *board_mac_addr = (uchar *)0x203F0096;
|
||||||
if (is_valid_ethaddr(board_mac_addr)) {
|
if (is_valid_ethaddr(board_mac_addr)) {
|
||||||
memcpy(mac_addr, board_mac_addr, 6);
|
memcpy(mac_addr, board_mac_addr, 6);
|
||||||
valid_mac = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!valid_mac) {
|
|
||||||
puts("Warning: Generating 'random' MAC address\n");
|
|
||||||
net_random_ethaddr(mac_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
eth_setenv_enetaddr("ethaddr", mac_addr);
|
eth_setenv_enetaddr("ethaddr", mac_addr);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Only the first run of boards had a KSZ switch */
|
/* Only the first run of boards had a KSZ switch */
|
||||||
|
|
|
@ -26,28 +26,14 @@ int checkboard(void)
|
||||||
#ifdef CONFIG_BFIN_MAC
|
#ifdef CONFIG_BFIN_MAC
|
||||||
static void board_init_enetaddr(uchar *mac_addr)
|
static void board_init_enetaddr(uchar *mac_addr)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SYS_NO_FLASH
|
#ifndef CONFIG_SYS_NO_FLASH
|
||||||
# define USE_MAC_IN_FLASH 0
|
|
||||||
#else
|
|
||||||
# define USE_MAC_IN_FLASH 1
|
|
||||||
#endif
|
|
||||||
bool valid_mac = false;
|
|
||||||
|
|
||||||
if (USE_MAC_IN_FLASH) {
|
|
||||||
/* we cram the MAC in the last flash sector */
|
/* we cram the MAC in the last flash sector */
|
||||||
uchar *board_mac_addr = (uchar *)0x203F0096;
|
uchar *board_mac_addr = (uchar *)0x203F0096;
|
||||||
if (is_valid_ethaddr(board_mac_addr)) {
|
if (is_valid_ethaddr(board_mac_addr)) {
|
||||||
memcpy(mac_addr, board_mac_addr, 6);
|
memcpy(mac_addr, board_mac_addr, 6);
|
||||||
valid_mac = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!valid_mac) {
|
|
||||||
puts("Warning: Generating 'random' MAC address\n");
|
|
||||||
net_random_ethaddr(mac_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
eth_setenv_enetaddr("ethaddr", mac_addr);
|
eth_setenv_enetaddr("ethaddr", mac_addr);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
|
|
|
@ -27,8 +27,6 @@ int checkboard(void)
|
||||||
#ifdef CONFIG_BFIN_MAC
|
#ifdef CONFIG_BFIN_MAC
|
||||||
static void board_init_enetaddr(uchar *mac_addr)
|
static void board_init_enetaddr(uchar *mac_addr)
|
||||||
{
|
{
|
||||||
bool valid_mac = false;
|
|
||||||
|
|
||||||
/* the MAC is stored in OTP memory page 0xDF */
|
/* the MAC is stored in OTP memory page 0xDF */
|
||||||
uint32_t ret;
|
uint32_t ret;
|
||||||
uint64_t otp_mac;
|
uint64_t otp_mac;
|
||||||
|
@ -41,15 +39,8 @@ static void board_init_enetaddr(uchar *mac_addr)
|
||||||
mac_addr[ret] = otp_mac_p[5 - ret];
|
mac_addr[ret] = otp_mac_p[5 - ret];
|
||||||
|
|
||||||
if (is_valid_ethaddr(mac_addr))
|
if (is_valid_ethaddr(mac_addr))
|
||||||
valid_mac = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!valid_mac) {
|
|
||||||
puts("Warning: Generating 'random' MAC address\n");
|
|
||||||
net_random_ethaddr(mac_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
eth_setenv_enetaddr("ethaddr", mac_addr);
|
eth_setenv_enetaddr("ethaddr", mac_addr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
|
|
|
@ -23,26 +23,8 @@ int checkboard(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_BFIN_MAC
|
#ifdef CONFIG_BFIN_MAC
|
||||||
static void board_init_enetaddr(uchar *mac_addr)
|
|
||||||
{
|
|
||||||
puts("Warning: Generating 'random' MAC address\n");
|
|
||||||
net_random_ethaddr(mac_addr);
|
|
||||||
eth_setenv_enetaddr("ethaddr", mac_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
return bfin_EMAC_initialize(bis);
|
return bfin_EMAC_initialize(bis);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int misc_init_r(void)
|
|
||||||
{
|
|
||||||
#ifdef CONFIG_BFIN_MAC
|
|
||||||
uchar enetaddr[6];
|
|
||||||
if (!eth_getenv_enetaddr("ethaddr", enetaddr))
|
|
||||||
board_init_enetaddr(enetaddr);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
|
@ -23,26 +23,8 @@ int checkboard(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_BFIN_MAC
|
#ifdef CONFIG_BFIN_MAC
|
||||||
static void board_init_enetaddr(uchar *mac_addr)
|
|
||||||
{
|
|
||||||
puts("Warning: Generating 'random' MAC address\n");
|
|
||||||
net_random_ethaddr(mac_addr);
|
|
||||||
eth_setenv_enetaddr("ethaddr", mac_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
return bfin_EMAC_initialize(bis);
|
return bfin_EMAC_initialize(bis);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int misc_init_r(void)
|
|
||||||
{
|
|
||||||
#ifdef CONFIG_BFIN_MAC
|
|
||||||
uchar enetaddr[6];
|
|
||||||
if (!eth_getenv_enetaddr("ethaddr", enetaddr))
|
|
||||||
board_init_enetaddr(enetaddr);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
|
@ -23,26 +23,8 @@ int checkboard(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_BFIN_MAC
|
#ifdef CONFIG_BFIN_MAC
|
||||||
static void board_init_enetaddr(uchar *mac_addr)
|
|
||||||
{
|
|
||||||
puts("Warning: Generating 'random' MAC address\n");
|
|
||||||
net_random_ethaddr(mac_addr);
|
|
||||||
eth_setenv_enetaddr("ethaddr", mac_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
return bfin_EMAC_initialize(bis);
|
return bfin_EMAC_initialize(bis);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int misc_init_r(void)
|
|
||||||
{
|
|
||||||
#ifdef CONFIG_BFIN_MAC
|
|
||||||
uchar enetaddr[6];
|
|
||||||
if (!eth_getenv_enetaddr("ethaddr", enetaddr))
|
|
||||||
board_init_enetaddr(enetaddr);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
|
@ -29,28 +29,14 @@ int checkboard(void)
|
||||||
#ifdef CONFIG_BFIN_MAC
|
#ifdef CONFIG_BFIN_MAC
|
||||||
static void board_init_enetaddr(uchar *mac_addr)
|
static void board_init_enetaddr(uchar *mac_addr)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SYS_NO_FLASH
|
#ifndef CONFIG_SYS_NO_FLASH
|
||||||
# define USE_MAC_IN_FLASH 0
|
|
||||||
#else
|
|
||||||
# define USE_MAC_IN_FLASH 1
|
|
||||||
#endif
|
|
||||||
bool valid_mac = false;
|
|
||||||
|
|
||||||
if (USE_MAC_IN_FLASH) {
|
|
||||||
/* we cram the MAC in the last flash sector */
|
/* we cram the MAC in the last flash sector */
|
||||||
uchar *board_mac_addr = (uchar *)0x203F0000;
|
uchar *board_mac_addr = (uchar *)0x203F0000;
|
||||||
if (is_valid_ethaddr(board_mac_addr)) {
|
if (is_valid_ethaddr(board_mac_addr)) {
|
||||||
memcpy(mac_addr, board_mac_addr, 6);
|
memcpy(mac_addr, board_mac_addr, 6);
|
||||||
valid_mac = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!valid_mac) {
|
|
||||||
puts("Warning: Generating 'random' MAC address\n");
|
|
||||||
net_random_ethaddr(mac_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
eth_setenv_enetaddr("ethaddr", mac_addr);
|
eth_setenv_enetaddr("ethaddr", mac_addr);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
|
|
|
@ -230,16 +230,6 @@ static void rescue_mode(void)
|
||||||
uchar enetaddr[6];
|
uchar enetaddr[6];
|
||||||
|
|
||||||
printf("Entering rescue mode..\n");
|
printf("Entering rescue mode..\n");
|
||||||
#ifdef CONFIG_RANDOM_MACADDR
|
|
||||||
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
|
|
||||||
net_random_ethaddr(enetaddr);
|
|
||||||
if (eth_setenv_enetaddr("ethaddr", enetaddr)) {
|
|
||||||
printf("Failed to set ethernet address\n");
|
|
||||||
set_led(LED_ALARM_BLINKING);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
setenv("bootsource", "rescue");
|
setenv("bootsource", "rescue");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,6 @@ int checkboard(void)
|
||||||
#ifdef CONFIG_BFIN_MAC
|
#ifdef CONFIG_BFIN_MAC
|
||||||
static void board_init_enetaddr(uchar *mac_addr)
|
static void board_init_enetaddr(uchar *mac_addr)
|
||||||
{
|
{
|
||||||
bool valid_mac = false;
|
|
||||||
|
|
||||||
/* the MAC is stored in OTP memory page 0xDF */
|
/* the MAC is stored in OTP memory page 0xDF */
|
||||||
uint32_t ret;
|
uint32_t ret;
|
||||||
uint64_t otp_mac;
|
uint64_t otp_mac;
|
||||||
|
@ -40,15 +38,8 @@ static void board_init_enetaddr(uchar *mac_addr)
|
||||||
mac_addr[ret] = otp_mac_p[5 - ret];
|
mac_addr[ret] = otp_mac_p[5 - ret];
|
||||||
|
|
||||||
if (is_valid_ethaddr(mac_addr))
|
if (is_valid_ethaddr(mac_addr))
|
||||||
valid_mac = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!valid_mac) {
|
|
||||||
puts("Warning: Generating 'random' MAC address\n");
|
|
||||||
net_random_ethaddr(mac_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
eth_setenv_enetaddr("ethaddr", mac_addr);
|
eth_setenv_enetaddr("ethaddr", mac_addr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
|
|
|
@ -23,18 +23,6 @@ int checkboard(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void board_init_enetaddr(char *var)
|
|
||||||
{
|
|
||||||
uchar enetaddr[6];
|
|
||||||
|
|
||||||
if (eth_getenv_enetaddr(var, enetaddr))
|
|
||||||
return;
|
|
||||||
|
|
||||||
printf("Warning: %s: generating 'random' MAC address\n", var);
|
|
||||||
net_random_ethaddr(enetaddr);
|
|
||||||
eth_setenv_enetaddr(var, enetaddr);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef CONFIG_BFIN_MAC
|
#ifndef CONFIG_BFIN_MAC
|
||||||
# define bfin_EMAC_initialize(x) 1
|
# define bfin_EMAC_initialize(x) 1
|
||||||
#endif
|
#endif
|
||||||
|
@ -50,9 +38,6 @@ int board_eth_init(bd_t *bis)
|
||||||
|
|
||||||
int misc_init_r(void)
|
int misc_init_r(void)
|
||||||
{
|
{
|
||||||
board_init_enetaddr("ethaddr");
|
|
||||||
board_init_enetaddr("eth1addr");
|
|
||||||
|
|
||||||
gpio_cfi_flash_init();
|
gpio_cfi_flash_init();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -23,18 +23,6 @@ int checkboard(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void board_init_enetaddr(char *var)
|
|
||||||
{
|
|
||||||
uchar enetaddr[6];
|
|
||||||
|
|
||||||
if (eth_getenv_enetaddr(var, enetaddr))
|
|
||||||
return;
|
|
||||||
|
|
||||||
printf("Warning: %s: generating 'random' MAC address\n", var);
|
|
||||||
net_random_ethaddr(enetaddr);
|
|
||||||
eth_setenv_enetaddr(var, enetaddr);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef CONFIG_BFIN_MAC
|
#ifndef CONFIG_BFIN_MAC
|
||||||
# define bfin_EMAC_initialize(x) 1
|
# define bfin_EMAC_initialize(x) 1
|
||||||
#endif
|
#endif
|
||||||
|
@ -50,9 +38,6 @@ int board_eth_init(bd_t *bis)
|
||||||
|
|
||||||
int misc_init_r(void)
|
int misc_init_r(void)
|
||||||
{
|
{
|
||||||
board_init_enetaddr("ethaddr");
|
|
||||||
board_init_enetaddr("eth1addr");
|
|
||||||
|
|
||||||
gpio_cfi_flash_init();
|
gpio_cfi_flash_init();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -36,28 +36,14 @@ int checkboard(void)
|
||||||
#ifdef CONFIG_BFIN_MAC
|
#ifdef CONFIG_BFIN_MAC
|
||||||
static void board_init_enetaddr(uchar *mac_addr)
|
static void board_init_enetaddr(uchar *mac_addr)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SYS_NO_FLASH
|
#ifndef CONFIG_SYS_NO_FLASH
|
||||||
# define USE_MAC_IN_FLASH 0
|
|
||||||
#else
|
|
||||||
# define USE_MAC_IN_FLASH 1
|
|
||||||
#endif
|
|
||||||
bool valid_mac = false;
|
|
||||||
|
|
||||||
if (USE_MAC_IN_FLASH) {
|
|
||||||
/* we cram the MAC in the last flash sector */
|
/* we cram the MAC in the last flash sector */
|
||||||
uchar *board_mac_addr = (uchar *)0x202F0000;
|
uchar *board_mac_addr = (uchar *)0x202F0000;
|
||||||
if (is_valid_ethaddr(board_mac_addr)) {
|
if (is_valid_ethaddr(board_mac_addr)) {
|
||||||
memcpy(mac_addr, board_mac_addr, 6);
|
memcpy(mac_addr, board_mac_addr, 6);
|
||||||
valid_mac = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!valid_mac) {
|
|
||||||
puts("Warning: Generating 'random' MAC address\n");
|
|
||||||
net_random_ethaddr(mac_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
eth_setenv_enetaddr("ethaddr", mac_addr);
|
eth_setenv_enetaddr("ethaddr", mac_addr);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
|
|
|
@ -26,16 +26,4 @@ int board_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
return dm9000_initialize(bis);
|
return dm9000_initialize(bis);
|
||||||
}
|
}
|
||||||
|
|
||||||
int misc_init_r(void)
|
|
||||||
{
|
|
||||||
uchar enetaddr[6];
|
|
||||||
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
|
|
||||||
puts("Warning: Generating 'random' MAC address\n");
|
|
||||||
net_random_ethaddr(enetaddr);
|
|
||||||
eth_setenv_enetaddr("ethaddr", enetaddr);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -23,52 +23,12 @@ int checkboard(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_BFIN_MAC)
|
#if defined(CONFIG_BFIN_MAC)
|
||||||
static void board_init_enetaddr(uchar *mac_addr)
|
|
||||||
{
|
|
||||||
bool valid_mac = false;
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* the MAC is stored in OTP memory page 0xDF */
|
|
||||||
uint32_t ret;
|
|
||||||
uint64_t otp_mac;
|
|
||||||
|
|
||||||
ret = bfrom_OtpRead(0xDF, OTP_LOWER_HALF, &otp_mac);
|
|
||||||
if (!(ret & OTP_MASTER_ERROR)) {
|
|
||||||
uchar *otp_mac_p = (uchar *)&otp_mac;
|
|
||||||
|
|
||||||
for (ret = 0; ret < 6; ++ret)
|
|
||||||
mac_addr[ret] = otp_mac_p[5 - ret];
|
|
||||||
|
|
||||||
if (is_valid_ethaddr(mac_addr))
|
|
||||||
valid_mac = true;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!valid_mac) {
|
|
||||||
puts("Warning: Generating 'random' MAC address\n");
|
|
||||||
net_random_ethaddr(mac_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
eth_setenv_enetaddr("ethaddr", mac_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
return bfin_EMAC_initialize(bis);
|
return bfin_EMAC_initialize(bis);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int misc_init_r(void)
|
|
||||||
{
|
|
||||||
#ifdef CONFIG_BFIN_MAC
|
|
||||||
uchar enetaddr[6];
|
|
||||||
if (!eth_getenv_enetaddr("ethaddr", enetaddr))
|
|
||||||
board_init_enetaddr(enetaddr);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef CONFIG_BFIN_SDH
|
#ifdef CONFIG_BFIN_SDH
|
||||||
int board_mmc_init(bd_t *bis)
|
int board_mmc_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,18 +23,6 @@ int checkboard(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void board_init_enetaddr(char *var)
|
|
||||||
{
|
|
||||||
uchar enetaddr[6];
|
|
||||||
|
|
||||||
if (eth_getenv_enetaddr(var, enetaddr))
|
|
||||||
return;
|
|
||||||
|
|
||||||
printf("Warning: %s: generating 'random' MAC address\n", var);
|
|
||||||
net_random_ethaddr(enetaddr);
|
|
||||||
eth_setenv_enetaddr(var, enetaddr);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef CONFIG_BFIN_MAC
|
#ifndef CONFIG_BFIN_MAC
|
||||||
# define bfin_EMAC_initialize(x) 1
|
# define bfin_EMAC_initialize(x) 1
|
||||||
#endif
|
#endif
|
||||||
|
@ -50,9 +38,6 @@ int board_eth_init(bd_t *bis)
|
||||||
|
|
||||||
int misc_init_r(void)
|
int misc_init_r(void)
|
||||||
{
|
{
|
||||||
board_init_enetaddr("ethaddr");
|
|
||||||
board_init_enetaddr("eth1addr");
|
|
||||||
|
|
||||||
gpio_cfi_flash_init();
|
gpio_cfi_flash_init();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
CONFIG_TARGET_BCT_BRETTL2=y
|
CONFIG_NET=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_BF518F_EZBRD=y
|
CONFIG_TARGET_BF518F_EZBRD=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_BF526_EZBRD=y
|
CONFIG_TARGET_BF526_EZBRD=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_BF527_EZKIT=y
|
CONFIG_TARGET_BF527_EZKIT=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_BF537_MINOTAUR=y
|
CONFIG_TARGET_BF537_MINOTAUR=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_BF537_PNAV=y
|
CONFIG_TARGET_BF537_PNAV=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_BF537_SRV1=y
|
CONFIG_TARGET_BF537_SRV1=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_BF537_STAMP=y
|
CONFIG_TARGET_BF537_STAMP=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_CM_BF527=y
|
CONFIG_TARGET_CM_BF527=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_CM_BF537E=y
|
CONFIG_TARGET_CM_BF537E=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_CM_BF537U=y
|
CONFIG_TARGET_CM_BF537U=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_DNP5370=y
|
CONFIG_TARGET_DNP5370=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_IP04=y
|
CONFIG_TARGET_IP04=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
CONFIG_ARM=y
|
CONFIG_ARM=y
|
||||||
CONFIG_KIRKWOOD=y
|
CONFIG_KIRKWOOD=y
|
||||||
CONFIG_TARGET_LSXL=y
|
CONFIG_TARGET_LSXL=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_SYS_EXTRA_OPTIONS="LSCHLV2"
|
CONFIG_SYS_EXTRA_OPTIONS="LSCHLV2"
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
CONFIG_ARM=y
|
CONFIG_ARM=y
|
||||||
CONFIG_KIRKWOOD=y
|
CONFIG_KIRKWOOD=y
|
||||||
CONFIG_TARGET_LSXL=y
|
CONFIG_TARGET_LSXL=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_SYS_EXTRA_OPTIONS="LSXHL"
|
CONFIG_SYS_EXTRA_OPTIONS="LSXHL"
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_TCM_BF518=y
|
CONFIG_TARGET_TCM_BF518=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
CONFIG_BLACKFIN=y
|
CONFIG_BLACKFIN=y
|
||||||
|
CONFIG_NET=y
|
||||||
CONFIG_TARGET_TCM_BF537=y
|
CONFIG_TARGET_TCM_BF537=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
|
||||||
|
|
|
@ -15,7 +15,7 @@ Here are the places where MAC addresses might be stored:
|
||||||
- board-specific location (eeprom, dedicated flash, ...)
|
- board-specific location (eeprom, dedicated flash, ...)
|
||||||
Note: only used when mandatory due to hardware design etc...
|
Note: only used when mandatory due to hardware design etc...
|
||||||
|
|
||||||
- environment ("ethaddr", "eth1addr", ...) (see CONFIG_ETHADDR)
|
- environment ("ethaddr", "eth1addr", ...)
|
||||||
Note: this is the preferred way to permanently store MAC addresses
|
Note: this is the preferred way to permanently store MAC addresses
|
||||||
|
|
||||||
- ethernet data (struct eth_device -> enetaddr)
|
- ethernet data (struct eth_device -> enetaddr)
|
||||||
|
@ -37,6 +37,8 @@ Correct flow of setting up the MAC address (summarized):
|
||||||
environment variable will be used unchanged.
|
environment variable will be used unchanged.
|
||||||
If the environment variable is not set, it will be initialized from
|
If the environment variable is not set, it will be initialized from
|
||||||
eth_device->enetaddr, and a warning will be printed.
|
eth_device->enetaddr, and a warning will be printed.
|
||||||
|
If both are invalid and CONFIG_NET_RANDOM_ETHADDR is defined, a random,
|
||||||
|
locally-assigned MAC is written to eth_device->enetaddr.
|
||||||
4. Program the address into hardware if the following conditions are met:
|
4. Program the address into hardware if the following conditions are met:
|
||||||
a) The relevant driver has a 'write_addr' function
|
a) The relevant driver has a 'write_addr' function
|
||||||
b) The user hasn't set an 'ethmacskip' environment variable
|
b) The user hasn't set an 'ethmacskip' environment variable
|
||||||
|
|
|
@ -154,12 +154,6 @@ static int bcm_sf2_eth_open(struct eth_device *dev, bd_t *bt)
|
||||||
|
|
||||||
debug("Enabling BCM SF2 Ethernet.\n");
|
debug("Enabling BCM SF2 Ethernet.\n");
|
||||||
|
|
||||||
/* Set MAC address from env */
|
|
||||||
if (bcm_sf2_eth_write_hwaddr(dev) != 0) {
|
|
||||||
error("%s: MAC set error when opening !\n", __func__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
eth->enable_mac();
|
eth->enable_mac();
|
||||||
|
|
||||||
/* enable tx and rx DMA */
|
/* enable tx and rx DMA */
|
||||||
|
|
|
@ -243,10 +243,6 @@ static int _dw_eth_init(struct dw_eth_dev *priv, u8 *enetaddr)
|
||||||
mdelay(100);
|
mdelay(100);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Soft reset above clears HW address registers.
|
|
||||||
* So we have to set it here once again */
|
|
||||||
_dw_write_hwaddr(priv, enetaddr);
|
|
||||||
|
|
||||||
rx_descs_init(priv);
|
rx_descs_init(priv);
|
||||||
tx_descs_init(priv);
|
tx_descs_init(priv);
|
||||||
|
|
||||||
|
|
|
@ -343,13 +343,7 @@ static int dm9000_init(struct eth_device *dev, bd_t *bd)
|
||||||
|
|
||||||
printf("MAC: %pM\n", dev->enetaddr);
|
printf("MAC: %pM\n", dev->enetaddr);
|
||||||
if (!is_valid_ethaddr(dev->enetaddr)) {
|
if (!is_valid_ethaddr(dev->enetaddr)) {
|
||||||
#ifdef CONFIG_RANDOM_MACADDR
|
|
||||||
printf("Bad MAC address (uninitialized EEPROM?), randomizing\n");
|
|
||||||
net_random_ethaddr(dev->enetaddr);
|
|
||||||
printf("MAC: %pM\n", dev->enetaddr);
|
|
||||||
#else
|
|
||||||
printf("WARNING: Bad MAC address (uninitialized EEPROM?)\n");
|
printf("WARNING: Bad MAC address (uninitialized EEPROM?)\n");
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fill device MAC address registers */
|
/* fill device MAC address registers */
|
||||||
|
|
|
@ -424,9 +424,6 @@ int ftmac110_initialize(bd_t *bis)
|
||||||
dev->send = ftmac110_send;
|
dev->send = ftmac110_send;
|
||||||
dev->recv = ftmac110_recv;
|
dev->recv = ftmac110_recv;
|
||||||
|
|
||||||
if (!eth_getenv_enetaddr_by_index("eth", card_nr, dev->enetaddr))
|
|
||||||
net_random_ethaddr(dev->enetaddr);
|
|
||||||
|
|
||||||
/* allocate tx descriptors (it must be 16 bytes aligned) */
|
/* allocate tx descriptors (it must be 16 bytes aligned) */
|
||||||
chip->txd = dma_alloc_coherent(
|
chip->txd = dma_alloc_coherent(
|
||||||
sizeof(struct ftmac110_desc) * CFG_TXDES_NUM, &chip->txd_dma);
|
sizeof(struct ftmac110_desc) * CFG_TXDES_NUM, &chip->txd_dma);
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
|
#include <errno.h>
|
||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <netdev.h>
|
#include <netdev.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
@ -653,13 +654,8 @@ int greth_initialize(bd_t * bis)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* HW Address not found in environment, Set default HW address */
|
/* No ethaddr set */
|
||||||
addr[0] = GRETH_HWADDR_0; /* MSB */
|
return -EINVAL;
|
||||||
addr[1] = GRETH_HWADDR_1;
|
|
||||||
addr[2] = GRETH_HWADDR_2;
|
|
||||||
addr[3] = GRETH_HWADDR_3;
|
|
||||||
addr[4] = GRETH_HWADDR_4;
|
|
||||||
addr[5] = GRETH_HWADDR_5; /* LSB */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set and remember MAC address */
|
/* set and remember MAC address */
|
||||||
|
|
|
@ -725,12 +725,6 @@ static int smc_get_ethaddr(bd_t *bd, struct eth_device *dev)
|
||||||
|
|
||||||
static int get_rom_mac(struct eth_device *dev, unsigned char *v_rom_mac)
|
static int get_rom_mac(struct eth_device *dev, unsigned char *v_rom_mac)
|
||||||
{
|
{
|
||||||
#ifdef HARDCODE_MAC /* used for testing or to supress run time warnings */
|
|
||||||
char hw_mac_addr[] = { 0x02, 0x80, 0xad, 0x20, 0x31, 0xb8 };
|
|
||||||
|
|
||||||
memcpy (v_rom_mac, hw_mac_addr, 6);
|
|
||||||
return (1);
|
|
||||||
#else
|
|
||||||
int i;
|
int i;
|
||||||
SMC_SELECT_BANK(dev, 1);
|
SMC_SELECT_BANK(dev, 1);
|
||||||
for (i=0; i<6; i++)
|
for (i=0; i<6; i++)
|
||||||
|
@ -738,7 +732,6 @@ static int get_rom_mac(struct eth_device *dev, unsigned char *v_rom_mac)
|
||||||
v_rom_mac[i] = SMC_inb(dev, LAN91C96_IA0 + i);
|
v_rom_mac[i] = SMC_inb(dev, LAN91C96_IA0 + i);
|
||||||
}
|
}
|
||||||
return (1);
|
return (1);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Structure to detect the device IDs */
|
/* Structure to detect the device IDs */
|
||||||
|
|
|
@ -525,7 +525,6 @@ static int macb_phy_init(struct macb_device *macb)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int macb_write_hwaddr(struct eth_device *dev);
|
|
||||||
static int macb_init(struct eth_device *netdev, bd_t *bd)
|
static int macb_init(struct eth_device *netdev, bd_t *bd)
|
||||||
{
|
{
|
||||||
struct macb_device *macb = to_macb(netdev);
|
struct macb_device *macb = to_macb(netdev);
|
||||||
|
@ -594,14 +593,6 @@ static int macb_init(struct eth_device *netdev, bd_t *bd)
|
||||||
#endif /* CONFIG_RMII */
|
#endif /* CONFIG_RMII */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* update the ethaddr */
|
|
||||||
if (is_valid_ethaddr(netdev->enetaddr)) {
|
|
||||||
macb_write_hwaddr(netdev);
|
|
||||||
} else {
|
|
||||||
printf("%s: mac address is not valid\n", netdev->name);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!macb_phy_init(macb))
|
if (!macb_phy_init(macb))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
#include <linux/compiler.h>
|
#include <linux/compiler.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
/* Generic PHY support and helper functions */
|
/* Generic PHY support and helper functions */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -494,6 +496,20 @@ int phy_register(struct phy_driver *drv)
|
||||||
INIT_LIST_HEAD(&drv->list);
|
INIT_LIST_HEAD(&drv->list);
|
||||||
list_add_tail(&drv->list, &phy_drivers);
|
list_add_tail(&drv->list, &phy_drivers);
|
||||||
|
|
||||||
|
#ifdef CONFIG_NEEDS_MANUAL_RELOC
|
||||||
|
if (drv->probe)
|
||||||
|
drv->probe += gd->reloc_off;
|
||||||
|
if (drv->config)
|
||||||
|
drv->config += gd->reloc_off;
|
||||||
|
if (drv->startup)
|
||||||
|
drv->startup += gd->reloc_off;
|
||||||
|
if (drv->shutdown)
|
||||||
|
drv->shutdown += gd->reloc_off;
|
||||||
|
if (drv->readext)
|
||||||
|
drv->readext += gd->reloc_off;
|
||||||
|
if (drv->writeext)
|
||||||
|
drv->writeext += gd->reloc_off;
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,19 @@
|
||||||
/* RTL8211x PHY Interrupt Status Register */
|
/* RTL8211x PHY Interrupt Status Register */
|
||||||
#define MIIM_RTL8211x_PHY_INSR 0x13
|
#define MIIM_RTL8211x_PHY_INSR 0x13
|
||||||
|
|
||||||
|
/* RTL8211F PHY Status Register */
|
||||||
|
#define MIIM_RTL8211F_PHY_STATUS 0x1a
|
||||||
|
#define MIIM_RTL8211F_AUTONEG_ENABLE 0x1000
|
||||||
|
#define MIIM_RTL8211F_PHYSTAT_SPEED 0x0030
|
||||||
|
#define MIIM_RTL8211F_PHYSTAT_GBIT 0x0020
|
||||||
|
#define MIIM_RTL8211F_PHYSTAT_100 0x0010
|
||||||
|
#define MIIM_RTL8211F_PHYSTAT_DUPLEX 0x0008
|
||||||
|
#define MIIM_RTL8211F_PHYSTAT_SPDDONE 0x0800
|
||||||
|
#define MIIM_RTL8211F_PHYSTAT_LINK 0x0004
|
||||||
|
|
||||||
|
#define MIIM_RTL8211F_PAGE_SELECT 0x1f
|
||||||
|
#define MIIM_RTL8211F_TX_DELAY 0x100
|
||||||
|
|
||||||
/* RealTek RTL8211x */
|
/* RealTek RTL8211x */
|
||||||
static int rtl8211x_config(struct phy_device *phydev)
|
static int rtl8211x_config(struct phy_device *phydev)
|
||||||
{
|
{
|
||||||
|
@ -48,6 +61,29 @@ static int rtl8211x_config(struct phy_device *phydev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int rtl8211f_config(struct phy_device *phydev)
|
||||||
|
{
|
||||||
|
u16 reg;
|
||||||
|
|
||||||
|
phy_write(phydev, MDIO_DEVAD_NONE, MII_BMCR, BMCR_RESET);
|
||||||
|
|
||||||
|
if (phydev->interface == PHY_INTERFACE_MODE_RGMII) {
|
||||||
|
/* enable TXDLY */
|
||||||
|
phy_write(phydev, MDIO_DEVAD_NONE,
|
||||||
|
MIIM_RTL8211F_PAGE_SELECT, 0xd08);
|
||||||
|
reg = phy_read(phydev, MDIO_DEVAD_NONE, 0x11);
|
||||||
|
reg |= MIIM_RTL8211F_TX_DELAY;
|
||||||
|
phy_write(phydev, MDIO_DEVAD_NONE, 0x11, reg);
|
||||||
|
/* restore to default page 0 */
|
||||||
|
phy_write(phydev, MDIO_DEVAD_NONE,
|
||||||
|
MIIM_RTL8211F_PAGE_SELECT, 0x0);
|
||||||
|
}
|
||||||
|
|
||||||
|
genphy_config_aneg(phydev);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int rtl8211x_parse_status(struct phy_device *phydev)
|
static int rtl8211x_parse_status(struct phy_device *phydev)
|
||||||
{
|
{
|
||||||
unsigned int speed;
|
unsigned int speed;
|
||||||
|
@ -105,6 +141,51 @@ static int rtl8211x_parse_status(struct phy_device *phydev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int rtl8211f_parse_status(struct phy_device *phydev)
|
||||||
|
{
|
||||||
|
unsigned int speed;
|
||||||
|
unsigned int mii_reg;
|
||||||
|
int i = 0;
|
||||||
|
|
||||||
|
phy_write(phydev, MDIO_DEVAD_NONE, MIIM_RTL8211F_PAGE_SELECT, 0xa43);
|
||||||
|
mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, MIIM_RTL8211F_PHY_STATUS);
|
||||||
|
|
||||||
|
phydev->link = 1;
|
||||||
|
while (!(mii_reg & MIIM_RTL8211F_PHYSTAT_LINK)) {
|
||||||
|
if (i > PHY_AUTONEGOTIATE_TIMEOUT) {
|
||||||
|
puts(" TIMEOUT !\n");
|
||||||
|
phydev->link = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((i++ % 1000) == 0)
|
||||||
|
putc('.');
|
||||||
|
udelay(1000);
|
||||||
|
mii_reg = phy_read(phydev, MDIO_DEVAD_NONE,
|
||||||
|
MIIM_RTL8211F_PHY_STATUS);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mii_reg & MIIM_RTL8211F_PHYSTAT_DUPLEX)
|
||||||
|
phydev->duplex = DUPLEX_FULL;
|
||||||
|
else
|
||||||
|
phydev->duplex = DUPLEX_HALF;
|
||||||
|
|
||||||
|
speed = (mii_reg & MIIM_RTL8211F_PHYSTAT_SPEED);
|
||||||
|
|
||||||
|
switch (speed) {
|
||||||
|
case MIIM_RTL8211F_PHYSTAT_GBIT:
|
||||||
|
phydev->speed = SPEED_1000;
|
||||||
|
break;
|
||||||
|
case MIIM_RTL8211F_PHYSTAT_100:
|
||||||
|
phydev->speed = SPEED_100;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
phydev->speed = SPEED_10;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int rtl8211x_startup(struct phy_device *phydev)
|
static int rtl8211x_startup(struct phy_device *phydev)
|
||||||
{
|
{
|
||||||
/* Read the Status (2x to make sure link is right) */
|
/* Read the Status (2x to make sure link is right) */
|
||||||
|
@ -114,6 +195,15 @@ static int rtl8211x_startup(struct phy_device *phydev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int rtl8211f_startup(struct phy_device *phydev)
|
||||||
|
{
|
||||||
|
/* Read the Status (2x to make sure link is right) */
|
||||||
|
genphy_update_link(phydev);
|
||||||
|
rtl8211f_parse_status(phydev);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Support for RTL8211B PHY */
|
/* Support for RTL8211B PHY */
|
||||||
static struct phy_driver RTL8211B_driver = {
|
static struct phy_driver RTL8211B_driver = {
|
||||||
.name = "RealTek RTL8211B",
|
.name = "RealTek RTL8211B",
|
||||||
|
@ -147,10 +237,22 @@ static struct phy_driver RTL8211DN_driver = {
|
||||||
.shutdown = &genphy_shutdown,
|
.shutdown = &genphy_shutdown,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Support for RTL8211F PHY */
|
||||||
|
static struct phy_driver RTL8211F_driver = {
|
||||||
|
.name = "RealTek RTL8211F",
|
||||||
|
.uid = 0x1cc916,
|
||||||
|
.mask = 0xffffff,
|
||||||
|
.features = PHY_GBIT_FEATURES,
|
||||||
|
.config = &rtl8211f_config,
|
||||||
|
.startup = &rtl8211f_startup,
|
||||||
|
.shutdown = &genphy_shutdown,
|
||||||
|
};
|
||||||
|
|
||||||
int phy_realtek_init(void)
|
int phy_realtek_init(void)
|
||||||
{
|
{
|
||||||
phy_register(&RTL8211B_driver);
|
phy_register(&RTL8211B_driver);
|
||||||
phy_register(&RTL8211E_driver);
|
phy_register(&RTL8211E_driver);
|
||||||
|
phy_register(&RTL8211F_driver);
|
||||||
phy_register(&RTL8211DN_driver);
|
phy_register(&RTL8211DN_driver);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -27,29 +27,6 @@ To find out who has a MAC address, or to purchase MAC addresses, goto
|
||||||
the IEEE, at:
|
the IEEE, at:
|
||||||
http://standards.ieee.org/regauth/oui/index.shtml
|
http://standards.ieee.org/regauth/oui/index.shtml
|
||||||
|
|
||||||
To change your MAC address, there can not be a MAC address predefined in
|
|
||||||
U-Boot. To ensure that this does not occur, check your
|
|
||||||
include/configs/<board_name>.h file, and check to see that the following
|
|
||||||
settings are _not_ or commented out there.
|
|
||||||
|
|
||||||
#define HARDCODE_MAC 1
|
|
||||||
#define CONFIG_ETHADDR 02:80:ad:20:31:b8
|
|
||||||
|
|
||||||
The purpose of HARDCODE_MAC is to hardcode the MAC address in software,
|
|
||||||
(not what we want), or to preset it to 02:80:ad:20:31:b8 (not what we
|
|
||||||
want either).
|
|
||||||
|
|
||||||
You can check this in a running U-Boot, by doing a power cycle, then
|
|
||||||
before U-Boot tries to do any networking, running the 'printenv' command
|
|
||||||
|
|
||||||
BOOT> printenv
|
|
||||||
|
|
||||||
ethaddr=02:80:ad:20:31:b8
|
|
||||||
|
|
||||||
If you see the 'ethaddr' variable show up, like the above, you need to
|
|
||||||
recompile U-Boot, with the above settings commented out of the
|
|
||||||
include/configs/<board_name>.h file.
|
|
||||||
|
|
||||||
2. Running the smc91111_eeprom program
|
2. Running the smc91111_eeprom program
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -74,12 +74,10 @@
|
||||||
#define CONFIG_UDP_CHECKSUM
|
#define CONFIG_UDP_CHECKSUM
|
||||||
|
|
||||||
#ifdef CONFIG_MCFFEC
|
#ifdef CONFIG_MCFFEC
|
||||||
# define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
|
|
||||||
# define CONFIG_IPADDR 192.162.1.2
|
# define CONFIG_IPADDR 192.162.1.2
|
||||||
# define CONFIG_NETMASK 255.255.255.0
|
# define CONFIG_NETMASK 255.255.255.0
|
||||||
# define CONFIG_SERVERIP 192.162.1.1
|
# define CONFIG_SERVERIP 192.162.1.1
|
||||||
# define CONFIG_GATEWAYIP 192.162.1.1
|
# define CONFIG_GATEWAYIP 192.162.1.1
|
||||||
# define CONFIG_OVERWRITE_ETHADDR_ONCE
|
|
||||||
#endif /* CONFIG_MCFFEC */
|
#endif /* CONFIG_MCFFEC */
|
||||||
|
|
||||||
#define CONFIG_HOSTNAME M5208EVBe
|
#define CONFIG_HOSTNAME M5208EVBe
|
||||||
|
|
|
@ -95,12 +95,10 @@
|
||||||
#define CONFIG_BOOTDELAY 1 /* autoboot after 5 seconds */
|
#define CONFIG_BOOTDELAY 1 /* autoboot after 5 seconds */
|
||||||
#define CONFIG_BOOTFILE "u-boot.bin"
|
#define CONFIG_BOOTFILE "u-boot.bin"
|
||||||
#ifdef CONFIG_MCFFEC
|
#ifdef CONFIG_MCFFEC
|
||||||
# define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
|
|
||||||
# define CONFIG_IPADDR 192.162.1.2
|
# define CONFIG_IPADDR 192.162.1.2
|
||||||
# define CONFIG_NETMASK 255.255.255.0
|
# define CONFIG_NETMASK 255.255.255.0
|
||||||
# define CONFIG_SERVERIP 192.162.1.1
|
# define CONFIG_SERVERIP 192.162.1.1
|
||||||
# define CONFIG_GATEWAYIP 192.162.1.1
|
# define CONFIG_GATEWAYIP 192.162.1.1
|
||||||
# define CONFIG_OVERWRITE_ETHADDR_ONCE
|
|
||||||
#endif /* FEC_ENET */
|
#endif /* FEC_ENET */
|
||||||
|
|
||||||
#define CONFIG_HOSTNAME M5235EVB
|
#define CONFIG_HOSTNAME M5235EVB
|
||||||
|
|
|
@ -94,12 +94,10 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_MCFFEC
|
#ifdef CONFIG_MCFFEC
|
||||||
# define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
|
|
||||||
# define CONFIG_IPADDR 192.162.1.2
|
# define CONFIG_IPADDR 192.162.1.2
|
||||||
# define CONFIG_NETMASK 255.255.255.0
|
# define CONFIG_NETMASK 255.255.255.0
|
||||||
# define CONFIG_SERVERIP 192.162.1.1
|
# define CONFIG_SERVERIP 192.162.1.1
|
||||||
# define CONFIG_GATEWAYIP 192.162.1.1
|
# define CONFIG_GATEWAYIP 192.162.1.1
|
||||||
# define CONFIG_OVERWRITE_ETHADDR_ONCE
|
|
||||||
#endif /* CONFIG_MCFFEC */
|
#endif /* CONFIG_MCFFEC */
|
||||||
|
|
||||||
#define CONFIG_HOSTNAME M5272C3
|
#define CONFIG_HOSTNAME M5272C3
|
||||||
|
|
|
@ -80,12 +80,10 @@
|
||||||
|
|
||||||
#define CONFIG_BOOTDELAY 5
|
#define CONFIG_BOOTDELAY 5
|
||||||
#ifdef CONFIG_MCFFEC
|
#ifdef CONFIG_MCFFEC
|
||||||
# define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
|
|
||||||
# define CONFIG_IPADDR 192.162.1.2
|
# define CONFIG_IPADDR 192.162.1.2
|
||||||
# define CONFIG_NETMASK 255.255.255.0
|
# define CONFIG_NETMASK 255.255.255.0
|
||||||
# define CONFIG_SERVERIP 192.162.1.1
|
# define CONFIG_SERVERIP 192.162.1.1
|
||||||
# define CONFIG_GATEWAYIP 192.162.1.1
|
# define CONFIG_GATEWAYIP 192.162.1.1
|
||||||
# define CONFIG_OVERWRITE_ETHADDR_ONCE
|
|
||||||
#endif /* CONFIG_MCFFEC */
|
#endif /* CONFIG_MCFFEC */
|
||||||
|
|
||||||
#define CONFIG_HOSTNAME M5282EVB
|
#define CONFIG_HOSTNAME M5282EVB
|
||||||
|
|
|
@ -94,13 +94,10 @@
|
||||||
#define CONFIG_UDP_CHECKSUM
|
#define CONFIG_UDP_CHECKSUM
|
||||||
|
|
||||||
#ifdef CONFIG_MCFFEC
|
#ifdef CONFIG_MCFFEC
|
||||||
# define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
|
|
||||||
# define CONFIG_ETH1ADDR 00:e0:0c:bc:e5:61
|
|
||||||
# define CONFIG_IPADDR 192.162.1.2
|
# define CONFIG_IPADDR 192.162.1.2
|
||||||
# define CONFIG_NETMASK 255.255.255.0
|
# define CONFIG_NETMASK 255.255.255.0
|
||||||
# define CONFIG_SERVERIP 192.162.1.1
|
# define CONFIG_SERVERIP 192.162.1.1
|
||||||
# define CONFIG_GATEWAYIP 192.162.1.1
|
# define CONFIG_GATEWAYIP 192.162.1.1
|
||||||
# define CONFIG_OVERWRITE_ETHADDR_ONCE
|
|
||||||
#endif /* FEC_ENET */
|
#endif /* FEC_ENET */
|
||||||
|
|
||||||
#define CONFIG_HOSTNAME M53017
|
#define CONFIG_HOSTNAME M53017
|
||||||
|
|
|
@ -88,12 +88,10 @@
|
||||||
#define CONFIG_UDP_CHECKSUM
|
#define CONFIG_UDP_CHECKSUM
|
||||||
|
|
||||||
#ifdef CONFIG_MCFFEC
|
#ifdef CONFIG_MCFFEC
|
||||||
# define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
|
|
||||||
# define CONFIG_IPADDR 192.162.1.2
|
# define CONFIG_IPADDR 192.162.1.2
|
||||||
# define CONFIG_NETMASK 255.255.255.0
|
# define CONFIG_NETMASK 255.255.255.0
|
||||||
# define CONFIG_SERVERIP 192.162.1.1
|
# define CONFIG_SERVERIP 192.162.1.1
|
||||||
# define CONFIG_GATEWAYIP 192.162.1.1
|
# define CONFIG_GATEWAYIP 192.162.1.1
|
||||||
# define CONFIG_OVERWRITE_ETHADDR_ONCE
|
|
||||||
#endif /* FEC_ENET */
|
#endif /* FEC_ENET */
|
||||||
|
|
||||||
#define CONFIG_HOSTNAME M5329EVB
|
#define CONFIG_HOSTNAME M5329EVB
|
||||||
|
|
|
@ -88,12 +88,10 @@
|
||||||
#define CONFIG_UDP_CHECKSUM
|
#define CONFIG_UDP_CHECKSUM
|
||||||
|
|
||||||
#ifdef CONFIG_MCFFEC
|
#ifdef CONFIG_MCFFEC
|
||||||
# define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
|
|
||||||
# define CONFIG_IPADDR 192.162.1.2
|
# define CONFIG_IPADDR 192.162.1.2
|
||||||
# define CONFIG_NETMASK 255.255.255.0
|
# define CONFIG_NETMASK 255.255.255.0
|
||||||
# define CONFIG_SERVERIP 192.162.1.1
|
# define CONFIG_SERVERIP 192.162.1.1
|
||||||
# define CONFIG_GATEWAYIP 192.162.1.1
|
# define CONFIG_GATEWAYIP 192.162.1.1
|
||||||
# define CONFIG_OVERWRITE_ETHADDR_ONCE
|
|
||||||
#endif /* FEC_ENET */
|
#endif /* FEC_ENET */
|
||||||
|
|
||||||
#define CONFIG_HOSTNAME M5373EVB
|
#define CONFIG_HOSTNAME M5373EVB
|
||||||
|
|
|
@ -113,15 +113,12 @@
|
||||||
"::eth0:off:rw console=ttyS0,115200"
|
"::eth0:off:rw console=ttyS0,115200"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
|
|
||||||
#define CONFIG_ETH1ADDR 00:e0:0c:bc:e5:61
|
|
||||||
#define CONFIG_ETHPRIME "FEC0"
|
#define CONFIG_ETHPRIME "FEC0"
|
||||||
#define CONFIG_IPADDR 192.168.1.2
|
#define CONFIG_IPADDR 192.168.1.2
|
||||||
#define CONFIG_NETMASK 255.255.255.0
|
#define CONFIG_NETMASK 255.255.255.0
|
||||||
#define CONFIG_SERVERIP 192.168.1.1
|
#define CONFIG_SERVERIP 192.168.1.1
|
||||||
#define CONFIG_GATEWAYIP 192.168.1.1
|
#define CONFIG_GATEWAYIP 192.168.1.1
|
||||||
|
|
||||||
#define CONFIG_OVERWRITE_ETHADDR_ONCE
|
|
||||||
#define CONFIG_SYS_FEC_BUF_USE_SRAM
|
#define CONFIG_SYS_FEC_BUF_USE_SRAM
|
||||||
/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
|
/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
|
||||||
#ifndef CONFIG_SYS_DISCOVER_PHY
|
#ifndef CONFIG_SYS_DISCOVER_PHY
|
||||||
|
|
|
@ -77,13 +77,11 @@
|
||||||
|
|
||||||
# define CONFIG_BOOTDELAY 1 /* autoboot after 5 seconds */
|
# define CONFIG_BOOTDELAY 1 /* autoboot after 5 seconds */
|
||||||
# define CONFIG_BOOTARGS "root=/dev/mtdblock1 rw rootfstype=jffs2 ip=none mtdparts=physmap-flash.0:2M(kernel)ro,-(jffs2)"
|
# define CONFIG_BOOTARGS "root=/dev/mtdblock1 rw rootfstype=jffs2 ip=none mtdparts=physmap-flash.0:2M(kernel)ro,-(jffs2)"
|
||||||
# define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
|
|
||||||
# define CONFIG_ETHPRIME "FEC0"
|
# define CONFIG_ETHPRIME "FEC0"
|
||||||
# define CONFIG_IPADDR 192.162.1.2
|
# define CONFIG_IPADDR 192.162.1.2
|
||||||
# define CONFIG_NETMASK 255.255.255.0
|
# define CONFIG_NETMASK 255.255.255.0
|
||||||
# define CONFIG_SERVERIP 192.162.1.1
|
# define CONFIG_SERVERIP 192.162.1.1
|
||||||
# define CONFIG_GATEWAYIP 192.162.1.1
|
# define CONFIG_GATEWAYIP 192.162.1.1
|
||||||
# define CONFIG_OVERWRITE_ETHADDR_ONCE
|
|
||||||
|
|
||||||
/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
|
/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
|
||||||
# ifndef CONFIG_SYS_DISCOVER_PHY
|
# ifndef CONFIG_SYS_DISCOVER_PHY
|
||||||
|
|
|
@ -83,14 +83,11 @@
|
||||||
|
|
||||||
# define CONFIG_BOOTDELAY 1 /* autoboot after 5 seconds */
|
# define CONFIG_BOOTDELAY 1 /* autoboot after 5 seconds */
|
||||||
# define CONFIG_BOOTARGS "root=/dev/mtdblock1 rw rootfstype=jffs2 ip=none mtdparts=physmap-flash.0:5M(kernel)ro,-(jffs2)"
|
# define CONFIG_BOOTARGS "root=/dev/mtdblock1 rw rootfstype=jffs2 ip=none mtdparts=physmap-flash.0:5M(kernel)ro,-(jffs2)"
|
||||||
# define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
|
|
||||||
# define CONFIG_ETH1ADDR 00:e0:0c:bc:e5:61
|
|
||||||
# define CONFIG_ETHPRIME "FEC0"
|
# define CONFIG_ETHPRIME "FEC0"
|
||||||
# define CONFIG_IPADDR 192.162.1.2
|
# define CONFIG_IPADDR 192.162.1.2
|
||||||
# define CONFIG_NETMASK 255.255.255.0
|
# define CONFIG_NETMASK 255.255.255.0
|
||||||
# define CONFIG_SERVERIP 192.162.1.1
|
# define CONFIG_SERVERIP 192.162.1.1
|
||||||
# define CONFIG_GATEWAYIP 192.162.1.1
|
# define CONFIG_GATEWAYIP 192.162.1.1
|
||||||
# define CONFIG_OVERWRITE_ETHADDR_ONCE
|
|
||||||
|
|
||||||
/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
|
/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
|
||||||
# ifndef CONFIG_SYS_DISCOVER_PHY
|
# ifndef CONFIG_SYS_DISCOVER_PHY
|
||||||
|
|
|
@ -75,13 +75,10 @@
|
||||||
# endif
|
# endif
|
||||||
# endif /* CONFIG_SYS_DISCOVER_PHY */
|
# endif /* CONFIG_SYS_DISCOVER_PHY */
|
||||||
|
|
||||||
# define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
|
|
||||||
# define CONFIG_ETH1ADDR 00:e0:0c:bc:e5:61
|
|
||||||
# define CONFIG_IPADDR 192.162.1.2
|
# define CONFIG_IPADDR 192.162.1.2
|
||||||
# define CONFIG_NETMASK 255.255.255.0
|
# define CONFIG_NETMASK 255.255.255.0
|
||||||
# define CONFIG_SERVERIP 192.162.1.1
|
# define CONFIG_SERVERIP 192.162.1.1
|
||||||
# define CONFIG_GATEWAYIP 192.162.1.1
|
# define CONFIG_GATEWAYIP 192.162.1.1
|
||||||
# define CONFIG_OVERWRITE_ETHADDR_ONCE
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -135,12 +132,10 @@
|
||||||
#define CONFIG_UDP_CHECKSUM
|
#define CONFIG_UDP_CHECKSUM
|
||||||
|
|
||||||
#ifdef CONFIG_MCFFEC
|
#ifdef CONFIG_MCFFEC
|
||||||
# define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
|
|
||||||
# define CONFIG_IPADDR 192.162.1.2
|
# define CONFIG_IPADDR 192.162.1.2
|
||||||
# define CONFIG_NETMASK 255.255.255.0
|
# define CONFIG_NETMASK 255.255.255.0
|
||||||
# define CONFIG_SERVERIP 192.162.1.1
|
# define CONFIG_SERVERIP 192.162.1.1
|
||||||
# define CONFIG_GATEWAYIP 192.162.1.1
|
# define CONFIG_GATEWAYIP 192.162.1.1
|
||||||
# define CONFIG_OVERWRITE_ETHADDR_ONCE
|
|
||||||
#endif /* FEC_ENET */
|
#endif /* FEC_ENET */
|
||||||
|
|
||||||
#define CONFIG_HOSTNAME M547xEVB
|
#define CONFIG_HOSTNAME M547xEVB
|
||||||
|
|
|
@ -75,13 +75,10 @@
|
||||||
# endif
|
# endif
|
||||||
# endif /* CONFIG_SYS_DISCOVER_PHY */
|
# endif /* CONFIG_SYS_DISCOVER_PHY */
|
||||||
|
|
||||||
# define CONFIG_ETHADDR 00:e0:0c:bc:e5:60
|
|
||||||
# define CONFIG_ETH1ADDR 00:e0:0c:bc:e5:61
|
|
||||||
# define CONFIG_IPADDR 192.162.1.2
|
# define CONFIG_IPADDR 192.162.1.2
|
||||||
# define CONFIG_NETMASK 255.255.255.0
|
# define CONFIG_NETMASK 255.255.255.0
|
||||||
# define CONFIG_SERVERIP 192.162.1.1
|
# define CONFIG_SERVERIP 192.162.1.1
|
||||||
# define CONFIG_GATEWAYIP 192.162.1.1
|
# define CONFIG_GATEWAYIP 192.162.1.1
|
||||||
# define CONFIG_OVERWRITE_ETHADDR_ONCE
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -720,13 +720,9 @@
|
||||||
/* The mac addresses for all ethernet interface */
|
/* The mac addresses for all ethernet interface */
|
||||||
#if defined(CONFIG_TSEC_ENET)
|
#if defined(CONFIG_TSEC_ENET)
|
||||||
#define CONFIG_HAS_ETH0
|
#define CONFIG_HAS_ETH0
|
||||||
#define CONFIG_ETHADDR 00:E0:0C:02:00:FD
|
|
||||||
#define CONFIG_HAS_ETH1
|
#define CONFIG_HAS_ETH1
|
||||||
#define CONFIG_ETH1ADDR 00:E0:0C:02:01:FD
|
|
||||||
#define CONFIG_HAS_ETH2
|
#define CONFIG_HAS_ETH2
|
||||||
#define CONFIG_ETH2ADDR 00:E0:0C:02:02:FD
|
|
||||||
#define CONFIG_HAS_ETH3
|
#define CONFIG_HAS_ETH3
|
||||||
#define CONFIG_ETH3ADDR 00:E0:0C:02:03:FD
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_IPADDR 192.168.1.254
|
#define CONFIG_IPADDR 192.168.1.254
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
* Please refer to doc/README.mpc85xx for more info.
|
* Please refer to doc/README.mpc85xx for more info.
|
||||||
*
|
*
|
||||||
* Make sure you change the MAC address and other network params first,
|
* Make sure you change the MAC address and other network params first,
|
||||||
* search for CONFIG_ETHADDR, CONFIG_SERVERIP, etc in this file.
|
* search for CONFIG_SERVERIP, etc in this file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
|
@ -406,11 +406,8 @@
|
||||||
/* The mac addresses for all ethernet interface */
|
/* The mac addresses for all ethernet interface */
|
||||||
#if defined(CONFIG_TSEC_ENET)
|
#if defined(CONFIG_TSEC_ENET)
|
||||||
#define CONFIG_HAS_ETH0
|
#define CONFIG_HAS_ETH0
|
||||||
#define CONFIG_ETHADDR 00:E0:0C:00:00:FD
|
|
||||||
#define CONFIG_HAS_ETH1
|
#define CONFIG_HAS_ETH1
|
||||||
#define CONFIG_ETH1ADDR 00:E0:0C:00:01:FD
|
|
||||||
#define CONFIG_HAS_ETH2
|
#define CONFIG_HAS_ETH2
|
||||||
#define CONFIG_ETH2ADDR 00:E0:0C:00:02:FD
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_IPADDR 192.168.1.253
|
#define CONFIG_IPADDR 192.168.1.253
|
||||||
|
|
|
@ -418,11 +418,8 @@ extern unsigned long get_clock_freq(void);
|
||||||
/* The mac addresses for all ethernet interface */
|
/* The mac addresses for all ethernet interface */
|
||||||
#if defined(CONFIG_TSEC_ENET)
|
#if defined(CONFIG_TSEC_ENET)
|
||||||
#define CONFIG_HAS_ETH0
|
#define CONFIG_HAS_ETH0
|
||||||
#define CONFIG_ETHADDR 00:E0:0C:00:00:FD
|
|
||||||
#define CONFIG_HAS_ETH1
|
#define CONFIG_HAS_ETH1
|
||||||
#define CONFIG_ETH1ADDR 00:E0:0C:00:01:FD
|
|
||||||
#define CONFIG_HAS_ETH2
|
#define CONFIG_HAS_ETH2
|
||||||
#define CONFIG_ETH2ADDR 00:E0:0C:00:02:FD
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_IPADDR 192.168.1.253
|
#define CONFIG_IPADDR 192.168.1.253
|
||||||
|
|
|
@ -449,9 +449,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
|
||||||
/* The mac addresses for all ethernet interface */
|
/* The mac addresses for all ethernet interface */
|
||||||
#if defined(CONFIG_TSEC_ENET)
|
#if defined(CONFIG_TSEC_ENET)
|
||||||
#define CONFIG_HAS_ETH0
|
#define CONFIG_HAS_ETH0
|
||||||
#define CONFIG_ETHADDR 00:E0:0C:02:00:FD
|
|
||||||
#define CONFIG_HAS_ETH1
|
#define CONFIG_HAS_ETH1
|
||||||
#define CONFIG_ETH1ADDR 00:E0:0C:02:01:FD
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_IPADDR 192.168.1.251
|
#define CONFIG_IPADDR 192.168.1.251
|
||||||
|
|
|
@ -539,17 +539,11 @@ extern unsigned long get_clock_freq(void);
|
||||||
/*
|
/*
|
||||||
* Environment Configuration
|
* Environment Configuration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* The mac addresses for all ethernet interface */
|
|
||||||
#if defined(CONFIG_TSEC_ENET)
|
#if defined(CONFIG_TSEC_ENET)
|
||||||
#define CONFIG_HAS_ETH0
|
#define CONFIG_HAS_ETH0
|
||||||
#define CONFIG_ETHADDR 00:E0:0C:00:00:FD
|
|
||||||
#define CONFIG_HAS_ETH1
|
#define CONFIG_HAS_ETH1
|
||||||
#define CONFIG_ETH1ADDR 00:E0:0C:00:01:FD
|
|
||||||
#define CONFIG_HAS_ETH2
|
#define CONFIG_HAS_ETH2
|
||||||
#define CONFIG_ETH2ADDR 00:E0:0C:00:02:FD
|
|
||||||
#define CONFIG_HAS_ETH3
|
#define CONFIG_HAS_ETH3
|
||||||
#define CONFIG_ETH3ADDR 00:E0:0C:00:03:FD
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_IPADDR 192.168.1.253
|
#define CONFIG_IPADDR 192.168.1.253
|
||||||
|
|
|
@ -412,15 +412,10 @@ extern unsigned long get_clock_freq(void);
|
||||||
/*
|
/*
|
||||||
* Environment Configuration
|
* Environment Configuration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* The mac addresses for all ethernet interface */
|
|
||||||
#if defined(CONFIG_TSEC_ENET)
|
#if defined(CONFIG_TSEC_ENET)
|
||||||
#define CONFIG_HAS_ETH0
|
#define CONFIG_HAS_ETH0
|
||||||
#define CONFIG_ETHADDR 00:E0:0C:00:00:FD
|
|
||||||
#define CONFIG_HAS_ETH1
|
#define CONFIG_HAS_ETH1
|
||||||
#define CONFIG_ETH1ADDR 00:E0:0C:00:01:FD
|
|
||||||
#define CONFIG_HAS_ETH2
|
#define CONFIG_HAS_ETH2
|
||||||
#define CONFIG_ETH2ADDR 00:E0:0C:00:02:FD
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_IPADDR 192.168.1.253
|
#define CONFIG_IPADDR 192.168.1.253
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
* Please refer to doc/README.mpc85xx for more info.
|
* Please refer to doc/README.mpc85xx for more info.
|
||||||
*
|
*
|
||||||
* Make sure you change the MAC address and other network params first,
|
* Make sure you change the MAC address and other network params first,
|
||||||
* search for CONFIG_ETHADDR, CONFIG_SERVERIP, etc in this file.
|
* search for CONFIG_SERVERIP, etc. in this file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
|
@ -443,17 +443,11 @@
|
||||||
/*
|
/*
|
||||||
* Environment Configuration
|
* Environment Configuration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* The mac addresses for all ethernet interface */
|
|
||||||
#if defined(CONFIG_TSEC_ENET) || defined(CONFIG_ETHER_ON_FCC)
|
#if defined(CONFIG_TSEC_ENET) || defined(CONFIG_ETHER_ON_FCC)
|
||||||
#define CONFIG_HAS_ETH0
|
#define CONFIG_HAS_ETH0
|
||||||
#define CONFIG_ETHADDR 00:E0:0C:00:00:FD
|
|
||||||
#define CONFIG_HAS_ETH1
|
#define CONFIG_HAS_ETH1
|
||||||
#define CONFIG_ETH1ADDR 00:E0:0C:00:01:FD
|
|
||||||
#define CONFIG_HAS_ETH2
|
#define CONFIG_HAS_ETH2
|
||||||
#define CONFIG_ETH2ADDR 00:E0:0C:00:02:FD
|
|
||||||
#define CONFIG_HAS_ETH3
|
#define CONFIG_HAS_ETH3
|
||||||
#define CONFIG_ETH3ADDR 00:E0:0C:00:03:FD
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_IPADDR 192.168.1.253
|
#define CONFIG_IPADDR 192.168.1.253
|
||||||
|
|
|
@ -438,13 +438,9 @@ extern unsigned long get_clock_freq(void);
|
||||||
/* The mac addresses for all ethernet interface */
|
/* The mac addresses for all ethernet interface */
|
||||||
#if defined(CONFIG_TSEC_ENET) || defined(CONFIG_UEC_ETH)
|
#if defined(CONFIG_TSEC_ENET) || defined(CONFIG_UEC_ETH)
|
||||||
#define CONFIG_HAS_ETH0
|
#define CONFIG_HAS_ETH0
|
||||||
#define CONFIG_ETHADDR 00:E0:0C:00:00:FD
|
|
||||||
#define CONFIG_HAS_ETH1
|
#define CONFIG_HAS_ETH1
|
||||||
#define CONFIG_ETH1ADDR 00:E0:0C:00:01:FD
|
|
||||||
#define CONFIG_HAS_ETH2
|
#define CONFIG_HAS_ETH2
|
||||||
#define CONFIG_ETH2ADDR 00:E0:0C:00:02:FD
|
|
||||||
#define CONFIG_HAS_ETH3
|
#define CONFIG_HAS_ETH3
|
||||||
#define CONFIG_ETH3ADDR 00:E0:0C:00:03:FD
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_IPADDR 192.168.1.253
|
#define CONFIG_IPADDR 192.168.1.253
|
||||||
|
|
|
@ -658,17 +658,11 @@
|
||||||
/*
|
/*
|
||||||
* Environment Configuration
|
* Environment Configuration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* The mac addresses for all ethernet interface */
|
|
||||||
#if defined(CONFIG_TSEC_ENET)
|
#if defined(CONFIG_TSEC_ENET)
|
||||||
#define CONFIG_HAS_ETH0
|
#define CONFIG_HAS_ETH0
|
||||||
#define CONFIG_ETHADDR 00:E0:0C:02:00:FD
|
|
||||||
#define CONFIG_HAS_ETH1
|
#define CONFIG_HAS_ETH1
|
||||||
#define CONFIG_ETH1ADDR 00:E0:0C:02:01:FD
|
|
||||||
#define CONFIG_HAS_ETH2
|
#define CONFIG_HAS_ETH2
|
||||||
#define CONFIG_ETH2ADDR 00:E0:0C:02:02:FD
|
|
||||||
#define CONFIG_HAS_ETH3
|
#define CONFIG_HAS_ETH3
|
||||||
#define CONFIG_ETH3ADDR 00:E0:0C:02:03:FD
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_IPADDR 192.168.1.254
|
#define CONFIG_IPADDR 192.168.1.254
|
||||||
|
|
|
@ -300,7 +300,6 @@
|
||||||
|
|
||||||
#define CONFIG_ULI526X
|
#define CONFIG_ULI526X
|
||||||
#ifdef CONFIG_ULI526X
|
#ifdef CONFIG_ULI526X
|
||||||
#define CONFIG_ETHADDR 00:E0:0C:00:00:01
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************************************************************
|
/************************************************************
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
* MPC8641HPCN board configuration file
|
* MPC8641HPCN board configuration file
|
||||||
*
|
*
|
||||||
* Make sure you change the MAC address and other network params first,
|
* Make sure you change the MAC address and other network params first,
|
||||||
* search for CONFIG_ETHADDR, CONFIG_SERVERIP, etc in this file.
|
* search for CONFIG_SERVERIP, etc. in this file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
|
@ -679,14 +679,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
|
||||||
* Environment Configuration
|
* Environment Configuration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* The mac addresses for all ethernet interface */
|
|
||||||
#if defined(CONFIG_TSEC_ENET)
|
|
||||||
#define CONFIG_ETHADDR 00:E0:0C:00:00:01
|
|
||||||
#define CONFIG_ETH1ADDR 00:E0:0C:00:01:FD
|
|
||||||
#define CONFIG_ETH2ADDR 00:E0:0C:00:02:FD
|
|
||||||
#define CONFIG_ETH3ADDR 00:E0:0C:00:03:FD
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define CONFIG_HAS_ETH0 1
|
#define CONFIG_HAS_ETH0 1
|
||||||
#define CONFIG_HAS_ETH1 1
|
#define CONFIG_HAS_ETH1 1
|
||||||
#define CONFIG_HAS_ETH2 1
|
#define CONFIG_HAS_ETH2 1
|
||||||
|
|
|
@ -165,7 +165,6 @@
|
||||||
"setenv bootargs ${bootargs} no_ethaddr;" \
|
"setenv bootargs ${bootargs} no_ethaddr;" \
|
||||||
"fi\0" \
|
"fi\0" \
|
||||||
"hostname=CPUP0\0" \
|
"hostname=CPUP0\0" \
|
||||||
"ethaddr=00:00:00:00:00:00\0" \
|
|
||||||
"netdev=eth0\0" \
|
"netdev=eth0\0" \
|
||||||
"bootcmd=run bootcmd_nor\0" \
|
"bootcmd=run bootcmd_nor\0" \
|
||||||
""
|
""
|
||||||
|
|
|
@ -73,8 +73,6 @@
|
||||||
#define CONFIG_GATEWAYIP 192.168.233.1
|
#define CONFIG_GATEWAYIP 192.168.233.1
|
||||||
#define CONFIG_SERVERIP 192.168.233.53
|
#define CONFIG_SERVERIP 192.168.233.53
|
||||||
#define CONFIG_ROOTPATH "/romfs/brettl2"
|
#define CONFIG_ROOTPATH "/romfs/brettl2"
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
#define CONFIG_LIB_RAND
|
#define CONFIG_LIB_RAND
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -87,8 +87,6 @@
|
||||||
#endif
|
#endif
|
||||||
#define CONFIG_HOSTNAME bf518f-ezbrd
|
#define CONFIG_HOSTNAME bf518f-ezbrd
|
||||||
#define CONFIG_PHY_ADDR 3
|
#define CONFIG_PHY_ADDR 3
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
#define CONFIG_LIB_RAND
|
#define CONFIG_LIB_RAND
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -85,8 +85,6 @@
|
||||||
#define CONFIG_NETCONSOLE 1
|
#define CONFIG_NETCONSOLE 1
|
||||||
#endif
|
#endif
|
||||||
#define CONFIG_HOSTNAME bf526-ezbrd
|
#define CONFIG_HOSTNAME bf526-ezbrd
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
#define CONFIG_LIB_RAND
|
#define CONFIG_LIB_RAND
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -83,8 +83,6 @@
|
||||||
#define CONFIG_NETCONSOLE 1
|
#define CONFIG_NETCONSOLE 1
|
||||||
#endif
|
#endif
|
||||||
#define CONFIG_HOSTNAME bf527-ezkit
|
#define CONFIG_HOSTNAME bf527-ezkit
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
#define CONFIG_LIB_RAND
|
#define CONFIG_LIB_RAND
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -75,8 +75,6 @@
|
||||||
SSYNC(); \
|
SSYNC(); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#define CONFIG_HOSTNAME bf533-ezkit
|
#define CONFIG_HOSTNAME bf533-ezkit
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -68,8 +68,6 @@
|
||||||
SSYNC(); \
|
SSYNC(); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#define CONFIG_HOSTNAME bf533-stamp
|
#define CONFIG_HOSTNAME bf533-stamp
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:b8 */
|
|
||||||
|
|
||||||
|
|
||||||
/* I2C */
|
/* I2C */
|
||||||
|
|
|
@ -86,8 +86,6 @@
|
||||||
|
|
||||||
#define CONFIG_SYS_AUTOLOAD "no"
|
#define CONFIG_SYS_AUTOLOAD "no"
|
||||||
#define CONFIG_ROOTPATH "/romfs"
|
#define CONFIG_ROOTPATH "/romfs"
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:42 */
|
|
||||||
|
|
||||||
#define CONFIG_LIB_RAND
|
#define CONFIG_LIB_RAND
|
||||||
|
|
||||||
|
@ -133,7 +131,6 @@
|
||||||
#define CONFIG_SYS_LONGHELP 1
|
#define CONFIG_SYS_LONGHELP 1
|
||||||
#define CONFIG_CMDLINE_EDITING 1
|
#define CONFIG_CMDLINE_EDITING 1
|
||||||
#define CONFIG_ENV_OVERWRITE 1
|
#define CONFIG_ENV_OVERWRITE 1
|
||||||
#define CONFIG_MISC_INIT_R
|
|
||||||
|
|
||||||
#define CONFIG_BAUDRATE 57600
|
#define CONFIG_BAUDRATE 57600
|
||||||
#define CONFIG_UART_CONSOLE 0
|
#define CONFIG_UART_CONSOLE 0
|
||||||
|
|
|
@ -65,8 +65,6 @@
|
||||||
#define CONFIG_RMII
|
#define CONFIG_RMII
|
||||||
#endif
|
#endif
|
||||||
#define CONFIG_HOSTNAME bf537-pnav
|
#define CONFIG_HOSTNAME bf537-pnav
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:24:21:18 */
|
|
||||||
#define CONFIG_LIB_RAND
|
#define CONFIG_LIB_RAND
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -150,7 +148,6 @@
|
||||||
* Misc Settings
|
* Misc Settings
|
||||||
*/
|
*/
|
||||||
#define CONFIG_BAUDRATE 115200
|
#define CONFIG_BAUDRATE 115200
|
||||||
#define CONFIG_MISC_INIT_R
|
|
||||||
#define CONFIG_RTC_BFIN
|
#define CONFIG_RTC_BFIN
|
||||||
#define CONFIG_UART_CONSOLE 0
|
#define CONFIG_UART_CONSOLE 0
|
||||||
|
|
||||||
|
|
|
@ -86,8 +86,6 @@
|
||||||
|
|
||||||
#define CONFIG_SYS_AUTOLOAD "no"
|
#define CONFIG_SYS_AUTOLOAD "no"
|
||||||
#define CONFIG_ROOTPATH "/romfs"
|
#define CONFIG_ROOTPATH "/romfs"
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:42 */
|
|
||||||
#define CONFIG_LIB_RAND
|
#define CONFIG_LIB_RAND
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -132,7 +130,6 @@
|
||||||
#define CONFIG_SYS_LONGHELP 1
|
#define CONFIG_SYS_LONGHELP 1
|
||||||
#define CONFIG_CMDLINE_EDITING 1
|
#define CONFIG_CMDLINE_EDITING 1
|
||||||
#define CONFIG_ENV_OVERWRITE 1
|
#define CONFIG_ENV_OVERWRITE 1
|
||||||
#define CONFIG_MISC_INIT_R
|
|
||||||
|
|
||||||
#define CONFIG_BAUDRATE 115200
|
#define CONFIG_BAUDRATE 115200
|
||||||
#define CONFIG_UART_CONSOLE 0
|
#define CONFIG_UART_CONSOLE 0
|
||||||
|
|
|
@ -65,8 +65,6 @@
|
||||||
#define CONFIG_NETCONSOLE 1
|
#define CONFIG_NETCONSOLE 1
|
||||||
#endif
|
#endif
|
||||||
#define CONFIG_HOSTNAME bf537-stamp
|
#define CONFIG_HOSTNAME bf537-stamp
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
#define CONFIG_LIB_RAND
|
#define CONFIG_LIB_RAND
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -63,8 +63,6 @@
|
||||||
#define CONFIG_SMC91111 1
|
#define CONFIG_SMC91111 1
|
||||||
#define CONFIG_SMC91111_BASE 0x20310300
|
#define CONFIG_SMC91111_BASE 0x20310300
|
||||||
#define CONFIG_HOSTNAME bf538f-ezkit
|
#define CONFIG_HOSTNAME bf538f-ezkit
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -73,8 +73,6 @@
|
||||||
#define CONFIG_SMC911X_BASE 0x24000000
|
#define CONFIG_SMC911X_BASE 0x24000000
|
||||||
#define CONFIG_SMC911X_16_BIT
|
#define CONFIG_SMC911X_16_BIT
|
||||||
#define CONFIG_HOSTNAME bf548-ezkit
|
#define CONFIG_HOSTNAME bf548-ezkit
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -92,9 +92,6 @@
|
||||||
|
|
||||||
#define CONFIG_HOSTNAME bf561-acvilon
|
#define CONFIG_HOSTNAME bf561-acvilon
|
||||||
|
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Flash Settings
|
* Flash Settings
|
||||||
|
|
|
@ -64,8 +64,6 @@
|
||||||
#define CONFIG_SMC91111_BASE 0x2C010300
|
#define CONFIG_SMC91111_BASE 0x2C010300
|
||||||
#define CONFIG_SMC_USE_32_BIT 1
|
#define CONFIG_SMC_USE_32_BIT 1
|
||||||
#define CONFIG_HOSTNAME bf561-ezkit
|
#define CONFIG_HOSTNAME bf561-ezkit
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -76,9 +76,6 @@
|
||||||
#define CONFIG_HOSTNAME blackstamp
|
#define CONFIG_HOSTNAME blackstamp
|
||||||
#define CONFIG_ROOTPATH "/checkout/uClinux-dist/romfs"
|
#define CONFIG_ROOTPATH "/checkout/uClinux-dist/romfs"
|
||||||
#define CONFIG_SYS_AUTOLOAD "no"
|
#define CONFIG_SYS_AUTOLOAD "no"
|
||||||
|
|
||||||
/* To remove hardcoding and enable MAC storage in EEPROM */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:b8 */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_ENV_IS_IN_SPI_FLASH
|
#define CONFIG_ENV_IS_IN_SPI_FLASH
|
||||||
|
|
|
@ -85,9 +85,6 @@
|
||||||
#define CFG_AUTOLOAD "no"
|
#define CFG_AUTOLOAD "no"
|
||||||
#define CONFIG_CMD_DHCP
|
#define CONFIG_CMD_DHCP
|
||||||
#define CONFIG_CMD_PING
|
#define CONFIG_CMD_PING
|
||||||
#define CONFIG_ENV_OVERWRITE 1 /* enable changing MAC at runtime */
|
|
||||||
/* Comment out hardcoded MAC to enable MAC storage in EEPROM */
|
|
||||||
/* # define CONFIG_ETHADDR ff:ee:dd:cc:bb:aa */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SDRAM settings & memory map
|
* SDRAM settings & memory map
|
||||||
|
|
|
@ -69,9 +69,6 @@
|
||||||
#endif
|
#endif
|
||||||
#define CONFIG_HOSTNAME br4
|
#define CONFIG_HOSTNAME br4
|
||||||
#define CONFIG_TFTP_BLOCKSIZE 4404
|
#define CONFIG_TFTP_BLOCKSIZE 4404
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 5c:38:1a:80:a7:00 */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Flash Settings
|
* Flash Settings
|
||||||
|
|
|
@ -83,8 +83,6 @@
|
||||||
#define CONFIG_NETCONSOLE 1
|
#define CONFIG_NETCONSOLE 1
|
||||||
#endif
|
#endif
|
||||||
#define CONFIG_HOSTNAME cm-bf527
|
#define CONFIG_HOSTNAME cm-bf527
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
#define CONFIG_LIB_RAND
|
#define CONFIG_LIB_RAND
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -66,8 +66,6 @@
|
||||||
#define CONFIG_SMC91111 1
|
#define CONFIG_SMC91111 1
|
||||||
#define CONFIG_SMC91111_BASE 0x20200300
|
#define CONFIG_SMC91111_BASE 0x20200300
|
||||||
#define CONFIG_HOSTNAME cm-bf533
|
#define CONFIG_HOSTNAME cm-bf533
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -71,8 +71,6 @@
|
||||||
#define CONFIG_NETCONSOLE 1
|
#define CONFIG_NETCONSOLE 1
|
||||||
#endif
|
#endif
|
||||||
#define CONFIG_HOSTNAME cm-bf537e
|
#define CONFIG_HOSTNAME cm-bf537e
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
#define CONFIG_LIB_RAND
|
#define CONFIG_LIB_RAND
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -69,8 +69,6 @@
|
||||||
#define CONFIG_NETCONSOLE 1
|
#define CONFIG_NETCONSOLE 1
|
||||||
#endif
|
#endif
|
||||||
#define CONFIG_HOSTNAME cm-bf537u
|
#define CONFIG_HOSTNAME cm-bf537u
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
|
|
||||||
#define CONFIG_LIB_RAND
|
#define CONFIG_LIB_RAND
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -76,8 +76,6 @@
|
||||||
#define CONFIG_SMC911X_BASE 0x24000000
|
#define CONFIG_SMC911X_BASE 0x24000000
|
||||||
#define CONFIG_SMC911X_16_BIT
|
#define CONFIG_SMC911X_16_BIT
|
||||||
#define CONFIG_HOSTNAME cm-bf548
|
#define CONFIG_HOSTNAME cm-bf548
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:24:31:91 */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -67,8 +67,6 @@
|
||||||
#define CONFIG_SMC911X_BASE 0x24008000 /* AMS1 */
|
#define CONFIG_SMC911X_BASE 0x24008000 /* AMS1 */
|
||||||
#define CONFIG_SMC911X_16_BIT
|
#define CONFIG_SMC911X_16_BIT
|
||||||
#define CONFIG_HOSTNAME cm-bf561
|
#define CONFIG_HOSTNAME cm-bf561
|
||||||
/* Uncomment next line to use fixed MAC address */
|
|
||||||
/* #define CONFIG_ETHADDR 02:80:ad:20:31:cf */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -177,7 +177,6 @@ considered during boot */
|
||||||
|
|
||||||
/* User network settings */
|
/* User network settings */
|
||||||
|
|
||||||
#define CONFIG_ETHADDR 00:00:00:00:00:09 /* default ethernet MAC addr. */
|
|
||||||
#define CONFIG_IPADDR 192.168.100.2 /* default board IP address */
|
#define CONFIG_IPADDR 192.168.100.2 /* default board IP address */
|
||||||
#define CONFIG_SERVERIP 192.168.100.1 /* default tftp server IP address */
|
#define CONFIG_SERVERIP 192.168.100.1 /* default tftp server IP address */
|
||||||
|
|
||||||
|
|
|
@ -37,8 +37,6 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_ETHADDR DE:AD:BE:EF:01:01 /* Ethernet address */
|
|
||||||
|
|
||||||
#define CONFIG_BOOTDELAY 2 /* autoboot after 2 seconds */
|
#define CONFIG_BOOTDELAY 2 /* autoboot after 2 seconds */
|
||||||
|
|
||||||
#define CONFIG_BAUDRATE 115200
|
#define CONFIG_BAUDRATE 115200
|
||||||
|
|
|
@ -242,7 +242,6 @@
|
||||||
"rootpath=/opt/eldk/arm\0" \
|
"rootpath=/opt/eldk/arm\0" \
|
||||||
"splashpos=230,180\0" \
|
"splashpos=230,180\0" \
|
||||||
"testrfspath=/opt/eldk/test_arm\0" \
|
"testrfspath=/opt/eldk/test_arm\0" \
|
||||||
"tempmac=setenv ethaddr 02:ea:20:ff:ff:ff\0" \
|
|
||||||
"nandargs=setenv bootargs rootfstype=ubifs ro chk_data_crc " \
|
"nandargs=setenv bootargs rootfstype=ubifs ro chk_data_crc " \
|
||||||
"ubi.mtd=${as} root=ubi0:rootfs\0" \
|
"ubi.mtd=${as} root=ubi0:rootfs\0" \
|
||||||
"nandrwargs=setenv bootargs rootfstype=ubifs rw chk_data_crc " \
|
"nandrwargs=setenv bootargs rootfstype=ubifs rw chk_data_crc " \
|
||||||
|
@ -315,6 +314,6 @@
|
||||||
"fi;" \
|
"fi;" \
|
||||||
"else echo U-Boot not downloaded..exiting;fi\0" \
|
"else echo U-Boot not downloaded..exiting;fi\0" \
|
||||||
"ubootupd_nand=echo run load_magic,run load_nand,run upd;\0" \
|
"ubootupd_nand=echo run load_magic,run load_nand,run upd;\0" \
|
||||||
"bootcmd=run tempmac;run net_testrfs\0"
|
"bootcmd=run net_testrfs\0"
|
||||||
|
|
||||||
#endif /* __CONFIG_H */
|
#endif /* __CONFIG_H */
|
||||||
|
|
|
@ -280,7 +280,6 @@
|
||||||
/*#define CONFIG_SHOW_ACTIVITY*/
|
/*#define CONFIG_SHOW_ACTIVITY*/
|
||||||
#define CONFIG_NET_RETRY_COUNT 10 /* # of retries */
|
#define CONFIG_NET_RETRY_COUNT 10 /* # of retries */
|
||||||
|
|
||||||
#define CONFIG_ETHADDR 00:00:7a:cc:00:13
|
|
||||||
#define CONFIG_PHY_ADDR 0x00
|
#define CONFIG_PHY_ADDR 0x00
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -260,16 +260,6 @@
|
||||||
/* USE GRETH Ethernet Driver */
|
/* USE GRETH Ethernet Driver */
|
||||||
#define CONFIG_GRETH 1
|
#define CONFIG_GRETH 1
|
||||||
|
|
||||||
/* Default GRETH Ethernet HARDWARE address */
|
|
||||||
#define GRETH_HWADDR_0 0x00
|
|
||||||
#define GRETH_HWADDR_1 0x00
|
|
||||||
#define GRETH_HWADDR_2 0x7a
|
|
||||||
#define GRETH_HWADDR_3 0xcc
|
|
||||||
#define GRETH_HWADDR_4 0x00
|
|
||||||
#define GRETH_HWADDR_5 0x13
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define CONFIG_ETHADDR 00:00:7a:cc:00:13
|
|
||||||
#define CONFIG_PHY_ADDR 0x00
|
#define CONFIG_PHY_ADDR 0x00
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -220,15 +220,6 @@
|
||||||
*/
|
*/
|
||||||
#define CONFIG_GRETH 1
|
#define CONFIG_GRETH 1
|
||||||
|
|
||||||
/* Default GRETH Ethernet HARDWARE address */
|
|
||||||
#define GRETH_HWADDR_0 0x00
|
|
||||||
#define GRETH_HWADDR_1 0x00
|
|
||||||
#define GRETH_HWADDR_2 0x7a
|
|
||||||
#define GRETH_HWADDR_3 0xcc
|
|
||||||
#define GRETH_HWADDR_4 0x00
|
|
||||||
#define GRETH_HWADDR_5 0x12
|
|
||||||
|
|
||||||
#define CONFIG_ETHADDR 00:00:7a:cc:00:12
|
|
||||||
#define CONFIG_PHY_ADDR 0x00
|
#define CONFIG_PHY_ADDR 0x00
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -94,7 +94,6 @@
|
||||||
"rootpath=/export/roofs\0" \
|
"rootpath=/export/roofs\0" \
|
||||||
"scratch=40000000\0" \
|
"scratch=40000000\0" \
|
||||||
"getkernel=tftpboot $(scratch) $(bootfile)\0" \
|
"getkernel=tftpboot $(scratch) $(bootfile)\0" \
|
||||||
"ethaddr=00:00:7A:CC:00:12\0" \
|
|
||||||
"bootargs=console=ttyS0,38400" \
|
"bootargs=console=ttyS0,38400" \
|
||||||
""
|
""
|
||||||
#define CONFIG_NETMASK 255.255.255.0
|
#define CONFIG_NETMASK 255.255.255.0
|
||||||
|
@ -243,16 +242,6 @@
|
||||||
*/
|
*/
|
||||||
#define CONFIG_GRETH 1
|
#define CONFIG_GRETH 1
|
||||||
|
|
||||||
/* Default HARDWARE address */
|
|
||||||
#define GRETH_HWADDR_0 0x00
|
|
||||||
#define GRETH_HWADDR_1 0x00
|
|
||||||
#define GRETH_HWADDR_2 0x7A
|
|
||||||
#define GRETH_HWADDR_3 0xcc
|
|
||||||
#define GRETH_HWADDR_4 0x00
|
|
||||||
#define GRETH_HWADDR_5 0x12
|
|
||||||
|
|
||||||
#define CONFIG_ETHADDR 00:00:7a:cc:00:12
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Define CONFIG_GRETH_10MBIT to force GRETH at 10Mb/s
|
* Define CONFIG_GRETH_10MBIT to force GRETH at 10Mb/s
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -91,7 +91,6 @@
|
||||||
"rootpath=/export/roofs\0" \
|
"rootpath=/export/roofs\0" \
|
||||||
"scratch=40000000\0" \
|
"scratch=40000000\0" \
|
||||||
"getkernel=tftpboot $(scratch) $(bootfile)\0" \
|
"getkernel=tftpboot $(scratch) $(bootfile)\0" \
|
||||||
"ethaddr=00:00:7A:CC:00:12\0" \
|
|
||||||
"bootargs=console=ttyS0,38400" \
|
"bootargs=console=ttyS0,38400" \
|
||||||
""
|
""
|
||||||
#define CONFIG_NETMASK 255.255.255.0
|
#define CONFIG_NETMASK 255.255.255.0
|
||||||
|
@ -241,16 +240,6 @@
|
||||||
*/
|
*/
|
||||||
/*#define CONFIG_GRETH 1*/
|
/*#define CONFIG_GRETH 1*/
|
||||||
|
|
||||||
/* Default HARDWARE address */
|
|
||||||
#define GRETH_HWADDR_0 0x00
|
|
||||||
#define GRETH_HWADDR_1 0x00
|
|
||||||
#define GRETH_HWADDR_2 0x7A
|
|
||||||
#define GRETH_HWADDR_3 0xcc
|
|
||||||
#define GRETH_HWADDR_4 0x00
|
|
||||||
#define GRETH_HWADDR_5 0x12
|
|
||||||
|
|
||||||
#define CONFIG_ETHADDR 00:00:7a:cc:00:12
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Define CONFIG_GRETH_10MBIT to force GRETH at 10Mb/s
|
* Define CONFIG_GRETH_10MBIT to force GRETH at 10Mb/s
|
||||||
*/
|
*/
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue