blob: ab0f272e4151aa8f033cc88ef45327c2fca592b8 [file] [log] [blame]
Hans de Goede0eccec42015-01-07 15:08:43 +01001/*
2 * Sunxi usb-controller code shared between the ehci and musb controllers
3 *
4 * Copyright (C) 2014 Roman Byshko
5 *
6 * Roman Byshko <rbyshko@gmail.com>
7 *
8 * Based on code from
9 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
10 *
11 * SPDX-License-Identifier: GPL-2.0+
12 */
13
Hans de Goede1a800f72015-01-11 17:17:00 +010014extern const struct musb_platform_ops sunxi_musb_ops;
15
Hans de Goede0eccec42015-01-07 15:08:43 +010016void *sunxi_usbc_get_io_base(int index);
17int sunxi_usbc_request_resources(int index);
18int sunxi_usbc_free_resources(int index);
19void sunxi_usbc_enable(int index);
20void sunxi_usbc_disable(int index);
21void sunxi_usbc_vbus_enable(int index);
22void sunxi_usbc_vbus_disable(int index);
Paul Kocialkowskiebd468b2015-03-22 18:07:12 +010023int sunxi_usbc_vbus_detect(int index);
Hans de Goede246e3b82015-03-27 20:54:25 +010024void sunxi_usbc_enable_squelch_detect(int index, int enable);