Skip to contentSkip to conversation

ARM: imx: Add 2 GiB DRAM support for DH electronics i.MX8M Plus DHCOM

PATCH New Marek Vasut 2 participants 2 messages Feb 11, 2023 – Mar 30, 2023 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: imx: Add 2 GiB DRAM support for DH electronics i.MX8M Plus DHCOM

The DH electronics i.MX8M Plus DHCOM SoM currently supports only 4 GiB of DRAM population option. Add another population option with 2 GiB of DRAM. The chips used on the 2 GiB option are 2x K4F6E3S4HM-MGCJ .

---
Cc: Fabio Estevam <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Stefano Babic <[email protected]>

---
 board/dhelectronics/dh_imx8mp/Makefile        |    2 +-
 board/dhelectronics/dh_imx8mp/lpddr4_timing.h |    1 +
 .../dh_imx8mp/lpddr4_timing_2G_32.c           | 1845 +++++++++++++++++
 board/dhelectronics/dh_imx8mp/spl.c           |    2 +-
 4 files changed, 1848 insertions(+), 2 deletions(-)
 create mode 100644 board/dhelectronics/dh_imx8mp/lpddr4_timing_2G_32.c
board/dhelectronics/dh_imx8mp/Makefile +1 -1
index 86ffc31fed8..e5a29fdd122 100644
@@ -5,7 +5,7 @@
 #
 
 ifdef CONFIG_SPL_BUILD
-obj-y += spl.o lpddr4_timing_4G_32.o
+obj-y += spl.o lpddr4_timing_2G_32.o lpddr4_timing_4G_32.o
 else
 obj-y += imx8mp_dhcom_pdk2.o
 endif
board/dhelectronics/dh_imx8mp/lpddr4_timing.h +1 -0
index 6d496a970be..7894da3b918 100644
@@ -6,6 +6,7 @@
 #ifndef __LPDDR4_TIMING_H__
 #define __LPDDR4_TIMING_H__
 
+extern struct dram_timing_info dh_imx8mp_dhcom_dram_timing_16g_x32;
 extern struct dram_timing_info dh_imx8mp_dhcom_dram_timing_32g_x32;
 
 u8 dh_get_memcfg(void);
board/dhelectronics/dh_imx8mp/lpddr4_timing_2G_32.c new file +1845 -0

1,845 lines not on this page · raw message

board/dhelectronics/dh_imx8mp/spl.c +1 -1
index 24b909adf2b..521a61214b3 100644
@@ -109,7 +109,7 @@ static struct dram_timing_info *dram_timing_info[8] = {
 	NULL,					/* 512 MiB */
 	NULL,					/* 1024 MiB */
 	NULL,					/* 1536 MiB */
-	NULL,					/* 2048 MiB */
+	&dh_imx8mp_dhcom_dram_timing_16g_x32,	/* 2048 MiB */
 	NULL,					/* 3072 MiB */
 	&dh_imx8mp_dhcom_dram_timing_32g_x32,	/* 4096 MiB */
 	NULL,					/* 6144 MiB */
Signature · 1 line
2.39.1
#1 lore raw

PATCH 1/1 ARM: imx: Add 2 GiB DRAM support for DH electronics i.MX8M Plus DHCOM

Quoted 4 lines

The DH electronics i.MX8M Plus DHCOM SoM currently supports only 4 GiB of DRAM population option. Add another population option with 2 GiB of DRAM. The chips used on the 2 GiB option are 2x K4F6E3S4HM-MGCJ .

Applied to u-boot-imx, next, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================