]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: fsl-layerscape: Migrate more DP-DDR options to Kconfig
authorTom Rini <trini@konsulko.com>
Wed, 30 Mar 2022 22:07:35 +0000 (18:07 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 8 Apr 2022 14:46:22 +0000 (10:46 -0400)
Based on current usage, migrate a number of DP-DDR related options to
Kconfig.

Cc: Priyanka Jain <priyanka.jain@nxp.com>
Cc: Rajesh Bhagat <rajesh.bhagat@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
README
arch/arm/cpu/armv8/fsl-layerscape/Kconfig
include/configs/ls2080a_common.h

diff --git a/README b/README
index 6273a7f3673ea52756e7111162c3e0006a0c3b81..d503357f3be21a4e36ce42ea91c384ec5f4cc681 100644 (file)
--- a/README
+++ b/README
@@ -487,9 +487,6 @@ The following options need to be configured:
                CONFIG_SYS_FSL_OTHER_DDR_NUM_CTRLS
                Number of controllers used for other than main memory.
 
-               CONFIG_SYS_FSL_HAS_DP_DDR
-               Defines the SoC has DP-DDR used for DPAA.
-
                CONFIG_SYS_FSL_SEC_BE
                Defines the SEC controller register space as Big Endian
 
index 9bb870dcd8c2e2b16e3b6dd3c3aa1aa2d7c1f420..5ea99c459ce730375f87c3e9cbe15355e0a495eb 100644 (file)
@@ -502,6 +502,31 @@ config SYS_FSL_HAS_CCN508
 
 config SYS_FSL_HAS_DP_DDR
        bool
+       help
+         Defines the SoC has DP-DDR used for DPAA.
+
+config DP_DDR_CTRL
+       int
+       depends on SYS_FSL_HAS_DP_DDR
+       default 2 if ARCH_LS2080A
+
+config DP_DDR_NUM_CTRLS
+       int
+       depends on SYS_FSL_HAS_DP_DDR
+       default 1 if ARCH_LS2080A
+
+config SYS_DP_DDR_BASE
+       hex
+       depends on SYS_FSL_HAS_DP_DDR
+       default 0x6000000000 if ARCH_LS2080A
+
+config SYS_DP_DDR_BASE_PHY
+       int
+       depends on SYS_FSL_HAS_DP_DDR
+       default 0 if ARCH_LS2080A
+       help
+         DDR controller uses this value as the base address for binding.
+         It is mapped to CONFIG_SYS_DP_DDR_BASE for core to access.
 
 config SYS_FSL_SRDS_1
        bool
index 9027bd06b02d2d70d8422f61edd09be3f8ceb8c3..82585f5dbfaf6577c94fddcb1a262923fc8907c2 100644 (file)
 #define CPU_RELEASE_ADDR               secondary_boot_addr
 
 #define CONFIG_SYS_FSL_OTHER_DDR_NUM_CTRLS
-#ifdef CONFIG_SYS_FSL_HAS_DP_DDR
-#define CONFIG_SYS_DP_DDR_BASE         0x6000000000ULL
-/*
- * DDR controller use 0 as the base address for binding.
- * It is mapped to CONFIG_SYS_DP_DDR_BASE for core to access.
- */
-#define CONFIG_SYS_DP_DDR_BASE_PHY     0
-#define CONFIG_DP_DDR_CTRL             2
-#define CONFIG_DP_DDR_NUM_CTRLS                1
-#endif
 
 /* Generic Timer Definitions */
 /*