mele_a1000g: Add emac_power pin

Just like the original 512Mb RAM version the 1Gb version (a1000g) has a pin
to enable / disable the phy.

Not that actually using this pin may cause autonegotiation issues
(10/100Mbit), there is a fix for this in recent sunxi kernels.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
mele_a1000: Disable unused hardware blocks

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
mele_a1000: Add leds_para section

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
mele_a3700: Add new fex file for the mele a3700

I noticed there is a Mele_A3700 board type in u-boot, but no fex file
in sunxi-boards. Looking at: http://linux-sunxi.org/Mele_A3700

And specifically at:
http://linux-sunxi.org/images/1/1a/Mele_A3700_PCB_TOPa.jpg

I've noticed that it uses the same PCB as my a1000g, without
a sata connecter soldered onto the board. So this patch adds a new
mele_a3700.fex which is a copy of mele_a1000g.fex, with the sata
controller disabled.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
wobo-i5: Add fex file for the wobo-i5 (a10s) tvbox

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
wobo-i5: Disable unused hardware blocks

And the usb-wifi is connected to the OTG controller, correctly reflect this
in the fex.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
wobo-i5: Add leds_para section

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
various: Set usbc2 usb_host_init_state to 1

usb_host_init_state for usbc2 needs to be 1 for the wifi driver to properly
auto-load. I don't have these boards to verify, but these are 512Mb RAM
variants of 1Gb boards I do have, so it is safe to assume this is necessary
with their 512Mb counter-parts too.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
various: Correct iowidth for models which have 4 8bit RAM chips

livesuit generates wrong dram settings for these devices, so the iowidth
we've extracted from the Android image settings is wrong.

Note there may be other cases of the same issue, but this patch only
changes those boards of which I'm sure they have 4 8bit RAM chips in all
their incarnations.

This is not always the case! IE for the mini-x-1gb there are both versions
with 2 - 16 * 256 Mbit RAM chips, as well as versions with 4 - 8 * 256 Mbit
RAM chips, in which case it is safest to use an iowidth of 16.

Note this has a matching commit in u-boot sunxi-current, since the actual
dram settings are done by u-boot, the dram part of the fex-file is just
informational.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
various: Enable pull-up on uart pins

Many boards have the uart pins hooked up to test points, or jumper pins for
debugging use, so most of the time they end up floating.

Sometimes this results in reception of spurious messages. To fix this
allwinner has enabled the pull ups for the uart pins in its evb-1.2 fex
file.

Since most of our fex files are based on the evb-1.2 fex, they already
have the pull ups enabled. But some are based on the older evb-1.1 fex,
this patch enables the pull ups there too.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
ba10_tv_box: Drop gpio section

As this board has no usable io pins

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
ba10_tv_box: Add wifi rfkill functionality

This is useful to have as the device has wired ethernet too, and it
also has a wifi status led which goes on/off together with the wifi.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>