]> git.baikalelectronics.ru Git - uboot.git/commit
net: dwc_eth_qos: add Kconfig option to select supported configuration
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 8 Jun 2020 09:27:19 +0000 (11:27 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 5 Aug 2020 03:30:02 +0000 (23:30 -0400)
commit1bddaf551514562cca711233306377e2850e080c
tree9690e9ff849a3e9b88d00d967bb6e372ab821af7
parent7421f6c82d528327b00f1cdb5ced1dc1f7f48aa2
net: dwc_eth_qos: add Kconfig option to select supported configuration

Add configuration flag to select the supported dwc driver configuration:
- CONFIG_DWC_ETH_QOS_TEGRA186
- CONFIG_DWC_ETH_QOS_IMX
- CONFIG_DWC_ETH_QOS_STM32

See Linux driver ethernet/stmicro/stmmac and associated glue layers
for other configuration examples.

This patch removes the not-selected compatibles and lets the linker remove
the unused functions to reduce the size of the driver.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/net/Kconfig
drivers/net/dwc_eth_qos.c