mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-04 18:41:03 +00:00
246e3b8787
The usb0 / otg phy on sunxi boards has a bug where it wrongly detects a high speed squelch on usb reset deassert when a lo speed device is plugged in. The android kernel has a work around for this in the form of temporary disabling the phy's squelch detection on reset deassert, this commit adds the same workaround to the u-boot sunxi musb code, thereby fixing various usb lo speed devices not working. Tested with a (before non working) usb keyboard and a usb 2.4 GHz wireless keyboard/mouse combo receiver. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
23 lines
679 B
C
23 lines
679 B
C
/*
|
|
* Sunxi usb-controller code shared between the ehci and musb controllers
|
|
*
|
|
* Copyright (C) 2014 Roman Byshko
|
|
*
|
|
* Roman Byshko <rbyshko@gmail.com>
|
|
*
|
|
* Based on code from
|
|
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
extern const struct musb_platform_ops sunxi_musb_ops;
|
|
|
|
void *sunxi_usbc_get_io_base(int index);
|
|
int sunxi_usbc_request_resources(int index);
|
|
int sunxi_usbc_free_resources(int index);
|
|
void sunxi_usbc_enable(int index);
|
|
void sunxi_usbc_disable(int index);
|
|
void sunxi_usbc_vbus_enable(int index);
|
|
void sunxi_usbc_vbus_disable(int index);
|
|
void sunxi_usbc_enable_squelch_detect(int index, int enable);
|