Overal codebase cleanup

This patch tries to improve concistency and cleans up things to make
checkpatch happy. (Except while errors :S )

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
Less magic for the watchdog timer

This started out as a cleanup of the wdt to remove some magic values but
turned into somewhat of a rewrite and relocate patch.

The only big change and 'gotcha' is that you actually use a watchdog
time of 0 now. Allwinner made 0 to be 0.5 seconds, the fastest followed
by 1 for etc. upto 16 seconds, the maximum. There are some gaps in the
allwinner tables, those timings are rounded up to nearest second up. To
disable the WDT anything above 16 suffices.

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

Remove magic values and use defines

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
Fix tabs in Makefile

cmd_watchdog and watchdog use spaces instead of tabs

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
sunxi: Correct the new watchdog_set() implementation

Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
sunxi: DRAM & CCM register dump debug functions

Signed-off-by: Luke Leighton <lkcl@lkcl.net>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
sunxi: Allwinner SUN7I (A20) support

add a20 dram setup

Supply para->tpr3 as phase argument to dll0 and dllx setup

create CONFIG_SUN7I

SUN7I is using the same MMC controller as SUN5I

Signed-off-by: Luke Leighton <lkcl@lkcl.net>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
add sun7i.h header

Cleanup sun7i config

Update my copyright

Signed-off-by: Luke Leighton <lkcl@lkcl.net>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
add eoma68-a20

use a10_meminfo_static values

Cleanup sun7i config

Signed-off-by: Luke Leighton <lkcl@lkcl.net>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
sunxi: Add A20-OLinuXIno board
sunxi: Add status led to A20-OLinuXino board
sunxi: Add Cubieboard2 (A20 on Cubieboard rev 2012-09-09)

dram_para is taken from script.bin/dmesg on Android 4.2 image
Merge pull request #3 from naobsd/wip/a20

sunxi: Add Cubieboard2 (A20 on Cubieboard rev 2012-09-09)
DRAM controller magic values cleanup

This patch tries to cleanup as much of the magic values in dram.c as
possible. Obviously for some registers we have no information so cannot
fill those in. No actually code changes where made. This patch is based
on the most recent dram.c; e.g. from A20.

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