From patchwork Thu Oct 22 17:41:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Madhusudhan X-Patchwork-Id: 55398 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9MHfFa9028275 for ; Thu, 22 Oct 2009 17:41:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754632AbZJVRlJ (ORCPT ); Thu, 22 Oct 2009 13:41:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754220AbZJVRlI (ORCPT ); Thu, 22 Oct 2009 13:41:08 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:56877 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753837AbZJVRlI (ORCPT ); Thu, 22 Oct 2009 13:41:08 -0400 Received: from dlep36.itg.ti.com ([157.170.170.91]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id n9MHfBHU013435 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 22 Oct 2009 12:41:12 -0500 Received: from webmail.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id n9MHf8XE019488; Thu, 22 Oct 2009 12:41:09 -0500 (CDT) Received: from 192.168.10.89 (proxying for 128.247.79.84) (SquirrelMail authenticated user x0070977); by dbdmail.itg.ti.com with HTTP; Thu, 22 Oct 2009 23:11:10 +0530 (IST) Message-ID: <63223.192.168.10.89.1256233270.squirrel@dbdmail.itg.ti.com> Date: Thu, 22 Oct 2009 23:11:10 +0530 (IST) Subject: [PATCH]Omap3630:Configure HSMMC1 to 4-bit From: "Madhusudhan Chikkature" To: tony@atomide.com, linux-omap@vger.kernel.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 X-Priority: 3 (Normal) Importance: Normal Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/mmc-twl4030.c b/arch/arm/mach-omap2/mmc-twl4030.c index 3403914..7bef170 100644 --- a/arch/arm/mach-omap2/mmc-twl4030.c +++ b/arch/arm/mach-omap2/mmc-twl4030.c @@ -489,6 +489,12 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers) /* on-chip level shifting via PBIAS0/PBIAS1 */ mmc->slots[0].set_power = twl_mmc1_set_power; mmc->slots[0].set_sleep = twl_mmc1_set_sleep; + + /* Omap3630 HSMMC1 supports only 4-bit */ + if (cpu_is_omap3630() && c->wires > 4) { + c->wires = 4; + mmc->slots[0].wires = c->wires; + } break; case 2: