Commit 8b73fa3
net: macb: Added ZynqMP-specific initialization
The GEM controllers on ZynqMP were missing some initialization steps which
are required in some cases when using SGMII mode, which uses the PS-GTR
transceivers managed by the phy-zynqmp driver.
The GEM core appears to need a hardware-level reset in order to work
properly in SGMII mode in cases where the GT reference clock was not
present at initial power-on. This can be done using a reset mapped to
the zynqmp-reset driver in the device tree.
Also, when in SGMII mode, the GEM driver needs to ensure the PHY is
initialized and powered on.
Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent f4ea385 commit 8b73fa3
2 files changed
+64
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
1291 | 1292 | | |
1292 | 1293 | | |
1293 | 1294 | | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
1294 | 1298 | | |
1295 | 1299 | | |
1296 | 1300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
2739 | 2741 | | |
2740 | 2742 | | |
2741 | 2743 | | |
2742 | | - | |
| 2744 | + | |
2743 | 2745 | | |
2744 | 2746 | | |
2745 | 2747 | | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
2746 | 2752 | | |
2747 | 2753 | | |
2748 | 2754 | | |
2749 | 2755 | | |
2750 | 2756 | | |
2751 | 2757 | | |
2752 | 2758 | | |
| 2759 | + | |
| 2760 | + | |
| 2761 | + | |
2753 | 2762 | | |
2754 | 2763 | | |
2755 | 2764 | | |
| |||
2775 | 2784 | | |
2776 | 2785 | | |
2777 | 2786 | | |
| 2787 | + | |
| 2788 | + | |
2778 | 2789 | | |
2779 | 2790 | | |
2780 | 2791 | | |
| |||
4544 | 4555 | | |
4545 | 4556 | | |
4546 | 4557 | | |
| 4558 | + | |
| 4559 | + | |
| 4560 | + | |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
| 4573 | + | |
| 4574 | + | |
| 4575 | + | |
| 4576 | + | |
| 4577 | + | |
| 4578 | + | |
| 4579 | + | |
| 4580 | + | |
| 4581 | + | |
| 4582 | + | |
| 4583 | + | |
| 4584 | + | |
| 4585 | + | |
| 4586 | + | |
| 4587 | + | |
| 4588 | + | |
| 4589 | + | |
| 4590 | + | |
| 4591 | + | |
| 4592 | + | |
| 4593 | + | |
| 4594 | + | |
| 4595 | + | |
| 4596 | + | |
| 4597 | + | |
| 4598 | + | |
| 4599 | + | |
4547 | 4600 | | |
4548 | 4601 | | |
4549 | 4602 | | |
4550 | 4603 | | |
4551 | 4604 | | |
4552 | 4605 | | |
4553 | | - | |
| 4606 | + | |
4554 | 4607 | | |
4555 | 4608 | | |
4556 | 4609 | | |
| |||
4767 | 4820 | | |
4768 | 4821 | | |
4769 | 4822 | | |
4770 | | - | |
| 4823 | + | |
4771 | 4824 | | |
4772 | 4825 | | |
4773 | 4826 | | |
| |||
4792 | 4845 | | |
4793 | 4846 | | |
4794 | 4847 | | |
| 4848 | + | |
| 4849 | + | |
| 4850 | + | |
4795 | 4851 | | |
4796 | 4852 | | |
4797 | 4853 | | |
| |||
4813 | 4869 | | |
4814 | 4870 | | |
4815 | 4871 | | |
| 4872 | + | |
4816 | 4873 | | |
4817 | 4874 | | |
4818 | 4875 | | |
| |||
0 commit comments