This is in preparation for use for generic SPD calculations. Signed-off-by: John Watts <contact@xxxxxxxxxx> --- drivers/ddr/fsl/ddr1_dimm_params.c | 3 +-- drivers/ddr/fsl/ddr2_dimm_params.c | 3 +-- drivers/ddr/fsl/ddr3_dimm_params.c | 3 +-- drivers/ddr/fsl/ddr4_dimm_params.c | 3 +-- include/ddr_dimms.h | 2 ++ 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/ddr/fsl/ddr1_dimm_params.c b/drivers/ddr/fsl/ddr1_dimm_params.c index 9a7f26bd49..3f8759c351 100644 --- a/drivers/ddr/fsl/ddr1_dimm_params.c +++ b/drivers/ddr/fsl/ddr1_dimm_params.c @@ -3,9 +3,8 @@ * Copyright 2008 Freescale Semiconductor, Inc. */ #include <common.h> -#include <soc/fsl/fsl_ddr_sdram.h> #include <linux/log2.h> -#include "fsl_ddr.h" +#include <ddr_dimms.h> /* * Calculate the Density of each Physical Rank. diff --git a/drivers/ddr/fsl/ddr2_dimm_params.c b/drivers/ddr/fsl/ddr2_dimm_params.c index 6f17d55c1f..eb27dbee50 100644 --- a/drivers/ddr/fsl/ddr2_dimm_params.c +++ b/drivers/ddr/fsl/ddr2_dimm_params.c @@ -4,9 +4,8 @@ */ #include <common.h> -#include <soc/fsl/fsl_ddr_sdram.h> #include <linux/log2.h> -#include "fsl_ddr.h" +#include <ddr_dimms.h> /* * Calculate the Density of each Physical Rank. diff --git a/drivers/ddr/fsl/ddr3_dimm_params.c b/drivers/ddr/fsl/ddr3_dimm_params.c index cfea35ca05..0526f0b435 100644 --- a/drivers/ddr/fsl/ddr3_dimm_params.c +++ b/drivers/ddr/fsl/ddr3_dimm_params.c @@ -9,8 +9,7 @@ */ #include <common.h> -#include <soc/fsl/fsl_ddr_sdram.h> -#include "fsl_ddr.h" +#include <ddr_dimms.h> /* * Calculate the Density of each Physical Rank. diff --git a/drivers/ddr/fsl/ddr4_dimm_params.c b/drivers/ddr/fsl/ddr4_dimm_params.c index 41c63f3613..d711863bbb 100644 --- a/drivers/ddr/fsl/ddr4_dimm_params.c +++ b/drivers/ddr/fsl/ddr4_dimm_params.c @@ -11,8 +11,7 @@ */ #include <common.h> -#include <soc/fsl/fsl_ddr_sdram.h> -#include "fsl_ddr.h" +#include <ddr_dimms.h> /* * Calculate the Density of each Physical Rank. diff --git a/include/ddr_dimms.h b/include/ddr_dimms.h index 3ec6209ae1..ea5ec85b82 100644 --- a/include/ddr_dimms.h +++ b/include/ddr_dimms.h @@ -7,6 +7,8 @@ #ifndef _DDR_DIMMS_H_ #define _DDR_DIMMS_H_ +#include <ddr_spd.h> + /* Parameters for a DDR dimm computed from the SPD */ struct dimm_params { -- 2.39.0