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/nuttx.git

commit a5cd1cf89baeedcc5fdc561ab96eb03e8b034252
Author: Jouni Ukkonen <[email protected]>
AuthorDate: Tue May 21 13:38:19 2024 +0300

    imx9: map flexspi peripheral interface
    
    Signed-off-by: Jouni Ukkonen <[email protected]>
---
 arch/arm64/include/imx9/chip.h  | 3 +++
 arch/arm64/src/imx9/imx9_boot.c | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/arch/arm64/include/imx9/chip.h b/arch/arm64/include/imx9/chip.h
index c028ccdb02..5147ab4cc9 100644
--- a/arch/arm64/include/imx9/chip.h
+++ b/arch/arm64/include/imx9/chip.h
@@ -65,6 +65,9 @@
 #define CONFIG_OCRAM_BASE_ADDR    0x20480000
 #define CONFIG_OCRAM_SIZE         KB(640)
 
+#define CONFIG_FSPI_PER_BASEADDR  0x28000000
+#define CONFIG_FSPI_PER_SIZE      MB(128)
+
 #define MPID_TO_CLUSTER_ID(mpid)  ((mpid) & ~0xff)
 
 #define IMX9_GPIO_NPORTS          4
diff --git a/arch/arm64/src/imx9/imx9_boot.c b/arch/arm64/src/imx9/imx9_boot.c
index 380ad9f4d6..bb8b8093f0 100644
--- a/arch/arm64/src/imx9/imx9_boot.c
+++ b/arch/arm64/src/imx9/imx9_boot.c
@@ -61,6 +61,10 @@ static const struct arm_mmu_region g_mmu_regions[] =
   MMU_REGION_FLAT_ENTRY("OCRAM",
                         CONFIG_OCRAM_BASE_ADDR, CONFIG_OCRAM_SIZE,
                         MT_NORMAL | MT_RW | MT_SECURE),
+
+  MMU_REGION_FLAT_ENTRY("FSPI_PERIPHERAL",
+                        CONFIG_FSPI_PER_BASEADDR, CONFIG_FSPI_PER_SIZE,
+                        MT_DEVICE_NGNRNE | MT_RW | MT_SECURE),
 };
 
 const struct arm_mmu_config g_mmu_config =

Reply via email to