generic: 5.15: backport upstream Aquantia PHY firmware loader patches
[openwrt/staging/dangole.git] / target / linux / realtek / patches-5.15 / 705-add-rtl-phy.patch
1 From 89f71ebb355c624320c2b0ace8ae9488ff53cbeb Mon Sep 17 00:00:00 2001
2 From: Birger Koblitz <mail@birger-koblitz.de>
3 Date: Tue, 5 Jan 2021 20:40:52 +0100
4 Subject: PHY: Add realtek PHY
5
6 This fixes the build problems for the REALTEK target by adding a proper
7 configuration option for the phy module.
8
9 Submitted-by: Birger Koblitz <mail@birger-koblitz.de>
10 ---
11 drivers/net/phy/Kconfig | 6 ++++++
12 drivers/net/phy/Makefile | 1 +
13 2 files changed, 7 insertions(+)
14
15 --- a/drivers/net/phy/Kconfig
16 +++ b/drivers/net/phy/Kconfig
17 @@ -354,6 +354,12 @@ config REALTEK_PHY
18 help
19 Supports the Realtek 821x PHY.
20
21 +config REALTEK_SOC_PHY
22 + tristate "Realtek SoC PHYs"
23 + depends on RTL83XX
24 + help
25 + Supports the PHYs found in combination with Realtek Switch SoCs
26 +
27 config RENESAS_PHY
28 tristate "Renesas PHYs"
29 help
30 --- a/drivers/net/phy/Makefile
31 +++ b/drivers/net/phy/Makefile
32 @@ -89,6 +89,7 @@ obj-$(CONFIG_NXP_C45_TJA11XX_PHY) += nxp
33 obj-$(CONFIG_NXP_TJA11XX_PHY) += nxp-tja11xx.o
34 obj-$(CONFIG_QSEMI_PHY) += qsemi.o
35 obj-$(CONFIG_REALTEK_PHY) += realtek.o
36 +obj-$(CONFIG_REALTEK_SOC_PHY) += rtl83xx-phy.o
37 obj-$(CONFIG_RENESAS_PHY) += uPD60620.o
38 obj-$(CONFIG_ROCKCHIP_PHY) += rockchip.o
39 obj-$(CONFIG_SMSC_PHY) += smsc.o