aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/memory/of_memory.h
diff options
context:
space:
mode:
authorLukasz Luba <l.luba@partner.samsung.com>2019-08-21 12:42:58 +0200
committerKrzysztof Kozlowski <krzk@kernel.org>2019-10-01 20:28:38 +0200
commit976897dd96db94c74209d0a0671d7a73aa02fab9 (patch)
tree2b642a5d1dec85ec1e07031a4980d8d0657880a1 /drivers/memory/of_memory.h
parentLinux 5.4-rc1 (diff)
downloadlinux-dev-976897dd96db94c74209d0a0671d7a73aa02fab9.tar.xz
linux-dev-976897dd96db94c74209d0a0671d7a73aa02fab9.zip
memory: Extend of_memory with LPDDR3 support
Add AC timings information needed to support LPDDR3 and memory controllers along with helpers to obtain it. These will be necessary for upcoming Exynos5422 Dynamic Memory Controller driver. Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'drivers/memory/of_memory.h')
-rw-r--r--drivers/memory/of_memory.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/memory/of_memory.h b/drivers/memory/of_memory.h
index b077cc836b0b..e39ecc4c733d 100644
--- a/drivers/memory/of_memory.h
+++ b/drivers/memory/of_memory.h
@@ -14,6 +14,11 @@ extern const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np,
extern const struct lpddr2_timings
*of_get_ddr_timings(struct device_node *np_ddr, struct device *dev,
u32 device_type, u32 *nr_frequencies);
+extern const struct lpddr3_min_tck
+ *of_lpddr3_get_min_tck(struct device_node *np, struct device *dev);
+extern const struct lpddr3_timings
+ *of_lpddr3_get_ddr_timings(struct device_node *np_ddr,
+ struct device *dev, u32 device_type, u32 *nr_frequencies);
#else
static inline const struct lpddr2_min_tck
*of_get_min_tck(struct device_node *np, struct device *dev)
@@ -27,6 +32,19 @@ static inline const struct lpddr2_timings
{
return NULL;
}
+
+static inline const struct lpddr3_min_tck
+ *of_lpddr3_get_min_tck(struct device_node *np, struct device *dev)
+{
+ return NULL;
+}
+
+static inline const struct lpddr3_timings
+ *of_lpddr3_get_ddr_timings(struct device_node *np_ddr,
+ struct device *dev, u32 device_type, u32 *nr_frequencies)
+{
+ return NULL;
+}
#endif /* CONFIG_OF && CONFIG_DDR */
#endif /* __LINUX_MEMORY_OF_REG_ */