Patchwork [U-Boot,v2,3/3] am335x: display msg when reading MAC from efuse

login
register
mail settings
Submitter Lars Poeschel
Date Jan. 11, 2013, 10:53 a.m.
Message ID <1357901612-9717-3-git-send-email-larsi@wh2.tu-dresden.de>
Download mbox | patch
Permalink /patch/211306/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Lars Poeschel - Jan. 11, 2013, 10:53 a.m.
From: Lars Poeschel <poeschel@lemonage.de>

When ethaddr is not set in environment the MAC address is read
from efuse. The message was only printed in debug case, but this
message could be of interest for the ordinary user, so printf it.

Signed-off-by: Lars Poeschel <poeschel@lemonage.de>
---
 board/ti/am335x/board.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Tom Rini - Jan. 25, 2013, 10:12 p.m.
On Fri, Jan 11, 2013 at 11:53:32AM +0100, Lars Poeschel wrote:

> From: Lars Poeschel <poeschel@lemonage.de>
> 
> When ethaddr is not set in environment the MAC address is read
> from efuse. The message was only printed in debug case, but this
> message could be of interest for the ordinary user, so printf it.
> 
> Signed-off-by: Lars Poeschel <poeschel@lemonage.de>

Applied to u-boot-ti/master, thanks!

Patch

diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index f0eca54..ac3c999 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -391,7 +391,7 @@  int board_eth_init(bd_t *bis)
 	uint32_t mac_hi, mac_lo;
 
 	if (!eth_getenv_enetaddr("ethaddr", mac_addr)) {
-		debug("<ethaddr> not set. Reading from E-fuse\n");
+		printf("<ethaddr> not set. Reading from E-fuse\n");
 		/* try reading mac address from efuse */
 		mac_lo = readl(&cdev->macid0l);
 		mac_hi = readl(&cdev->macid0h);