split NAND driver handling into nand/driver.[ch]

This work parallels the NOR directory, encapsulating the NAND drivers
into a separate file.  This takes an extra step by encapsulating the
type of data structure used to manage the drivers, allowing it to be
changed from an array to a dynamic list in the future.
This commit is contained in:
Zachary T Welch
2009-12-04 18:24:14 -08:00
parent af1d7590ed
commit a7fd30c07f
5 changed files with 205 additions and 104 deletions

View File

@@ -3,6 +3,10 @@ AM_CPPFLAGS = -I$(top_srcdir)/src
noinst_LTLIBRARIES = libocdflashnand.la
libocdflashnand_la_SOURCES = \
$(NAND_DRIVERS) \
driver.c
NAND_DRIVERS = \
nonce.c \
davinci.c \
lpc3180.c \
@@ -16,6 +20,7 @@ libocdflashnand_la_SOURCES = \
noinst_HEADERS = \
lpc3180.h \
driver.h \
mx3.h \
s3c24xx.h \
s3c24xx_regs.h