summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-sunxi/usbc.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-01-07 15:08:43 +0100
committerHans de Goede <hdegoede@redhat.com>2015-01-14 14:56:40 +0100
commit0eccec4ef1431aafb8d67118c515703e6a7f7a3e (patch)
tree3b81363222e767536bb3062ff8bc8d834ab79b4d /arch/arm/include/asm/arch-sunxi/usbc.h
parent2abac6213d9d05c34fba7dcaa2934668774008a7 (diff)
downloadu-boot-imx-0eccec4ef1431aafb8d67118c515703e6a7f7a3e.zip
u-boot-imx-0eccec4ef1431aafb8d67118c515703e6a7f7a3e.tar.gz
u-boot-imx-0eccec4ef1431aafb8d67118c515703e6a7f7a3e.tar.bz2
sunxi: Move usb-controller init code out of ehci-sunxi.c for reuse for otg
Most of the usb-controller init code found in ehci-sunxi.c also is necessary to init the otg usb controller, so move it to a common place. While at it also update various #ifdefs / defines for sun8i support. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'arch/arm/include/asm/arch-sunxi/usbc.h')
-rw-r--r--arch/arm/include/asm/arch-sunxi/usbc.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/usbc.h b/arch/arm/include/asm/arch-sunxi/usbc.h
new file mode 100644
index 0000000..8d20973
--- /dev/null
+++ b/arch/arm/include/asm/arch-sunxi/usbc.h
@@ -0,0 +1,20 @@
+/*
+ * 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+
+ */
+
+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);