Merged in masayuki2009/nuttx.nuttx/tiva_with_qemu (pull request #927)

arch/arm/src/tiva: Add a workaround for tiva with qemu

With qemu, tiva_ifup() hangs because ethernet link status can not
be set correctly. This PR is a workaround to avoid this issue.

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Masayuki Ishikawa
2019-07-03 00:28:15 +00:00
committed by Gregory Nutt
parent b6e7812c74
commit 7815c3a720
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -1381,6 +1381,10 @@ config TIVA_DUMPPACKET
---help---
Dump each packet received/sent to the console.
config TIVA_WITH_QEMU
bool "Workaround for tiva with qemu"
default n
endmenu # Stellaris Ethernet Configuration
menu "Ethernet Configuration"
+2
View File
@@ -1345,6 +1345,7 @@ static int tiva_ifup(struct net_driver_s *dev)
* set
*/
#ifndef CONFIG_TIVA_WITH_QEMU
ninfo("Waiting for link\n");
do
{
@@ -1352,6 +1353,7 @@ static int tiva_ifup(struct net_driver_s *dev)
}
while ((phyreg & MII_MSR_LINKSTATUS) == 0);
ninfo("Link established\n");
#endif
/* Reset the receive FIFO */