aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mmc
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2022-01-11 09:37:02 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2022-02-21 16:28:40 +0000
commit78f8b4aafaa0030cfda4d1a775150441ac0a5343 (patch)
tree23b573d091b74fd5888a92f64d49c09b9e906fff /sys/dev/mmc
parenta5339ba3ff147618e21f45a11f062ccb9fadafb2 (diff)
Diffstat (limited to 'sys/dev/mmc')
-rw-r--r--sys/dev/mmc/mmc_fdt_helpers.c4
-rw-r--r--sys/dev/mmc/mmc_fdt_helpers.h2
-rw-r--r--sys/dev/mmc/mmc_helpers.h4
3 files changed, 0 insertions, 10 deletions
diff --git a/sys/dev/mmc/mmc_fdt_helpers.c b/sys/dev/mmc/mmc_fdt_helpers.c
index 249a430311fa..239b3538cc67 100644
--- a/sys/dev/mmc/mmc_fdt_helpers.c
+++ b/sys/dev/mmc/mmc_fdt_helpers.c
@@ -41,9 +41,7 @@ __FBSDID("$FreeBSD$");
#include <dev/ofw/ofw_bus.h>
#include <dev/ofw/ofw_bus_subr.h>
-#ifdef EXT_RESOURCES
#include <dev/extres/regulator/regulator.h>
-#endif
#include <dev/mmc/mmc_helpers.h>
@@ -61,7 +59,6 @@ mmc_fdt_parse(device_t dev, phandle_t node, struct mmc_helper *helper,
helper->props = mmc_helper.props;
-#ifdef EXT_RESOURCES
/*
* Get the regulators if they are supported and
* clean the non supported modes based on the available voltages.
@@ -98,7 +95,6 @@ mmc_fdt_parse(device_t dev, phandle_t node, struct mmc_helper *helper,
host->caps |= MMC_CAP_SIGNALING_330;
} else
host->caps |= MMC_CAP_SIGNALING_330;
-#endif
if (OF_hasprop(node, "mmc-pwrseq")) {
if (OF_getencprop(node, "mmc-pwrseq", &pwrseq_xref, sizeof(pwrseq_xref)) == -1) {
diff --git a/sys/dev/mmc/mmc_fdt_helpers.h b/sys/dev/mmc/mmc_fdt_helpers.h
index f07ca1684440..9762e2b60d92 100644
--- a/sys/dev/mmc/mmc_fdt_helpers.h
+++ b/sys/dev/mmc/mmc_fdt_helpers.h
@@ -33,9 +33,7 @@
#include <dev/gpio/gpiobusvar.h>
#include <dev/ofw/ofw_bus.h>
-#ifdef EXT_RESOURCES
#include <dev/extres/regulator/regulator.h>
-#endif
#include <dev/mmc/mmc_helpers.h>
diff --git a/sys/dev/mmc/mmc_helpers.h b/sys/dev/mmc/mmc_helpers.h
index e402e587a159..2788d1eb0ecc 100644
--- a/sys/dev/mmc/mmc_helpers.h
+++ b/sys/dev/mmc/mmc_helpers.h
@@ -30,9 +30,7 @@
#include <dev/gpio/gpiobusvar.h>
-#ifdef EXT_RESOURCES
#include <dev/extres/regulator/regulator.h>
-#endif
struct mmc_helper {
device_t dev;
@@ -56,10 +54,8 @@ struct mmc_helper {
#define MMC_PROP_NO_SD (1 << 6)
#define MMC_PROP_NO_MMC (1 << 7)
-#ifdef EXT_RESOURCES
regulator_t vmmc_supply;
regulator_t vqmmc_supply;
-#endif
device_t mmc_pwrseq;
};