mmc: make MMC_SUNXI depend on !MMC_SUNXI_NEW to avoid conflicts

Signed-off-by: Alejandro Mery <amery@geeks.cl>
Fix 2GB memory issue for allwinner A20 platform

The following patch is based on hans latest sunxi-3.4 branch

From 4e56df0aa856425a988ed3ff962a246e4976fd1c Mon Sep 17 00:00:00 2001
From: benn <benn@cubietech.com>
Date: Thu, 22 Aug 2013 15:44:01 +0800
Subject: [PATCH 1/2] disp: fix 2GB memory issue

When there is 2GB memory on allwinner A20 platform, the bus address is
differrent from the physical address for display controller.
To solve such a problem, we introduce the following macros to do the
translation

Signed-off-by: benn <benn@cubietech.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
mali: add ca7-virtex820-m400-2 platform for allwinner a20

This patch have benn tested on cubieboard2/cubietruck(2GB memroy)

1. add new platform
2. fix 2GB memory issue

Signed-off-by: benn <benn@cubietech.com>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
mali: rm 2 useless link

drivers/gpu/mali/mali/arch
drivers/gpu/mali/ump/arch

Signed-off-by: benn <benn@cubietech.com>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
sun4i_dev_ace: Fix wrong irqno at a20

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
gpio: sunxi: Add GPIO support to A20

Also supports GPIO IRQs

Signed-off-by: Ryan Press <ryan@presslab.us>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
gpio: sunxi: Fix GPIO to_irq bug with some drivers

Some drivers (like rotary_encoder) will ask for the IRQ before
requesting the GPIO.  This fails because the eint hasn't been
set up yet.  This patch requests the eint every time.

Signed-off-by: Ryan Press <ryan@presslab.us>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
mali: fix compilation for sun[45]i

Signed-off-by: Alejandro Mery <amery@geeks.cl>
usb:sunxi:Fix "device not recognized" problem during android boot (3.4)

3.4 requires this fix top of 1ef151746ad739b58db375b170052ca645f84600. Now behavior is same as with 3.0.

Signed-off-by: Jari Helaakoski <tekkuli@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun4i-ts: Add sun7i support

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
mali: Fix regression on sun4i and sun5i caused by adding sun7i support

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
serial: sunxi: Fix kernel stall

When opening/closing a serial port many times the kernel will
eventually crash with a 'rcu_preempt self-detected stall'.  Adding
some code from the Allwinner source fixes this issue.  Also rename
some functions as the core seems different than the DesignWare core.

Signed-off-by: Ryan Press <ryan@presslab.us>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>