summaryrefslogtreecommitdiff
path: root/src/flash
Commit message (Collapse)AuthorAgeFilesLines
...
* warnings: use more 'const' for char *Øyvind Harboe2010-12-2910-14/+14
| | | | Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* stm32x : always use valid flash base addressSpencer Oliver2010-12-231-0/+3
| | | | | | | This change matches the previous behaviour of using the known flash address. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* flash: print flash bank name on flash info cmdSpencer Oliver2010-12-231-2/+2
| | | | | | | | The flash bank name is a required element in adding flash banks, however other than looking at the config file there is no way of getting the name used in openocd. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* stm32: fix reversed option byte writeSpencer Oliver2010-12-231-4/+4
| | | | | | This has been a long standing bug that has never been spotted. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* stm32: update option bytes for stm32xl familySpencer Oliver2010-12-231-8/+79
| | | | | | | add supoort for xl family boot bank option. The option byte handling will be cleaned up in a later patch. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* stm32: add stm32 xl family flash supportSpencer Oliver2010-12-231-1/+45
| | | | Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* stm32: add dual flash bank supportSpencer Oliver2010-12-231-26/+37
| | | | | | | This patch adds the initial dual flash bank support for devices such as the stm32xl family. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* Fix for segfault in handle_nand_dump_command.Paul Richards2010-12-151-5/+5
|
* stm32: fix unprotectØyvind Harboe2010-12-151-4/+11
| | | | | | | | | the unprotect fn in stm32 needs to unprotect more sectors than was requested aligned to some boundary. Print warning when this happens. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* flash: clarify protect documentationØyvind Harboe2010-12-151-3/+6
| | | | | | | some chips unprotect more than the range asked for. The protect fn, must unprotect/protect minimally the range given. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* contrib: add source to the cfi flash loadersSpencer Oliver2010-12-101-6/+13
| | | | Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* cfi: disable buffer writes for M29W128GSpencer Oliver2010-12-102-5/+16
| | | | | | | | | | For some reason buffer writes for the M29W128G do not work reliably, so disable them. See: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=504a3e72208fc6a65924426ff5693982590bccdc Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* cfi: allow optional buffer write supportSpencer Oliver2010-12-102-2/+12
| | | | | | | Some flash's do not support buffer writes, so we now check they are supported before trying to use them. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* cfi: calculate correct timeoutsSpencer Oliver2010-12-102-16/+29
| | | | | | | | The existing code used incorrect timeout values for the various cfi operations. We now calculate the timeouts and convert to msecs if necessary. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* cfi: prefix string hex outputSpencer Oliver2010-12-101-12/+12
| | | | | | Add hex prefix so we know output is not decimal. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* cfi: add time format to cfi query outputSpencer Oliver2010-12-101-8/+11
| | | | Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* cfi: whitespace and long line cleanupSpencer Oliver2010-12-101-282/+389
| | | | Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* Fix sector layout for 504-KiB LPC2000 devicesRolf Meeser2010-12-041-4/+7
|
* lpc2900.c: Improve debug output for device probingRolf Meeser2010-12-011-1/+5
|
* lpc2900.c: Add support for new device LPC2926Rolf Meeser2010-12-011-1/+5
|
* LPC2900: Avoid false positive reprobing if first probing failsRolf Meeser2010-12-011-7/+11
|
* FLASH/NOR: Rename spearsmi.c to stmsmi.cAntonio Borneo2010-11-232-1/+1
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: rename from spearsmi to stmsmiAntonio Borneo2010-11-232-81/+81
| | | | | | | STMicroelectronics controller SMI is not SPEAr specific. Rename it and change name to every symbol in the code. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* STR750: Add SMI interface supportAntonio Borneo2010-11-231-35/+43
| | | | | | | Modified spearsmi driver to include support for STR75x Added missing initialization in tcl file for STR750 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* NOR/SPEARSMI: fix segfaultAntonio Borneo2010-11-231-0/+1
| | | | | | | If flash chip is not listed in the table, or if no flash is connected, pointer must be properly initialized. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* flash: iterating over an address range now handles multiple banksØyvind Harboe2010-11-221-1/+38
| | | | | | | e.g. flash erase_address now works across an address range that spans multiple flash chips. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* build: add common.mkSpencer Oliver2010-11-183-10/+4
| | | | | | | Rather than specifying common makefile variables move them all to a common.mk. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* FLASH/NOR: Remove useless file tms470.hAntonio Borneo2010-11-173-40/+15
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file str9xpec.hAntonio Borneo2010-11-173-79/+50
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file str9x.hAntonio Borneo2010-11-173-62/+35
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file str7x.hAntonio Borneo2010-11-173-110/+83
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file stm32x.hAntonio Borneo2010-11-173-101/+74
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file stellaris.hAntonio Borneo2010-11-173-109/+85
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file pic32mx.hAntonio Borneo2010-11-173-96/+65
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file lpc288x.hAntonio Borneo2010-11-173-39/+13
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file lpc2000.hAntonio Borneo2010-11-173-73/+45
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file avrf.hAntonio Borneo2010-11-173-41/+16
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* flash: fix bug with multiple back-to-back flash chipsØyvind Harboe2010-11-171-3/+7
| | | | | | | | | | | flash programming via flash write_image or gdb load would produce a bogus error message that the flash chip was to small. The solution is to limit the current flash programming run to the current chip. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* FLASH/NOR: Remove useless file at91sam7.hAntonio Borneo2010-11-173-118/+91
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file at91sam3.hAntonio Borneo2010-11-173-25/+2
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file spearsmi.hAntonio Borneo2010-11-173-32/+8
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* NOR/SPEARSMI: Add comments about SPIAntonio Borneo2010-11-171-4/+22
| | | | | | | | | SMI interface hides the real SPI bus between SPEAr and external flash. Added comments to highlight the SPI operation, to help a future rework in SPI generic and SPEAr specific drivers. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* NOR/SPEAr: Add support for Serial NORAntonio Borneo2010-11-164-0/+747
| | | | | | | | Add support and documentation for STMicroelectronics SPEAr Serial Memory Interface (SMI). Code tested on SPEAr3xx only. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* Add comments and tiny improvements to STM32 flash loader algorithmFreddie Chopin2010-11-151-16/+17
| | | | | | | | Add comments to assembly flash loader for STM32. Add tiny improvement in size of the algorithm (40 vs 48 bytes) and tiny speed improvement (~1.5%, as time is wasted on waiting for end of operation anyway). Signed-off-by: Freddie Chopin <freddie_chopin@op.pl>
* stm32: return early upon block write failureØyvind Harboe2010-11-091-0/+3
| | | | | | only if we do not have enough ram do we continue. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* stm32: return error when failing to readØyvind Harboe2010-11-091-9/+25
| | | | | | | | | add missing error handling. Output warning when assuming maximum flash size in the family when failing to read. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* stm32: add error propagation on writesØyvind Harboe2010-11-091-42/+111
| | | | | | catch problems earlier. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* stm32: sharpen error handling for timeoutsØyvind Harboe2010-11-091-108/+69
| | | | | | delete lots of crud by handling this all in one spot. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* src: add loader src descriptionSpencer Oliver2010-10-285-0/+11
| | | | | | - add comment where to find the various loaders src files. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* fileio: fileio_size() can now failØyvind Harboe2010-09-294-11/+42
| | | | | | Part of making the fileio API more robust. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>