From cdf2e03878f195efc4a9959007eca3e782af738b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 15 Nov 2013 11:22:23 -0600 Subject: [PATCH] Moved include/nuttx/mtd.h to include/nuttx/mtd/mtd.h --- arch/arm/src/lm/lm_flash.c | 2 +- arch/arm/src/lpc43xx/lpc43_spifi.c | 2 +- arch/arm/src/lpc43xx/lpc43_spifi.h | 2 +- arch/arm/src/sama5/Kconfig | 8 ++++++++ arch/arm/src/sama5/sam_nand.c | 15 ++++++++++++--- 5 files changed, 23 insertions(+), 6 deletions(-) diff --git a/arch/arm/src/lm/lm_flash.c b/arch/arm/src/lm/lm_flash.c index ca14f45d5c8..1a54905259b 100644 --- a/arch/arm/src/lm/lm_flash.c +++ b/arch/arm/src/lm/lm_flash.c @@ -52,7 +52,7 @@ #include #include -#include +#include #include "up_arch.h" #include "chip.h" diff --git a/arch/arm/src/lpc43xx/lpc43_spifi.c b/arch/arm/src/lpc43xx/lpc43_spifi.c index ad6ce0ad515..f7a7e41b7bd 100644 --- a/arch/arm/src/lpc43xx/lpc43_spifi.c +++ b/arch/arm/src/lpc43xx/lpc43_spifi.c @@ -51,7 +51,7 @@ #include #include -#include +#include #include #include diff --git a/arch/arm/src/lpc43xx/lpc43_spifi.h b/arch/arm/src/lpc43xx/lpc43_spifi.h index f7cc0d775f8..2193a3b2f82 100644 --- a/arch/arm/src/lpc43xx/lpc43_spifi.h +++ b/arch/arm/src/lpc43xx/lpc43_spifi.h @@ -41,7 +41,7 @@ ****************************************************************************/ #include -#include +#include #include "chip.h" #include "chip/lpc43_spifi.h" diff --git a/arch/arm/src/sama5/Kconfig b/arch/arm/src/sama5/Kconfig index 813c7baaedc..acc34bee1f8 100644 --- a/arch/arm/src/sama5/Kconfig +++ b/arch/arm/src/sama5/Kconfig @@ -3033,6 +3033,8 @@ config SAMA5_EBICS0_NOR config SAMA5_EBICS0_NAND bool "NAND Flash" + select MTD + select MTD_NAND endchoice # CS0 Memory Type endif # SAMA5_EBICS0 @@ -3082,6 +3084,8 @@ config SAMA5_EBICS1_NOR config SAMA5_EBICS1_NAND bool "NAND Flash" + select MTD + select MTD_NAND endchoice # CS1 Memory Type endif # SAMA5_EBICS1 @@ -3131,6 +3135,8 @@ config SAMA5_EBICS2_NOR config SAMA5_EBICS2_NAND bool "NAND Flash" + select MTD + select MTD_NAND endchoice # CS2 Memory Type endif # SAMA5_EBICS2 @@ -3180,6 +3186,8 @@ config SAMA5_EBICS3_NOR config SAMA5_EBICS3_NAND bool "NAND Flash" + select MTD + select MTD_NAND endchoice # CS3 Memory Type endif # SAMA5_EBICS3 diff --git a/arch/arm/src/sama5/sam_nand.c b/arch/arm/src/sama5/sam_nand.c index 4e3b910d693..819134a7fb9 100644 --- a/arch/arm/src/sama5/sam_nand.c +++ b/arch/arm/src/sama5/sam_nand.c @@ -4,6 +4,15 @@ * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * + * References: + * SAMA5D3 Series Data Sheet + * Atmel NoOS sample code. + * + * The Atmel sample code has a BSD compatibile license that requires this + * copyright notice: + * + * Copyright (c) 2011, 2012, Atmel Corporation + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -14,8 +23,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 names 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 @@ -46,7 +55,7 @@ #include #include -#include +#include #include "sam_nand.h"