summaryrefslogtreecommitdiff
path: root/src/flash
Commit message (Collapse)AuthorAgeFilesLines
* change #include "algorithm.h" to <target/algorithm.h>Zachary T Welch2009-12-0310-10/+10
| | | | | | | | | | | | Changes from the flat namespace to heirarchical one. Instead of writing: #include "algorithm.h" the following form should be used. #include <target/algorithm.h> The exception is from .c files in the same directory.
* change #include "jtag.h" to <jtag/jtag.h>Zachary T Welch2009-12-031-1/+1
| | | | | | | | | | | | Changes from the flat namespace to heirarchical one. Instead of writing: #include "jtag.h" the following form should be used. #include <jtag/jtag.h> The exception is from .c files in the same directory.
* change #include "types.h" to <helper/types.h>Zachary T Welch2009-12-033-3/+3
| | | | | | | | | | | | Changes from the flat namespace to heirarchical one. Instead of writing: #include "types.h" the following form should be used. #include <helper/types.h> The exception is from .c files in the same directory.
* change #include "time_support.h" to <helper/time_support.h>Zachary T Welch2009-12-035-5/+5
| | | | | | | | | | | | Changes from the flat namespace to heirarchical one. Instead of writing: #include "time_support.h" the following form should be used. #include <helper/time_support.h> The exception is from .c files in the same directory.
* change #include "membuf.h" to <helper/membuf.h>Zachary T Welch2009-12-031-1/+1
| | | | | | | | | | | | Changes from the flat namespace to heirarchical one. Instead of writing: #include "membuf.h" the following form should be used. #include <helper/membuf.h> The exception is from .c files in the same directory.
* change #include "log.h" to <helper/log.h>Zachary T Welch2009-12-033-3/+3
| | | | | | | | | | | | Changes from the flat namespace to heirarchical one. Instead of writing: #include "log.h" the following form should be used. #include <helper/log.h> The exception is from .c files in the same directory.
* change #include "fileio.h" to <helper/fileio.h>Zachary T Welch2009-12-032-2/+2
| | | | | | | | | | | | Changes from the flat namespace to heirarchical one. Instead of writing: #include "fileio.h" the following form should be used. #include <helper/fileio.h> The exception is from .c files in the same directory.
* change #include "binarybuffer.h" to <helper/binarybuffer.h>Zachary T Welch2009-12-0310-10/+10
| | | | | | | | | | | | Changes from the flat namespace to heirarchical one. Instead of writing: #include "binarybuffer.h" the following form should be used. #include <helper/binarybuffer.h> The exception is from .c files in the same directory.
* normalize headers to make changing easierZachary T Welch2009-12-031-1/+1
| | | | | These headers need minor tweaks to paves the way for wholesale scripted coversion of the header files.
* allow #include directives to use module nameZachary T Welch2009-12-033-0/+3
| | | | | | | | | | | | Includes the src directory in the search path, so header files may be migrated from: #include "foo.h" to #include <module/foo.h> which is more conducive for installation.
* move nor drivers to src/flash/norZachary T Welch2009-12-0236-50/+55
| | | | | | Moves NOR flash drivers to 'src/flash/nor/'. Adds 'src/flash/nor/Makefile.am'. Builds 'libocdflashnor.la'.
* move nand drivers to src/flash/nand/Zachary T Welch2009-12-0216-27/+42
| | | | | | Moves NAND drivers to src/flash/nand/. Adds src/flash/nand/Makefile.am. Builds libocdflashnand.la.
* flash: factor init to 'flash init'Zachary T Welch2009-12-021-0/+23
| | | | Split flash initialiation into 'flash init', called from 'init'.
* mflash: factor init to 'mflash init'Zachary T Welch2009-12-021-0/+23
| | | | Splits mflash initialiation to 'mflash init', called from 'init'.
* nand: factor init to 'nand init'Zachary T Welch2009-12-021-0/+26
| | | | | Split NAND initialization into 'nand init', which gets called from the main 'init' command.
* fix s3c24xx device command helperlementec fabien2009-11-281-1/+4
| | | | | Returns the common structure for the s3c24xx device, which was somehow nuked during past cleaning efforts.
* add 'nonce' nand driverZachary T Welch2009-11-283-0/+83
| | | | | The nonce NAND driver provides a no-op implementation useful for testing the system independently of any driver side-effects.
* fix 'nand info' commandZachary T Welch2009-11-271-5/+5
| | | | | | Move device argument parsing after check for number of arguments; otherwise, calling this command without any arguments would access argv[0] before checking whether it even existed.
* ARM NAND I/O header documentation update.Dean Glazeski2009-11-261-6/+10
| | | | | | | Fixed the header file to properly specify the doxygen documentation for the items defined in it. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
* ARM NAND I/O documentation update.Dean Glazeski2009-11-261-1/+7
| | | | | | | This updates the functions in the file to all have doxygen comments describing what they do. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
* ARM NAND I/O refactor code copying.Dean Glazeski2009-11-261-40/+47
| | | | | | | | Created a function for copying code to the working area on a target. The NAND write and read functions are updated to include use of this function. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
* ARM NAND I/O read function.Dean Glazeski2009-11-262-1/+91
| | | | | | | | Implementation of the NAND read function for ARM NAND I/O that includes running a local algorithm on a device to increase the performance of block reads. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
* NAND Flash documentation update.Dean Glazeski2009-11-261-1/+47
| | | | | | | Updated doxygen comments for different interface structures for the NAND interface. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
* fix 'flash protect' and 'flash erase_sector'Eric Wetzel2009-11-261-3/+3
| | | | | | | | Command upgrading introduced two off-by-one bugs in the flash commands. This patch fixes the 'flash {protect,erase_sector}' commands to check that they have been passed the correct number of arguments. Ammended during commit to fix help text for 'erase_address' too.
* use ARRAY_SIZE macroZachary T Welch2009-11-252-8/+8
| | | | | Search and destroy lingering cases where the ARRAY_SIZE macro should be used to convey more intrinsic meaning in the OpenOCD code.
* improve command handling examplesZachary T Welch2009-11-251-0/+12
| | | | | | Removes hello and foo commands from top-level registration. Instead, the dummy interface driver and faux flash driver have been augmented to register these commands as sub-commands.
* add jim_handler to command_registrationZachary T Welch2009-11-241-3/+6
| | | | | | Adding jim_handler field to command_registration allows removing the register_jim helper. All command registrations now go through the register_command{,s}() functions.
* remove nand_controller->register_callbacksZachary T Welch2009-11-2412-41/+8
| | | | | Replace flash_driver callback with pointer to command_registration. Eliminates all related routines and allows drivers to omit commands.
* remove flash_driver->register_callbacksZachary T Welch2009-11-2417-105/+25
| | | | | Replace flash_driver callback with pointer to command_registration. Eliminates all related routines and allows drivers to omit commands.
* tms470: use register_commands()Zachary T Welch2009-11-241-7/+32
|
* str9xpec: use register_commands()Zachary T Welch2009-11-241-38/+81
|
* str9x: use register_commands()Zachary T Welch2009-11-241-8/+21
|
* str7x: use register_commands()Zachary T Welch2009-11-241-8/+20
|
* stm32x: use register_commands()Zachary T Welch2009-11-241-21/+44
|
* stellaris: use register_commands()Zachary T Welch2009-11-241-7/+20
|
* pic32mx: use register_commands()Zachary T Welch2009-11-241-17/+25
|
* nand: use register_commands()Zachary T Welch2009-11-241-47/+98
| | | | Eliminates 'nand_cmd' global variable.
* mflash: use register_commands()Zachary T Welch2009-11-241-17/+54
|
* lpc3180_nand_controller: use register_commands()Zachary T Welch2009-11-241-5/+21
|
* lpc2900: use register_commands()Zachary T Welch2009-11-241-34/+55
|
* lpc2000: use register_commands()Zachary T Welch2009-11-241-8/+20
|
* flash: use register_commands()Zachary T Welch2009-11-241-50/+117
| | | | Eliminates 'flash_cmd' global variable.
* ecos: use register_commands()Zachary T Welch2009-11-241-2/+0
|
* cfi: use register_commands()Zachary T Welch2009-11-241-6/+0
|
* avrf: use register_commands()Zachary T Welch2009-11-241-8/+20
|
* at91sam7: use register_commands()Zachary T Welch2009-11-241-9/+21
|
* at91sam3: use register_commands()Zachary T Welch2009-11-241-27/+35
|
* use COMMAND_REGISTER macroZachary T Welch2009-11-2418-119/+95
| | | | | Replaces direct calls to register_command() with a macro, to allow its parameters to be changed and callers updated in phases.
* flash: dynamically allocate working storageØyvind Harboe2009-11-221-16/+52
| | | | | | Allocate working memory rather than using stack. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* fix flash/nand name parsingZachary T Welch2009-11-201-1/+3
| | | | | Start driver.num check from end, and make sure the numeric part is actually a number. Fix problems trying to parse bank names.