sunxi: Fixup __devinit usage
rtl8189es: Add new wireless driver

This adds the rtl8188eu dir from rtl8188eu.zip from:
http://gutspot.com/wp-content/uploads/2013/01/8188eu_USB_linux.zip
Which is the latest version I can find, as drivers/net/wireless/rtl8189es
with all line-endings converted from dos to unix and
rtl8189es/autoconf_rtl8189e_sdio_linux.h copied to rtl8189es/include/autoconf.h

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
rtl8723as: Add new wireless driver

Add several drivers for various realtek chipsets. The code is taken from the
i-onik.de source and the 8188eu driver has been tested.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
rtxx7x: Add new wireless driver

Add several drivers for various realtek chipsets. The code is taken from the
i-onik.de source and the 8188eu driver has been tested.

HdG: Note this is not a realtek but a Ralink driver.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
rtl818x: Hookup the new wireless drivers

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
net:wireless: adapt rtl drivers for plat-sunxi
mmc-pm: Add support for a couple of new sdio wifi card types

From the i-onik.de sources.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-mmc: Make sunximmc_rescan_card work if called before module-init

The init order of builtin modules is not guaranteed, so mmc_pm
init may get called first, leading to sunximmc_rescan_card being called before
the sunxi-host mmc module is initialized itself.

This patch makes this scenario work by remembering the rescan request, and
executing it on module init.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
rtl8189es: Make module auto-load

Add a proper sdio: module-alias and move the initial powerup + rescan to
rtl8189es_wifi_gpio_init, so that the wifi module gets auto-loaded if
enabled in the fex file. This assumes that mmc_pm is build into the kernel,
as mmc_pm is the one doing the sdio_wifi_para fex section parsing.

If mmc_pm is not buildin it will need to be loaded manually (just as before),
and then on mmc_pm load rtl8189es will be autoloaded.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
rtl8723as: Make module auto-load

Add a proper sdio: module-alias and move the initial powerup + rescan to
rtl8723as_wifi_gpio_init, so that the wifi module gets auto-loaded if
enabled in the fex file. This assumes that mmc_pm is build into the kernel,
as mmc_pm is the one doing the sdio_wifi_para fex section parsing.

If mmc_pm is not buildin it will need to be loaded manually (just as before),
and then on mmc_pm load rtl8723as will be autoloaded.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: disambiguate sw_get_ic_ver()'s enum

Signed-off-by: Alejandro Mery <amery@geeks.cl>
sunxi: soc-detect: move sw_get_ic_ver() to a separated module

Signed-off-by: Alejandro Mery <amery@geeks.cl>
sunxi:soc-detect: move sunxi_chip_id() out of core.c

Signed-off-by: Alejandro Mery <amery@geeks.cl>
sunxi: don't assume SUNXI_VER_A10A == 0

Signed-off-by: Alejandro Mery <amery@geeks.cl>
sunxi: extend sw_get_ic_ver() to detect sun5i chips

based on Allwinner's mach-sun5i code to "magically" detect the chip

Signed-off-by: Alejandro Mery <amery@geeks.cl>
sunxi:soc-detect: fix sw_get_ic_ver/sun5i bug

Signed-off-by: Alejandro Mery <amery@geeks.cl>
sunxi:soc-detect: print detected SoC the first time
sunxi: add sunxi_is_${soc_name}() macros

supporting all known sun4i and sun5i SoCs.
- sunxi_is_a10()
- sunxi_is_a13()
- sunxi_is_a12()
- sunxi_is_a10s()

Signed-off-by: Alejandro Mery <amery@geeks.cl>
sunxi: implement sw_get_chip_id()

from latest sun[45]i SDK

Signed-off-by: Alejandro Mery <amery@geeks.cl>
sunxi:soc-detect: mark sw_get_ic_ver() as pure

Signed-off-by: Alejandro Mery <amery@geeks.cl>