linux/drivers/phy/broadcom/phy-brcm-usb-init.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2014-2017 Broadcom
 */

#ifndef _USB_BRCM_COMMON_INIT_H
#define _USB_BRCM_COMMON_INIT_H

#include <linux/regmap.h>

#define USB_CTLR_MODE_HOST
#define USB_CTLR_MODE_DEVICE
#define USB_CTLR_MODE_DRD
#define USB_CTLR_MODE_TYPEC_PD

enum brcmusb_reg_sel {};

#define USB_CTRL_REG(base, reg)
#define USB_XHCI_EC_REG(base, reg)
#define USB_CTRL_MASK(reg, field)
#define USB_CTRL_SET(base, reg, field)
#define USB_CTRL_UNSET(base, reg, field)

#define USB_XHCI_GBL_REG(base, reg)
#define USB_XHCI_GBL_SET(base, reg, field)
#define USB_XHCI_GBL_UNSET(base, reg, field)

struct  brcm_usb_init_params;

struct brcm_usb_init_ops {};

struct  brcm_usb_init_params {};

void brcm_usb_dvr_init_4908(struct brcm_usb_init_params *params);
void brcm_usb_dvr_init_7445(struct brcm_usb_init_params *params);
void brcm_usb_dvr_init_7216(struct brcm_usb_init_params *params);
void brcm_usb_dvr_init_7211b0(struct brcm_usb_init_params *params);

static inline u32 brcm_usb_readl(void __iomem *addr)
{}

static inline void brcm_usb_writel(u32 val, void __iomem *addr)
{}

static inline void brcm_usb_ctrl_unset(void __iomem *reg, u32 mask)
{
	brcm_usb_writel(brcm_usb_readl(reg) & ~(mask), reg);
};

static inline void brcm_usb_ctrl_set(void __iomem *reg, u32 mask)
{
	brcm_usb_writel(brcm_usb_readl(reg) | (mask), reg);
};

static inline void brcm_usb_init_ipp(struct brcm_usb_init_params *ini)
{}

static inline void brcm_usb_init_common(struct brcm_usb_init_params *ini)
{}

static inline void brcm_usb_init_eohci(struct brcm_usb_init_params *ini)
{}

static inline void brcm_usb_init_xhci(struct brcm_usb_init_params *ini)
{}

static inline void brcm_usb_uninit_common(struct brcm_usb_init_params *ini)
{}

static inline void brcm_usb_uninit_eohci(struct brcm_usb_init_params *ini)
{}

static inline void brcm_usb_uninit_xhci(struct brcm_usb_init_params *ini)
{}

static inline int brcm_usb_get_dual_select(struct brcm_usb_init_params *ini)
{}

static inline void brcm_usb_set_dual_select(struct brcm_usb_init_params *ini)
{}

#endif /* _USB_BRCM_COMMON_INIT_H */