Moved include/nuttx/mtd.h to include/nuttx/mtd/mtd.h

This commit is contained in:
Gregory Nutt 2013-11-15 11:22:23 -06:00
parent 3ab6d2b40a
commit cdf2e03878
5 changed files with 23 additions and 6 deletions

View File

@ -52,7 +52,7 @@
#include <debug.h>
#include <nuttx/fs/ioctl.h>
#include <nuttx/mtd.h>
#include <nuttx/mtd/mtd.h>
#include "up_arch.h"
#include "chip.h"

View File

@ -51,7 +51,7 @@
#include <nuttx/kmalloc.h>
#include <nuttx/fs/ioctl.h>
#include <nuttx/mtd.h>
#include <nuttx/mtd/mtd.h>
#include <arch/irq.h>
#include <arch/board/board.h>

View File

@ -41,7 +41,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/mtd.h>
#include <nuttx/mtd/mtd.h>
#include "chip.h"
#include "chip/lpc43_spifi.h"

View File

@ -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

View File

@ -4,6 +4,15 @@
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* 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 <debug.h>
#include <nuttx/fs/ioctl.h>
#include <nuttx/mtd.h>
#include <nuttx/mtd/mtd.h>
#include "sam_nand.h"