]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_DP_DDR_DIMM_SLOTS_PER_CTLR to Kconfig
authorTom Rini <trini@konsulko.com>
Wed, 15 Jun 2022 16:03:53 +0000 (12:03 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 5 Jul 2022 21:03:01 +0000 (17:03 -0400)
This converts the following to Kconfig:
   CONFIG_DP_DDR_DIMM_SLOTS_PER_CTLR

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/cpu/armv8/fsl-layerscape/Kconfig
include/configs/ls2080aqds.h
include/configs/ls2080ardb.h

index 5a809b46118cc99d27f4946261da9a575d1de815..3ea023d36f9b4054cc4a91bf57f0397a4996ea8c 100644 (file)
@@ -511,6 +511,11 @@ config DP_DDR_CTRL
        depends on SYS_FSL_HAS_DP_DDR
        default 2 if ARCH_LS2080A
 
+config DP_DDR_DIMM_SLOTS_PER_CTLR
+       int
+       depends on SYS_FSL_HAS_DP_DDR
+       default 1 if ARCH_LS2080A
+
 config DP_DDR_NUM_CTRLS
        int
        depends on SYS_FSL_HAS_DP_DDR
index 21ca4afa51ce516a4cbd89bf933611a30faf442b..96da4ab2ec084bcd113896a897f222ea877c6e15 100644 (file)
@@ -25,9 +25,6 @@
 #define SPD_EEPROM_ADDRESS6    0x56    /* dummy address */
 #define SPD_EEPROM_ADDRESS     SPD_EEPROM_ADDRESS1
 #define CONFIG_SYS_SPD_BUS_NUM 0       /* SPD on I2C bus 0 */
-#ifdef CONFIG_SYS_FSL_HAS_DP_DDR
-#define CONFIG_DP_DDR_DIMM_SLOTS_PER_CTLR      1
-#endif
 
 #define CONFIG_SYS_NOR0_CSPR_EXT       (0x0)
 #define CONFIG_SYS_NOR_AMASK           IFC_AMASK(128*1024*1024)
index 43bcc5a9b11c3f52f499b332cea557fcf24adccc..835fff4bc60b19a551a497ccc084e83f12f4b919 100644 (file)
@@ -30,9 +30,6 @@
 #define SPD_EEPROM_ADDRESS6    0x56    /* dummy address */
 #define SPD_EEPROM_ADDRESS     SPD_EEPROM_ADDRESS1
 #define CONFIG_SYS_SPD_BUS_NUM 0       /* SPD on I2C bus 0 */
-#ifdef CONFIG_SYS_FSL_HAS_DP_DDR
-#define CONFIG_DP_DDR_DIMM_SLOTS_PER_CTLR      1
-#endif
 
 #if !defined(CONFIG_FSL_QSPI) || defined(CONFIG_TFABOOT)