Skip to content

Commit 36077e1

Browse files
superna9999kishon
authored andcommitted
phy: amlogic: Add Amlogic G12A USB3 + PCIE Combo PHY Driver
This adds support for the shared USB3 + PCIE PHY found in the Amlogic G12A SoC Family. It supports USB3 Host mode or PCIE 2.0 mode, depending on the layout of the board. Selection is done by the #phy-cells, making the mode static and exclusive. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
1 parent 16df8bc commit 36077e1

3 files changed

Lines changed: 425 additions & 0 deletions

File tree

‎drivers/phy/amlogic/Kconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,14 @@ config PHY_MESON_G12A_USB2
4747
Enable this to support the Meson USB2 PHYs found in Meson
4848
G12A SoCs.
4949
If unsure, say N.
50+
51+
config PHY_MESON_G12A_USB3_PCIE
52+
tristate "Meson G12A USB3+PCIE Combo PHY driver"
53+
default ARCH_MESON
54+
depends on OF && (ARCH_MESON || COMPILE_TEST)
55+
select GENERIC_PHY
56+
select REGMAP_MMIO
57+
help
58+
Enable this to support the Meson USB3 + PCIE Combo PHY found
59+
in Meson G12A SoCs.
60+
If unsure, say N.

‎drivers/phy/amlogic/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ obj-$(CONFIG_PHY_MESON8B_USB2) += phy-meson8b-usb2.o
22
obj-$(CONFIG_PHY_MESON_GXL_USB2) += phy-meson-gxl-usb2.o
33
obj-$(CONFIG_PHY_MESON_G12A_USB2) += phy-meson-g12a-usb2.o
44
obj-$(CONFIG_PHY_MESON_GXL_USB3) += phy-meson-gxl-usb3.o
5+
obj-$(CONFIG_PHY_MESON_G12A_USB3_PCIE) += phy-meson-g12a-usb3-pcie.o

0 commit comments

Comments
 (0)