sunxi: Move usb-controller init code out of ehci-sunxi.c for reuse for otg
authorHans de Goede <hdegoede@redhat.com>
Wed, 7 Jan 2015 14:08:43 +0000 (15:08 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 14 Jan 2015 13:56:40 +0000 (14:56 +0100)
commit0eccec4ef1431aafb8d67118c515703e6a7f7a3e
tree3b81363222e767536bb3062ff8bc8d834ab79b4d
parent2abac6213d9d05c34fba7dcaa2934668774008a7
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>
arch/arm/cpu/armv7/sunxi/Makefile
arch/arm/cpu/armv7/sunxi/usbc.c [new file with mode: 0644]
arch/arm/include/asm/arch-sunxi/clock_sun4i.h
arch/arm/include/asm/arch-sunxi/clock_sun6i.h
arch/arm/include/asm/arch-sunxi/cpu.h
arch/arm/include/asm/arch-sunxi/usbc.h [new file with mode: 0644]
drivers/usb/host/ehci-sunxi.c
include/configs/sun8i.h