linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] AM3517EVM: Add support for MMC1
@ 2011-08-19 11:52 Abhilash K V
  2011-08-19 11:52 ` [PATCH 1/2] AM3517EVM: Add support for base-board MMC slot Abhilash K V
  2011-10-06 19:38 ` [PATCH 0/2] AM3517EVM: Add support " Tony Lindgren
  0 siblings, 2 replies; 4+ messages in thread
From: Abhilash K V @ 2011-08-19 11:52 UTC (permalink / raw)
  To: linux-arm-kernel

This patch-set adds support for MMC1 slot on the 
AM3517 EVM's base-board.
These patches are dependent on the following patch-set
http://marc.info/?l=linux-omap&m=131247357813228&w=2
which gets the AM3517 EVM booting.

The patches are tested on master of tmlind/linux-omap-2.6.git.
Kernel version is 3.0.0-rc7 and last commit on top of which these patches
were added is:

        885cf6ff7d3dad4cc44be74b0577d3a554d3ab71: Linux-omap rebuilt:
        Updated to -rc7, added new boards

Cc: Vaibhav Hiremath <hvaibhav@ti.com>
---
Abhilash K V (1):
  AM3517: Support for MMC1

Vaibhav Hiremath (1):
  AM3517EVM: Add support for base-board MMC slot

 arch/arm/mach-omap2/board-am3517evm.c |   22 ++++++++++++++++++++++
 arch/arm/mach-omap2/hsmmc.c           |   10 +++++++++-
 2 files changed, 31 insertions(+), 1 deletions(-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] AM3517EVM: Add support for base-board MMC slot
  2011-08-19 11:52 [PATCH 0/2] AM3517EVM: Add support for MMC1 Abhilash K V
@ 2011-08-19 11:52 ` Abhilash K V
  2011-08-19 11:52   ` [PATCH 2/2] AM3517: Support for MMC1 Abhilash K V
  2011-10-06 19:38 ` [PATCH 0/2] AM3517EVM: Add support " Tony Lindgren
  1 sibling, 1 reply; 4+ messages in thread
From: Abhilash K V @ 2011-08-19 11:52 UTC (permalink / raw)
  To: linux-arm-kernel

From: Vaibhav Hiremath <hvaibhav@ti.com>

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Abhilash K V <abhilash.kv@ti.com>
---
 arch/arm/mach-omap2/board-am3517evm.c |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c
index f3006c3..bea6da0 100644
--- a/arch/arm/mach-omap2/board-am3517evm.c
+++ b/arch/arm/mach-omap2/board-am3517evm.c
@@ -24,6 +24,7 @@
 #include <linux/i2c/pca953x.h>
 #include <linux/can/platform/ti_hecc.h>
 #include <linux/davinci_emac.h>
+#include <linux/mmc/host.h>
 
 #include <mach/hardware.h>
 #include <mach/am35xx.h>
@@ -39,6 +40,7 @@
 
 #include "mux.h"
 #include "control.h"
+#include "hsmmc.h"
 
 #define AM35XX_EVM_MDIO_FREQUENCY	(1000000)
 
@@ -460,6 +462,23 @@ static void am3517_evm_hecc_init(struct ti_hecc_platform_data *pdata)
 static struct omap_board_config_kernel am3517_evm_config[] __initdata = {
 };
 
+static struct omap2_hsmmc_info mmc[] = {
+	{
+		.mmc		= 1,
+		.caps		= MMC_CAP_4_BIT_DATA,
+		.gpio_cd	= 127,
+		.gpio_wp	= 126,
+	},
+	{
+		.mmc		= 2,
+		.caps		= MMC_CAP_4_BIT_DATA,
+		.gpio_cd	= 128,
+		.gpio_wp	= 129,
+	},
+	{}      /* Terminator */
+};
+
+
 static void __init am3517_evm_init(void)
 {
 	omap_board_config = am3517_evm_config;
@@ -487,6 +506,9 @@ static void __init am3517_evm_init(void)
 
 	/* MUSB */
 	am3517_evm_musb_init();
+
+	/* MMC init function */
+	omap2_hsmmc_init(mmc);
 }
 
 MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM")
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] AM3517: Support for MMC1
  2011-08-19 11:52 ` [PATCH 1/2] AM3517EVM: Add support for base-board MMC slot Abhilash K V
@ 2011-08-19 11:52   ` Abhilash K V
  0 siblings, 0 replies; 4+ messages in thread
From: Abhilash K V @ 2011-08-19 11:52 UTC (permalink / raw)
  To: linux-arm-kernel

This patch fixes the following error message which appears
while intializing MMC1 on the AM3517 EVM base-board:
    mmc0: host doesn't support card's voltages
    mmc0: error -22 whilst initialising SD card
The ocr_mask, which enumerates the volatges supported by the
MMC card was not being indicated before, assuming that a separate
Vcc regulator maybe another controllable regulator driver would be
doing this. This patch statically specifies a subset of the voltages
supported by the MMC driver, which are provided by the current fixed
voltage regulator on AM3517 EVM.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Abhilash K V <abhilash.kv@ti.com>
---
 arch/arm/mach-omap2/hsmmc.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/hsmmc.c b/arch/arm/mach-omap2/hsmmc.c
index a9b45c7..9dee2e1 100644
--- a/arch/arm/mach-omap2/hsmmc.c
+++ b/arch/arm/mach-omap2/hsmmc.c
@@ -350,7 +350,15 @@ static int __init omap_hsmmc_pdata_init(struct omap2_hsmmc_info *c,
 	 *
 	 * temporary HACK: ocr_mask instead of fixed supply
 	 */
-	mmc->slots[0].ocr_mask = c->ocr_mask;
+	if (cpu_is_omap3505() || cpu_is_omap3517())
+		mmc->slots[0].ocr_mask = MMC_VDD_165_195 |
+					 MMC_VDD_26_27 |
+					 MMC_VDD_27_28 |
+					 MMC_VDD_29_30 |
+					 MMC_VDD_30_31 |
+					 MMC_VDD_31_32;
+	else
+		mmc->slots[0].ocr_mask = c->ocr_mask;
 
 	if (cpu_is_omap3517() || cpu_is_omap3505())
 		mmc->slots[0].set_power = nop_mmc_set_power;
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 0/2] AM3517EVM: Add support for MMC1
  2011-08-19 11:52 [PATCH 0/2] AM3517EVM: Add support for MMC1 Abhilash K V
  2011-08-19 11:52 ` [PATCH 1/2] AM3517EVM: Add support for base-board MMC slot Abhilash K V
@ 2011-10-06 19:38 ` Tony Lindgren
  1 sibling, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2011-10-06 19:38 UTC (permalink / raw)
  To: linux-arm-kernel

* Abhilash K V <abhilash.kv@ti.com> [110819 04:19]:
> This patch-set adds support for MMC1 slot on the 
> AM3517 EVM's base-board.
> These patches are dependent on the following patch-set
> http://marc.info/?l=linux-omap&m=131247357813228&w=2
> which gets the AM3517 EVM booting.
> 
> The patches are tested on master of tmlind/linux-omap-2.6.git.
> Kernel version is 3.0.0-rc7 and last commit on top of which these patches
> were added is:
> 
>         885cf6ff7d3dad4cc44be74b0577d3a554d3ab71: Linux-omap rebuilt:
>         Updated to -rc7, added new boards
> 
> Cc: Vaibhav Hiremath <hvaibhav@ti.com>
> ---
> Abhilash K V (1):
>   AM3517: Support for MMC1
> 
> Vaibhav Hiremath (1):
>   AM3517EVM: Add support for base-board MMC slot
> 
>  arch/arm/mach-omap2/board-am3517evm.c |   22 ++++++++++++++++++++++
>  arch/arm/mach-omap2/hsmmc.c           |   10 +++++++++-
>  2 files changed, 31 insertions(+), 1 deletions(-)
> 

Adding these both to board branch thanks.

Tony

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-06 19:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-19 11:52 [PATCH 0/2] AM3517EVM: Add support for MMC1 Abhilash K V
2011-08-19 11:52 ` [PATCH 1/2] AM3517EVM: Add support for base-board MMC slot Abhilash K V
2011-08-19 11:52   ` [PATCH 2/2] AM3517: Support for MMC1 Abhilash K V
2011-10-06 19:38 ` [PATCH 0/2] AM3517EVM: Add support " Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).