2 * Copyright (C) 2014 Panasonic Corporation
3 * Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef __PLAT_UNIPHIER_EHCI_H
9 #define __PLAT_UNIPHIER_EHCI_H
11 #include <linux/types.h>
15 struct uniphier_ehci_platform_data {
19 extern struct uniphier_ehci_platform_data uniphier_ehci_platdata[];
21 static inline void uniphier_ehci_reset(int index, int on)
25 tmp = readl(MIO_USB_RSTCTRL(index));
27 tmp &= ~MIO_USB_RSTCTRL_XRST;
29 tmp |= MIO_USB_RSTCTRL_XRST;
30 writel(tmp, MIO_USB_RSTCTRL(index));
33 #endif /* __PLAT_UNIPHIER_EHCI_H */