blob: 462fcfbe4ffa7548a12c299f7324ced9b1e0f5f3 [file] [log] [blame]
Chris Zhang5f828872010-01-06 13:34:05 -08001/*
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 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Chris Zhang5f828872010-01-06 13:34:05 -08008 */
9#include <common.h>
10#include <usb.h>
11
12#include "ehci.h"
Chris Zhang5f828872010-01-06 13:34:05 -080013
14/*
15 * Create the appropriate control structures to manage
16 * a new EHCI host controller.
17 */
Lucas Stach676ae062012-09-26 00:14:35 +020018int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor)
Chris Zhang5f828872010-01-06 13:34:05 -080019{
Lucas Stach676ae062012-09-26 00:14:35 +020020 *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)));
Chris Zhang5f828872010-01-06 13:34:05 -080023 return 0;
24}
25
26/*
27 * Destroy the appropriate control structures corresponding
28 * the the EHCI host controller.
29 */
Lucas Stach676ae062012-09-26 00:14:35 +020030int ehci_hcd_stop(int index)
Chris Zhang5f828872010-01-06 13:34:05 -080031{
32 return 0;
33}