1 // SPDX-License-Identifier: GPL-2.0
3 * xHCI host controller driver for RZ/V2M
5 * Copyright (C) 2022 Renesas Electronics Corporation
8 #include <linux/usb/rzv2m_usb3drd.h>
10 #include "xhci-rzv2m.h"
12 #define RZV2M_USB3_INTEN 0x1044 /* Interrupt Enable */
14 #define RZV2M_USB3_INT_XHC_ENA BIT(0)
15 #define RZV2M_USB3_INT_HSE_ENA BIT(2)
16 #define RZV2M_USB3_INT_ENA_VAL (RZV2M_USB3_INT_XHC_ENA \
17 | RZV2M_USB3_INT_HSE_ENA)
19 int xhci_rzv2m_init_quirk(struct usb_hcd *hcd)
21 struct device *dev = hcd->self.controller;
23 rzv2m_usb3drd_reset(dev->parent, true);
28 void xhci_rzv2m_start(struct usb_hcd *hcd)
33 /* Interrupt Enable */
34 int_en = readl(hcd->regs + RZV2M_USB3_INTEN);
35 int_en |= RZV2M_USB3_INT_ENA_VAL;
36 writel(int_en, hcd->regs + RZV2M_USB3_INTEN);