sunxi-usb: fix the alignment calculation for non-aligned buffer workaround

Fix alignment calculation that sets alignment off by one. New code uses
pointer type sizes for correct calculation.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
sunxi-usb: common: make stack spinlock static instead

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
sunxi-usb: ehci: fix the FIXME for sw_ehci_hc_driver.reset

The reset function from ehci-ppc-soc appears to work just fine.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
sunxi-usb: ohci: convert to use platform device resources

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
sunxi-usb: ehci: convert to use platform device resources

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
sunxi-hci: common: remove unused first entries from EHCI&OHCI platform device arrays

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
sunxi_usb: allow configuring sunxi_usb OTG driver

USB_SW_SUNXI_USB depends on ARCH_SUNXI, which does not exist. Use (ARCH_SUN4I || ARCH_SUN5I) instead.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
sunxi_usb: remove duplicate reg base definations

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
sunxi_usb: trim some unused parts from usbc/usbc.c

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
sunxi_usb: use platform resources

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
musb: add host-mode sunxi support

This patch adds preliminary host-mode SUNXI support to MUSB OTG driver.

Things do not works correctly yet; there are problems with VBUS handling so
USB devices are not working stably yet.

Notes:
 - musb and sw_usb are based on same codebase.
 - sw_usb has DMA code disabled and PIO only mode is used.
 - Allwinner/sunxi musb register offsets are different from Texas Instruments'.
   Currently this is not problem, as musb only supports one "Platform Glue
   Layer" at a time (see ifdefs in current code). If multiarch is added to
   musb, musb needs to be changed to support different register mappings on
   runtime.

not-yet-signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>