Commit 6158a32
phy: sparx5-serdes: add support for branching on chip type
In preparation for lan969x, add a way to branch out on code that is to
be executed on either Sparx5 or lan969x. Initially, this is required to
branch out when checking the SERDES types and SERDES speeds, since the
handling of these differ on the two platforms. This will also be used by
the lan969x driver introduced in a subsequent patch.
Signed-off-by: Daniel Machon <[email protected]>
Reviewed-by: Steen Hegelund <[email protected]>
Link: https://lore.kernel.org/r/20240909-sparx5-lan969x-serdes-driver-v2-7-d695bcb57b84@microchip.com
Signed-off-by: Vinod Koul <[email protected]>1 parent c8e4c8b commit 6158a32
2 files changed
+23
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2298 | 2298 | | |
2299 | 2299 | | |
2300 | 2300 | | |
2301 | | - | |
2302 | | - | |
2303 | | - | |
2304 | | - | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
2305 | 2307 | | |
2306 | 2308 | | |
2307 | 2309 | | |
| |||
2338 | 2340 | | |
2339 | 2341 | | |
2340 | 2342 | | |
2341 | | - | |
2342 | | - | |
2343 | | - | |
2344 | | - | |
2345 | | - | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
2346 | 2351 | | |
2347 | 2352 | | |
2348 | 2353 | | |
| |||
2515 | 2520 | | |
2516 | 2521 | | |
2517 | 2522 | | |
| 2523 | + | |
2518 | 2524 | | |
2519 | 2525 | | |
2520 | 2526 | | |
| |||
2618 | 2624 | | |
2619 | 2625 | | |
2620 | 2626 | | |
2621 | | - | |
2622 | | - | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
2623 | 2630 | | |
2624 | 2631 | | |
2625 | 2632 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
| |||
0 commit comments