diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2020-03-30 11:27:24 +0200 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2020-04-20 14:19:10 +0200 |
commit | 838c0af9d25daa6f783acf0091deca0512baf0df (patch) | |
tree | 4c2efbd15f42f13832e62e6c64abbc854ffddcd8 /arch | |
parent | c2b9aa98bf44e9537222c5c8d6ea365d5220f2e4 (diff) | |
download | u-boot-838c0af9d25daa6f783acf0091deca0512baf0df.tar.gz u-boot-838c0af9d25daa6f783acf0091deca0512baf0df.tar.xz u-boot-838c0af9d25daa6f783acf0091deca0512baf0df.zip |
phy: meson-gxl-usb: add set_mode call to force switch to peripheral mode
Add set_mode function in the Amlogic GXL PHYs that will be called by
the arch code to switch PHYs from/to gadget mode.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/include/asm/arch-meson/usb-gx.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-meson/usb-gx.h b/arch/arm/include/asm/arch-meson/usb-gx.h new file mode 100644 index 0000000000..aeb8e0c673 --- /dev/null +++ b/arch/arm/include/asm/arch-meson/usb-gx.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2019 BayLibre SAS + * Author: Neil Armstrong <narmstrong@baylibre.com> + */ +#ifndef _ARCH_MESON_USB_GX_H_ +#define _ARCH_MESON_USB_GX_H_ + +#include <generic-phy.h> +#include <linux/usb/otg.h> + +/* TOFIX add set_mode to struct phy_ops */ +void phy_meson_gxl_usb2_set_mode(struct phy *phy, enum usb_dr_mode mode); +void phy_meson_gxl_usb3_set_mode(struct phy *phy, enum usb_dr_mode mode); + +#endif |