mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08: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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user