You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2023/03/01 08:21:33 UTC

[nuttx] 08/09: boards: spresense: Add eMMC initialization into bringup function

This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 1ce5dd948e446e039deebdb704298698c9efc714
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Wed Mar 1 14:30:28 2023 +0900

    boards: spresense: Add eMMC initialization into bringup function
    
    Add eMMC initialization into bringup function.
---
 boards/arm/cxd56xx/spresense/src/cxd56_bringup.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c b/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c
index 43b61ac0d1..2f2e02e799 100644
--- a/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c
+++ b/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c
@@ -440,6 +440,16 @@ int cxd56_bringup(void)
   board_automount_initialize();
 #endif
 
+#if defined(CONFIG_CXD56_EMMC) && !defined(CONFIG_CXD56_EMMC_LATE_INITIALIZE)
+  /* Mount the eMMC block driver */
+
+  ret = board_emmc_initialize();
+  if (ret < 0)
+    {
+      _err("ERROR: Failed to initialize eMMC: %d\n", ret);
+    }
+#endif
+
 #ifdef CONFIG_CPUFREQ_RELEASE_LOCK
   /* Enable dynamic clock control and CPU clock down for power saving */