Commit 4a3449d1 authored by Martin Blumenstingl's avatar Martin Blumenstingl Committed by Kishon Vijay Abraham I

phy: meson8b-usb2: add support for the USB PHY on Meson8 SoCs

Meson8 uses the same USB PHY as found on the Meson8b and GXBB SoCs. Add
a new of_device_id to indicate this. Also update the Kconfig option and
MODULE_DESCRIPTION accordingly.
Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent b78e2908
...@@ -2,15 +2,15 @@ ...@@ -2,15 +2,15 @@
# Phy drivers for Amlogic platforms # Phy drivers for Amlogic platforms
# #
config PHY_MESON8B_USB2 config PHY_MESON8B_USB2
tristate "Meson8b and GXBB USB2 PHY driver" tristate "Meson8, Meson8b and GXBB USB2 PHY driver"
default ARCH_MESON default ARCH_MESON
depends on OF && (ARCH_MESON || COMPILE_TEST) depends on OF && (ARCH_MESON || COMPILE_TEST)
depends on USB_SUPPORT depends on USB_SUPPORT
select USB_COMMON select USB_COMMON
select GENERIC_PHY select GENERIC_PHY
help help
Enable this to support the Meson USB2 PHYs found in Meson8b Enable this to support the Meson USB2 PHYs found in Meson8,
and GXBB SoCs. Meson8b and GXBB SoCs.
If unsure, say N. If unsure, say N.
config PHY_MESON_GXL_USB2 config PHY_MESON_GXL_USB2
......
/* /*
* Meson8b and GXBB USB2 PHY driver * Meson8, Meson8b and GXBB USB2 PHY driver
* *
* Copyright (C) 2016 Martin Blumenstingl <martin.blumenstingl@googlemail.com> * Copyright (C) 2016 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
* *
...@@ -266,6 +266,7 @@ static int phy_meson8b_usb2_probe(struct platform_device *pdev) ...@@ -266,6 +266,7 @@ static int phy_meson8b_usb2_probe(struct platform_device *pdev)
} }
static const struct of_device_id phy_meson8b_usb2_of_match[] = { static const struct of_device_id phy_meson8b_usb2_of_match[] = {
{ .compatible = "amlogic,meson8-usb2-phy", },
{ .compatible = "amlogic,meson8b-usb2-phy", }, { .compatible = "amlogic,meson8b-usb2-phy", },
{ .compatible = "amlogic,meson-gxbb-usb2-phy", }, { .compatible = "amlogic,meson-gxbb-usb2-phy", },
{ }, { },
...@@ -282,5 +283,5 @@ static struct platform_driver phy_meson8b_usb2_driver = { ...@@ -282,5 +283,5 @@ static struct platform_driver phy_meson8b_usb2_driver = {
module_platform_driver(phy_meson8b_usb2_driver); module_platform_driver(phy_meson8b_usb2_driver);
MODULE_AUTHOR("Martin Blumenstingl <martin.blumenstingl@googlemail.com>"); MODULE_AUTHOR("Martin Blumenstingl <martin.blumenstingl@googlemail.com>");
MODULE_DESCRIPTION("Meson8b and GXBB USB2 PHY driver"); MODULE_DESCRIPTION("Meson8, Meson8b and GXBB USB2 PHY driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment