summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/Makefile.am26
-rw-r--r--src/flash/nand/Makefile.am27
-rw-r--r--src/flash/nand/davinci.c (renamed from src/flash/davinci_nand.c)0
-rw-r--r--src/flash/nand/lpc3180.c (renamed from src/flash/lpc3180_nand_controller.c)2
-rw-r--r--src/flash/nand/lpc3180.h (renamed from src/flash/lpc3180_nand_controller.h)0
-rw-r--r--src/flash/nand/mx3.c (renamed from src/flash/mx3_nand.c)2
-rw-r--r--src/flash/nand/mx3.h (renamed from src/flash/mx3_nand.h)0
-rw-r--r--src/flash/nand/nonce.c (renamed from src/flash/nonce_nand.c)0
-rw-r--r--src/flash/nand/orion.c (renamed from src/flash/orion_nand.c)0
-rw-r--r--src/flash/nand/s3c2410.c (renamed from src/flash/s3c2410_nand.c)2
-rw-r--r--src/flash/nand/s3c2412.c (renamed from src/flash/s3c2412_nand.c)2
-rw-r--r--src/flash/nand/s3c2440.c (renamed from src/flash/s3c2440_nand.c)2
-rw-r--r--src/flash/nand/s3c2443.c (renamed from src/flash/s3c2443_nand.c)2
-rw-r--r--src/flash/nand/s3c24xx.c (renamed from src/flash/s3c24xx_nand.c)2
-rw-r--r--src/flash/nand/s3c24xx.h (renamed from src/flash/s3c24xx_nand.h)2
-rw-r--r--src/flash/nand/s3c24xx_regs.h (renamed from src/flash/s3c24xx_regs_nand.h)0
16 files changed, 42 insertions, 27 deletions
diff --git a/src/flash/Makefile.am b/src/flash/Makefile.am
index 94cc86e5..353fcf16 100644
--- a/src/flash/Makefile.am
+++ b/src/flash/Makefile.am
@@ -1,3 +1,6 @@
+SUBDIRS = \
+ nand
+
AM_CPPFLAGS = \
-I$(top_srcdir)/src/helper \
-I$(top_srcdir)/src/jtag \
@@ -10,6 +13,9 @@ libflash_la_SOURCES = \
$(NAND_SRCS) \
mflash.c
+libflash_la_LIBADD = \
+ $(top_builddir)/src/flash/nand/libocdflashnand.la
+
FLASH_SRCS = \
common.c \
cfi.c \
@@ -40,22 +46,8 @@ NAND_SRCS = \
arm_nandio.c \
nand_ecc.c \
nand_ecc_kw.c \
- $(NAND_DEVICES_SRCS) \
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 = \
arm_nandio.h \
at91sam7.h \
@@ -66,9 +58,7 @@ noinst_HEADERS = \
flash.h \
lpc2000.h \
lpc288x.h \
- lpc3180_nand_controller.h \
mflash.h \
- mx3_nand.h \
non_cfi.h \
nand.h \
ocl.h \
@@ -78,9 +68,7 @@ noinst_HEADERS = \
str7x.h \
str9x.h \
str9xpec.h \
- tms470.h \
- s3c24xx_nand.h \
- s3c24xx_regs_nand.h
+ tms470.h
EXTRA_DIST = startup.tcl
diff --git a/src/flash/nand/Makefile.am b/src/flash/nand/Makefile.am
new file mode 100644
index 00000000..e95717e2
--- /dev/null
+++ b/src/flash/nand/Makefile.am
@@ -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
diff --git a/src/flash/davinci_nand.c b/src/flash/nand/davinci.c
index 72cd378a..72cd378a 100644
--- a/src/flash/davinci_nand.c
+++ b/src/flash/nand/davinci.c
diff --git a/src/flash/lpc3180_nand_controller.c b/src/flash/nand/lpc3180.c
index 146c8438..031e6b1d 100644
--- a/src/flash/lpc3180_nand_controller.c
+++ b/src/flash/nand/lpc3180.c
@@ -21,7 +21,7 @@
#include "config.h"
#endif
-#include "lpc3180_nand_controller.h"
+#include "lpc3180.h"
#include "nand.h"
static int lpc3180_reset(struct nand_device *nand);
diff --git a/src/flash/lpc3180_nand_controller.h b/src/flash/nand/lpc3180.h
index 0891cedf..0891cedf 100644
--- a/src/flash/lpc3180_nand_controller.h
+++ b/src/flash/nand/lpc3180.h
diff --git a/src/flash/mx3_nand.c b/src/flash/nand/mx3.c
index 1dc4fcbc..21577a6e 100644
--- a/src/flash/mx3_nand.c
+++ b/src/flash/nand/mx3.c
@@ -35,7 +35,7 @@ get_next_halfword_from_sram_buffer() not tested
#include "config.h"
#endif
-#include "mx3_nand.h"
+#include "mx3.h"
static const char target_not_halted_err_msg[] =
"target must be halted to use mx3 NAND flash controller";
diff --git a/src/flash/mx3_nand.h b/src/flash/nand/mx3.h
index ddec92cf..ddec92cf 100644
--- a/src/flash/mx3_nand.h
+++ b/src/flash/nand/mx3.h
diff --git a/src/flash/nonce_nand.c b/src/flash/nand/nonce.c
index dae62a72..dae62a72 100644
--- a/src/flash/nonce_nand.c
+++ b/src/flash/nand/nonce.c
diff --git a/src/flash/orion_nand.c b/src/flash/nand/orion.c
index 77a03f27..77a03f27 100644
--- a/src/flash/orion_nand.c
+++ b/src/flash/nand/orion.c
diff --git a/src/flash/s3c2410_nand.c b/src/flash/nand/s3c2410.c
index ca50c994..3c391bce 100644
--- a/src/flash/s3c2410_nand.c
+++ b/src/flash/nand/s3c2410.c
@@ -28,7 +28,7 @@
#include "config.h"
#endif
-#include "s3c24xx_nand.h"
+#include "s3c24xx.h"
NAND_DEVICE_COMMAND_HANDLER(s3c2410_nand_device_command)
{
diff --git a/src/flash/s3c2412_nand.c b/src/flash/nand/s3c2412.c
index acc6d993..57843053 100644
--- a/src/flash/s3c2412_nand.c
+++ b/src/flash/nand/s3c2412.c
@@ -28,7 +28,7 @@
#include "config.h"
#endif
-#include "s3c24xx_nand.h"
+#include "s3c24xx.h"
NAND_DEVICE_COMMAND_HANDLER(s3c2412_nand_device_command)
{
diff --git a/src/flash/s3c2440_nand.c b/src/flash/nand/s3c2440.c
index 556f6f1e..d1a421e3 100644
--- a/src/flash/s3c2440_nand.c
+++ b/src/flash/nand/s3c2440.c
@@ -28,7 +28,7 @@
#include "config.h"
#endif
-#include "s3c24xx_nand.h"
+#include "s3c24xx.h"
NAND_DEVICE_COMMAND_HANDLER(s3c2440_nand_device_command)
diff --git a/src/flash/s3c2443_nand.c b/src/flash/nand/s3c2443.c
index 311bb697..d3414771 100644
--- a/src/flash/s3c2443_nand.c
+++ b/src/flash/nand/s3c2443.c
@@ -28,7 +28,7 @@
#include "config.h"
#endif
-#include "s3c24xx_nand.h"
+#include "s3c24xx.h"
NAND_DEVICE_COMMAND_HANDLER(s3c2443_nand_device_command)
diff --git a/src/flash/s3c24xx_nand.c b/src/flash/nand/s3c24xx.c
index 1a2ece72..d305b221 100644
--- a/src/flash/s3c24xx_nand.c
+++ b/src/flash/nand/s3c24xx.c
@@ -28,7 +28,7 @@
#include "config.h"
#endif
-#include "s3c24xx_nand.h"
+#include "s3c24xx.h"
S3C24XX_DEVICE_COMMAND()
diff --git a/src/flash/s3c24xx_nand.h b/src/flash/nand/s3c24xx.h
index fad33a0c..38057b27 100644
--- a/src/flash/s3c24xx_nand.h
+++ b/src/flash/nand/s3c24xx.h
@@ -28,7 +28,7 @@
*/
#include "nand.h"
-#include "s3c24xx_regs_nand.h"
+#include "s3c24xx_regs.h"
struct s3c24xx_nand_controller
{
diff --git a/src/flash/s3c24xx_regs_nand.h b/src/flash/nand/s3c24xx_regs.h
index c8cbe789..c8cbe789 100644
--- a/src/flash/s3c24xx_regs_nand.h
+++ b/src/flash/nand/s3c24xx_regs.h