summaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm/Kconfig
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2018-04-06 07:21:14 +0200
committerDan Williams <dan.j.williams@intel.com>2018-04-07 16:53:23 +0200
commit7171976089528cb3d057a6fb288e7f8f89ab7f68 (patch)
treeffd002598790b71dfa9cf3cbfb0005803c95f7f7 /drivers/nvdimm/Kconfig
parentlibnvdimm: Add of_node to region and bus descriptors (diff)
downloadlinux-7171976089528cb3d057a6fb288e7f8f89ab7f68.tar.xz
linux-7171976089528cb3d057a6fb288e7f8f89ab7f68.zip
libnvdimm: Add device-tree based driver
This patch adds peliminary device-tree bindings for persistent memory regions. The driver registers a libnvdimm bus for each pmem-region node and each address range under the node is converted to a region within that bus. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/Kconfig')
-rw-r--r--drivers/nvdimm/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/nvdimm/Kconfig b/drivers/nvdimm/Kconfig
index a65f2e1d9f53..2d6862bf7436 100644
--- a/drivers/nvdimm/Kconfig
+++ b/drivers/nvdimm/Kconfig
@@ -102,4 +102,14 @@ config NVDIMM_DAX
Select Y if unsure
+config OF_PMEM
+ tristate "Device-tree support for persistent memory regions"
+ depends on OF
+ default LIBNVDIMM
+ help
+ Allows regions of persistent memory to be described in the
+ device-tree.
+
+ Select Y if unsure.
+
endif