public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH PM-0] ARM: OMAP3: HSMMC: Ensure HSMMC is fully reset on boot
@ 2008-09-18 12:22 Kevin Hilman
  2008-09-18 12:45 ` Felipe Balbi
  2008-09-18 12:46 ` Madhusudhan Chikkature
  0 siblings, 2 replies; 6+ messages in thread
From: Kevin Hilman @ 2008-09-18 12:22 UTC (permalink / raw)
  To: linux-omap; +Cc: Kevin Hilman

This ensures that an unused HSMMC block will not interfere with sleep.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
---
 arch/arm/mach-omap2/hsmmc.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/hsmmc.c b/arch/arm/mach-omap2/hsmmc.c
index 7334d86..03fe820 100644
--- a/arch/arm/mach-omap2/hsmmc.c
+++ b/arch/arm/mach-omap2/hsmmc.c
@@ -280,8 +280,16 @@ static struct omap_mmc_platform_data hsmmc_data = {
 	},
 };
 
+static void __init hsmmc_reset(void)
+{
+       omap_writel(MMCHS_SYSCONFIG_SWRESET, MMCHS1_SYSCONFIG);
+       omap_writel(MMCHS_SYSCONFIG_SWRESET, MMCHS2_SYSCONFIG);
+       omap_writel(MMCHS_SYSCONFIG_SWRESET, MMCHS3_SYSCONFIG);
+}
+
 void __init hsmmc_init(void)
 {
+	hsmmc_reset();
 	omap2_init_mmc(&hsmmc_data);
 }
 
-- 
1.5.4.3


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

end of thread, other threads:[~2008-09-22  5:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-18 12:22 [PATCH PM-0] ARM: OMAP3: HSMMC: Ensure HSMMC is fully reset on boot Kevin Hilman
2008-09-18 12:45 ` Felipe Balbi
2008-09-19  5:21   ` Högander Jouni
2008-09-22  5:26     ` Paul Walmsley
2008-09-18 12:46 ` Madhusudhan Chikkature
2008-09-18 13:33   ` Kevin Hilman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox