From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Sun, 03 Mar 2013 23:34:08 +0100 Subject: [U-Boot] [PATCH v2 7/9] am33xx: support ti814x mmc reference clock In-Reply-To: <1362101393-5131-8-git-send-email-mporter@ti.com> (Matt Porter's message of "Thu, 28 Feb 2013 20:29:51 -0500") References: <1362101393-5131-1-git-send-email-mporter@ti.com> <1362101393-5131-8-git-send-email-mporter@ti.com> Message-ID: <87bob0un8f.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >>>>> "Matt" == Matt Porter writes: Matt> TI814x has a 192MHz hsmmc reference clock. Select that clock rate Matt> when building for TI814x. Matt> Signed-off-by: Matt Porter Acked-by: Peter Korsgaard Did you figure out why it was working for you with 96 MHz ref? Matt> --- Matt> v2: no changes, new to the series Matt> --- Matt> arch/arm/include/asm/arch-am33xx/mmc_host_def.h | 4 ++++ Matt> 1 file changed, 4 insertions(+) Matt> diff --git a/arch/arm/include/asm/arch-am33xx/mmc_host_def.h b/arch/arm/include/asm/arch-am33xx/mmc_host_def.h Matt> index 1f597c0..e0a3b8b 100644 Matt> --- a/arch/arm/include/asm/arch-am33xx/mmc_host_def.h Matt> +++ b/arch/arm/include/asm/arch-am33xx/mmc_host_def.h Matt> @@ -153,7 +153,11 @@ typedef struct hsmmc { Matt> #define MMC_CMD0 (INDEX(0) | RSP_TYPE_NONE | DP_NO_DATA | DDIR_WRITE) Matt> /* Clock Configurations and Macros */ Matt> +#ifdef CONFIG_AM33XX Matt> #define MMC_CLOCK_REFERENCE 96 /* MHz */ Matt> +#elif defined(CONFIG_TI814X) Matt> +#define MMC_CLOCK_REFERENCE 192 /* MHz */ Matt> +#endif Matt> #define mmc_reg_out(addr, mask, val)\ Matt> writel((readl(addr) & (~(mask))) | ((val) & (mask)), (addr)) Matt> -- Matt> 1.7.9.5 -- Bye, Peter Korsgaard