[U-Boot] [PATCH 5/5] arm: mvebu: fix Synology board tag

Walter Schweizer swwa at users.sourceforge.net
Tue Sep 6 23:34:31 CEST 2016


Signed-off-by: Walter Schweizer <swwa at users.sourceforge.net>
---

 board/Synology/ds109/ds109.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/board/Synology/ds109/ds109.c b/board/Synology/ds109/ds109.c
index 8ab1387..b46c09d 100644
--- a/board/Synology/ds109/ds109.c
+++ b/board/Synology/ds109/ds109.c
@@ -115,6 +115,7 @@ void setup_board_tags(struct tag **in_params)
 	unsigned int boardId;
 	struct tag *params;
 	struct tag_mv_uboot *t;
+	int i;
 
 	printf("Synology board tags...");
 	params = *in_params;
@@ -128,6 +129,12 @@ void setup_board_tags(struct tag **in_params)
 	t->tclk = CONFIG_SYS_TCLK;
 	t->sysclk = CONFIG_SYS_TCLK*2;
 
+	t->isusbhost = 1;
+	for (i = 0; i < 4; i++)	{
+		memset(t->macaddr[i], 0, sizeof(t->macaddr[i]));
+		t->mtu[i] = 0;
+	}
+
 	params->hdr.tag = ATAG_MV_UBOOT;
 	params->hdr.size = tag_size(tag_mv_uboot);
 	params = tag_next(params);
-- 
2.1.4



More information about the U-Boot mailing list