aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/board-trout.c
diff options
context:
space:
mode:
authorDaniel Walker <dwalker@codeaurora.org>2010-03-30 19:11:57 -0400
committerDaniel Walker <dwalker@codeaurora.org>2010-06-17 15:56:19 -0400
commit42a2c2149f55915961fcda79176efd54268fbee2 (patch)
treedce83ab70966af704df335d90202f3fd519e377b /arch/arm/mach-msm/board-trout.c
parent8dadeea18be390bf3e5d47e6a8e2c752c7118b67 (diff)
arm: msm: trout add mmc support
This adds the platform data for MMC on trout. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/board-trout.c')
-rw-r--r--arch/arm/mach-msm/board-trout.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach-msm/board-trout.c
index dca5a5f062dc..8f1b28f514d2 100644
--- a/arch/arm/mach-msm/board-trout.c
+++ b/arch/arm/mach-msm/board-trout.c
@@ -30,6 +30,8 @@
30#include "devices.h" 30#include "devices.h"
31#include "board-trout.h" 31#include "board-trout.h"
32 32
33extern int trout_init_mmc(unsigned int);
34
33static struct platform_device *devices[] __initdata = { 35static struct platform_device *devices[] __initdata = {
34 &msm_device_uart3, 36 &msm_device_uart3,
35 &msm_device_smd, 37 &msm_device_smd,
@@ -56,7 +58,16 @@ static void __init trout_fixup(struct machine_desc *desc, struct tag *tags,
56 58
57static void __init trout_init(void) 59static void __init trout_init(void)
58{ 60{
61 int rc;
62
59 platform_add_devices(devices, ARRAY_SIZE(devices)); 63 platform_add_devices(devices, ARRAY_SIZE(devices));
64
65#ifdef CONFIG_MMC
66 rc = trout_init_mmc(system_rev);
67 if (rc)
68 printk(KERN_CRIT "%s: MMC init failure (%d)\n", __func__, rc);
69#endif
70
60} 71}
61 72
62static struct map_desc trout_io_desc[] __initdata = { 73static struct map_desc trout_io_desc[] __initdata = {