Skip to contentSkip to conversation

bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2D board

PATCH Superseded Andrea Calabrese 2 participants 3 messages Nov 5, 2025 Arm i.MX and Layerscape

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 3/3 bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2D board

Introduce the BSH SystemMaster (SMM) M2D board. Notably, the M2D is designed to leverage the existing device tree of its predecessors, the M2B and the M2.
The primary distinction arises from memory incompatibilities with the M2B and M2.
To address this, we've implemented a configuration system that allows for selective inclusion of the desired memory components.

board/bsh/imx6ulz_smm_m2/Kconfig +6 -0
index 20971aa4fe1..6c4321c3b5e 100644
@@ -28,6 +28,12 @@ config BSH_M2B_MEMORY
 	  If this option is enabled, U-Boot will be configured to support
 	  imx6ulz bsh m2b revision memories.
 
+config BSH_M2D_MEMORY
+	bool "Enable for bsh m2d variant"
+	help
+	  If this option is enabled, U-Boot will be configured to support
+	  imx6ulz bsh m2d revision memories.
+
 endchoice
 
 endif
board/bsh/imx6ulz_smm_m2/MAINTAINERS +1 -0
index a75cddd72f8..098b992b07a 100644
@@ -5,3 +5,4 @@ F:	board/bsh/imx6ulz_smm_m2/
 F:	include/configs/imx6ulz_smm_m2.h
 F:	configs/imx6ulz_smm_m2_defconfig
 F:	configs/imx6ulz_smm_m2b_defconfig
+F:	configs/imx6ulz_smm_m2d_defconfig
board/bsh/imx6ulz_smm_m2/Makefile +1 -0
index 5ab00a5ea75..81e47e3735e 100644
@@ -5,3 +5,4 @@ obj-y  := imx6ulz_smm_m2.o
 obj-$(CONFIG_XPL_BUILD) += spl.o
 obj-$(CONFIG_BSH_M2_MEMORY) += ddr3l_timing_512m.o ddr3l_timing_256m.o ddr3l_timing_128m.o
 obj-$(CONFIG_BSH_M2B_MEMORY) += ddr3l_timing_512m_m2b.o ddr3l_timing_256m_m2b.o ddr3l_timing_128m_m2b.o
+obj-$(CONFIG_BSH_M2D_MEMORY) += ddr3l_timing_512m_m2d.o ddr3l_timing_256m_m2d.o ddr3l_timing_128m_m2d.o
\ No newline at end of file
board/bsh/imx6ulz_smm_m2/ddr3l_timing_128m_m2d.c new file +121 -0

121 lines not on this page · raw message

board/bsh/imx6ulz_smm_m2/ddr3l_timing_256m_m2d.c new file +122 -0

122 lines not on this page · raw message

board/bsh/imx6ulz_smm_m2/ddr3l_timing_512m_m2d.c new file +127 -0

127 lines not on this page · raw message

configs/imx6ulz_smm_m2.config new file +1 -0
new file mode 100644
index 00000000000..50dafd887f2
@@ -0,0 +1 @@
+#include <configs/imx6ulz_smm_m2.config>
configs/imx6ulz_smm_m2b_defconfig +1 -81

83 lines not on this page · raw message

configs/imx6ulz_smm_m2d_defconfig new file +2 -0
new file mode 100644
index 00000000000..b3f9efa4941
@@ -0,0 +1,2 @@
+#include <configs/imx6ulz_smm_m2.config>
+CONFIG_BSH_M2D_MEMORY=y
doc/board/bsh/imx6ulz_bsh_smm_m2.rst +10 -2
index 0f391a17ade..0af41c09d20 100644
@@ -1,7 +1,7 @@
 .. SPDX-License-Identifier: GPL-2.0+
 
-How to Update U-Boot on imx6ulz_smm_m2 and imx6ulz_smm_m2b boards
-=================================================================
+How to Update U-Boot on imx6ulz_smm_m2, imx6ulz_smm_m2b and imx6ulz_smm_m2d boards
+==================================================================================
 
 Required software on the host PC:
 
@@ -23,6 +23,14 @@ Build U-Boot for m2b:
    $ make imx6ulz_smm_m2b_defconfig
    $ make
 
+Build U-Boot for m2d:
+
+.. code-block:: bash
+
+   $ make mrproper
+   $ make imx6ulz_smm_m2d_defconfig
+   $ make
+
 This generates the SPL and u-boot-dtb.img binaries.
 
 Loading U-Boot via USB Serial Download Protocol
Signature · 1 line
2.48.1
reviewer
#1 lore raw

Hi Andrea,

configs/imx6ulz_smm_m2.config line 1

Quoted 7 lines · Andrea Calabrese
configs/imx6ulz_smm_m2.config new file +1 -0
new file mode 100644
index 00000000000..50dafd887f2
@@ -0,0 +1 @@
+#include <configs/imx6ulz_smm_m2.config>

A file that includes itself?

You have not tested this, as this does not even build.

Here is my suggestion:

1. Make a patch that introduces configs/imx6ulz_smm_m2.config with the standard defconfig options and convert the existing imx6ulz_smm defconfig to make use of it.

2. Make another patch that introduces the m2d board.

3. Make sure it builds and boots.

#2 lore raw

I'm sorry, I thought the change was trivial and did not think about it.

Re-sent now, and built...

Il 05/11/25 14:25, Fabio Estevam ha scritto:

Quoted 24 lines

Hi Andrea,

configs/imx6ulz_smm_m2.config line 1

Quoted 7 lines · Andrea Calabrese
configs/imx6ulz_smm_m2.config new file +1 -0
new file mode 100644
index 00000000000..50dafd887f2
@@ -0,0 +1 @@
+#include <configs/imx6ulz_smm_m2.config>

A file that includes itself?

You have not tested this, as this does not even build.

Here is my suggestion:

1. Make a patch that introduces configs/imx6ulz_smm_m2.config with the standard defconfig options and convert the existing imx6ulz_smm defconfig to make use of it.

2. Make another patch that introduces the m2d board.

3. Make sure it builds and boots.

Signature · 16 lines
Andrea Calabrese
Embedded Software Developer
M. +39 339 394 4747
[email protected]

__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9170
[email protected]
www.amarulasolutions.com

__________________________________
This message and any file transmitted with it may contain privileged or confidential information. In case you were not listed in the addressed recipient, please notify the sender immediately and delete the message.
Any other use of this email, including copying it and the disclosure of its content, is prohibited.