~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/drivers/usb/host/ehci-ppc4xx.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
12
#include "ehci.h"
 
13
 
 
14
/*
 
15
 * Create the appropriate control structures to manage
 
16
 * a new EHCI host controller.
 
17
 */
 
18
int ehci_hcd_init(int index, enum usb_init_type init,
 
19
                struct ehci_hccr **hccr, struct ehci_hcor **hcor)
 
20
{
 
21
        *hccr = (struct ehci_hccr *)(CONFIG_SYS_PPC4XX_USB_ADDR);
 
22
        *hcor = (struct ehci_hcor *)((uint32_t) *hccr +
 
23
                HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
 
24
        return 0;
 
25
}
 
26
 
 
27
/*
 
28
 * Destroy the appropriate control structures corresponding
 
29
 * the the EHCI host controller.
 
30
 */
 
31
int ehci_hcd_stop(int index)
 
32
{
 
33
        return 0;
 
34
}