input: vt8500: Add support for devicetree to i8042 driver

This patch adds basic devicetree support for the i8042 controller driver.

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Alexey Charkov <alchark@gmail.com>

Conflicts:
	drivers/input/serio/Kconfig
Include device tree nodes for extra SD controllers on WM8850

WonderMedia WM8850 has 4 SD controllers. While most boards only use
the first one, VIA Springboard VAB-600 has internal eMMC storage
on the second SD controller. This patch includes all four for
completeness (disabled by default, to be overriden by board specific
files).

Signed-off-by: Alexey Charkov <alchark@gmail.com>
arm: mach-vt8500: add initial support for WonderMedia 8950 and 8880

Signed-off-by: Alexey Charkov <alchark@gmail.com>
mtd: vt8500: Add support for Wondermedia Serial Flash Controller

This patch adds read-only support of the Wondermedia SFC found
on WM8505, WM8650 and WM8850 SoCs. The driver does not currently
support write or erase operations.

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Alexey Charkov <alchark@gmail.com>

Conflicts:
	drivers/mtd/devices/Makefile
mtd: vt8500: Repair serial flash driver after pinctrl/gpio changes

With the removal of the GPIO driver, the serial flash driver now fails
to initialize because it can't find a wm,wm8650-gpio node.

Remove this test as we don't need to detect the bootstrap mode - all
Wondermedia SoCs in production have used a serial flash boot rom so
only 'mode 0' is required.

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Alexey Charkov <alchark@gmail.com>
Include a device tree node for serial flash on WM8850

Signed-off-by: Alexey Charkov <alchark@gmail.com>
mtd: wmt_sflash: include OF partitioning support

Signed-off-by: Alexey Charkov <alchark@gmail.com>
mtd: wmt_sflash: fix chip selection clause in erase routine

Init code maps chip 1 below chip 0, thus the condition for chip 0
should be reversed. This is also in line with WMT U-boot source.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
mtd: wmt_sflash: slight clean-up of init code

Signed-off-by: Alexey Charkov <alchark@gmail.com>
mtd: wmt_sflash: fix erase register bit definitions

WonderMedia kernel source uses bit 15 for sector erase, and bit 0
for chip erase. Update our defines accordingly.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
wmt-sflash: also include DT nodes for WM8880

Signed-off-by: Alexey Charkov <alchark@gmail.com>
Initial support for SMP on WM8880

This seems to initialize the second CPU as expected, but includes
lots of cargo-culted code from various places, part of which might
not be needed. To be revisited and slimmed down as appropriate.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
tty: vt8500_serial: add support for UART in WM8880 chips

Newer WonderMedia chips introduced another flag in the UART line control
register, which controls whether RTS/CTS signalling should be handled in
the driver or by the hardware itself.

This patch ensures that the kernel can control RTS/CTS (including
disabling it altogether) by forcing this flag to software mode on affected
chips (only WM8880 so far).

Also remove the redundant copy of the binding doc, while we are here.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
tty: vt8500_serial: add missing support for RTS setting

Signed-off-by: Alexey Charkov <alchark@gmail.com>
tty: vt8500_serial: explicitly calculate base baud rate

Current code relies on the UART clock pre-divisor to be already
configured in the baud rate register. Calculate it in the driver
and set explicitly instead, also return the "real" effective baud
rate, which is generally slightly different from the requested value.

While at this, also ensure that break signal timing is updated when
baud rate changes.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
tty: vt8500_serial: add polled console functions

This adds simple polling functions for single-character transmit
and receive, as used by kgdb.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
Merge branch 'of-updates' into testing-alchark
Merge branch 'testing-sflash' into testing-alchark
Merge branch 'testing-smp' into testing-alchark
Merge branch 'testing-i8042' into testing-alchark

Conflicts:
	arch/arm/mach-vt8500/Kconfig