nor: use common flash drivermem
commit33eb9b87c112ceb34dc3ed78edea185848bf41cd
authorZachary T Welch <zw@superlucidity.net>
Wed, 18 Nov 2009 19:39:07 +0000 (18 11:39 -0800)
committerZachary T Welch <zw@superlucidity.net>
Tue, 8 Dec 2009 02:57:37 +0000 (7 18:57 -0800)
treebffc6a1eee01c213ae0254a77192ed5d1157e1cb
parent7959d4eb78f4290795869420e0b2139e99a4b075
nor: use common flash driver

Replace the variables encapsulated by flash_driver_base and
flash_bank_base in flash_driver and flash_bank, respectively.
Uses helper macro functions to access the now nested members.

Adds the FLASH_DRIVER macro to assist defining fields of structures
nested inside the flash_driver structure.  Makes driver definition
much cleaner than directly specifying the fields.
24 files changed:
src/flash/nor/aduc702x.c
src/flash/nor/at91sam3.c
src/flash/nor/at91sam7.c
src/flash/nor/avrf.c
src/flash/nor/cfi.c
src/flash/nor/core.c
src/flash/nor/core.h
src/flash/nor/driver.h
src/flash/nor/drivers.c
src/flash/nor/ecos.c
src/flash/nor/faux.c
src/flash/nor/lpc2000.c
src/flash/nor/lpc288x.c
src/flash/nor/lpc2900.c
src/flash/nor/non_cfi.c
src/flash/nor/ocl.c
src/flash/nor/pic32mx.c
src/flash/nor/stellaris.c
src/flash/nor/stm32x.c
src/flash/nor/str7x.c
src/flash/nor/str9x.c
src/flash/nor/str9xpec.c
src/flash/nor/tcl.c
src/flash/nor/tms470.c