[U-Boot] [PATCH] 85xx/eSDHC: fix eSDHC clock frequency mask

Liu Dave-R63238 r63238 at freescale.com
Thu Jan 21 06:29:02 CET 2010


> The default value of the prescaler of eSDHC clock frequency 
> is 0x80, so we need to mask the MSB to set a different clock, 
> or else it maybe make the behavior of this prescaler undefined.
> 
> Signed-off-by: Mingkai Hu <Mingkai.hu at freescale.com>
> ---
>  include/fsl_esdhc.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h index 
> 89b8304..eac6a2b 100644
> --- a/include/fsl_esdhc.h
> +++ b/include/fsl_esdhc.h
> @@ -32,7 +32,7 @@
>  #define SYSCTL			0x0002e02c
>  #define SYSCTL_INITA		0x08000000
>  #define SYSCTL_TIMEOUT_MASK	0x000f0000
> -#define SYSCTL_CLOCK_MASK	0x00000fff
> +#define SYSCTL_CLOCK_MASK	0x0000fff0
>  #define SYSCTL_PEREN		0x00000004
>  #define SYSCTL_HCKEN		0x00000002
>  #define SYSCTL_IPGEN		0x00000001

The patch is duplicated one from Leo.
http://lists.denx.de/pipermail/u-boot/2010-January/066024.html

Thanks, Dave



More information about the U-Boot mailing list