summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/setup-r8a7778.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2013-06-04 07:12:22 +0200
committerSimon Horman <horms+renesas@verge.net.au>2013-06-11 10:32:24 +0200
commit31b2eaccd60c3480ad81a3302faed463fdc5df12 (patch)
tree5e0ea6626f92be1d2a861ff3f88403641822b7b7 /arch/arm/mach-shmobile/setup-r8a7778.c
parentARM: shmobile: r8a7778: add support HSPI driver (diff)
downloadlinux-31b2eaccd60c3480ad81a3302faed463fdc5df12.tar.xz
linux-31b2eaccd60c3480ad81a3302faed463fdc5df12.zip
ARM: shmobile: r8a7778: add support MMC driver
Add a platform device for the r8a7778 MMC. Signed-off-by: Yusuke Goda <yusuke.goda.sx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/setup-r8a7778.c')
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7778.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c
index a1e693005370..c8e481f6c9e2 100644
--- a/arch/arm/mach-shmobile/setup-r8a7778.c
+++ b/arch/arm/mach-shmobile/setup-r8a7778.c
@@ -173,6 +173,19 @@ void __init r8a7778_add_hspi_device(int id)
hspi_resources + (2 * id), 2);
}
+/* MMC */
+static struct resource mmc_resources[] __initdata = {
+ DEFINE_RES_MEM(0xffe4e000, 0x100),
+ DEFINE_RES_IRQ(gic_iid(0x5d)),
+};
+
+void __init r8a7778_add_mmc_device(struct sh_mmcif_plat_data *info)
+{
+ platform_device_register_resndata(
+ &platform_bus, "sh_mmcif", -1,
+ mmc_resources, ARRAY_SIZE(mmc_resources),
+ info, sizeof(*info));
+}
void __init r8a7778_add_standard_devices(void)
{