mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
ddr: fsl: Merge macro CONFIG_NUM_DDR_CONTROLLERS and CONFIG_SYS_NUM_DDR_CTRLS
These two macros are used for the same thing, the total number of DDR controllers for a given SoC. Use SYS_NUM_DDR_CTRLS in Kconfig and merge existing usage. Signed-off-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
66e399b68d
commit
51370d5618
28 changed files with 102 additions and 104 deletions
|
@ -15,7 +15,7 @@
|
|||
|
||||
#ifndef CONFIG_SYS_FSL_DDR_MAIN_NUM_CTRLS
|
||||
/* All controllers are for main memory */
|
||||
#define CONFIG_SYS_FSL_DDR_MAIN_NUM_CTRLS CONFIG_NUM_DDR_CONTROLLERS
|
||||
#define CONFIG_SYS_FSL_DDR_MAIN_NUM_CTRLS CONFIG_SYS_NUM_DDR_CTLRS
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYS_FSL_DDR_LE
|
||||
|
@ -54,7 +54,6 @@ compute_dimm_parameters(const unsigned int ctrl_num,
|
|||
*
|
||||
* All data structures have to be on the stack
|
||||
*/
|
||||
#define CONFIG_SYS_NUM_DDR_CTLRS CONFIG_NUM_DDR_CONTROLLERS
|
||||
#define CONFIG_SYS_DIMM_SLOTS_PER_CTLR CONFIG_DIMM_SLOTS_PER_CTLR
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue