diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index 1db586d..9168e15 100644 --- a/drivers/net/davinci_emac.c +++ b/drivers/net/davinci_emac.c @@ -46,7 +46,7 @@ #include #include "davinci_emac.h" -unsigned int emac_dbg = 0; +unsigned int emac_dbg = 1; #define debug_emac(fmt,args...) if (emac_dbg) printf(fmt,##args) #ifdef EMAC_HW_RAM_ADDR @@ -212,6 +212,7 @@ static int davinci_eth_phy_detect(void) udelay(1000); phy_act_state = readl(&adap_mdio->ALIVE); + printf("phy_act_state: %x\n", phy_act_state); if (phy_act_state == 0) return 0; /* No active PHYs */ @@ -782,6 +783,8 @@ int davinci_emac_initialize(void) int ret; struct eth_device *dev; + printf("davinci_emac_initialize()...\n"); + dev = malloc(sizeof *dev); if (dev == NULL) @@ -809,6 +812,7 @@ int davinci_emac_initialize(void) break; udelay(1000); } + printf("i = %d\n", i); if (i >= 256) { printf("No ETH PHY detected!!!\n"); @@ -817,8 +821,10 @@ int davinci_emac_initialize(void) /* Find if PHY(s) is/are connected */ ret = davinci_eth_phy_detect(); - if (!ret) + if (!ret) { + printf("davinci_eth_phy_detect error\n"); return(0); + } else debug_emac(" %d ETH PHY detected\n", ret); diff --git a/include/configs/da830evm.h b/include/configs/da830evm.h index 346088f..bccc3c9 100644 --- a/include/configs/da830evm.h +++ b/include/configs/da830evm.h @@ -285,4 +285,6 @@ #define CONFIG_SYS_INIT_SP_ADDR \ (CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE) +#define CONFIG_ENV_OVERWRITE 1 /* allow overwrite MAC address */ + #endif /* __CONFIG_H */