Added a flash driver designed to allow program/erase of memory-mapped SPI flash chips for LPC43xx/LPC18xx family micros. This driver includes three algorithms - erase, write, and SPIFI peripheral initialization (to allow memory-mapped access after a reset). The driver has been added to the flash driver table (drivers.c), and the OpenOCD documentation has been updated to include the flash driver configuration command. Change-Id: I79f4ff8f1f07de4e5f2fe4f8c23aeb903f868514 Signed-off-by: George Harris <george@luminairecoffee.com> Reviewed-on: http://openocd.zylin.com/783 Tested-by: jenkins Reviewed-by: Aurelien Jacobs <aurel@gnuage.org> Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
51 lines
665 B
Makefile
51 lines
665 B
Makefile
include $(top_srcdir)/common.mk
|
|
|
|
noinst_LTLIBRARIES = libocdflashnor.la
|
|
libocdflashnor_la_SOURCES = \
|
|
core.c \
|
|
tcl.c \
|
|
$(NOR_DRIVERS) \
|
|
drivers.c
|
|
|
|
NOR_DRIVERS = \
|
|
aduc702x.c \
|
|
at91sam4.c \
|
|
at91sam3.c \
|
|
at91sam7.c \
|
|
avrf.c \
|
|
cfi.c \
|
|
em357.c \
|
|
faux.c \
|
|
lpc2000.c \
|
|
lpc288x.c \
|
|
lpc2900.c \
|
|
lpcspifi.c \
|
|
non_cfi.c \
|
|
ocl.c \
|
|
pic32mx.c \
|
|
spi.c \
|
|
stmsmi.c \
|
|
stellaris.c \
|
|
stm32f1x.c \
|
|
stm32f2x.c \
|
|
stm32lx.c \
|
|
str7x.c \
|
|
str9x.c \
|
|
str9xpec.c \
|
|
tms470.c \
|
|
virtual.c \
|
|
fm3.c \
|
|
dsp5680xx_flash.c \
|
|
kinetis.c
|
|
|
|
noinst_HEADERS = \
|
|
core.h \
|
|
cfi.h \
|
|
driver.h \
|
|
imp.h \
|
|
non_cfi.h \
|
|
ocl.h \
|
|
spi.h
|
|
|
|
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
|