Most of those defines aren't used. Whether DDR_ONE_RANK should be defined is really dependent on the used DRAM on a specific board, so move this from the common header into the board DRAM setup. Signed-off-by: Lucas Stach <dev@xxxxxxxxxx> --- arch/arm/boards/nxp-imx8mm-evk/lpddr4-timing.c | 2 ++ include/soc/imx8m/lpddr4_define.h | 7 ------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/arm/boards/nxp-imx8mm-evk/lpddr4-timing.c b/arch/arm/boards/nxp-imx8mm-evk/lpddr4-timing.c index 8d6cc389ba9b..e7c01f9cc9a0 100644 --- a/arch/arm/boards/nxp-imx8mm-evk/lpddr4-timing.c +++ b/arch/arm/boards/nxp-imx8mm-evk/lpddr4-timing.c @@ -5,6 +5,8 @@ #include <common.h> #include <soc/imx8m/ddr.h> + +#define DDR_ONE_RANK #include <soc/imx8m/lpddr4_define.h> static struct dram_cfg_param lpddr4_ddrc_cfg[] = { diff --git a/include/soc/imx8m/lpddr4_define.h b/include/soc/imx8m/lpddr4_define.h index caf5bafb6d02..805357959349 100644 --- a/include/soc/imx8m/lpddr4_define.h +++ b/include/soc/imx8m/lpddr4_define.h @@ -6,13 +6,6 @@ #ifndef __LPDDR4_DEFINE_H_ #define __LPDDR4_DEFINE_H_ -#define LPDDR4_DVFS_DBI -#define DDR_ONE_RANK -/* #define LPDDR4_DBI_ON */ -#define DFI_BUG_WR -#define M845S_4GBx2 -#define PRETRAIN - /* DRAM MR setting */ #ifdef LPDDR4_DBI_ON #define LPDDR4_MR3 0xf1 -- 2.29.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox