upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
766 B
39 lines
766 B
/*
|
|
* Copyright (C) 2014 Panasonic Corporation
|
|
* Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <usb.h>
|
|
#include <asm/arch/ehci-uniphier.h>
|
|
#include "ehci.h"
|
|
|
|
/*
|
|
* Create the appropriate control structures to manage
|
|
* a new EHCI host controller.
|
|
*/
|
|
int ehci_hcd_init(int index, enum usb_init_type init, struct ehci_hccr **hccr,
|
|
struct ehci_hcor **hcor)
|
|
{
|
|
struct ehci_hccr *cr;
|
|
struct ehci_hcor *or;
|
|
|
|
uniphier_ehci_reset(index, 0);
|
|
|
|
cr = (struct ehci_hccr *)(uniphier_ehci_platdata[index].base);
|
|
or = (void *)cr + HC_LENGTH(ehci_readl(&cr->cr_capbase));
|
|
|
|
*hccr = cr;
|
|
*hcor = or;
|
|
|
|
return 0;
|
|
}
|
|
|
|
int ehci_hcd_stop(int index)
|
|
{
|
|
uniphier_ehci_reset(index, 1);
|
|
|
|
return 0;
|
|
}
|
|
|