Commit e06cba0
committed
stm32/eth: Fix N6 missing ETH1MAC clock enable.
The N6 requires 4 clocks (ETH1, ETH1MAC, ETH1TX, ETH1RX) but the
reference PR only enabled ETH1_CLK. This caused all register writes to
be lost and registers to read as 0x00000000, preventing ethernet from
functioning.
Fixed in:
- eth_init(): Added MAC clock enable with verification
- eth_mac_deinit(): Added MAC clock disable
- eth_low_power_mode(): Added MAC clock disable
This matches the H7 implementation which enables ETH1MAC_CLK.
Signed-off-by: Andrew Leech <[email protected]>1 parent aa119e7 commit e06cba0
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
283 | 289 | | |
284 | 290 | | |
285 | 291 | | |
| |||
658 | 664 | | |
659 | 665 | | |
660 | 666 | | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
661 | 670 | | |
662 | 671 | | |
663 | 672 | | |
| |||
1234 | 1243 | | |
1235 | 1244 | | |
1236 | 1245 | | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1237 | 1249 | | |
1238 | 1250 | | |
1239 | 1251 | | |
| |||
0 commit comments