flash: add virtual flash bank driver

This adds a virtual flash bank driver that allows virtual banks to
be defined that refer to an existing flash bank.

For example the real address for bank0 on the pic32 is 0x1fc00000
but the user program will either be in kseg0 (0xbfc00000) or
kseg1 (0x9fc00000).
This also means that gdb will be aware of all the read only flash
addresses.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
This commit is contained in:
Spencer Oliver
2010-05-24 11:41:50 +01:00
parent ef72484b78
commit 5319ccd7eb
4 changed files with 268 additions and 1 deletions

View File

@@ -28,7 +28,8 @@ NOR_DRIVERS = \
str7x.c \
str9x.c \
str9xpec.c \
tms470.c
tms470.c \
virtual.c
noinst_HEADERS = \
at91sam7.h \