summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-01-28 15:05:19 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-01-28 15:05:19 -0600
commit944d9107dbe472e9d684fddd1d0d001e4d769f06 (patch)
tree6bf736f075352944b685aead1c774dbead25a741 /nuttx/arch/arm/src
parent49c48b798050c41a6dfdd7bb98a2a87a7ac0db2d (diff)
downloadpx4-nuttx-944d9107dbe472e9d684fddd1d0d001e4d769f06.tar.gz
px4-nuttx-944d9107dbe472e9d684fddd1d0d001e4d769f06.tar.bz2
px4-nuttx-944d9107dbe472e9d684fddd1d0d001e4d769f06.zip
SAMA5: More variables-in-SDRAM stuff
Diffstat (limited to 'nuttx/arch/arm/src')
-rw-r--r--nuttx/arch/arm/src/sama5/sam_boot.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/arch/arm/src/sama5/sam_boot.c b/nuttx/arch/arm/src/sama5/sam_boot.c
index 8b95c7538..8d15c646c 100644
--- a/nuttx/arch/arm/src/sama5/sam_boot.c
+++ b/nuttx/arch/arm/src/sama5/sam_boot.c
@@ -1,7 +1,7 @@
/****************************************************************************
* arch/arm/src/sama5/sam_boot.c
*
- * Copyright (C) 2013 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2013-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -627,9 +627,9 @@ void up_boot(void)
sam_clockconfig();
+#ifdef CONFIG_ARCH_FPU
/* Initialize the FPU */
-#ifdef CONFIG_ARCH_FPU
arm_fpuconfig();
#endif
@@ -645,20 +645,20 @@ void up_boot(void)
sam_boardinitialize();
+#ifdef NEED_SDRAM_REMAPPING
/* SDRAM was configured in a temporary state to support low-level
* initialization. Now that the SDRAM has been fully initialized,
* we can reconfigure the SDRAM in its final, fully cache-able state.
*/
-#ifdef NEED_SDRAM_REMAPPING
sam_remap();
#endif
+#ifdef CONFIG_BOOT_SDRAM_DATA
/* If .data and .bss reside in SDRAM, then initialize the data sections
* now after SDRAM has been initialized.
*/
-#ifdef CONFIG_BOOT_SDRAM_DATA
arm_data_initialize();
#endif
@@ -666,21 +666,21 @@ void up_boot(void)
sam_lowsetup();
+#ifdef USE_EARLYSERIALINIT
/* Perform early serial initialization if we are going to use the serial
* driver.
*/
-#ifdef USE_EARLYSERIALINIT
sam_earlyserialinit();
#endif
+#ifdef CONFIG_NUTTX_KERNEL
/* For the case of the separate user-/kernel-space build, perform whatever
* platform specific initialization of the user memory is required.
* Normally this just means initializing the user space .data and .bss
* segments.
*/
-#ifdef CONFIG_NUTTX_KERNEL
sam_userspace();
#endif
}