summaryrefslogtreecommitdiff
path: root/drivers/memory/of_memory.h
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2021-10-07 01:46:58 +0300
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-10-15 10:52:47 +0300
commit38322cf423f69b89b6e0eaad4017ab41cfe45b45 (patch)
tree4c3e1ca263069269284391f6229fbb82a8da785d /drivers/memory/of_memory.h
parentce004ae6c55213b53b0da9a923d4c2e7779f1cd3 (diff)
downloadlinux-38322cf423f69b89b6e0eaad4017ab41cfe45b45.tar.xz
memory: Add LPDDR2-info helpers
Add common helpers for reading and parsing standard LPDDR2 configuration properties. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Link: https://lore.kernel.org/r/20211006224659.21434-9-digetx@gmail.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Diffstat (limited to 'drivers/memory/of_memory.h')
-rw-r--r--drivers/memory/of_memory.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/memory/of_memory.h b/drivers/memory/of_memory.h
index 4a99b232ab0a..1c4e47fede8a 100644
--- a/drivers/memory/of_memory.h
+++ b/drivers/memory/of_memory.h
@@ -20,6 +20,9 @@ const struct lpddr3_min_tck *of_lpddr3_get_min_tck(struct device_node *np,
const struct lpddr3_timings *
of_lpddr3_get_ddr_timings(struct device_node *np_ddr,
struct device *dev, u32 device_type, u32 *nr_frequencies);
+
+const struct lpddr2_info *of_lpddr2_get_info(struct device_node *np,
+ struct device *dev);
#else
static inline const struct lpddr2_min_tck
*of_get_min_tck(struct device_node *np, struct device *dev)
@@ -46,6 +49,12 @@ static inline const struct lpddr3_timings
{
return NULL;
}
+
+static inline const struct lpddr2_info
+ *of_lpddr2_get_info(struct device_node *np, struct device *dev)
+{
+ return NULL;
+}
#endif /* CONFIG_OF && CONFIG_DDR */
#endif /* __LINUX_MEMORY_OF_REG_ */