History log of /arch/arm/mach-shmobile/board-armadillo800eva.c
Revision Date Author Comments
834720dbf03819a8b2d0ba5fbe01d008267f9da6 29-Aug-2014 Geert Uytterhoeven <geert+renesas@glider.be> ARM: shmobile: armadillo800eva legacy: Use rmobile_add_devices_to_domains()

Use a table and the rmobile_add_devices_to_domains() helper function to
add all platform devices to their power domains at once, which is more
size-efficient than calling rmobile_add_device_to_domain() explicitly
for all devices individually.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
ffb83e8cb14cace1b08ceb56695b580c808d8a41 23-Jun-2014 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ASoC: fsi: use SNDRV_DMA_TYPE_DEV for sound buffer

Current fsi driver is using SNDRV_DMA_TYPE_CONTINUOUS
for snd_pcm_lib_preallocate_pages_for_all().
But, it came from original dma-sh7760.c,
and no longer needed.
This patch exchange its parameter, and removed
original dma mapping and un-needed
dma_sync_single_xxx() from driver.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
9e38b84b456ab7b2abd28257eec5caee4fb1f5ea 20-Jun-2014 Geert Uytterhoeven <geert+renesas@glider.be> ARM: shmobile: Move r8a7740.h

Change location of r8a7740.h so it can be included as "r8a7740.h"
instead of the old style <mach/r8a7740.h>

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
111bcc1360235ad1cdab4bc27f5ccca943ca8af5 14-May-2014 Geert Uytterhoeven <geert+renesas@glider.be> ARM: shmobile: armadillo800eva legacy: Add LED support

Cfr. r8a7740-armadillo800eva-reference.dts

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6b8b0cb477b3e77721982effae3415f3c5f58fee 17-Jun-2014 Magnus Damm <damm+renesas@opensource.se> ARM: shmobile: Move pm-rmobile.h, cleanup sh73xx.h

Change location of pm-rmobile.h so it can be used as #include "pm-rmobile.h"
instead of the old style #include <mach/pm-rmobile.h>. Also clean up
the sh7372 and sh73a0 header files to get rid of unused include files.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
fd44aa5e570d1d8c7d361dcbf94c2b8cd25cfe92 17-Jun-2014 Magnus Damm <damm+renesas@opensource.se> ARM: shmobile: Move common.h

Change location for common.h so it can be used as #include "common.h"
instead of the old style #include <mach/common.h>.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
b6bab1263c61e39cfc3427f54baff6f683f54298 17-Jun-2014 Magnus Damm <damm+renesas@opensource.se> ARM: shmobile: Move most of irqs.h, keep some for pinctl

Move most of irqs.h so it can be used as #include "irqs.h"
instead of the old style #include <mach/irqs.h>.

Legacy code in drivers/pinctrl needs more work to get rid
of the "mach" portion of the include path, so some part
is left in the original location.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
[horms+renesas@verge.net.au: Do not add trailing blank line to irqs.h]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
2edb89cd8e915d2d826f5704b80da28bde688051 19-Mar-2014 Russell King <rmk+kernel@arm.linux.org.uk> ARM: l2c: shmobile: remove cache size override

The cache size should already be present in the L2 cache auxiliary
control register: it is part of the integration process to configure
the hardware IP. Most platforms get this right, yet still many
cargo-cult program, and assume that they always need specifying to
the L2 cache code. Remove them so we can find out which really need
this.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
36bccb11a4ac7cc9d190c3062945f1c911a62801 19-Mar-2014 Russell King <rmk+kernel@arm.linux.org.uk> ARM: l2c: remove platforms/SoCs setting early BRESP

Since we now automatically enable early BRESP in core L2C-310 code when
we detect a Cortex-A9, we don't need platforms/SoCs to set this bit
explicitly. Instead, they should seek to preserve the value of bit 30
in the auxiliary control register.

Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
730359857f5f0e1fac9881c63d389d73adb5f416 28-May-2014 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: fixup HDMI sound flags setting

c7a507eea1db1430476289f525f9c853d5d485e8
(ASoC: fsi: fixup SND_SOC_DAIFMT_CBx_CFx flags)
fixuped FSI driver's behavior
which didn't match to ALSA flags.

But, it didn't care about armadillo800eva HDMI sound flags.
This patch fixed it.

Reported-by: Bui Duc Phuc(Fukuda) <bd-phuc@jinso.co.jp>
Reported-by: Hiep Cao Minh <cm-hiep@jinso.co.jp>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
48d6f146dced79d1df0cb91b30f1cdb749ecdf9f 19-May-2014 Alexandre Belloni <alexandre.belloni@free-electrons.com> ARM: shmobile: armadillo: use PWM_LOOKUP to initialize struct pwm_lookup

Use the new variant of the PWM_LOOKUP macro to initialize the PWM lookup
table.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
b16001d745fbc900cc96c8ca2cd2cd08e738c421 19-May-2014 Alexandre Belloni <alexandre.belloni@free-electrons.com> ARM: shmobile: armadillo: initialize all struct pwm_lookup members

Initializing all the struct pwm_lookup members allows to get rid of the
struct tpu_pwm_platform_data as the polarity initialization will be
taken care of by the PWM core.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
fd105ecf17fe459d979f336a7389d87172a1cf6d 08-May-2014 Magnus Damm <damm+renesas@opensource.se> ARM: shmobile: Minor cleanup of the Armadillo legacy board code

Cleanup the legacy Armadillo board code slightly by
removing the pointless eva_add_early_devices() function

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
7b707277e734c553a8043e9b4d530eb47f4d60c8 14-Apr-2014 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: fixup SND_SOC_DAIFMT_CBx_CFx flags

c7a507eea1db1430476289f525f9c853d5d485e8
(ASoC: fsi: fixup SND_SOC_DAIFMT_CBx_CFx flags)
exchanged sound flags, but armadillo800eva flags needs IB_NF.
The recorded sound will be noise without this patch.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
c7a507eea1db1430476289f525f9c853d5d485e8 14-Mar-2014 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ASoC: fsi: fixup SND_SOC_DAIFMT_CBx_CFx flags

SND_SOC_DAIFMT_CBx_CFx means "codec" side master/slave mode.
Then, FSI will be master mode if it was SND_SOC_DAIFMT_CBS_CFS.

This patch fixup platform settings too.
Then, it tidyups SND_SOC_DAIFMT_INV settings.

Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
78060840cd2286c0e382641e60dcd4145f82f881 15-Feb-2014 Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> ARM: shmobile: Armadillo 800 EVA: set proper DMA masks for Ether device

Ether MAC is a DMA-capable device and so should have 'dev.dma_mask' and
'dev.coherent_dma_mask' fields set properly, to reflect 32-bit DMA addressing
ability.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
dcd740b645003b866d7eb30d13d34d0729cce9db 16-Dec-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo: Fix coherent DMA mask

Commit 4dcfa60071b3d23f0181f27d8519f12e37cefbb9 ("ARM: DMA-API: better
handing of DMA masks for coherent allocations") added an additional
check to the coherent DMA mask that results in an error when the mask is
larger than what dma_addr_t can address.

Set the LCDC coherent DMA mask to DMA_BIT_MASK(32) instead of ~0 to fix
the problem.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9a3beb04ec32cab91a8e562ae068433387b84547 11-Dec-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo: Set backlight enable GPIO

The Armadillo 800 EVA panel module has a backlight enable signal
connected to GPIO 61. Instead of requesting the GPIO in board code and
setting it to a high level unconditionally, pass the GPIO number to the
PWM backlight driver as the backlight enable GPIO.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9fb444f22f09cfad3798e3610f7dc62f8a385ee8 11-Dec-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo: Add PWM backlight power supply

Commit 22ceeee16eb8f0d04de3ef43a5174fb30ec18af9 ("pwm-backlight: Add
power supply support") added a mandatory power supply for the PWM
backlight. Add a fixed 5V regulator to board code with a consumer supply
entry for the backlight device.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
(cherry picked from commit ad11cb9a5cf96346f1240995c672cdbb5501785c)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
4a4783a30c92a5ee1752d33af3bea2bf79f64197 03-Dec-2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo: fixup FSI address size

FSI address size is 0x400, not 0x8400

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
bf4d252a2906df097874926bcfff6a3bcef38491 30-Aug-2013 Thierry Reding <treding@nvidia.com> ARM: shmobile: Initialize PWM backlight enable_gpio field

The GPIO API defines 0 as being a valid GPIO number, so this field needs
to be initialized explicitly.

Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Thierry Reding <treding@nvidia.com>
fbf3264c046a6cce4cefec6e069fc86c0175f7d3 10-Jul-2013 Guennadi Liakhovetski <g.liakhovetski@gmx.de> ARM: shmobile: armadillo800eva: disable MMCIF Command Completion Signal

MMCIF on r8a7740 doesn't support Command Completion Signal, a platform
parameter has to be added to disable it on armadillo800eva.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
7cd402b30a701c2b4d38a98281a00fc5e3680b13 02-Sep-2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo: fixup ether pinctrl naming

e5c9b4cd665106d9b5397114ea81a53059410b6a ("sh_eth: get R8A7740 support
out of #ifdef") exchanged sh-eth driver name to r8a7740-gether, but,
eva_pinctrl_map[] didn't follow it. Fixes it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
8d3214c4e8c8be6efd8ec7a172239ebbd4deb04b 18-Aug-2013 Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> sh_eth: remove 'register_type' field from 'struct sh_eth_plat_data'

Now that the 'register_type' field of the 'sh_eth' driver's platform data is not
used by the driver anymore, it's time to remove it and its initializers from
the SH platform code. Also move *enum* declaring values for this field from
<linux/sh_eth.h> to the local driver's header file as they're only needed
by the driver itself now...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
15645581a9401cf2370d2c975e2673d289d5e561 02-Aug-2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: Use DT for GIC

Current Armadillo800eva is using DT booting,
and r8a7740.dtsi already has GIC settings.

So, we can remove the C version of the GIC setup code,
instead rely on GIC information provided by DT.

This patch removes r8a7740_init_irq() which has
no user any more

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
16b551dd22cc7edacb952f7a2e175f36c3aa4bdb 25-Jul-2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: Don't request GPIO 166 in board code

89ae7b5bbd3e65bc6ab7a577ca5ec18569589c8c
(ARM: shmobile: armadillo800eva: Register pinctrl mapping for INTC)
mistakenly requests GPIO 166 in board code,
most probably due to a wrong merge conflict resolution.
As the GPIO is passed to the st1232 driver through platform
data and requested by the driver,
there's no need to request it in board code. Fix it.

Tested by: Cao Minh Hiep <cm-hiep@jinso.co.jp>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
d58226a21a7b84a3f82265821f24ce2aad267f1c 16-Jul-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo800eva: Add backlight support

The flat panel backlight on the Armadillo 800 EVA board is driven by the
TPU PWM output.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tested-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
872842084c6f01d5f9d1a4c9b7e39a3d68d0630d 02-Jul-2013 Guennadi Liakhovetski <g.liakhovetski@gmx.de> ARM: shmobile: armadillo800eva: add DMA support to MMCIF

Add DMA slave IDs to MMCIF Tx and Rx channels.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
bcfed2a8a61a0f6ee7769f5093a8279a9e50c526 06-Jun-2013 Guennadi Liakhovetski <g.liakhovetski@gmx.de> ARM: shmobile: armadillo800eva: remove left-overs

A comment and a #define in board-armadillo800eva.c have been left over
after recent changes and are no longer relevant or needed, remove them.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
7b6d864b48d95e6ea1df7df64475b9cb9616dcf9 09-Jul-2013 Robin Holt <holt@sgi.com> reboot: arm: change reboot_mode to use enum reboot_mode

Preparing to move the parsing of reboot= to generic kernel code forces
the change in reboot_mode handling to use the enum.

[akpm@linux-foundation.org: fix arch/arm/mach-socfpga/socfpga.c]
Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Russ Anderson <rja@sgi.com>
Cc: Robin Holt <holt@sgi.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
e5c9b4cd665106d9b5397114ea81a53059410b6a 07-Jun-2013 Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> sh_eth: get R8A7740 support out of #ifdef

Get the R8A7740 code/data in the driver out of #ifdef by adding "r8a7740-gether"
to the platform driver's ID table. Change the GEther platform device's name in
the ARM platform code accordingly.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
7cdfb46ea95292ad477af498470bd3a85d9b3dcb 17-Apr-2013 Bastian Hecht <hechtb@gmail.com> ARM: shmobile: armadillo800eva: Convert SCIFA1 to pinctrl

We use the new pinctrl framework now.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
f5c02edc51515ea0bcb461030d0a13f7af41e979 23-Apr-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo800eva: Replace GPIO_PORTx with GPIO port numbers

The PFC GPIO API implementation moved to using port numbers. Replace all
GPIO_PORTx enum usage with the corresponding port number. The GPIO_PORTx
enum values are identical to the port number on this platform.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1b5961c31d67d0c2fcce202af3c4ccdb9385eaa7 23-Apr-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo800eva: Don't configure LCDC routing manually

LCDC routing is configured automatically in the PFC driver, don't
configure it manually in board code.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
f1bb4ab084626b093ed050dc979144b73f2efc03 18-Apr-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo800eva: Register pinctrl mapping for HDMI

Replace the GPIO-based HDMI pinmux configuration by a pinctrl mapping.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
fed8976e39198a86751c5283ff43643c3d9294a4 18-Apr-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo800eva: Register pinctrl mapping for FSI

Replace the GPIO-based FSI pinmux configuration by a pinctrl mapping.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
babde827f26223149dc33ffc5237458ac9e30c96 18-Apr-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo800eva: Register pinctrl mapping for CEU0

Replace the GPIO-based CEU0 pinmux configuration by a pinctrl mapping.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
613285ce72c2194d43dee43a2b3c9bac6acff792 18-Apr-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo800eva: Register pinctrl mapping for GETHER

Replace the GPIO-based GETHER pinmux configuration by a pinctrl mapping.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
89ae7b5bbd3e65bc6ab7a577ca5ec18569589c8c 18-Apr-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo800eva: Register pinctrl mapping for INTC

Replace the GPIO-based INTC pinmux configuration by a pinctrl mapping.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
cbaf7f808081e10bd2a1d57cc9ef0c5138ca23ce 15-Apr-2013 Bastian Hecht <hechtb@gmail.com> ARM - shmobile: Armadillo800EVA: Move st1232 reset pin handling

We no longer need to set up the reset pin for the st1232 in the board
code, but can pass the GPIO number via the platform data to the driver.
This results in a cleaner grouping of the device setup.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
225da3e3cb1f0db9e4cb7fa2a7dc3a360d1cf788 01-Apr-2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> usb: renesas_usbhs: fixup sparse errors for common.c

This patch fixup below sparse errors

CHECK ${RENESAS_USB}/common.c
${RENESAS_USB}/common.c:313:17: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/common.c:322:17: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/common.c:384:17: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/common.c:524:9: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/common.c:545:9: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/common.c:574:9: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/common.c:606:9: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/mod_gadget.c:233:28: warning: symbol 'req_clear_feature' was not declared. Should it be static?
${RENESAS_USB}/mod_gadget.c:274:28: warning: symbol 'req_set_feature' was not declared. Should it be static?
${RENESAS_USB}/mod_gadget.c:375:28: warning: symbol 'req_get_status' was not declared. Should it be static?

[ balbi@ti.com : added three sparse fixes to mod_gadget.c ]

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
0b7d78202260162057248875b1c9bac70d041e58 27-Mar-2013 Bastian Hecht <hechtb@gmail.com> ARM: shmobile: r8a7740: Migrate from INTC to GIC

With the added capabilty of the intc_irqpin driver to handle shared
external IRQs, all prerequisites are fulfilled and we are ready to
migrate completely to GIC. This includes the following steps:

- Kconfig: select ARM_GIC and RENESAS_INTC_IRQPIN
- intc-r8a7740: Throw out all legacy INTC code and init the GIC. We need
to mask out all shared IRQs as it is needed by the
shared intc_irqpin driver.
- setup-r8a7740: Add 4 irqpin devices to handle external IRQs and update
all IRQ numbers to point to the GIC SPI.
- board-armadillo: Update all IRQ numbers to point to the GIC SPI.
- pfc-r8a7740: Update all IRQ numbers of the GPIOs to point to the GIC
SPI.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
a9060f89d9ad4e806c69acb1ea5ebdaeaa91e54b 18-Mar-2013 Guennadi Liakhovetski <g.liakhovetski@gmx.de> ARM: shmobile: armadillo800eva: add a fixed voltage regulator for SDHI1

The SDHI1 power supply on armadillo800eva can be switched on and off. In
the current version this is not used and the regulator is hard-wired to
"on." This patch switches SDHI1 to a proper fixed-voltage regulator,
using a GPIO to enable and disable it. Both SDHI0 and SDHI1 ports shall
now be specifying the MMC_CAP_POWER_OFF_CARD MMC capability. Both
interfaces tested with an SDIO card.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
3a5eed5f9e0734c4d3b5b42f7db443a33e2ba665 13-Feb-2013 Guennadi Liakhovetski <g.liakhovetski@gmx.de> ARM: shmobile: switch SDHI0 to GPIO regulator on armadillo800eva

When regulators are used with MMC devices, explicitly provided OCR masks
are ignored, they can be removed from platform data. Also switch SDHI0
from fixed regulator with hard-wired GPIO levels to a proper GPIO regulator
instance to enable dynamic voltage switching.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
aee14423e79eddf3c4fa97d7015164d150b75e45 16-Jan-2013 Guennadi Liakhovetski <g.liakhovetski@gmx.de> ARM: shmobile: use GPIO SD-card detection on armadillo800eva

Switch SDHI0 and SDHI1 SD-card interfaces on armadillo800eva to using GPIO
card detection, which provides maximum power saving and automatically
selects IRQ or polling mode, depending on the CD GPIO capability.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
c9e3a32f31dbac965ee492d7e768a40bc2b44dcd 06-Mar-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo800eva: Register pinctrl mappings for SDHI and MMCIF

Replace the GPIO-based SDHI and MMCIF pinmux configuration by pinctrl
mappings.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
79f7182e410ba2bf0d4d8eda94feb2873215eb54 03-Jan-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo800eva: Register pinctrl mappings for LCDC0

Replace the GPIO-based LCDC0 pinmux configuration by pinctrl mappings.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
ead10fed8b4b421c6871de74eb3983d0180224df 16-Feb-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo: Replace GPIO_PORTx enum with GPIO port numbers

The PFC GPIO API implementation moved to using port numbers. Replace all
GPIO_PORTx enum usage with the corresponding port number. The GPIO_PORTx
enum values are identical to the port number on this platform.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
2f27c40656fecba44e839c77910f75ee1024df62 18-Jan-2013 Hideki EIRAKU <hdk@igel.co.jp> ARM: shmobile: armadillo800eva: set clock rates before timer init

Previously clock rates were set after initialization of timer.
Therefore the timer used the default extal1 clock rate (25MHz)
instead of the correct rate for this board (24MHz).

Signed-off-by: Hideki EIRAKU <hdk@igel.co.jp>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
2173441d56e6282f79aaf1f47172e8506f27a25e 24-Jan-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo800eva: Use gpio_set_value() to set GPIO value

The GPIO is already configured as an output, there's no reason to use
gpio_direction_output() just to set the output value. Use
gpio_set_value() instead.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
0f69e708159ded249fb73f8fe40508100a2cc54e 24-Jan-2013 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> ARM: shmobile: armadillo800eva: Use gpio_request_one()

Replace occurences of gpio_request() and gpio_direction_*() by calls to
gpio_request_one().

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
895d3b53fd910f78c52cba89243107fb132538f3 05-Dec-2012 Bastian Hecht <hechtb@gmail.com> ARM: shmobile: r8a7740: Add CPU sleep suspend

Add the lighest possible sleep mode on Cortex-A9 cores: CPU sleep.
It is entered by a simple dsb and wfi instruction via cpu_do_idle(). As
just clocks are stopped there is no need to save or restore any state of
the system.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
Acked-by: Magnus Damm <damm@opensource.se>
[ horms@verge.net.au: Added missing includes ]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1a695b3d0fe70a680e60f28bac7aad5c95b88226 25-Dec-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: add sample amixer settings for armadillo800eva

wm8978 codec requires amixer settings for capture.
This patch adds sample amixer settings on comment area.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
a4a2992c531f6ca0aa00ce0deb31e51c1b7ae69b 11-Jan-2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ASoC: simple-card: add asoc_simple_dai for initializing

Current simple-card driver calls asoc_simple_card_dai_init()
if platform had a asoc_simple_card_dai_init pointer.
And, this initialization function works only
when platform has an applicable initial value for each dai settings.
And basically, almost all sound card requires certain initialization.
This means that almost all platform has initialization settings,
and driver do nothing if it doesn't have settings.

And additionally, current simple-card supports sysclk settings but it was
only for codec. In order to abolish deviation between cpu and codec,
and in order to simplify processing,
this patch adds asoc_simple_dai, and removed pointless
struct asoc_simple_dai_init_info which was trigger of
calling asoc_simple_card_dai_init().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
6bb27d7349db51b50c40534710fe164ca0d58902 08-Nov-2012 Stephen Warren <swarren@nvidia.com> ARM: delete struct sys_timer

Now that the only field in struct sys_timer is .init, delete the struct,
and replace the machine descriptor .timer field with the initialization
function itself.

This will enable moving timer drivers into drivers/clocksource without
having to place a public prototype of each struct sys_timer object into
include/linux; the intent is to create a single of_clocksource_init()
function that determines which timer driver to initialize by scanning
the device dtree, much like the proposed irqchip_init() at:
http://www.spinics.net/lists/arm-kernel/msg203686.html

Includes mach-omap2 fixes from Igor Grinberg.

Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
13e35b408ad0dd5592a7d2d1e6ad6c4962b8c4c5 08-Nov-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: use FSI driver's audio clock on armadillo800eva

Current FSI driver can control audio clock without platform
call-back functions
This patch removed board-specific call-back/settings

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
1efdf56369eb920aef4c77ad04cfafcc680f92cf 12-Oct-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: enable restart

Cc: Masahiro Nakai <nakai@atmark-techno.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
bc8b2428e73ce19aecbf2aac3f5d4c844adb3216 12-Oct-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: __io abuse cleanup

a2a47ca36642e3995e982957bc42678cf11ca6ac
(ARM: __io abuse cleanup) cleanuped __io() -> IOMEM(),
but armadillo800eva was a outside of a target,
since "merge window" timing issue.
This patch cleanup it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
0a4b04dc299dfb691827a4001b3d8d7e443b71c9 14-Sep-2012 Arnd Bergmann <arnd@arndb.de> ARM: shmobile: use __iomem pointers for MMIO

ARM is moving to stricter checks on readl/write functions,
so we need to use the correct types everywhere.

This patch is a bit ugly for shmobile, which is the only platform
that just uses integer literals all over the place, but I can't
see a better way to do this.

Acked-by: Simon Horman <horms@verge.net.au>
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
6679185909e79df85bd44fd964f80f36899d0880 28-Aug-2012 Rob Herring <rob.herring@calxeda.com> ARM: shmobile: move custom gpio functions to sh-gpio.h

Move custom shmobile gpio code to a sh-gpio.h to remove the dependency
on mach/gpio.h. shmobile always uses gpiolib, so we can remove
__GPIOLIB_COMPLEX define from mach/gpio.h.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Magnus Damm <magnus.damm@gmail.com>
b22f6bb030ee0c98839fe2445571c57c9f89594e 13-Sep-2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> ARM: shmobile: armadillo800eva: Add support RTC

The armadillo800eva has S35390A which is RTC. This is controlled
using I2C of GPIO.
This commit supports RTC of armadillo800eva.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
8bdd94689ef528738a0f14c44e069596a465d622 07-Aug-2012 Rafael J. Wysocki <rjw@sisk.pl> ARM: shmobile: Use names of power domains for adding devices to them

Make the power management code under arch/arm/mach-shmobile/ use
names of power domains instead of pointers to domain objects for
adding devices to the domains. This will allow us to put the
domain objects into tables and register them all in one shot
going forward.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Magnus Damm <damm@opensource.se>
ee3c843d0fc21c68ced93b982b5731178a24df68 09-Aug-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: fixup: sound card detection order

Since armadillo800eva has 2 sound cards,
and had reversed deferred probe order issue,
it was purposely registered in reverse order.

But it was solved by
1d29cfa57471a5e4b8a7c2a7433eeba170d3ad92
(driver core: fixup reversed deferred probe order)

armadillo800eva board is expecting that
FSI-WM8978 is the 1st, and FSI-HDMI is the 2nd sound card.
This patch fixes it up

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
5c1d2d16772e2d7d4e2e8da99a92d6f50b9102f0 24-Jul-2012 Laurent Pinchart <laurent.pinchart@ideasonboard.com> ARM: mach-shmobile: armadillo800eva: Enable power button as wakeup source

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
2d85b9494d10501f20ebf043f8d599e45736d78f 24-Jul-2012 Laurent Pinchart <laurent.pinchart@ideasonboard.com> ARM: mach-shmobile: armadillo800eva: Fix GPIO buttons descriptions

The GPIO buttons are named SW3, SW4, SW5 and SW6 on the board
silkscreen. Update the buttons descriptions accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
0f54788d8b4f7aa8d74b0a5a0ad706bcc216b3c7 05-Jul-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: A3SP domain includes USB

Because USB Func is controlled by external IRQ mode,
it is possible to control USB under A3SP domain to reduce power.
This patch enables it.

Armadillo800eva board switchs USB Host/Func by SW1.6,
So, the device to adds into domain is selected on this patch.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
1000076a88d58acf77d8fa8bf5d2567425b8ea1b 05-Jul-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: A4LC domain includes LCDC

It is possible to control LCDC under A4LC domain to reduce power.
This patch enable it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
d483b983a5efaa101714186a8485a5fd4de42fba 05-Jul-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: USB Func enables external IRQ mode

We can control renesas_usbhs driver as 2 way which are
autonomy mode and external IRQ trigger mode.

Autonomy mode is very easy settings for platform,
but it required USB power domain always ON,
since its connection/disconnection IRQ come from it.

If platform uses external IRQ trigger mode,
USB power domain can be OFF, since its
connection/disconnection IRQ come from external IRQ.

This patch enable external IRQ mode.
Now it is possible to add USB support on A4SP domain.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
f65ad7e36cbae24f05ea2314ad63e9dd23294c60 29-Jun-2012 Guennadi Liakhovetski <g.liakhovetski@gmx.de> ARM: mach-shmobile: add fixed voltage regulators to armadillo800eva

On armadillo800eva provide a 3.3V supply for its SD/MMC-card interfaces.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
a01366b4b5cc669633d1cf6ee327c85a5406ef5f 25-Jun-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: use common extra gpio functions on armadillo800eva

This patch switch over to use common extra gpio method,
and reduced a waste of code on SH-ARM.

But these functions should be replaced by correct
gpio function in the future.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
f7e566fa26b7d34514d5ba7b8b4464934be8ff2c 25-Jun-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: enable DMAEngine on USB

It is possible to reduce CPU load if USB used DMAEngine.
This patch enabled it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
95798e350dde44920a021a7e7e720a3be15e8220 25-Jun-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: enable DMAEngine on SDHI

It is possible to reduce CPU load if SDHI used DMAEngine.
This patch enabled it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
dc7dd5841f714c3bc3f358cb126ba4432947e854 25-Jun-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: enable DMAEngine on FSI

It is possible to reduce CPU load if FSI playback used DMAEngine.
This patch enabled it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
0676c05e57c6e37fc9f985a8f6ea2883e5b2cbda 25-Jun-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: enable FSI-HDMI sound

This patch enable HDMI sound support on CON3

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
5389bf719f87101339f292256392bff5ae926917 25-Jun-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: enable FSI-WM8978 sound

This patch enable sound support on CON11

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
3760e79450f48e31fde2b2dd49c5ab6a685c3ea8 12-Jun-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: enable camera

This patch enable camera support on CON1

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
37f971b68009b8fadd322130787d693137302925 20-Jun-2012 Laurent Pinchart <laurent.pinchart@ideasonboard.com> ARM: mach-shmobile: armadillo800eva: Use late init machine hook

Since commit 21cc1b7ede3cf456cf1d51f8a906093261f7c111 ("ARM: shmobile:
use machine specific hook for late init") suspend and CPU idle are not
initialized automatically anymore. Set shmobile_init_late() as the
machine late init hook to initialize them.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
910c14d0b8f121df420a878cbd973ffa7d549393 12-Jun-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: armadillo800eva: enable HDMI

This patch enable HDMI support on CON3.
And removed unnecessary CONFIG_SYSFS_DEPRECATED_xxx config.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
d49679e5928709bce8937dce396458b139c4b34d 12-Jun-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: shmobile: r8a7740: add MERAM work-around

r8a7740 chip has lasting errata on MERAM buffer, and this patch adds
its work-around on setup-r8a7740.c
It solved CEU/VIO6C/2D-DMAC/VCP1/VPU5F/JPU/DISP memroy access error.

But MERAM driver can't control this issue,
since this work-around requires access to non-MERAM register address.
So, This it will be called as board specific code at this point.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
e6bf705911a0b64c589b6c408a316e7d465acbbd 14-May-2012 Magnus Damm <damm@opensource.se> ARM: mach-shmobile: Use DT_MACHINE for armadillo 800 eva

Use DT_MACHINE_START() on the r8a7740 based armadillo 800 eva board.

Also include a tiny DTS file to describe the board and update the
Kconfig dependencies to select CONFIG_USE_OF.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
9c18f238c1ec36b9912b5b36ae24e0c221179044 07-May-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: mach-shmobile: clock-r8a7740: add sh-eth clock

armadillo800eva board is using sh-eth, but clock-r8a7740 didn't care it.
This clock was enabled by boot-loader.
This patch fix it up.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
0a4266bb22774bb0b6390d2633a151d996a14e77 24-Apr-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: mach-shmobile: armadillo800eva: add MMCIF support

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2e3a5ef28f8182c439a5a276ff4c0883c02787f4 24-Apr-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: mach-shmobile: armadillo800eva: add SDHI1 support

We can switch CON8/CON14 by SW1.5
SDHI1 is CON8 (SW1.5 = ON)

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
49c01112d6afdb679276c172ffcd4f1205c1ff97 24-Apr-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: mach-shmobile: armadillo800eva: add SDHI0 support

On armadillo800eva board,
CD (= Card Detect) pin is not connected to SDHI0_CD.
Then, we can use IRQ31 as card detect irq,
but it needs chattering removal operation.
We should use IRQ card detect in the future,
but this patch use polling mode at this point.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
1c96293e9f8b8ec9620201bcf7f776f0e0f89edb 24-Apr-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: mach-shmobile: armadillo800eva: add USB function support

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
46cf668748070e54879d528fa58107abc835dff3 06-Apr-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: mach-shmobile: armadillo800eva: add support ST1232

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
d8fed1e254ba1ed38fd2977fdac4c2e35ed5dbc1 06-Apr-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: mach-shmobile: armadillo800eva: add support sh_eth

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
f7e7d31a1299e11be780f8e2d235570792849e31 06-Apr-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: mach-shmobile: armadillo800eva: add support gpio_key

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
dad29d1c29b7a8699403e45822065d979309f756 06-Apr-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: mach-shmobile: armadillo800eva: add support LCDC0

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
4d22e564ca7bb5c7340c782aedd93bed99f3fb41 06-Apr-2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ARM: mach-shmobile: add armadillo800eva board support.

This adds very basic armadillo800eva board (R-Mobile A1) support

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>