Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107405510
D33824.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D33824.diff
View Options
diff --git a/sys/dev/sdhci/sdhci_fdt.c b/sys/dev/sdhci/sdhci_fdt.c
--- a/sys/dev/sdhci/sdhci_fdt.c
+++ b/sys/dev/sdhci/sdhci_fdt.c
@@ -52,13 +52,11 @@
#include <dev/ofw/ofw_bus.h>
#include <dev/ofw/ofw_bus_subr.h>
-#ifdef EXT_RESOURCES
#include <dev/ofw/ofw_subr.h>
#include <dev/extres/clk/clk.h>
#include <dev/extres/clk/clk_fixed.h>
#include <dev/extres/syscon/syscon.h>
#include <dev/extres/phy/phy.h>
-#endif
#include <dev/mmc/bridge.h>
@@ -69,10 +67,8 @@
#include "opt_mmccam.h"
-#ifdef EXT_RESOURCES
#include "clkdev_if.h"
#include "syscon_if.h"
-#endif
#define MAX_SLOTS 6
#define SDHCI_FDT_ARMADA38X 1
@@ -81,7 +77,6 @@
#define SDHCI_FDT_QUALCOMM 4
#define SDHCI_FDT_RK3399 5
-#ifdef EXT_RESOURCES
#define RK3399_GRF_EMMCCORE_CON0 0xf000
#define RK3399_CORECFG_BASECLKFREQ 0xff00
#define RK3399_CORECFG_TIMEOUTCLKUNIT (1 << 7)
@@ -93,7 +88,6 @@
#define SHIFTIN(x, mask) ((x) * LOWEST_SET_BIT(mask))
#define EMMCCARDCLK_ID 1000
-#endif
static struct ofw_compat_data compat_data[] = {
{ "marvell,armada-380-sdhci", SDHCI_FDT_ARMADA38X },
@@ -120,14 +114,11 @@
bool wp_inverted; /* WP pin is inverted */
bool no_18v; /* No 1.8V support */
-#ifdef EXT_RESOURCES
clk_t clk_xin; /* xin24m fixed clock */
clk_t clk_ahb; /* ahb clock */
phy_t phy; /* phy to be used */
-#endif
};
-#ifdef EXT_RESOURCES
struct rk3399_emmccardclk_sc {
device_t clkdev;
bus_addr_t reg;
@@ -320,7 +311,6 @@
return (0);
}
-#endif
static uint8_t
sdhci_fdt_read_1(device_t dev, struct sdhci_slot *slot, bus_size_t off)
@@ -488,7 +478,6 @@
return (ENOMEM);
}
-#ifdef EXT_RESOURCES
if (ofw_bus_search_compatible(dev, compat_data)->ocd_data ==
SDHCI_FDT_RK3399) {
/* Initialize SDHCI */
@@ -498,7 +487,6 @@
return (err);
}
}
-#endif
/* Scan all slots. */
slots = sc->num_slots; /* number of slots determined in probe(). */
diff --git a/sys/dev/sdhci/sdhci_xenon_acpi.c b/sys/dev/sdhci/sdhci_xenon_acpi.c
--- a/sys/dev/sdhci/sdhci_xenon_acpi.c
+++ b/sys/dev/sdhci/sdhci_xenon_acpi.c
@@ -44,9 +44,7 @@
#include <contrib/dev/acpica/include/accommon.h>
#include <dev/acpica/acpivar.h>
-#ifdef EXT_RESOURCES
#include <dev/extres/regulator/regulator.h>
-#endif
#include <dev/sdhci/sdhci.h>
#include <dev/sdhci/sdhci_xenon.h>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 14, 5:04 PM (6 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15797422
Default Alt Text
D33824.diff (2 KB)
Attached To
Mode
D33824: sdhci: Make ext_resources non-optional
Attached
Detach File
Event Timeline
Log In to Comment