Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
25 lines
650 B
C
25 lines
650 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _AM335x_PHY_CONTROL_H_
|
|
#define _AM335x_PHY_CONTROL_H_
|
|
|
|
struct phy_control {
|
|
void (*phy_power)(struct phy_control *phy_ctrl, u32 id,
|
|
enum usb_dr_mode dr_mode, bool on);
|
|
void (*phy_wkup)(struct phy_control *phy_ctrl, u32 id, bool on);
|
|
};
|
|
|
|
static inline void phy_ctrl_power(struct phy_control *phy_ctrl, u32 id,
|
|
enum usb_dr_mode dr_mode, bool on)
|
|
{
|
|
phy_ctrl->phy_power(phy_ctrl, id, dr_mode, on);
|
|
}
|
|
|
|
static inline void phy_ctrl_wkup(struct phy_control *phy_ctrl, u32 id, bool on)
|
|
{
|
|
phy_ctrl->phy_wkup(phy_ctrl, id, on);
|
|
}
|
|
|
|
struct phy_control *am335x_get_phy_control(struct device *dev);
|
|
|
|
#endif
|