bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2D board
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
@@ -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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
Fabio Estevam
reviewerHi Andrea,
configs/imx6ulz_smm_m2.config line 1
Quoted 7 lines · Andrea Calabrese
configs/imx6ulz_smm_m2.config new file +1
-0@@ -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.
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@@ -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.configwith the standard defconfig options and convert the existingimx6ulz_smmdefconfig 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.