hdata/memory: Add NVDIMM support
hdata/memory: Add NVDIMM support

NVDIMMs are memory modules that use a battery backup system to allow the
contents RAM to be saved to non-volatile storage if system power goes
away unexpectedly. This allows them to be used a high-performance
storage device, suitable for serving as a cache for SSDs and the like.

Configuration of NVDIMMs is handled by hostboot and communicated to OPAL
via the HDAT. We need to parse out the NVDIMM memory ranges and create
memory regions with the "pmem-region" compatible label to make them
available to the host.

Signed-off-by: Oliver O'Halloran <3dfaff8fa6ae977f042064a112a6aac576279b9b@gmail.com>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.ibm.com>

stewart-ibm/skiboot,stewart-ibm/skiboot,stewart-ibm/skiboot,open-power/skiboot,legoater/skiboot,qemu/skiboot,legoater/skiboot,shenki/skiboot,open-power/skiboot,legoater/skiboot,shenki/skiboot,open-power/skiboot,shenki/skiboot,open-power/skiboot,legoater/skiboot,shenki/skiboot,qemu/skiboot,qemu/skiboot,shenki/skiboot,open-power/skiboot,qemu/skiboot,qemu/skiboot,legoater/skiboot