mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 05:12:49 +00:00
9cad72dfc5
The RZ/V2M USB3.1 Gen1 Interface (USB) composed of a USB3.1 Gen1 Dual Role Device controller (USB3DRD), a USB3.1 Gen1 Host controller (USB3HOST), a USB3.1 Gen1 Peripheral controller (USB3PERI). The reset for both host and peri are located in USB3DRD block. The USB3DRD registers are mapped in the AXI address space of the Peripheral module. Add USB3DRD driver to handle reset for both host and peri modules. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Link: https://lore.kernel.org/r/20230121145853.4792-6-biju.das.jz@bp.renesas.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20 lines
450 B
C
20 lines
450 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __RZV2M_USB3DRD_H
|
|
#define __RZV2M_USB3DRD_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct rzv2m_usb3drd {
|
|
void __iomem *reg;
|
|
int drd_irq;
|
|
struct device *dev;
|
|
struct reset_control *drd_rstc;
|
|
};
|
|
|
|
#if IS_ENABLED(CONFIG_USB_RZV2M_USB3DRD)
|
|
void rzv2m_usb3drd_reset(struct device *dev, bool host);
|
|
#else
|
|
static inline void rzv2m_usb3drd_reset(struct device *dev, bool host) { }
|
|
#endif
|
|
|
|
#endif /* __RZV2M_USB3DRD_H */
|