]> git.ipfire.org Git - thirdparty/u-boot.git/blame - drivers/usb/host/ehci-ppc4xx.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[thirdparty/u-boot.git] / drivers / usb / host / ehci-ppc4xx.c
CommitLineData
5f82887f
CZ
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 *
1a459660 7 * SPDX-License-Identifier: GPL-2.0+
5f82887f
CZ
8 */
9#include <common.h>
10#include <usb.h>
11
12#include "ehci.h"
5f82887f
CZ
13
14/*
15 * Create the appropriate control structures to manage
16 * a new EHCI host controller.
17 */
676ae068 18int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor)
5f82887f 19{
676ae068
LS
20 *hccr = (struct ehci_hccr *)(CONFIG_SYS_PPC4XX_USB_ADDR);
21 *hcor = (struct ehci_hcor *)((uint32_t) *hccr +
22 HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
5f82887f
CZ
23 return 0;
24}
25
26/*
27 * Destroy the appropriate control structures corresponding
28 * the the EHCI host controller.
29 */
676ae068 30int ehci_hcd_stop(int index)
5f82887f
CZ
31{
32 return 0;
33}