]> git.sur5r.net Git - u-boot/blob - drivers/usb/host/ehci-ppc4xx.c
ubs: xhci-dwc3: Enable USB3 PHY when available
[u-boot] / drivers / usb / host / ehci-ppc4xx.c
1 /*
2  * (C) Copyright 2010, Chris Zhang <chris@seamicro.com>
3  *
4  * Author: Chris Zhang <chris@seamicro.com>
5  * This code is based on ehci freescale driver
6  *
7  * SPDX-License-Identifier:     GPL-2.0+
8  */
9 #include <common.h>
10 #include <usb.h>
11 #include <asm/io.h>
12
13 #include "ehci.h"
14
15 /*
16  * Create the appropriate control structures to manage
17  * a new EHCI host controller.
18  */
19 int ehci_hcd_init(int index, enum usb_init_type init,
20                 struct ehci_hccr **hccr, struct ehci_hcor **hcor)
21 {
22         *hccr = (struct ehci_hccr *)(CONFIG_SYS_PPC4XX_USB_ADDR);
23         *hcor = (struct ehci_hcor *)((uint32_t) *hccr +
24                 HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
25         return 0;
26 }
27
28 /*
29  * Destroy the appropriate control structures corresponding
30  * the the EHCI host controller.
31  */
32 int ehci_hcd_stop(int index)
33 {
34         return 0;
35 }