mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/net: cadence_gem: Add a new 'phy-addr' property
At present the PHY address of the PHY connected to GEM is hard-coded to either 23 (BOARD_PHY_ADDRESS) or 0. This might not be the case for all boards. Add a new 'phy-addr' property so that board can specify the PHY address for each GEM instance. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <1598924352-89526-12-git-send-email-bmeng.cn@gmail.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
7124e27bb8
commit
64ac13633f
2 changed files with 5 additions and 2 deletions
|
@ -73,6 +73,8 @@ typedef struct CadenceGEMState {
|
|||
/* Mask of register bits which are write 1 to clear */
|
||||
uint32_t regs_w1c[CADENCE_GEM_MAXREG];
|
||||
|
||||
/* PHY address */
|
||||
uint8_t phy_addr;
|
||||
/* PHY registers backing store */
|
||||
uint16_t phy_regs[32];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue