sunxi: diable Falcon boot on sun4i & sun7i

Unfortunately it turns out that only sun5i accepts larger SPL images,
and many GCC versions procude an SPL larger than 24KB with Falcon boot
enabled, so we have to keep it disabled until a KB can be shaved off
elsewhere.

All sun5i boards have Falcon mode enabled by default.

Some sun4i/sun7i boards have a separate .._Falcon board type to experiment
with Falcon boot support. But you will need to select toolchain carefully
to generate an SPL that is <24KiB, Linaro GCC 4.7 2013.04 is known to work.

    A20-OLinuXino_MICRO_Falcon
    Cubieboard_Falcon
    Cubieboard2_Falcon
sunxi: Enable thumbs mode by default, allowing sun4i & sun7i to support Falcon boot
sunxi: Build only full SPL in thumbs mode
sunxi: Remove temporary xxx_Falcon board names. Falcon boot mode is always enbaled now
sunxi: set arch timer CNTFRQ

This needs to be set by firmware so OSes can use the arch timers. The Xen
hypervisor for example makes use of this.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
Add STATUSLED1 definitions for Cubieboard.

Useful for verifying U-boot works.

Signed-off-by: Tommie Gannert <tommie@gannert.se>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
sunxi: Add ledd support (should move much earlier in history)
ARM: sunxi: Add all of the cubietruck's leds

The cubietruck has 4 LEDS (plus a red 5th for the power) connected to
GPIO's.

This patch adds support for all 4 leds.

STATUSLED0 PH21 (gpio 245) Blue
STATUSLED1 PH20 (gpio 244) Orange
STATUSLED2 PH11 (gpio 235) White
STATUSLED3 PH07 (gpio 231) Green

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>

Conflicts:
	boards.cfg
sunxi: Fix sunxi_dram_init declaration for mk802ii_a20

Changed sunxi_dram_init return value from int to unsigned long
to match updated dram.h prototype.

Signed-off-by: Patrick Wood <patrickhwood@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
U-Boot support for A10-OLinuXino-LIME

Hi All,
this patch adds support to u-boot for  A10-OLinuXino-LIME board.

~Best,
Dimitar

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>

Conflicts:
	boards.cfg
sunxi: fix CCM MBUS N factor interpretation

N is stored as the exponent of a power of two, so 8 needs to return 3,
4 needs to return 2, etc.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: fast MBUS support on sun7i

For qualifying hardware, we can run MBUS at 400MHz without risking
stability if we raise the DCDC3 voltage to 1.3V

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: enable 400MHz MBUS on Cubieboard2 and Cubietruck

This has been tested on 50 pieces of Cubieboard2 by Cubietech and no
issues of any kind were reported.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Conflicts:
	boards.cfg
sun5i: Give PLL6 a sane initial value

The upstream kernel does not override PLL values as set by power-on-reset
and/or the bootloader if it can avoid doing so.

The power-on-reset value for PLL6 is 2400MHz, which does not actually work,
the kernel does not know this and 2400 / 48 is 50 MHz, so the kernel happily
tries to use it as is for mmc.

Set PLL6 to a working frequency so that the kernel can use it. This fixes
mmc in the upstream kernel not working on sun5i.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: Add Jesurun-Q5 board

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

Conflicts:
	board/sunxi/Makefile
	boards.cfg
sunxi: fix gpio pull mask

Signed-off-by: Ma Haijun <mahaijuns@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
net/designware: Reduce DMA burst length

The GMAC module in Allwinner sunxi SoCs seems to have problems with
burst lenghts > 8.

Signed-off-by: Jens Kuske <jenskuske@gmail.com>
ARM: sunxi: Add GMAC base address and clocks

Signed-off-by: Jens Kuske <jenskuske@gmail.com>
ARM: sunxi: Add GMAC driver

The existing net/designware driver can be used for sunxi GMAC.

Signed-off-by: Jens Kuske <jenskuske@gmail.com>
ARM: sunxi: Let cubietruck use the GMAC driver

Signed-off-by: Jens Kuske <jenskuske@gmail.com>

Conflicts:
	boards.cfg