diff options
author | Vincent Whitchurch <vincent.whitchurch@axis.com> | 2022-04-12 15:53:01 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-04-25 10:37:49 +0200 |
commit | 7090d2f1d66767928b6f24def05b715ed18e5c6f (patch) | |
tree | 2502d5909ef283e06301f6fd0407dfbe55a4c4c9 /drivers/of | |
parent | 4e969459604632d4096ff536f72552a9d365845e (diff) | |
download | lwn-7090d2f1d66767928b6f24def05b715ed18e5c6f.tar.gz lwn-7090d2f1d66767928b6f24def05b715ed18e5c6f.zip |
mtd: phram: Allow probing via reserved-memory
Allow phram to be probed from the devicetree. It expects to be in a
reserved-memory node as documented by the bindings. This allows things
like partitioning to be specified via the devicetree.
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220412135302.1682890-4-vincent.whitchurch@axis.com
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index a16b74f32aa9..55d62b82c650 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -509,6 +509,7 @@ EXPORT_SYMBOL_GPL(of_platform_default_populate); #ifndef CONFIG_PPC static const struct of_device_id reserved_mem_matches[] = { + { .compatible = "phram" }, { .compatible = "qcom,rmtfs-mem" }, { .compatible = "qcom,cmd-db" }, { .compatible = "qcom,smem" }, |