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.
45 lines
905 B
45 lines
905 B
/*
|
|
* Copyright (C) 2015 Alexey Brodkin <abrodkin@synopsys.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include "ohci.h"
|
|
|
|
#if !defined(CONFIG_USB_OHCI_NEW)
|
|
# error "Generic OHCI driver requires CONFIG_USB_OHCI_NEW"
|
|
#endif
|
|
|
|
struct generic_ohci {
|
|
ohci_t ohci;
|
|
};
|
|
|
|
static int ohci_usb_probe(struct udevice *dev)
|
|
{
|
|
struct ohci_regs *regs = (struct ohci_regs *)dev_get_addr(dev);
|
|
|
|
return ohci_register(dev, regs);
|
|
}
|
|
|
|
static int ohci_usb_remove(struct udevice *dev)
|
|
{
|
|
return ohci_deregister(dev);
|
|
}
|
|
|
|
static const struct udevice_id ohci_usb_ids[] = {
|
|
{ .compatible = "generic-ohci" },
|
|
{ }
|
|
};
|
|
|
|
U_BOOT_DRIVER(ohci_generic) = {
|
|
.name = "ohci_generic",
|
|
.id = UCLASS_USB,
|
|
.of_match = ohci_usb_ids,
|
|
.probe = ohci_usb_probe,
|
|
.remove = ohci_usb_remove,
|
|
.ops = &ohci_usb_ops,
|
|
.priv_auto_alloc_size = sizeof(struct generic_ohci),
|
|
.flags = DM_FLAG_ALLOC_PRIV_DMA,
|
|
};
|
|
|