aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdt
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2019-08-16 17:08:06 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2019-08-16 17:08:06 +0000
commitbe6d7fc657b14d33df47313b41808805577eed34 (patch)
tree2e0da02bd6d3a7ffa08f8f4ca48aadb53d5aad32 /sys/dev/fdt
parent3afdc7303c02787effee5dee55425ce85e11c130 (diff)
downloadsrc-be6d7fc657b14d33df47313b41808805577eed34.tar.gz
src-be6d7fc657b14d33df47313b41808805577eed34.zip
fdt: simple-mfd: Set the syscon memory to SHAREABLE
Since syscon is usually used with another compatible string (and so another driver), this driver might want to map the memory too. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=351129
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r--sys/dev/fdt/simple_mfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fdt/simple_mfd.c b/sys/dev/fdt/simple_mfd.c
index 596043629ea6..e824daf1a277 100644
--- a/sys/dev/fdt/simple_mfd.c
+++ b/sys/dev/fdt/simple_mfd.c
@@ -187,7 +187,7 @@ simple_mfd_attach(device_t dev)
if (ofw_bus_is_compatible(dev, "syscon")) {
sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
- RF_ACTIVE);
+ RF_ACTIVE | RF_SHAREABLE);
if (sc->mem_res == NULL) {
device_printf(dev,
"Cannot allocate memory resource\n");