Patchwork [U-Boot,v4,7/9] am33xx: support ti814x mmc reference clock

login
register
mail settings
Submitter Matt Porter
Date March 15, 2013, 8:07 p.m.
Message ID <1363378030-2054-8-git-send-email-mporter@ti.com>
Download mbox | patch
Permalink /patch/228163/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Matt Porter - March 15, 2013, 8:07 p.m.
TI814x has a 192MHz hsmmc reference clock. Select that clock rate
when building for TI814x.

Signed-off-by: Matt Porter <mporter@ti.com>

---
v4: no changes
v3: no changes
v2: no changes, new to the series
---
 arch/arm/include/asm/arch-am33xx/mmc_host_def.h |    4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/arch/arm/include/asm/arch-am33xx/mmc_host_def.h b/arch/arm/include/asm/arch-am33xx/mmc_host_def.h
index 1f597c0..e0a3b8b 100644
--- a/arch/arm/include/asm/arch-am33xx/mmc_host_def.h
+++ b/arch/arm/include/asm/arch-am33xx/mmc_host_def.h
@@ -153,7 +153,11 @@  typedef struct hsmmc {
 #define MMC_CMD0	(INDEX(0) | RSP_TYPE_NONE | DP_NO_DATA | DDIR_WRITE)
 
 /* Clock Configurations and Macros */
+#ifdef CONFIG_AM33XX
 #define MMC_CLOCK_REFERENCE	96 /* MHz */
+#elif defined(CONFIG_TI814X)
+#define MMC_CLOCK_REFERENCE	192 /* MHz */
+#endif
 
 #define mmc_reg_out(addr, mask, val)\
 	writel((readl(addr) & (~(mask))) | ((val) & (mask)), (addr))