]> git.dujemihanovic.xyz Git - u-boot.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)
commita08f2f7b944f6926843b26a216db58b8d02a19e1
tree9690e9ff849a3e9b88d00d967bb6e372ab821af7
parent9996cea75f5a77db5a6055342130d27a36830ef8
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