Skip to contentSkip to conversation

imx: Add support for i.MX8MM Beacon SOM 4GB variant

PATCH New Adam Ford 1 participant 2 messages Apr 17, 2022 Arm i.MX and Layerscape

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/2 imx: Add support for i.MX8MM Beacon SOM 4GB variant

The Beacon Embedded has a new variant with a different LPDDR4 chip. This new chip has 4GB of RAM. Because the DDR timings are loaded SPL, and there doesn't appear to be a way to determine which chip timings are needed at runtime, a new config option is created to enable the 4GB of memory and load the proper timings.

board/beacon/imx8mm/Kconfig +4 -0
index 63f064e8cb..70f93102e0 100644
@@ -12,6 +12,10 @@ config SYS_CONFIG_NAME
 config IMX_CONFIG
 	default "board/beacon/imx8mm/imximage-8mm-lpddr4.cfg"
 
+config IMX8MM_BEACON_4GB_LPDDR
+	bool "Enable 4GB LPDDR"
+	default n
+
 source "board/freescale/common/Kconfig"
 
 endif
board/beacon/imx8mm/MAINTAINERS +1 -0
index e887db20a2..85b830f2df 100644
@@ -5,3 +5,4 @@ S:	Maintained
 F:	board/beacon/imx8mm/
 F:	include/configs/imx8mm_beacon.h
 F:	configs/imx8mm_beacon_defconfig
+F:	configs/imx8mm_beacon_4g_defconfig
board/beacon/imx8mm/Makefile +4 -0
index 7d3bd3112c..2a9677fbf2 100644
@@ -9,5 +9,9 @@ obj-y += ../../freescale/common/
 
 ifdef CONFIG_SPL_BUILD
 obj-y += spl.o
+ifdef IMX8MM_BEACON_4GB_LPDDR
+obj-y += lpddr4_timing_4g.o
+else
 obj-y += lpddr4_timing.o
 endif
+endif
board/beacon/imx8mm/lpddr4_timing_4g.c new file +1840 -0

1,840 lines not on this page · raw message

configs/imx8mm_beacon_4g_defconfig new file +137 -0

137 lines not on this page · raw message

include/configs/imx8mm_beacon.h +7 -0
index 7c17f14964..e514580cb1 100644
@@ -89,7 +89,14 @@
 
 #define CONFIG_SYS_SDRAM_BASE		0x40000000
 #define PHYS_SDRAM			0x40000000
+
+#if defined(CONFIG_IMX8MM_BEACON_4GB_LPDDR)
+#define PHYS_SDRAM_SIZE		0xC0000000 /* 3GB */
+#define PHYS_SDRAM_2		0x100000000
+#define PHYS_SDRAM_2_SIZE	0x40000000 /* 1GB */
+#else
 #define PHYS_SDRAM_SIZE		0x80000000 /* 2GB DDR */
+#endif
 
 #define CONFIG_MXC_UART_BASE		UART2_BASE_ADDR
 
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 2/2 imx: imx8mm_beacon: Enable Micrel PHY

Due part shortages, there is a second variant of the Beacon i.MX8M Mini SOM which contains a Micrel PHY.

configs/imx8mm_beacon_defconfig +2 -0
index 403934a1ac..e8b29da92c 100644
@@ -92,6 +92,8 @@ CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_MTD=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_ATHEROS=y
+CONFIG_PHY_MICREL=y
+CONFIG_PHY_MICREL_KSZ90X1=y
 CONFIG_DM_ETH=y
 CONFIG_PHY_GIGE=y
 CONFIG_FEC_MXC=y
Signature · 1 line
2.34.1