Re: [PATCH 3/3 v2] sh, mmc: Use defines when setting CE_CLK_CTRL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/11/27 Simon Horman <horms@xxxxxxxxxxxx>:
> The 16-19th bits of CE_CLK_CTRL set the
> MMC clock frequency.
>
> Cc: Yusuke Goda <yusuke.goda.sx@xxxxxxxxxxx>
> Cc: Magnus Damm <magnus.damm@xxxxxxxxx>
> Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
> ---
>  include/linux/mmc/sh_mmcif.h |   17 +++++++++--------
>  1 files changed, 9 insertions(+), 8 deletions(-)
>
> diff --git a/include/linux/mmc/sh_mmcif.h b/include/linux/mmc/sh_mmcif.h
> index 519a2cd..44fc534 100644
> --- a/include/linux/mmc/sh_mmcif.h
> +++ b/include/linux/mmc/sh_mmcif.h
> @@ -77,6 +77,9 @@ struct sh_mmcif_plat_data {
>  #define CLK_ENABLE             (1 << 24) /* 1: output mmc clock */
>  #define CLK_CLEAR              ((1 << 19) | (1 << 18) | (1 << 17) | (1 << 16))
>  #define CLK_SUP_PCLK           ((1 << 19) | (1 << 18) | (1 << 17) | (1 << 16))
> +#define CLKDIV_4               (1<<16) /* mmc clock frequency.
> +                                        * n: bus clock/(2^(n+1)) */
> +#define CLKDIV_256             (7<<16) /* mmc clock frequency. (see above) */
>  #define SRSPTO_256             ((1 << 13) | (0 << 12)) /* resp timeout */
>  #define SRBSYTO_29             ((1 << 11) | (1 << 10) |        \
>                                 (1 << 9) | (1 << 8)) /* resp busy timeout */
[...]

Maybe zero is a valid value here meaning CLKDIV = 2.

Best Regards,
Michał Mirosław
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux