summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/conf/options1
-rw-r--r--sys/dev/cfi/cfi_core.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/sys/conf/options b/sys/conf/options
index 1009f5b..a4c785e 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -69,6 +69,7 @@ TEXTDUMP_VERBOSE opt_ddb.h
ADAPTIVE_LOCKMGRS
ALQ
ALTERA_SDCARD_FAST_SIM opt_altera_sdcard.h
+ATSE_CFI_HACK opt_cfi.h
AUDIT opt_global.h
BOOTHOWTO opt_global.h
BOOTVERBOSE opt_global.h
diff --git a/sys/dev/cfi/cfi_core.c b/sys/dev/cfi/cfi_core.c
index f318ebc..3393ca6 100644
--- a/sys/dev/cfi/cfi_core.c
+++ b/sys/dev/cfi/cfi_core.c
@@ -281,7 +281,11 @@ cfi_attach(device_t dev)
sc->sc_rid = 0;
sc->sc_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->sc_rid,
+#ifndef ATSE_CFI_HACK
RF_ACTIVE);
+#else
+ RF_ACTIVE | RF_SHAREABLE);
+#endif
if (sc->sc_res == NULL)
return (ENXIO);
OpenPOWER on IntegriCloud