Skip to content
Snippets Groups Projects
Commit 5cbbec15 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk
Browse files

generate net reset when LM32 starts

parent c268940a
Branches
Tags
No related merge requests found
......@@ -104,3 +104,9 @@ int diag_write_word(uint32_t adr, uint32_t val)
return 0;
}
void net_rst(void)
{
syscon->GPSR |= SYSC_GPSR_NET_RST;
}
......@@ -111,5 +111,7 @@ void diag_read_info(uint32_t *id, uint32_t *ver, uint32_t *nrw, uint32_t *nro);
int diag_read_word(uint32_t adr, int bank, uint32_t *val);
int diag_write_word(uint32_t adr, uint32_t val);
void net_rst(void);
#endif /* CONFIG_WR_NODE */
#endif
......@@ -80,6 +80,7 @@ static void wrc_initialize(void)
mac_addr[0], mac_addr[1], mac_addr[2], mac_addr[3],
mac_addr[4], mac_addr[5]);
net_rst();
ep_init(mac_addr);
ep_enable(1, 1);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment