common: fix help command breakage

commit 199adb601ff34bdbbd0667fac80dfe0a87bffc2b "common/misc: sparse
fixes" broke the help command trying to fix the sparse error
"command.c:44:38: error: bad constant expression".

As Henrik points out, the fix was bad because the commit used
CONFIG_SYS_MAXARGS whereas the code intended to use the maximum
number of commands (not arguments to a command).

this patch fixes both by making the allocation manually on the heap.

Reported-by: Henrik Nordström <henrik@henriknordstrom.net>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
ARM: sunxi: Basic Allwinner A10/A13 (sun4i/sun5i) support

This patch 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.

I also added Tom Cubie as original author and added your s-o-b as you will
notice. I hope this is correct. Otherwise just change it.

Still missing it a maintainer entry for those boards in the
MAINTAINERS file. Is this Tom Cubie? Or you?

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: Autodetect DRAM size by using get_ram_size()

With this patch tried to consolidate the DRAM init code a bit.
dramc_get_dram_size() is removed completely. Now get_ram_size() is
called to detect the amount of DRAM by probing some values. This
is the recommended way of doing it in U-Boot.

Signed-off-by: Stefan Roese <sr@denx.de>

ARM: sunxi: Simplify board name definition

By defining the board name in boards.cfg we don't need to add
anything to the configuration header files for new board ports.
The only drawback is that we can't use spaces in names,
like "A13 MID". But I personally don't think this is a big problem.

Signed-off-by: Stefan Roese <sr@denx.de>

clean up boards
ARM sunxi: Rename gpio.c to pinmux.c and split out gpio functions
ARM: sunxi: Add MMC driver

TODO: Commit text and s-o-b's

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: Add sunxi watchdog support

From: Henrik Nordstrom <henrik@henriknordstrom.net>

TODO: S-o-b's: From:, move driver to drivers/watchdog

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

split out from arch/arm/cpu/sunxi/pinmux.c

sunxi gpio: Parse GPIO pin names
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>
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>
mkconfig: Make CONFIG_SYS_BOARD_NAME default to the configured target name

This change makes CONFIG_SYS_BOARD_NAME globally available as the configured
target name, avoiding the need to define manually for boards having multiple
targets sharing the same board implementation.
Makefile: Accept target names in all lower case to ease matching
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>