ARM: sunxi: Basic Allwinner A10/A13 (sun4i/sun5i) support

This adds support for the Allwinner A10/A13 SoC's. Additionally
board support for the dev-boards sun4i/sun5i is added.

NOTES (remove in final version before submission):
Additionally, I did put some comments for further cleanup into the
code. Search for "test-only" to find those.

And should Tom's email address be changed? He is not working for Allwinner
any more. Correct?

Signed-off-by: Tom Cubie <tangliang@allwinnertech.com>
Signed-off-by: Henrik Nordström <henrik@henriknordstrom.net>
Signed-off-by: Stefan Roese <sr@denx.de>
ARM: sunxi: MMC driver

This adds a basic MMC driver for Allwinner sun4i/sun5i family of SoC
this driver is limited to a single MMC channel.

Signed-off-by: Tom Cubie <tangliang@allwinnertech.com>
Signed-off-by: Henrik Nodstrom <henrik@henriknordstrom.net>
Signed-off-by: Stefan Roese <sr@denx.de>
ARM: sunxi: Add sunxi I2C driver

Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: Stefan Roese <sr@denx.de>
ARM: sunxi: watchdog support

This adds support for the hardware watchdog in Allwinner
sun4i & sun5i (sunxi) SoC familiy.

From: Henrik Nordstrom <henrik@henriknordstrom.net>

Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: Stefan Roese <sr@denx.de>
power: Add AXP209 Power Management controller (I2C)

From: Henrik Nordstrom <henrik@henriknordstrom.net>

This adds support for AXP209 Power Management controller,
used by most sunxi (Allwinner A10/A13) based boards.

TODO: Address test-only comment

Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: Stefan Roese <sr@denx.de>
ARM sunxi: Basic GPIO driver

GPIO driver for Allwinner sun4i/sun5i family of SoCs

GPIO Pins are named by their symbolic pin names P<g><#>
such as PH19 or H19.

Note: This do not perform any validation if the pin is in use
for some other I/O function. Use with care.
sunxi: mksunixboot adding sunxi boot header

From: Tom Cubie <Mr.hipboi@gmail.com>

TODO: Reword commit subject and add commit text
And addres test-only comment in code (#if 1)

Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: Stefan Roese <sr@denx.de>
ARM: sunxi: U-Boot SPL capable of booting directly from MMC

From: Henrik Nordstrom <henrik@henriknordstromnet>

 - Runs from internal SRAM
 - Configures clocks & power management
 - Initializes SDRAM controller

TODO: Commit text,

Signed-off-by: Tom Cubie <tangliang@allwinnertech.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>

sunxi: Remove obsolete and misgiving CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS

was replaced by CONFIG_SYS_MONITOR_LEN some time ago but leftover in sunxi config

sunxi: Remove watchdog boot cmd. Not in patchqueue
ARM sunxi: Add SPL definitions for A13 OLinuXIno and Mele A1000 boards

From: Henrik Nordstrom <henrik@henriknordstrom.net>

Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
ARM sunxi: add SPL board definition for cubieboard

From: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: Alejandro Mery <amery@geeks.cl>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: Stefan Roese <sr@denx.de>
ARM sunxi: Hackberry 1GB SPL board definition

From: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: J M <mtx512jm@gmail.com>
ARM sunxi: a13_mid board definition

From:    Jari Helaakoski <tekkuli@gmail.com>
Signed-off-by: Jari Helaakoski <tekkuli@gmail.com>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
ARM sunxi: add mini-x board SPL support

From: Jari Helaakoski <tekkuli@gmail.com>
Signed-off-by: Jari Helaakoski <tekkuli@gmail.com>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
sunxi: Make use of default provided CONFIG_SYS_BOARD_NAME
net: Add sunxi (Allwinner) wemac driver

This patch adds support for the WEMAC, the ethernet controller included
in the Allwinner A10 SoC. It will get used in the upcoming A10 board
support.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>

net sunxi_wemac. Use sunxi gpio pinmux API to configure MII pins

net wemac: Implement PHY addressing
ARM: sun4i: Enable ethernet support (wemac) on A10 boards

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
sunxi: Add more network commands and netconsole support