diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-16 15:16:25 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-16 15:16:25 -0400 |
commit | a68a96a8fdc0d0ef40a69a71ae2b0fac81479e13 (patch) | |
tree | 73b9755847e55c31c15a023b8371177a713fc173 | |
parent | 30634165980deaeead9f4e71e0ff6a5c9d897776 (diff) |
kernel: et131x: Disable loopbacks and watchdog
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/dev/phy/et131x.c | 5 |
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 * |