]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: kirkwood: fix Synology board tag
authorWalter Schweizer <swwa@users.sourceforge.net>
Thu, 6 Oct 2016 21:30:00 +0000 (23:30 +0200)
committerStefan Roese <sr@denx.de>
Sun, 9 Oct 2016 08:55:32 +0000 (10:55 +0200)
Signed-off-by: Walter Schweizer <swwa@users.sourceforge.net>
Signed-off-by: Stefan Roese <sr@denx.de>
board/Synology/ds109/ds109.c

index 8ab1387d1db1b13202d38c6976f3828b63ebfa0b..b46c09d648b1f0073dd62849f8a7efa11b5a353a 100644 (file)
@@ -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);