musb: sunxi: fix file encoding to utf-8

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
musb: sunxi: split 'struct sw_hcd_io' to clock and gpio parts

In preparation for moving Allwinner script/fex parts outside of
drivers/usb/musb/ (to arch/arm/plat-sunxi/).

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
musb: sunxi: fix glue pointer for sunxi_musb_exit()

Patch corrects sunxi_musb_exit() to fetch correct glue pointer.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
musb: sunxi: split platform_device setup to separate file

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
musb: sunxi: move gpio to platform side

Move the (troublesome) gpio(/script/fex) parts to platform setup side.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
musb: sunxi: move USBC_ConfigFIFO_Base to platform setup side

This part modifies IO-register that is outside of musb->mregs, so move this
part to platform setup side.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
musb: sunxi: replace pr_dbg with pr_debug

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
musb: sunxi: use DEFINE_RES_* macros

This simplifies the resource definition.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
msub: sunxi: check sunxi arch at runtime

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
musb: sunxi: remove flushing of pending interrupts from musb_sunxi_enable()

Flushing interrupts here prevents peripheral mode from working.

Signed-off-by: Jussi Kivilinna <jussi.kivilina@iki.fi>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
musb: sunxi: make peripheral mode work

Patch makes peripheral/device-mode with sunxi-musb in addition to host-mode.

Script/fex setup is also read to set up correct mode (with OTG setup wired
to device-mode).

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>