Fix up some fdt issues on 8544DS
It looks like we had a merge issue that duplicated a bit of code in ft_board_setup. Also, we need to set CONFIG_HAS_ETH0 to get the MAC address properly set in the device tree on boot for TSEC1 Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
d35b508a55
commit
ea5877e31e
@ -540,12 +540,5 @@ ft_board_setup(void *blob, bd_t *bd)
|
|||||||
debug("PCI@b000 first_busno=%d last_busno=%d\n",p[0],p[1]);
|
debug("PCI@b000 first_busno=%d last_busno=%d\n",p[0],p[1]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
ft_cpu_setup(blob, bd);
|
|
||||||
|
|
||||||
p = ft_get_prop(blob, "/memory/reg", &len);
|
|
||||||
if (p != NULL) {
|
|
||||||
*p++ = cpu_to_be32(bd->bi_memstart);
|
|
||||||
*p = cpu_to_be32(bd->bi_memsize);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -472,6 +472,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_ETHADDR 00:E0:0C:02:00:FD
|
#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_ETH1ADDR 00:E0:0C:02:01:FD
|
||||||
|
Loading…
Reference in New Issue
Block a user