hw/net: cadence_gem: Add a new 'phy-addr' property
commit64ac13633fd416541ea00ff4ae973489bdc33f7a
authorBin Meng <bin.meng@windriver.com>
Tue, 1 Sep 2020 01:39:06 +0000 (1 09:39 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 9 Sep 2020 22:54:18 +0000 (9 15:54 -0700)
tree5976cd70db7d243e661d075ac5923c14a073b0d0
parent7124e27bb8ac16b6aae0e9cd30fb19385430dbb5
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>
hw/net/cadence_gem.c
include/hw/net/cadence_gem.h