You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/09/27 18:09:08 UTC
[incubator-nuttx] 01/02: arch/risc-v/src/mpfs/Kconfig: Add configuration flags for DDR type selection
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 0ba3bc66bea38fc0ed6ecbad3bcef681724a8b4f
Author: Jukka Laitinen <ju...@ssrc.tii.ae>
AuthorDate: Tue Sep 27 14:34:37 2022 +0400
arch/risc-v/src/mpfs/Kconfig: Add configuration flags for DDR type selection
Signed-off-by: Jukka Laitinen <ju...@ssrc.tii.ae>
---
arch/risc-v/src/mpfs/Kconfig | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/arch/risc-v/src/mpfs/Kconfig b/arch/risc-v/src/mpfs/Kconfig
index d731e6458a..52cd2cd7d5 100644
--- a/arch/risc-v/src/mpfs/Kconfig
+++ b/arch/risc-v/src/mpfs/Kconfig
@@ -126,6 +126,37 @@ config MPFS_DDR_INIT
---help---
Initializes and performs DDR training on the associated DDR memory.
+choice
+ prompt "Choose DDR type"
+ depends on MPFS_DDR_INIT
+ default MPFS_DDR_TYPE_LPDDR4
+
+config MPFS_DDR_TYPE_DDR3
+ bool "Use DDR3"
+
+config MPFS_DDR_TYPE_DDR3L
+ bool "Use DDR3L"
+
+config MPFS_DDR_TYPE_DDR4
+ bool "Use DDR4"
+
+config MPFS_DDR_TYPE_LPDDR3
+ bool "Use LPDDR3"
+
+config MPFS_DDR_TYPE_LPDDR4
+ bool "Use LPDDR4"
+
+endchoice
+
+config MPFS_DDR_TYPE
+ int
+ depends on MPFS_DDR_INIT
+ default 0 if MPFS_DDR_TYPE_DDR3
+ default 1 if MPFS_DDR_TYPE_DDR3L
+ default 2 if MPFS_DDR_TYPE_DDR4
+ default 3 if MPFS_DDR_TYPE_LPDDR3
+ default 4 if MPFS_DDR_TYPE_LPDDR4
+
config MPFS_EMMCSD_MUX_GPIO
bool "GPIO driven EMMCSD mux"
default n