sunxi: Use udelay() in dramc_init rather than sdelay()

Use udelay() in raminit code, as the delays provided by sdelay depend
on a number of variables, including the CPU clock. udelay() is already
implemented via timer 0.
We measured about 8 loops/tick (timer @ 24MHz), or about about 192
sdelay loops per microsecond. Hence why the arguments to udelay are
192 times lower than the arguments to sdelay to provide the same
delay.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
sunxi/timer: Prevent overflow condition in udelay

The timer ticks were calculated by first multiplying the usec
parameter by 24000, then dividing by 1000. This would cause an
overflow on delays greater than about 178 milliseconds. Instead, use
the USEC_TO_COUNT() macro, which overflows only if the timer rolls
over.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
sunxi: A10-OLinuXino-Lime support fixup

Fix:
-code indentation
-dram timings, the used cas and tpr0 - tpr2 were typical sun5i / sun7i
 settings, while they should be sun4i settings
-Properly sort boards.cfg entry
-Add status led support

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: introduce an optional regulator for GMAC

Some board has a dedicated regulator to power MAC and PHY.
This patch assume it is a active high gpio controlled regulator.
sunxi: add support for Hummingbird board

It is like a mixture of Cubieboard2 and Cubietruck, features 1GB DRAM and GMAC.
This patch use the DRAM parameters of Cubieboard2, which seems work well,
so I do not bother to add yet another dram_xxxx.c .
Additionally, this board needs a little more work to initialize GMAC,
see previous regulator for GMAC patch.

Signed-off-by: Ma Haijun <mahaijuns@gmail.com>