sun7i: fix debug macro build.

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
sun7i-cpufreq: Fix dvfs support

Make dvfs support compile and change sunxi_cpufreq_initcall from a
module_init function to a late_initcall (*), so that it loads after the
axp power driver, and thus can get to the Vcore regulator.

*) sun7i-cpufreq is never build as a module.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun7i: select PLAT_SUNXI

merge irqs.h into plat-sunxi

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
sun7i: Switch to using soc-detect.c

And also cleanup various headers to fix build breakage caused by the switch.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun7i: Invert meaning of clk_reset reset parameter

The sun7i code from allwinner has changed the clk_reset function parameter
from an int to an enum, and that has the values (0 or 1) exactly reversed
of the previous parameters meaning.

Switch it back to how it was with sun4i / sun5i to avoid the need to add

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-mmc: Add support for A20

Make sunxi-mmcm build (and work!) with sun7i as arch.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-ehci/ohci: Add support for A20

And we've working USB (for the 2 regular controllers) !

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-hdmi-cec: Do not define own highres counter functionality

This is unnecessary code duplication, and more over, the implementation is
wrong as it sets the latch bit, but does not wait for it to clear again
before reading the counter. Which causes hdmi_delay_us to hang on mach-sun7i.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun7i: Fix warning in timer.c

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
video-sunxi: Add A20 support

Tested on the cubieboard2, with several different dvi/hdmi monitors. Note
lcd / vga / composite out is not tested.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
video-sunxi: Fix interlaced modes being broken with the scaler disabled

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-nand-compat: Fix compiler warning

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: Unify platform.h

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
i2c-sunxi: Add support for A20

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: Unify devices.c

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun7i-cpufreq: Sanitize log output

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
i2c-sunxi: Silence initialization

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
usb:sun4i:Rename sun4i_usb to sunxi_usb

No other changes. Just rename everything to point sunxi_usb directory instead of sun4i_usb.

Signed-off-by: Jari Helaakoski <tekkuli@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
usb:sunxi:Merge sun5i_usb to sunxi_usb

Differences ifdef'ed.

Signed-off-by: Jari Helaakoski <tekkuli@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
usb:sunxi:Import changes from Allwinner SDK. Unification part.

Compared to latest SDK. Reduce sun4i and sun5i differences.

Signed-off-by: Jari Helaakoski <tekkuli@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>