lkml.org 
[lkml]   [2011]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 7/7] msm: mahimahi: initialize mmc at start up
Date
MMC should fully function at this point. This adds in the calls
to start the initialization.

Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
---
arch/arm/mach-msm/board-mahimahi.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-msm/board-mahimahi.c b/arch/arm/mach-msm/board-mahimahi.c
index c1745c7..e7c70ca 100644
--- a/arch/arm/mach-msm/board-mahimahi.c
+++ b/arch/arm/mach-msm/board-mahimahi.c
@@ -38,6 +38,8 @@

static uint debug_uart;

+int mahimahi_init_mmc(unsigned int sys_rev, unsigned debug_uart);
+
module_param_named(debug_uart, debug_uart, uint, 0);

static struct platform_device *devices[] __initdata = {
@@ -65,11 +67,17 @@ static struct msm_acpu_clock_platform_data mahimahi_cdma_clock_data = {

static void __init mahimahi_init(void)
{
+ int ret;
+
if (is_cdma_version(system_rev))
msm_acpu_clock_init(&mahimahi_cdma_clock_data);
else
msm_acpu_clock_init(&mahimahi_clock_data);

+ ret = mahimahi_init_mmc(system_rev, debug_uart);
+ if (ret != 0)
+ pr_crit("%s: Unable to initialize MMC\n", __func__);
+
platform_add_devices(devices, ARRAY_SIZE(devices));
}

--
1.7.0.4
--
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.


\
 
 \ /
  Last update: 2011-01-20 21:37    [W:0.129 / U:1.788 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site