summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorVipul Kumar <vipul.kumar@xilinx.com>2018-02-28 15:53:29 +0530
committerMichal Simek <michal.simek@xilinx.com>2018-03-01 16:44:10 +0100
commit3ccc207a3098e59ab7333210deba94e7d41d7c8d (patch)
treee6fe4366ae48639932d610ec1ec798b962388a87 /drivers/mmc
parent5dc5a53c5e5f56971d3df4f6f994993d5efa53f8 (diff)
mmc: Added Kconfig support for CONFIG_ZYNQ_SDHCI_MIN_FREQ
This patch added Kconfig support for CONFIG_ZYNQ_SDHCI_MIN_FREQ and enabled it in respective defconfig. Signed-off-by: Vipul Kumar <vipulk@xilinx.com> Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/Kconfig7
-rw-r--r--drivers/mmc/zynq_sdhci.c4
2 files changed, 7 insertions, 4 deletions
diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
index 9967fffbd4..5f67e336db 100644
--- a/drivers/mmc/Kconfig
+++ b/drivers/mmc/Kconfig
@@ -487,6 +487,13 @@ config ZYNQ_SDHCI_MAX_FREQ
help
Set the maximum frequency of the controller.
+config ZYNQ_SDHCI_MIN_FREQ
+ int "Set the minimum frequency of the controller"
+ depends on MMC_SDHCI_ZYNQ
+ default 0
+ help
+ Set the minimum frequency of the controller.
+
config MMC_SUNXI
bool "Allwinner sunxi SD/MMC Host Controller support"
depends on ARCH_SUNXI && !UART0_PORT_F
diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c
index 0fddb420dc..414778cc4a 100644
--- a/drivers/mmc/zynq_sdhci.c
+++ b/drivers/mmc/zynq_sdhci.c
@@ -16,10 +16,6 @@
DECLARE_GLOBAL_DATA_PTR;
-#ifndef CONFIG_ZYNQ_SDHCI_MIN_FREQ
-# define CONFIG_ZYNQ_SDHCI_MIN_FREQ 0
-#endif
-
struct arasan_sdhci_plat {
struct mmc_config cfg;
struct mmc mmc;