* [PATCH] ddr: altera: n5x: Restructure DDR driver in preparation to support LPDDR4
@ 2022-11-22 1:09 Jit Loon Lim
0 siblings, 0 replies; only message in thread
From: Jit Loon Lim @ 2022-11-22 1:09 UTC (permalink / raw)
To: u-boot
Cc: Jagan Teki, Vignesh R, Marek, Simon, Tien Fong, Kok Kiang,
Siew Chin, Sin Hui, Raaj, Dinesh, Boon Khai, Alif, Teik Heng,
Hazim, Jit Loon Lim, Sieu Mun Tang
From: Tien Fong Chee <tien.fong.chee@intel.com>
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.
Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
---
drivers/ddr/altera/sdram_n5x.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/ddr/altera/sdram_n5x.c b/drivers/ddr/altera/sdram_n5x.c
index 737a4e2ff1..8dba6bb035 100644
--- a/drivers/ddr/altera/sdram_n5x.c
+++ b/drivers/ddr/altera/sdram_n5x.c
@@ -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 */
--
2.26.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-22 1:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-22 1:09 [PATCH] ddr: altera: n5x: Restructure DDR driver in preparation to support LPDDR4 Jit Loon Lim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox