2 * Copyright (C) 2014 Panasonic Corporation
3 * Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
5 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/ehci-uniphier.h>
14 * Create the appropriate control structures to manage
15 * a new EHCI host controller.
17 int ehci_hcd_init(int index, enum usb_init_type init, struct ehci_hccr **hccr,
18 struct ehci_hcor **hcor)
23 uniphier_ehci_reset(index, 0);
25 cr = (struct ehci_hccr *)(uniphier_ehci_platdata[index].base);
26 or = (void *)cr + HC_LENGTH(ehci_readl(&cr->cr_capbase));
34 int ehci_hcd_stop(int index)
36 uniphier_ehci_reset(index, 1);