[PATCH] mmc: xenon_sdhci: Remove duplicated macros

Jaehoon Chung jh80.chung at samsung.com
Tue Jan 5 23:02:39 CET 2021


On 1/5/21 10:30 PM, Michal Simek wrote:
> There is no need to define the same macros in drivers.
> All macros have been added by commit 17a42abb40dd ("mmc: Define timing
> macro's").
> 
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>

Reviewed-by: Jaehoon Chung <jh80.chung at samsung.com>

Best Regards,
Jaehoon Chung

> ---
> 
>  drivers/mmc/xenon_sdhci.c | 12 ------------
>  1 file changed, 12 deletions(-)
> 
> diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c
> index 6ce9d00d0ae7..b58848668aa3 100644
> --- a/drivers/mmc/xenon_sdhci.c
> +++ b/drivers/mmc/xenon_sdhci.c
> @@ -104,18 +104,6 @@ DECLARE_GLOBAL_DATA_PTR;
>  /* Hyperion only have one slot 0 */
>  #define XENON_MMC_SLOT_ID_HYPERION		0
>  
> -#define MMC_TIMING_LEGACY	0
> -#define MMC_TIMING_MMC_HS	1
> -#define MMC_TIMING_SD_HS	2
> -#define MMC_TIMING_UHS_SDR12	3
> -#define MMC_TIMING_UHS_SDR25	4
> -#define MMC_TIMING_UHS_SDR50	5
> -#define MMC_TIMING_UHS_SDR104	6
> -#define MMC_TIMING_UHS_DDR50	7
> -#define MMC_TIMING_MMC_DDR52	8
> -#define MMC_TIMING_MMC_HS200	9
> -#define MMC_TIMING_MMC_HS400	10
> -
>  #define XENON_MMC_MAX_CLK	400000000
>  #define XENON_MMC_3V3_UV	3300000
>  #define XENON_MMC_1V8_UV	1800000
> 



More information about the U-Boot mailing list