Commit 6d7130e
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 0b2da3b commit 6d7130e
2 files changed
Lines changed: 64 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
1290 | 1291 | | |
1291 | 1292 | | |
1292 | 1293 | | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
1293 | 1297 | | |
1294 | 1298 | | |
1295 | 1299 | | |
| |||
| 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 | | |
| |||
2785 | 2787 | | |
2786 | 2788 | | |
2787 | 2789 | | |
2788 | | - | |
| 2790 | + | |
2789 | 2791 | | |
2790 | 2792 | | |
2791 | 2793 | | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
2792 | 2798 | | |
2793 | 2799 | | |
2794 | 2800 | | |
2795 | 2801 | | |
2796 | 2802 | | |
2797 | 2803 | | |
2798 | 2804 | | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
2799 | 2808 | | |
2800 | 2809 | | |
2801 | 2810 | | |
| |||
2821 | 2830 | | |
2822 | 2831 | | |
2823 | 2832 | | |
| 2833 | + | |
| 2834 | + | |
2824 | 2835 | | |
2825 | 2836 | | |
2826 | 2837 | | |
| |||
4586 | 4597 | | |
4587 | 4598 | | |
4588 | 4599 | | |
| 4600 | + | |
| 4601 | + | |
| 4602 | + | |
| 4603 | + | |
| 4604 | + | |
| 4605 | + | |
| 4606 | + | |
| 4607 | + | |
| 4608 | + | |
| 4609 | + | |
| 4610 | + | |
| 4611 | + | |
| 4612 | + | |
| 4613 | + | |
| 4614 | + | |
| 4615 | + | |
| 4616 | + | |
| 4617 | + | |
| 4618 | + | |
| 4619 | + | |
| 4620 | + | |
| 4621 | + | |
| 4622 | + | |
| 4623 | + | |
| 4624 | + | |
| 4625 | + | |
| 4626 | + | |
| 4627 | + | |
| 4628 | + | |
| 4629 | + | |
| 4630 | + | |
| 4631 | + | |
| 4632 | + | |
| 4633 | + | |
| 4634 | + | |
| 4635 | + | |
| 4636 | + | |
| 4637 | + | |
| 4638 | + | |
| 4639 | + | |
| 4640 | + | |
| 4641 | + | |
4589 | 4642 | | |
4590 | 4643 | | |
4591 | 4644 | | |
4592 | 4645 | | |
4593 | 4646 | | |
4594 | 4647 | | |
4595 | | - | |
| 4648 | + | |
4596 | 4649 | | |
4597 | 4650 | | |
4598 | 4651 | | |
| |||
4809 | 4862 | | |
4810 | 4863 | | |
4811 | 4864 | | |
4812 | | - | |
| 4865 | + | |
4813 | 4866 | | |
4814 | 4867 | | |
4815 | 4868 | | |
| |||
4834 | 4887 | | |
4835 | 4888 | | |
4836 | 4889 | | |
| 4890 | + | |
| 4891 | + | |
| 4892 | + | |
4837 | 4893 | | |
4838 | 4894 | | |
4839 | 4895 | | |
| |||
4855 | 4911 | | |
4856 | 4912 | | |
4857 | 4913 | | |
| 4914 | + | |
4858 | 4915 | | |
4859 | 4916 | | |
4860 | 4917 | | |
| |||
0 commit comments