diff options
| author | Stefan Roese <[email protected]> | 2022-03-31 11:43:06 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-08-08 10:50:20 -0400 |
| commit | 0ef02619ef01ad7e33805e9f9213cd289e2da0fc (patch) | |
| tree | 18d4fc15f19625550fead48d14a3925db9cb2291 /include | |
| parent | 5e6e41b3bab32f2ee258a76fda68b703e8f10cc3 (diff) | |
net: phy: marvell: Support reg config via "marvell, reg-init" DT property
This patch adds support for the "marvell,reg-init" DT property, which
is used to describe board specific Marvell PHY register configurations
in the board dts file. This DT property is supported in the Linux Kernel
since a longer time. Adding it to U-Boot now, enables the boards which
describe the register settings in their DT files here as well.
I've included calling this marvell_of_reg_init() to all foo_config()
functions in this patch as well. If CONFIG_DM_ETH is not set, there is
no ofnode, or no "marvell,reg-init" property, the PHY initialization is
unchanged.
The function marvell_of_reg_init() is a port of the Linux version.
Please note that I explicitly did not add error checking and handling
to the U-Boot version, as this is basically not done for phy_read/write
in this Marvell PHY code.
This will be used by the upcoming ethernet support on the MIPS
Octeon EBB 7304 board.
Signed-off-by: Stefan Roese <[email protected]>
Cc: Ramon Fried <[email protected]>
Cc: Joe Hershberger <[email protected]>
Cc: Aaron Williams <[email protected]>
Cc: Chandrakala Chavva <[email protected]>
Cc: Marek BehĂșn <[email protected]>
Reviewed-by: Marek BehĂșn <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
