ipq807x: Moved ethernet PHY configs

Moved Aquantia, QCA8033, QCA8075 and QCA8081
PHY configs to defconfig.

For tiny u-boot variant, except QCA8075 all
other PHYs are disabled.

Change-Id: Iaafa848bf7d578bfa3bcdaf0cfcb815ecfef067f
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
Gokul Sriram Palanisamy 2019-01-31 16:45:14 +05:30 committed by Gerrit - the friendly Code Review server
parent f7b08a8210
commit 9189ae97f1
5 changed files with 33 additions and 4 deletions

View file

@ -19,3 +19,14 @@ config USB_XHCI_IPQ
config PCI_IPQ
bool "ipq807x pci support for ipq807x"
config QCA_AQUANTIA_PHY
bool "Enable Aquantia PHY support for ipq807x"
config QCA8033_PHY
bool "Enable QCA8033 PHY support for ipq807x"
config QCA8081_PHY
bool "Enable QCA8081 PHY support for ipq807x"
config QCA8075_PHY
bool "Enable QCA8075 PHY support for ipq807x"

View file

@ -95,6 +95,14 @@ CONFIG_CMD_NET=y
# CONFIG_CMD_DNS is not set
# CONFIG_CMD_LINK_LOCAL is not set
#
# Network PHY
#
CONFIG_QCA8075_PHY=y
CONFIG_QCA_AQUANTIA_PHY=y
CONFIG_QCA8033_PHY=y
CONFIG_QCA8081_PHY=y
#
# Misc commands
#

View file

@ -95,6 +95,14 @@ CONFIG_CMD_NET=y
# CONFIG_CMD_DNS is not set
# CONFIG_CMD_LINK_LOCAL is not set
#
# Network PHY
#
CONFIG_QCA8075_PHY=y
CONFIG_QCA_AQUANTIA_PHY is not set
CONFIG_QCA8033_PHY is not set
CONFIG_QCA8081_PHY is not set
#
# Misc commands
#

View file

@ -1870,13 +1870,18 @@ int ipq807x_edma_init(void *edma_board_cfg)
else if ( mode == PORT_WRAPPER_QSGMII)
qca8075_phy_interface_set_mode(0x0, 0x4);
break;
#ifdef CONFIG_QCA8033_PHY
case QCA8033_PHY:
ipq_qca8033_phy_init(&ipq807x_edma_dev[i]->ops[phy_id], phy_addr);
break;
#endif
#ifdef CONFIG_QCA8081_PHY
case QCA8081_PHY:
case QCA8081_1_1_PHY:
ipq_qca8081_phy_init(&ipq807x_edma_dev[i]->ops[phy_id], phy_addr);
break;
#endif
#ifdef CONFIG_QCA_AQUANTIA_PHY
case AQUANTIA_PHY_107:
case AQUANTIA_PHY_109:
case AQUANTIA_PHY_111:
@ -1886,6 +1891,7 @@ int ipq807x_edma_init(void *edma_board_cfg)
ipq_board_fw_download(phy_addr);
ipq_qca_aquantia_phy_init(&ipq807x_edma_dev[i]->ops[phy_id], phy_addr);
break;
#endif
default:
ipq_qca8075_phy_map_ops(&ipq807x_edma_dev[i]->ops[phy_id]);
break;

View file

@ -303,10 +303,6 @@ extern loff_t board_env_size;
#define CONFIG_SERVERIP 192.168.10.1
#define CONFIG_CMD_TFTPPUT
#define CONFIG_IPQ_MDIO 1
#define CONFIG_QCA8075_PHY 1
#define CONFIG_QCA8033_PHY 1
#define CONFIG_QCA8081_PHY 1
#define CONFIG_QCA_AQUANTIA_PHY 1
#define CONFIG_IPQ_ETH_INIT_DEFER
/*