bsh: add support for imx6ulz_smm_m2d

Add support for imx6ulz_smm_m2d, based on the M2 architecture.

Signed-off-by: Andrea Calabrese <andrea.calabrese@amarulasolutions.com>
This commit is contained in:
Andrea Calabrese
2025-11-06 08:46:32 +01:00
committed by Fabio Estevam
parent a6d20ea69c
commit 1817467e48
8 changed files with 390 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,121 @@
// SPDX-License-Identifier: GPL-2.0+
#include "spl_mtypes.h"
static const struct dram_cfg_param ddr_ddrc_cfg_128mb[] = {
/* IOMUX */
/* DDR IO TYPE: */
{0x020E04B4, 0x000C0000}, /* IOMUXC_SW_PAD_CTL_GRP_DDR_TYPE */
{0x020E04AC, 0x00000000}, /* IOMUXC_SW_PAD_CTL_GRP_DDRPKE */
/* CLOCK: */
{0x020E027C, 0x00000028}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDCLK0_P */
/* Control: */
{0x020E0250, 0x00000028}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_CAS */
{0x020E024C, 0x00000028}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_RAS */
{0x020E0490, 0x00000028}, /* IOMUXC_SW_PAD_CTL_GRP_ADDDS */
{0x020E0288, 0x000C0028}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_RESET */
{0x020E0270, 0x00000000}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDBA2 - DSE can be configured */
/* using Group Control Register: IOMUXC_SW_PAD_CTL_GRP_CTLDS */
{0x020E0260, 0x00000028}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_ODT0 */
{0x020E0264, 0x00000028}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_ODT1 */
{0x020E04A0, 0x00000028}, /* IOMUXC_SW_PAD_CTL_GRP_CTLDS */
/* Data Strobes: */
{0x020E0494, 0x00020000}, /* IOMUXC_SW_PAD_CTL_GRP_DDRMODE_CTL */
{0x020E0280, 0x00000028}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDQS0_P */
{0x020E0284, 0x00000028}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDQS1_P */
/* Data: */
{0x020E04B0, 0x00020000}, /* IOMUXC_SW_PAD_CTL_GRP_DDRMODE */
{0x020E0498, 0x00000028}, /* IOMUXC_SW_PAD_CTL_GRP_B0DS */
{0x020E04A4, 0x00000028}, /* IOMUXC_SW_PAD_CTL_GRP_B1DS */
{0x020E0244, 0x00000028}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_DQM0 */
{0x020E0248, 0x00000028}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_DQM1 */
/* ============================================================================= */
/* DDR Controller Registers */
/* ============================================================================= */
/* Manufacturer:WINBOND */
/* Device Part Number:W631GU6RB-11 */
/* Clock Freq.: 400MHz */
/* Density per CS in Gb: 1 */
/* Chip Selects used:1 */
/* Total DRAM density (Gb)1 */
/* Number of Banks:8 */
/* Row address: 13 */
/* Column address: 10 */
/* Data bus width16 */
/* ============================================================================= */
{0x021B001C, 0x00008000}, /* [MMDC_MDSCR] MMDC Core Special Command Register */
/* ====================================================== */
/* Calibrations: */
/* ====================================================== */
{0x021B0800, 0xA1390003}, /* DDR_PHY_P0_MPZQHWCTRL, enable both one-time & periodic */
/* HW ZQ calibration. */
{0x021B080C, 0x00060002}, /* [MMDC_MPWLDECTRL0] MMDC PHY Write Leveling Delay Control */
/* Register 0 */
{0x021B083C, 0x414C0150}, /* [MMDC_MPDGCTRL0] MMDC PHY Read DQS Gating Control */
/* Register 0 */
{0x021B0848, 0x4040363E}, /* [MMDC_MPRDDLCTL] MMDC PHY Read delay-lines Configuration */
/* Register */
{0x021B0850, 0x40402A28}, /* [MMDC_MPWRDLCTL] MMDC PHY Write delay-lines Configuration */
/* Register */
{0x021B081C, 0x33333333}, /* [MMDC_MPRDDQBY0DL] MMDC PHY Read DQ Byte0 Delay Register */
{0x021B0820, 0x33333333}, /* [MMDC_MPRDDQBY1DL] MMDC PHY Read DQ Byte1 Delay Register */
{0x021B082C, 0xf3333333}, /* [MMDC_MPWRDQBY0DL] MMDC PHY Write DQ Byte0 Delay Register */
{0x021B0830, 0xf3333333}, /* [MMDC_MPWRDQBY1DL] MMDC PHY Write DQ Byte1 Delay Register */
{0x021B08C0, 0x00944009}, /* [MMDC_MPDCCR] MMDC Duty Cycle Control Register */
/* Complete calibration by forced measurement: */
{0x021B08B8, 0x00000800}, /* DDR_PHY_P0_MPMUR0, frc_msr */
/* ====================================================== */
/* MMDC init: */
/* ====================================================== */
{0x021B0004, 0x0002002D}, /* MMDC0_MDPDC */
{0x021B0008, 0x1B333030}, /* MMDC0_MDOTC */
{0x021B000C, 0x2B2F52F3}, /* MMDC0_MDCFG0 */
{0x021B0010, 0xB66D0A63}, /* MMDC0_MDCFG1 */
{0x021B0014, 0x01FF00DB}, /* MMDC0_MDCFG2 */
{0x021B0018, 0x00201740}, /* MMDC0_MDMISC */
{0x021B002C, 0x000026D2}, /* MMDC0_MDRWD; recommend to maintain the default values */
{0x021B0030, 0x002F1023}, /* MMDC0_MDOR */
{0x021B0040, 0x00000043}, /* CS0_END */
{0x021B0000, 0x82180000}, /* MMDC0_MDCTL */
/* Mode register writes for CS0 */
{0x021B001C, 0x02808032}, /* MMDC0_MDSCR, MR2 write, CS0 */
{0x021B001C, 0x00008033}, /* MMDC0_MDSCR, MR3 write, CS0 */
{0x021B001C, 0x00048031}, /* MMDC0_MDSCR, MR1 write, CS0 */
{0x021B001C, 0x15208030}, /* MMDC0_MDSCR, MR0 write, CS0 */
{0x021B001C, 0x04008040}, /* MMDC0_MDSCR, ZQ calibration command sent to device on CS0 */
/* Mode register writes for CS, commented out automatically if only one chip select used */
/* {0x021B001C, 0x0200803A}, */
/* {0x021B001C, 0x0000803B}, */
/* {0x021B001C, 0x00048039}, */
/* {0x021B001C, 0x15208038}, */
/* {0x021B001C, 0x04008048}, */
/* final DDR setup, before operation start: */
{0x021B0020, 0x00000800}, /* MMDC0_MDREF */
{0x021B0818, 0x00000227}, /* DDR_PHY_P0_MPODTCTRL */
{0x021B0004, 0x0002556D}, /* MMDC0_MDPDC now SDCTL power down enabled */
{0x021B0404, 0x00011006}, /* MMDC0_MAPSR ADOPT power down enabled */
{0x021B001C, 0x00000000}, /* MMDC0_MDSCR, clear this register (especially the */
/* configuration bit as initialization is complete) */
};
struct dram_timing_info bsh_dram_timing_128mb = {
.ddrc_cfg = ddr_ddrc_cfg_128mb,
.ddrc_cfg_num = ARRAY_SIZE(ddr_ddrc_cfg_128mb),
.dram_size = SZ_128M,
};

View File

@@ -0,0 +1,122 @@
// SPDX-License-Identifier: GPL-2.0+
#include "spl_mtypes.h"
static const struct dram_cfg_param ddr_ddrc_cfg_256mb[] = {
/* IOMUX */
/* DDR IO TYPE: */
{0x020E04B4, 0x000C0000}, /* IOMUXC_SW_PAD_CTL_GRP_DDR_TYPE */
{0x020E04AC, 0x00000000}, /* IOMUXC_SW_PAD_CTL_GRP_DDRPKE */
/* CLOCK: */
{0x020E027C, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDCLK0_P */
/* Control: */
{0x020E0250, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_CAS */
{0x020E024C, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_RAS */
{0x020E0490, 0x00000030}, /* IOMUXC_SW_PAD_CTL_GRP_ADDDS */
{0x020E0288, 0x000C0030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_RESET */
{0x020E0270, 0x00000000}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDBA2 - DSE can be configured */
/* using Group Control Register: IOMUXC_SW_PAD_CTL_GRP_CTLDS */
{0x020E0260, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_ODT0 */
{0x020E0264, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_ODT1 */
{0x020E04A0, 0x00000028}, /* IOMUXC_SW_PAD_CTL_GRP_CTLDS */
/* Data Strobes: */
{0x020E0494, 0x00020000}, /* IOMUXC_SW_PAD_CTL_GRP_DDRMODE_CTL */
{0x020E0280, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDQS0_P */
{0x020E0284, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDQS1_P */
/* Data: */
{0x020E04B0, 0x00020000}, /* IOMUXC_SW_PAD_CTL_GRP_DDRMODE */
{0x020E0498, 0x00000030}, /* IOMUXC_SW_PAD_CTL_GRP_B0DS */
{0x020E04A4, 0x00000030}, /* IOMUXC_SW_PAD_CTL_GRP_B1DS */
{0x020E0244, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_DQM0 */
{0x020E0248, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_DQM1 */
/* ============================================================================= */
/* DDR Controller Registers */
/* ============================================================================= */
/* Manufacturer:WINBOND */
/* Device Part Number:W632GU6RB-11 */
/* Clock Freq.: 400MHz */
/* Density per CS in Gb: 2 */
/* Chip Selects used:1 */
/* Total DRAM density (Gb)2 */
/* Number of Banks:8 */
/* Row address: 14 */
/* Column address: 10 */
/* Data bus width16 */
/* ============================================================================= */
{0x021B001C, 0x00008000}, /* [MMDC_MDSCR] MMDC Core Special Command Register */
/* ====================================================== */
/* Calibrations: */
/* ====================================================== */
{0x021B0800, 0xA1390003}, /* DDR_PHY_P0_MPZQHWCTRL, enable both one-time & periodic */
/* HW ZQ calibration. */
{0x021B080C, 0x00070005}, /* [MMDC_MPWLDECTRL0] MMDC PHY Write Leveling Delay Control */
/* Register 0 */
{0x021B083C, 0x414C0150}, /* [MMDC_MPDGCTRL0] MMDC PHY Read DQS Gating Control */
/* Register 0 */
{0x021B0848, 0x4040383E}, /* [MMDC_MPRDDLCTL] MMDC PHY Read delay-lines Configuration */
/* Register */
{0x021B0850, 0x40402E2A}, /* [MMDC_MPWRDLCTL] MMDC PHY Write delay-lines Configuration */
/* Register */
{0x021B081C, 0x33333333}, /* [MMDC_MPRDDQBY0DL] MMDC PHY Read DQ Byte0 Delay Register */
{0x021B0820, 0x33333333}, /* [MMDC_MPRDDQBY1DL] MMDC PHY Read DQ Byte1 Delay Register */
{0x021B082C, 0xf3333333}, /* [MMDC_MPWRDQBY0DL] MMDC PHY Write DQ Byte0 Delay Register */
{0x021B0830, 0xf3333333}, /* [MMDC_MPWRDQBY1DL] MMDC PHY Write DQ Byte1 Delay Register */
{0x021B08C0, 0x00944009}, /* [MMDC_MPDCCR] MMDC Duty Cycle Control Register */
/* Complete calibration by forced measurement: */
{0x021B08B8, 0x00000800}, /* DDR_PHY_P0_MPMUR0, frc_msr */
/* ====================================================== */
/* MMDC init: */
/* ====================================================== */
{0x021B0004, 0x00020024}, /* MMDC0_MDPDC */
{0x021B0008, 0x1B333030}, /* MMDC0_MDOTC */
{0x021B000C, 0x3F4352D3}, /* MMDC0_MDCFG0 */
{0x021B0010, 0xB66D0A63}, /* MMDC0_MDCFG1 */
{0x021B0014, 0x01FF00DB}, /* MMDC0_MDCFG2 */
{0x021B0018, 0x00201740}, /* MMDC0_MDMISC */
{0x021B002C, 0x000026D2}, /* MMDC0_MDRWD; recommend to maintain the default values */
{0x021B0030, 0x00431023}, /* MMDC0_MDOR */
{0x021B0040, 0x00000047}, /* CS0_END */
{0x021B0000, 0x83180000}, /* MMDC0_MDCTL */
/* Mode register writes for CS0 */
{0x021B001C, 0x02808032}, /* MMDC0_MDSCR, MR2 write, CS0 */
{0x021B001C, 0x00008033}, /* MMDC0_MDSCR, MR3 write, CS0 */
{0x021B001C, 0x00048031}, /* MMDC0_MDSCR, MR1 write, CS0 */
{0x021B001C, 0x15208030}, /* MMDC0_MDSCR, MR0 write, CS0 */
{0x021B001C, 0x04008040}, /* MMDC0_MDSCR, ZQ calibration command sent to device on CS0 */
/* Mode register writes for CS, commented out automatically */
/* if only one chip select used */
/* {0x021B001C, 0x0200803A}, */
/* {0x021B001C, 0x0000803B}, */
/* {0x021B001C, 0x00048039}, */
/* {0x021B001C, 0x15208038}, */
/* {0x021B001C, 0x04008048}, */
/* final DDR setup, before operation start: */
{0x021B0020, 0x00000800}, /* MMDC0_MDREF */
{0x021B0818, 0x00000227}, /* DDR_PHY_P0_MPODTCTRL */
{0x021B0004, 0x00025564}, /* MMDC0_MDPDC now SDCTL power down enabled */
{0x021B0404, 0x00011006}, /* MMDC0_MAPSR ADOPT power down enabled */
{0x021B001C, 0x00000000}, /* MMDC0_MDSCR, clear this register (especially the */
/* configuration bit as initialization is complete) */
};
struct dram_timing_info bsh_dram_timing_256mb = {
.ddrc_cfg = ddr_ddrc_cfg_256mb,
.ddrc_cfg_num = ARRAY_SIZE(ddr_ddrc_cfg_256mb),
.dram_size = SZ_256M,
};

View File

@@ -0,0 +1,127 @@
// SPDX-License-Identifier: GPL-2.0+
#include "spl_mtypes.h"
static const struct dram_cfg_param ddr_ddrc_cfg_512mb[] = {
/* ============================================================================= */
/* IOMUX */
/* ============================================================================= */
/* DDR IO TYPE: */
{0x020E04B4, 0x000C0000}, /* IOMUXC_SW_PAD_CTL_GRP_DDR_TYPE */
{0x020E04AC, 0x00000000}, /* IOMUXC_SW_PAD_CTL_GRP_DDRPKE */
/* CLOCK: */
{0x020E027C, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDCLK0_P */
/* Control: */
{0x020E0250, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_CAS */
{0x020E024C, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_RAS */
{0x020E0490, 0x00000030}, /* IOMUXC_SW_PAD_CTL_GRP_ADDDS */
{0x020E0288, 0x000C0030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_RESET */
{0x020E0270, 0x00000000}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDBA2 */
/* DSE can be configured using Group Control Register: */
/* IOMUXC_SW_PAD_CTL_GRP_CTLDS */
{0x020E0260, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_ODT0 */
{0x020E0264, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_ODT1 */
{0x020E04A0, 0x00000030}, /* IOMUXC_SW_PAD_CTL_GRP_CTLDS */
/* Data Strobes: */
{0x020E0494, 0x00020000}, /* IOMUXC_SW_PAD_CTL_GRP_DDRMODE_CTL */
{0x020E0280, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDQS0_P */
{0x020E0284, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDQS1_P */
/* Data: */
{0x020E04B0, 0x00020000}, /* IOMUXC_SW_PAD_CTL_GRP_DDRMODE */
{0x020E0498, 0x00000030}, /* IOMUXC_SW_PAD_CTL_GRP_B0DS */
{0x020E04A4, 0x00000030}, /* IOMUXC_SW_PAD_CTL_GRP_B1DS */
{0x020E0244, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_DQM0 */
{0x020E0248, 0x00000030}, /* IOMUXC_SW_PAD_CTL_PAD_DRAM_DQM1 */
/* ============================================================================= */
/* DDR Controller Registers */
/* ============================================================================= */
/* Manufacturer 1:NANYA */
/* Device Part Number 1:NT5CC256M16ER-EKI */
/* Manufacturer 2:MICRON */
/* Device Part Number 2:MT41K256M16TW-107 */
/* Clock Freq.: 400MHz */
/* Density per CS in Gb: 4 */
/* Chip Selects used:1 */
/* Total DRAM density (Gb)4 */
/* Number of Banks:8 */
/* Row address: 15 */
/* Column address: 10 */
/* Data bus width16 */
/* ============================================================================= */
{0x021B001C, 0x00008000}, /* [MMDC_MDSCR] MMDC Core Special Command Register */
/* ====================================================== */
/* Calibrations: */
/* ====================================================== */
{0x021B0800, 0xA1390003}, /* DDR_PHY_P0_MPZQHWCTRL, */
/* enable both one-time & periodic HW ZQ calibration. */
{0x021B080C, 0x00070004}, /* [MMDC_MPWLDECTRL0] MMDC PHY Write Leveling */
/* Delay Control Register 0 */
{0x021B083C, 0x414C014C}, /* [MMDC_MPDGCTRL0] MMDC PHY Read DQS */
/* Gating Control Register 0 */
{0x021B0848, 0x40403A3E}, /* [MMDC_MPRDDLCTL] MMDC PHY Read delay-lines */
/* Configuration Register */
{0x021B0850, 0x40402E28}, /* [MMDC_MPWRDLCTL] MMDC PHY Write delay-lines */
/* Configuration Register */
{0x021B081C, 0x33333333}, /* [MMDC_MPRDDQBY0DL] MMDC PHY Read DQ Byte0 Delay Register */
{0x021B0820, 0x33333333}, /* [MMDC_MPRDDQBY1DL] MMDC PHY Read DQ Byte1 Delay Register */
{0x021B082C, 0xf3333333}, /* [MMDC_MPWRDQBY0DL] MMDC PHY Write DQ Byte0 Delay Register */
{0x021B0830, 0xf3333333}, /* [MMDC_MPWRDQBY1DL] MMDC PHY Write DQ Byte1 Delay Register */
{0x021B08C0, 0x00944009}, /* [MMDC_MPDCCR] MMDC Duty Cycle Control Register */
/* Complete calibration by forced measurement: */
{0x021B08B8, 0x00000800}, /* DDR_PHY_P0_MPMUR0, frc_msr */
/* ====================================================== */
/* MMDC init: */
/* ====================================================== */
{0x021B0004, 0x0002002D}, /* MMDC0_MDPDC */
{0x021B0008, 0x1B333030}, /* MMDC0_MDOTC */
{0x021B000C, 0x616552F3}, /* MMDC0_MDCFG0 */
{0x021B0010, 0xB62C0A63}, /* MMDC0_MDCFG1 */
{0x021B0014, 0x01FF00DB}, /* MMDC0_MDCFG2 */
{0x021B0018, 0x00201740}, /* MMDC0_MDMISC */
{0x021B002C, 0x000026D2}, /* MMDC0_MDRWD; recommend to maintain the default values */
{0x021B0030, 0x00651023}, /* MMDC0_MDOR */
{0x021B0040, 0x0000004F}, /* CS0_END */
{0x021B0000, 0x84180000}, /* MMDC0_MDCTL */
/* Mode register writes for CS0 */
{0x021B001C, 0x02008032}, /* MMDC0_MDSCR, MR2 write, CS0 */
{0x021B001C, 0x00008033}, /* MMDC0_MDSCR, MR3 write, CS0 */
{0x021B001C, 0x00048031}, /* MMDC0_MDSCR, MR1 write, CS0 */
{0x021B001C, 0x15208030}, /* MMDC0_MDSCR, MR0 write, CS0 */
{0x021B001C, 0x04008040}, /* MMDC0_MDSCR, ZQ calibration command sent */
/* to device on CS0 */
/* Mode register writes for CS, commented out automatically */
/* if only one chip select used */
/* {0x021B001C,0x0200803A}, */
/* {0x021B001C,0x0000803B}, */
/* {0x021B001C,0x00048039}, */
/* {0x021B001C,0x15208038}, */
/* {0x021B001C,0x04008048}, */
/* final DDR setup, before operation start: */
{0x021B0020, 0x00000800}, /* MMDC0_MDREF */
{0x021B0818, 0x00000227}, /* DDR_PHY_P0_MPODTCTRL */
{0x021B0004, 0x0002556D}, /* MMDC0_MDPDC now SDCTL power down enabled */
{0x021B0404, 0x00011006}, /* MMDC0_MAPSR ADOPT power down enabled */
{0x021B001C, 0x00000000}, /* MMDC0_MDSCR, clear this register */
/* (especially the configuration bit as initialization is complete) */
};
struct dram_timing_info bsh_dram_timing_512mb = {
.ddrc_cfg = ddr_ddrc_cfg_512mb,
.ddrc_cfg_num = ARRAY_SIZE(ddr_ddrc_cfg_512mb),
.dram_size = SZ_512M,
};

View File

@@ -0,0 +1,2 @@
#include <configs/imx6ulz_smm_m2.config>
CONFIG_BSH_M2D_MEMORY=y

View File

@@ -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