ARM: sunxi: get script.bin file name from env

All the other files can be overridden by env settings, what's so
special about script.bin?

Use the "script" env variable instead of hard-coding script.bin
everywhere; still defaults to "script.bin", but can be overridden
from uEnv.txt or boot.scr.

Signed-off-by: Patrick Wood <patrickhwood@gmail.com>
sunxi: add board Inet 86vz

Signed-off-by: Luc Verhaegen <libv@skynet.be>
sunxi: Add zatab support

Signed-off-by: Emilio López <emilio@elopez.com.ar>
sunxi: Fix sunxi_dram_init() prototypes

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: correct CLK_DLY configuration loop

It seems that the intention was to index the dqs_dly array with dqs_i and not
clk_i. Using clk_i means that dqs_i is unused in the loop and also causes us to
run off the end of the dqs_dly array resulting in:

In file included from dram.c:34:0:
dram.c: In function ‘dramc_init’:
dram.c:314:15: warning: iteration 7u invokes undefined behavior [-Waggressive-loop-optimizations]
       (dqs_dly[clk_i] & 0x4f) << 14);

(clk_i runs to <15, dqs_i to <7 and dqs_dly[] has 8 entries)

I have not run this on actual hardware. I'm not sure when it is even used
because it is gated on "para->tpr3 & (0x1 << 31)" and AFAICT all
board/sunxi/dram_* files currently in the tree set trp3 to zero.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
cmd_gpio: fix warning with GPIO_OSCILLATE

In do_gpio value is not initialised in the GPIO_OSCILLATE case:

cmd_gpio.c: In function ‘do_gpio’:
cmd_gpio.c:92:2: warning: ‘value’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  return value;
  ^

Returning 0 in this case seems fairly logical.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Cc: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>