Skip to contentSkip to conversation

ddr: altera: n5x: Restructure DDR driver in preparation to support LPDDR4

PATCH New Jit Loon Lim 1 participant 1 message Nov 22, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ddr: altera: n5x: Restructure DDR driver in preparation to support LPDDR4

From: Tien Fong Chee <[email protected]>

Restructure DDR driver so that driver has the ability to recognize the DDR type by populating DDR handoff from bitstream. This is also in preparation to improve driver for supporting additional LPDDR4.

---
 drivers/ddr/altera/sdram_n5x.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/ddr/altera/sdram_n5x.c +7 -0
index 737a4e2ff1..8dba6bb035 100644
@@ -336,6 +336,13 @@ enum reset_type {
 	COLD_RESET
 };
 
+enum ddr_type {
+	DDRTYPE_LPDDR4_0,
+	DDRTYPE_LPDDR4_1,
+	DDRTYPE_DDR4,
+	DDRTYPE_UNKNOWN
+};
+
 /* DDR handoff structure */
 struct ddr_handoff {
 	/* Memory reset manager base */
Signature · 1 line
2.26.2