aboutsummaryrefslogtreecommitdiff
path: root/src/flash
AgeCommit message (Collapse)Author
2009-11-28fix s3c24xx device command helperlementec fabien
Returns the common structure for the s3c24xx device, which was somehow nuked during past cleaning efforts.
2009-11-28add 'nonce' nand driverZachary T Welch
The nonce NAND driver provides a no-op implementation useful for testing the system independently of any driver side-effects.
2009-11-27fix 'nand info' commandZachary T Welch
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.
2009-11-26ARM NAND I/O header documentation update.Dean Glazeski
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>
2009-11-26ARM NAND I/O documentation update.Dean Glazeski
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>
2009-11-26ARM NAND I/O refactor code copying.Dean Glazeski
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>
2009-11-26ARM NAND I/O read function.Dean Glazeski
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>
2009-11-26NAND Flash documentation update.Dean Glazeski
Updated doxygen comments for different interface structures for the NAND interface. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-26fix 'flash protect' and 'flash erase_sector'Eric Wetzel
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.
2009-11-25use ARRAY_SIZE macroZachary T Welch
Search and destroy lingering cases where the ARRAY_SIZE macro should be used to convey more intrinsic meaning in the OpenOCD code.
2009-11-25improve command handling examplesZachary T Welch
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.
2009-11-24add jim_handler to command_registrationZachary T Welch
Adding jim_handler field to command_registration allows removing the register_jim helper. All command registrations now go through the register_command{,s}() functions.
2009-11-24remove nand_controller->register_callbacksZachary T Welch
Replace flash_driver callback with pointer to command_registration. Eliminates all related routines and allows drivers to omit commands.
2009-11-24remove flash_driver->register_callbacksZachary T Welch
Replace flash_driver callback with pointer to command_registration. Eliminates all related routines and allows drivers to omit commands.
2009-11-24tms470: use register_commands()Zachary T Welch
2009-11-24str9xpec: use register_commands()Zachary T Welch
2009-11-24str9x: use register_commands()Zachary T Welch
2009-11-24str7x: use register_commands()Zachary T Welch
2009-11-24stm32x: use register_commands()Zachary T Welch
2009-11-24stellaris: use register_commands()Zachary T Welch
2009-11-24pic32mx: use register_commands()Zachary T Welch
2009-11-24nand: use register_commands()Zachary T Welch
Eliminates 'nand_cmd' global variable.
2009-11-24mflash: use register_commands()Zachary T Welch
2009-11-24lpc3180_nand_controller: use register_commands()Zachary T Welch
2009-11-24lpc2900: use register_commands()Zachary T Welch
2009-11-24lpc2000: use register_commands()Zachary T Welch
2009-11-24flash: use register_commands()Zachary T Welch
Eliminates 'flash_cmd' global variable.
2009-11-24ecos: use register_commands()Zachary T Welch
2009-11-24cfi: use register_commands()Zachary T Welch
2009-11-24avrf: use register_commands()Zachary T Welch
2009-11-24at91sam7: use register_commands()Zachary T Welch
2009-11-24at91sam3: use register_commands()Zachary T Welch
2009-11-24use COMMAND_REGISTER macroZachary T Welch
Replaces direct calls to register_command() with a macro, to allow its parameters to be changed and callers updated in phases.
2009-11-22flash: dynamically allocate working storageØyvind Harboe
Allocate working memory rather than using stack. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-20fix flash/nand name parsingZachary T Welch
Start driver.num check from end, and make sure the numeric part is actually a number. Fix problems trying to parse bank names.
2009-11-19NAND verify doesn't advance.Dean Glazeski
Fix to move the device address up as the contents are verified. Signed-off-by: Zachary T Welch <zw@superlucidity.net>
2009-11-19add support for naming NAND banksZachary T Welch
Requires users to name their nand banks, allowing them to be used instead of bank numbers in script commands.
2009-11-19refactor handle_nand_device_commandZachary T Welch
Move bulk of for-loop to a new static command helper function. Adds handle_nand_list_drivers command handler, registered as 'nand drivers'. Improves command help text and error reporting.
2009-11-19add support for naming flash banksZachary T Welch
Requires users to name their flash banks, allowing them to be used instead of bank numbers in script commands.
2009-11-19refactor handle_flash_bank_commandZachary T Welch
Move variables to point of first use, reducing their scope. Add driver_name temporary to help arguments be changed later. Eliminates the useless 'found' variable, changing the code to terminate the loop immediate and return its success.
2009-11-19rename flash and nand command helpersZachary T Welch
After adding support for referencing banks by name, renames the COMMAND_HELPERs appropriately: flash_command_get_bank_by_num -> flash_command_get_bank nand_command_get_device_by_num -> flash_command_get_device
2009-11-19allow flash/nand banks commands to accept namesZachary T Welch
Add get_flash_bank_by_name (and get_nand_device_by_name) helpers to retrieves struct flash_bank * (struct nand_device *) given a driver name and an (optional) driver-specific bank index. These are used to extend flash_command_get_bank_by_num (and nand_command_get_device_by_num) to allow all flash (nand) commands to reference defined banks by name, not just by number. To avoid some code duplication, add the flash/common.[ch] files to hold functionality common to both types driver. The first two methods are helpers for the above routines to find a bank specified by a "name" or "name.index" string. get_flash_name_index() finds the '.index' portion, while flash_driver_name_matches() performs the string portion matching.
2009-11-19nand_fileio_parse_args parses wrong param for sizeDean Glazeski
This changes the size parameter from argv[2] to argv[3], which is what it's supposed to be. Signed-off-by: Zachary T Welch <zw@superlucidity.net>
2009-11-18use COMMAND_PARSE_ENABLE macro where appropriateZachary T Welch
Updates all command parsing of simple "enable" and "disable" arguments. A few case in the tree use a tri-state or extended arguments, which cannot use this simple macro. Simlifies the xscale icache/dcache command handler logic.
2009-11-18use COMMAND_PARSE_ON_OFF where appropriateZachary T Welch
Updates all command parsing of "on" and "off" arguments.
2009-11-18split startup.tcl file across modulesZachary T Welch
Moves definitions for each layer into their own file, eliminating layering violations in the built-in TCL code. Updates src/Makefile.am rules to include all files in the final startup.tcl input file, and others Makefile.am rules to distribute the new files in our packages.
2009-11-17ARM: only use one set of dummy FPA registersDavid Brownell
All ARM cores need to provide obsolete FPA registers in their GDB register dumps. (Even though cores with floating point support now generally use some version of VFP...) Clean up that support a bit by sharing the same dummy registers, and removing the duplicate copies. Eventually we shouldn't need to export those dummies. (This makes the ARMv7-M support include the armv4_5 header, and cleans up related #includes, but doesn't yet use anything from there except those dummies.) Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-17command_handler: change 'cmd_ctx' to CMD_CTXZachary T Welch
Convert all command handler 'cmd_ctx' parameter usage with CMD_CTX.
2009-11-17command_handler: change 'args' to CMD_ARGVZachary T Welch
This patch converts all instances of 'args' in COMMAND_HANDLER routines to use CMD_ARGV macro.
2009-11-17command_handler: change to 'argc' to CMD_ARGCZachary T Welch
This patch converts all instances of 'argc' in COMMAND_HANDLER routines to use CMD_ARGC.