summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/common/up_initialize.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/common/up_initialize.c')
-rw-r--r--nuttx/arch/arm/src/common/up_initialize.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/common/up_initialize.c b/nuttx/arch/arm/src/common/up_initialize.c
index 130f0721f..8bf530fda 100644
--- a/nuttx/arch/arm/src/common/up_initialize.c
+++ b/nuttx/arch/arm/src/common/up_initialize.c
@@ -126,6 +126,16 @@ void up_initialize(void)
up_irqinitialize();
+ /* Initialize the power management subsystem. This MCU-specific function
+ * must be called *very* early in the intialization sequence *before* any
+ * other device drivers are initialized (since they may attempt to register
+ * with the power management subsystem).
+ */
+
+#ifdef CONFIG_PM
+ up_pminitialize();
+#endif
+
/* Initialize the DMA subsystem if the weak function stm32_dmainitialize has been
* brought into the build
*/