summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-16 15:16:25 -0400
committerIan Moffett <ian@osmora.org>2025-07-16 15:16:25 -0400
commita68a96a8fdc0d0ef40a69a71ae2b0fac81479e13 (patch)
tree73b9755847e55c31c15a023b8371177a713fc173
parent30634165980deaeead9f4e71e0ff6a5c9d897776 (diff)
kernel: et131x: Disable loopbacks and watchdog
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/dev/phy/et131x.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/phy/et131x.c b/sys/dev/phy/et131x.c
index f8a8ed5..bc5a732 100644
--- a/sys/dev/phy/et131x.c
+++ b/sys/dev/phy/et131x.c
@@ -228,6 +228,11 @@ et131x_mac_init(struct netcard *card)
mmio_write32(&mac->if_ctrl, 0);
mmio_write32(&mac->mii_mgmt_cfg, MAC_MIIMGMT_CLK_RST);
+ /* Disable loopbacks, watchdog timer, clear MSI config */
+ mmio_write32(&global->loopback, 0);
+ mmio_write32(&global->msi_config, 0);
+ mmio_write32(&global->watchdog_timer, 0);
+
/*
* Set up half duplex config
*