USB: gadget: android: fix build

This lets us build the android gadget again.

Signed-off-by: Emilio López <turl@linux-sunxi.org>
video:sunxi:Fix compilation with -j1

__hdle is also defined in bsp_display.h
video:sunxi:Silence syslog flood with android
video:sunxi:Fix sun7i compilation

fixup for e14e8b2e448dc7c71082dc0a9270f67365205b57
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>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Add Full Duplex support to SPI (v2)

This patch adds full duplex support to the spi_sunxi driver.

v2 - Fix compile error when CONFIG_SUN4I_SPI_NDMA is set.

Signed-off-by: Simon Ratcliffe <simon@proatomic.com.au>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Rename sunx5i-ir to sunxi-ir as start of unification

No code changes took place and internally the ir driver doesn't call
itself sunxi

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-ir fix coding style

All check patch things where cleaned up (except debug printing and line
length).

Also most/all FGPA references where removed. They where commented out or
defined-out anyway.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Unify sun4i and sun5i IR driver

This unifies the two drivers into one. It still needs to be compiled per
arch. While both IR0 an IR1 are defined for sun4i (2 IR controllers)
only IR0 is actually used in the code.

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Drop sun3i from stage/sunxi-3.4

This patchset drops the sun3i architecture from the kernel tree. The
main reason is that it is unsupported, unmaintained and untested. It is
in a bitrotten state and nobody uses it anymore.

If anybody wants to step up and clean up, unify and maintain sun3i, this
is your last chance!

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-8250: Fix uart init for A13

The A13 does not have uart2, but it does have uart3.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-usb: common: make stack spinlock static instead

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

[v2]:
 - Use 'ehci-hcd.c:ehci_setup()' as it does about the same that v1 replicated
   into 'ehci-sunxi.c'.
 - As ehci_setup() is used, we can also remove duplicate code from
   sw_ehci_hcd_probe().

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

[v2]:
 - Use SW_USB_OHCI_LEN for resource size

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

[v2]:
 - Use SW_USB_EHCI_LEN for resource size

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

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-usb: Fix the length of OHCI and EHCI registers

Signed-off-by: Arokux <arokux@gmail.com>
sunxi-usb: Use DEFINE_RES_* macros to simplify code

Signed-off-by: Arokux <arokux@gmail.com>
sunxi-usb: Do not check usb_disabled()

usb_disabled() is checked in the {e,o}hci-hcd.c

Signed-off-by: Arokux <arokux@gmail.com>
sunxi-usb: Remove unused includes

Signed-off-by: Arokux <arokux@gmail.com>