summaryrefslogtreecommitdiff
path: root/nuttx/configs/sama5d3x-ek/src/sam_norflash.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-08-01 16:58:55 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-08-01 16:58:55 -0600
commit5b9a446aec5dfd38e1f4db42851137cf684d0d00 (patch)
tree52ff2a9d085669f03e593f3f11d40a44172c9b96 /nuttx/configs/sama5d3x-ek/src/sam_norflash.c
parentc220e9234abb367ff8db2426a2563e3b124b1e97 (diff)
downloadpx4-nuttx-5b9a446aec5dfd38e1f4db42851137cf684d0d00.tar.gz
px4-nuttx-5b9a446aec5dfd38e1f4db42851137cf684d0d00.tar.bz2
px4-nuttx-5b9a446aec5dfd38e1f4db42851137cf684d0d00.zip
SAMA5: Add logic to initialize SAMA5D3x-EK on-board SDRAM
Diffstat (limited to 'nuttx/configs/sama5d3x-ek/src/sam_norflash.c')
-rw-r--r--nuttx/configs/sama5d3x-ek/src/sam_norflash.c33
1 files changed, 20 insertions, 13 deletions
diff --git a/nuttx/configs/sama5d3x-ek/src/sam_norflash.c b/nuttx/configs/sama5d3x-ek/src/sam_norflash.c
index 3604dcfc2..1b4ff0c3f 100644
--- a/nuttx/configs/sama5d3x-ek/src/sam_norflash.c
+++ b/nuttx/configs/sama5d3x-ek/src/sam_norflash.c
@@ -1,9 +1,16 @@
-/************************************************************************************
+/****************************************************************************
* configs/sama5d3x-ek/src/sam_norflash.c
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
+ * Most of this file derives from Atmel sample code for the SAMA5D3x-EK
+ * board. That sample code has licensing that is compatible with the NuttX
+ * modified BSD license:
+ *
+ * Copyright (c) 2012, Atmel Corporation
+ * All rights reserved.
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -14,8 +21,8 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name NuttX nor the names of its contributors may be
- * used to endorse or promote products derived from this software
+ * 3. Neither the name NuttX nor Atmel nor the names of its contributors may
+ * be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
@@ -31,11 +38,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************************************/
+ ****************************************************************************/
-/************************************************************************************
+/****************************************************************************
* Included Files
- ************************************************************************************/
+ ****************************************************************************/
#include <nuttx/config.h>
@@ -49,17 +56,17 @@
#ifdef CONFIG_SAMA5_BOOT_CS0FLASH
-/************************************************************************************
- * Definitions
- ************************************************************************************/
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
-/************************************************************************************
+/****************************************************************************
* Private Functions
- ************************************************************************************/
+ ****************************************************************************/
-/************************************************************************************
+/****************************************************************************
* Public Functions
- ************************************************************************************/
+ ****************************************************************************/
/****************************************************************************
* Name: board_norflash_config