]> git.sur5r.net Git - u-boot/blobdiff - drivers/mmc/sh_mmcif.c
rockchip: gpio: Read the GPIO value correctly
[u-boot] / drivers / mmc / sh_mmcif.c
index 3a2022c81393885c8eac195a26ee8fed84449950..001bf185a72a4dde4f7a469df36cb01220c8172a 100644 (file)
@@ -3,9 +3,7 @@
  *
  * Copyright (C)  2011 Renesas Solutions Corp.
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License.
+ * SPDX-License-Identifier:    GPL-2.0
  */
 
 #include <config.h>
@@ -577,7 +575,7 @@ static struct mmc_config sh_mmcif_cfg = {
        .name           = DRIVER_NAME,
        .ops            = &sh_mmcif_ops,
        .host_caps      = MMC_MODE_HS | MMC_MODE_HS_52MHz | MMC_MODE_4BIT |
-                         MMC_MODE_8BIT | MMC_MODE_HC,
+                         MMC_MODE_8BIT,
        .voltages       = MMC_VDD_32_33 | MMC_VDD_33_34,
        .b_max          = CONFIG_SYS_MMC_MAX_BLK_COUNT,
 };
@@ -596,7 +594,7 @@ int mmcif_mmc_init(void)
        host->clk = CONFIG_SH_MMCIF_CLK;
 
        sh_mmcif_cfg.f_min = MMC_CLK_DIV_MIN(host->clk);
-       sh_mmcif_cfg.f_max = MMC_CLK_DIV_MAX;
+       sh_mmcif_cfg.f_max = MMC_CLK_DIV_MAX(host->clk);
 
        mmc = mmc_create(&sh_mmcif_cfg, host);
        if (mmc == NULL) {