move nand drivers to src/flash/nand/
Moves NAND drivers to src/flash/nand/. Adds src/flash/nand/Makefile.am. Builds libocdflashnand.la.
This commit is contained in:
parent
d5e4e23f9a
commit
e1ec02bb05
|
@ -1122,6 +1122,7 @@ AC_OUTPUT(dnl
|
||||||
src/target/Makefile dnl
|
src/target/Makefile dnl
|
||||||
src/server/Makefile dnl
|
src/server/Makefile dnl
|
||||||
src/flash/Makefile dnl
|
src/flash/Makefile dnl
|
||||||
|
src/flash/nand/Makefile dnl
|
||||||
src/pld/Makefile dnl
|
src/pld/Makefile dnl
|
||||||
doc/Makefile dnl
|
doc/Makefile dnl
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
SUBDIRS = \
|
||||||
|
nand
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-I$(top_srcdir)/src/helper \
|
-I$(top_srcdir)/src/helper \
|
||||||
-I$(top_srcdir)/src/jtag \
|
-I$(top_srcdir)/src/jtag \
|
||||||
|
@ -10,6 +13,9 @@ libflash_la_SOURCES = \
|
||||||
$(NAND_SRCS) \
|
$(NAND_SRCS) \
|
||||||
mflash.c
|
mflash.c
|
||||||
|
|
||||||
|
libflash_la_LIBADD = \
|
||||||
|
$(top_builddir)/src/flash/nand/libocdflashnand.la
|
||||||
|
|
||||||
FLASH_SRCS = \
|
FLASH_SRCS = \
|
||||||
common.c \
|
common.c \
|
||||||
cfi.c \
|
cfi.c \
|
||||||
|
@ -40,22 +46,8 @@ NAND_SRCS = \
|
||||||
arm_nandio.c \
|
arm_nandio.c \
|
||||||
nand_ecc.c \
|
nand_ecc.c \
|
||||||
nand_ecc_kw.c \
|
nand_ecc_kw.c \
|
||||||
$(NAND_DEVICES_SRCS) \
|
|
||||||
nand.c
|
nand.c
|
||||||
|
|
||||||
NAND_DEVICES_SRCS = \
|
|
||||||
nonce_nand.c \
|
|
||||||
davinci_nand.c \
|
|
||||||
lpc3180_nand_controller.c \
|
|
||||||
mx3_nand.c \
|
|
||||||
orion_nand.c \
|
|
||||||
s3c24xx_nand.c \
|
|
||||||
s3c2410_nand.c \
|
|
||||||
s3c2412_nand.c \
|
|
||||||
s3c2440_nand.c \
|
|
||||||
s3c2443_nand.c
|
|
||||||
|
|
||||||
|
|
||||||
noinst_HEADERS = \
|
noinst_HEADERS = \
|
||||||
arm_nandio.h \
|
arm_nandio.h \
|
||||||
at91sam7.h \
|
at91sam7.h \
|
||||||
|
@ -66,9 +58,7 @@ noinst_HEADERS = \
|
||||||
flash.h \
|
flash.h \
|
||||||
lpc2000.h \
|
lpc2000.h \
|
||||||
lpc288x.h \
|
lpc288x.h \
|
||||||
lpc3180_nand_controller.h \
|
|
||||||
mflash.h \
|
mflash.h \
|
||||||
mx3_nand.h \
|
|
||||||
non_cfi.h \
|
non_cfi.h \
|
||||||
nand.h \
|
nand.h \
|
||||||
ocl.h \
|
ocl.h \
|
||||||
|
@ -78,9 +68,7 @@ noinst_HEADERS = \
|
||||||
str7x.h \
|
str7x.h \
|
||||||
str9x.h \
|
str9x.h \
|
||||||
str9xpec.h \
|
str9xpec.h \
|
||||||
tms470.h \
|
tms470.h
|
||||||
s3c24xx_nand.h \
|
|
||||||
s3c24xx_regs_nand.h
|
|
||||||
|
|
||||||
EXTRA_DIST = startup.tcl
|
EXTRA_DIST = startup.tcl
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
AM_CPPFLAGS = \
|
||||||
|
-I$(top_srcdir)/src/flash \
|
||||||
|
-I$(top_srcdir)/src/helper \
|
||||||
|
-I$(top_srcdir)/src/jtag \
|
||||||
|
-I$(top_srcdir)/src/target
|
||||||
|
|
||||||
|
noinst_LTLIBRARIES = libocdflashnand.la
|
||||||
|
|
||||||
|
libocdflashnand_la_SOURCES = \
|
||||||
|
nonce.c \
|
||||||
|
davinci.c \
|
||||||
|
lpc3180.c \
|
||||||
|
mx3.c \
|
||||||
|
orion.c \
|
||||||
|
s3c24xx.c \
|
||||||
|
s3c2410.c \
|
||||||
|
s3c2412.c \
|
||||||
|
s3c2440.c \
|
||||||
|
s3c2443.c
|
||||||
|
|
||||||
|
noinst_HEADERS = \
|
||||||
|
lpc3180.h \
|
||||||
|
mx3.h \
|
||||||
|
s3c24xx.h \
|
||||||
|
s3c24xx_regs.h
|
||||||
|
|
||||||
|
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
|
|
@ -21,7 +21,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "lpc3180_nand_controller.h"
|
#include "lpc3180.h"
|
||||||
#include "nand.h"
|
#include "nand.h"
|
||||||
|
|
||||||
static int lpc3180_reset(struct nand_device *nand);
|
static int lpc3180_reset(struct nand_device *nand);
|
|
@ -35,7 +35,7 @@ get_next_halfword_from_sram_buffer() not tested
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "mx3_nand.h"
|
#include "mx3.h"
|
||||||
|
|
||||||
static const char target_not_halted_err_msg[] =
|
static const char target_not_halted_err_msg[] =
|
||||||
"target must be halted to use mx3 NAND flash controller";
|
"target must be halted to use mx3 NAND flash controller";
|
|
@ -28,7 +28,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "s3c24xx_nand.h"
|
#include "s3c24xx.h"
|
||||||
|
|
||||||
NAND_DEVICE_COMMAND_HANDLER(s3c2410_nand_device_command)
|
NAND_DEVICE_COMMAND_HANDLER(s3c2410_nand_device_command)
|
||||||
{
|
{
|
|
@ -28,7 +28,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "s3c24xx_nand.h"
|
#include "s3c24xx.h"
|
||||||
|
|
||||||
NAND_DEVICE_COMMAND_HANDLER(s3c2412_nand_device_command)
|
NAND_DEVICE_COMMAND_HANDLER(s3c2412_nand_device_command)
|
||||||
{
|
{
|
|
@ -28,7 +28,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "s3c24xx_nand.h"
|
#include "s3c24xx.h"
|
||||||
|
|
||||||
|
|
||||||
NAND_DEVICE_COMMAND_HANDLER(s3c2440_nand_device_command)
|
NAND_DEVICE_COMMAND_HANDLER(s3c2440_nand_device_command)
|
|
@ -28,7 +28,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "s3c24xx_nand.h"
|
#include "s3c24xx.h"
|
||||||
|
|
||||||
|
|
||||||
NAND_DEVICE_COMMAND_HANDLER(s3c2443_nand_device_command)
|
NAND_DEVICE_COMMAND_HANDLER(s3c2443_nand_device_command)
|
|
@ -28,7 +28,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "s3c24xx_nand.h"
|
#include "s3c24xx.h"
|
||||||
|
|
||||||
|
|
||||||
S3C24XX_DEVICE_COMMAND()
|
S3C24XX_DEVICE_COMMAND()
|
|
@ -28,7 +28,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "nand.h"
|
#include "nand.h"
|
||||||
#include "s3c24xx_regs_nand.h"
|
#include "s3c24xx_regs.h"
|
||||||
|
|
||||||
struct s3c24xx_nand_controller
|
struct s3c24xx_nand_controller
|
||||||
{
|
{
|
Loading…
Reference in New Issue