aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor
AgeCommit message (Collapse)AuthorFilesLines
2011-04-19Fix non cfi x16 nor flash connected to x8 bus. The ids in the table should ↵Alexandre Pereira da Silva1-1/+7
be masked before comparison.
2011-04-14pic32: update pic32mx flash driverSpencer Oliver1-31/+67
Update devices as per the latest programming manual. We now use the full DEVID to identify the target. Previously we used a 8bit id but that has now been changed in the manual. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-04-01mips: illustrates how to improve performanceØyvind Harboe1-6/+3
Do not require unecessary roundtrips for clocking out data. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-30at91sam3: Modified cidr comparisson to ignore version bitsOlivier Schonken1-1/+2
production processor versions increment, thus the version bits should be ignored for future proofing. e.g. Engineering sample version == 0x00, production version 0x01
2011-03-17Fix a bunch of typos.Uwe Hermann2-2/+2
Fix a bunch of typos. Most are in code comments, so nothing should break. UNKOWN_COMMAND and CMD_UNKOWN are not used elsewhere, so correcting the spelling should also not break anything.
2011-02-04stm32x: add support for STM32F20xØyvind Harboe3-0/+715
ready for wider testing and comments on basic erase + programming. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-01-31cfi: use ARM32 machine code on all CPUs but Cortex M3Øyvind Harboe1-6/+2
ARM11 broke with aa61a3b3d8b6acad19050987835ec05f3d298bdb as the code only checked for arm 7/9. CFI probably needs work for non-ARM targets but perhaps not adding working area memory to e.g. MIPS will give the default slow CFI support. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-01-26Fixed small mistakes in at91sam3 info commandThomas Schmid1-1/+3
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-01-19stellaris: automatically generate and update device IDsEric Wetzel1-0/+6
Added a Perl script to contrib that uses the header files in StellarisWare complete Firmware Development Package provided by TI/Luminary to generate a new list of device IDs Used Perl script and revision 6734 of TI/Luminary StellarisWare to update device IDs
2011-01-14Flash driver for em357Erik Botö3-0/+980
Hi, I took the stm32x NOR flash driver and adapted it for the Ember EM357 chip. This chip is very similar to em351 and stm32w so the driver should be easily extended to support those as well if anyone can get their hands on some of those for testing. changelog: Added NOR flash driver em357 Best regards, Erik Botö
2011-01-14str9xpec: Find flash controller from the chain.Santeri Salko1-1/+2
Find the flash controller by position since it is before the core, not after it. This fixes the problem that str9xpec enable_turbo (or any other str9xpec command) did not work. (See my post in http://forum.sparkfun.com/viewtopic.php?f=18&t=25542) Signed-off-by: Santeri Salko <santeri.salko@gmail.com>
2011-01-10cfi: fix release build warningsSpencer Oliver1-2/+2
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-01-09nit: more LOG_* \n fixesEric Wetzel3-36/+36
Remove extra \n from LOG_DEBUG, LOG_INFO, and LOG_WARNING messages Remove LOG_INFO_N LOG_INFO_N was only used once and had a \n at the end Change LOG_USER_N calls that end with \n to LOG_USER
2011-01-06cfi: use safer arch detectionSpencer Oliver1-2/+8
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-01-06Add the support for the armv7m arch.Jonathan Dumaresq1-15/+64
Signed-off-by: Jonathan Dumaresq <jdumaresq@cimeq.qc.ca>
2011-01-05nit: do not add \n at end of LOG_ERROREric Wetzel3-9/+9
Fixed in many other places, and submitted in response to Øyvind's invitation.
2011-01-03nit: do not add \n at end of LOG_ERRORØyvind Harboe1-4/+4
This is done in many other places as well, patch to fix gratefully accepted!
2011-01-03error handling: the error number is not part of the user interfaceØyvind Harboe5-17/+13
Do not propagate error number to user. This is for internal programming purposes only. Error messages to the user is reported as text via LOG_ERROR(). Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-01-02cfi_protect is not implemented on Spansion flashes (many do not even have ↵Michael Schwingen1-2/+2
protection bits). Demote from error to warning, so that common board code can use "flash write_image erase unlock" regardless of the flash type. Signed-off-by: Michael Schwingen <michael@schwingen.org>
2011-01-02non-CFI flash code uses data from CFI structures. Make sure that timeouts ↵Michael Schwingen2-99/+98
are filled in on non-CFI flashes, and print CFI information in all cases, nut just on CFI flashes. Signed-off-by: Michael Schwingen <michael@schwingen.org>
2010-12-29Compilation Warnings on OS X 10.5Andrew MacIsaac2-2/+2
I received a number of "-Wshadow" related warnings (treated as errors) while trying to build on OS X Leopard. In addition, there were two miscellaneous other warnings in the flash drivers. Attached are two patches which correct these issues and the commit messages to accompany them. My system has the following configuration (taken from uname -a): Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 === Werror_patch.txt Commit Message === compilation: fixes for -Wshadow warnings on OS X These changes fix -Wshadow compilation warnings on OS X 10.5.8 Compiled with the following configure command: ../configure --prefix=/usr/local --enable-maintainer-mode --enable-jlink --enable-ft2232_libftdi === flash_patch.txt Commit Message === compilation: fixes for flash driver warnings on OS X These changes fix two compilation warnings on OS X 10.5.8: ../../../../src/flash/nor/at91sam3.c:2767: warning: redundant redeclaration of 'at91sam3_flash' ../../../../src/flash/nor/at91sam3.c:101: warning: previous declaration of 'at91sam3_flash' was here and ../../../../src/flash/nor/stmsmi.c:205: warning: format not a string literal and no format arguments Compiled with the following configure command: ../configure --prefix=/usr/local --enable-maintainer-mode --enable-jlink --enable-ft2232_libftdi === Andrew
2010-12-29warning: fix warning where GCC didn't catch a doubly declared global structureØyvind Harboe1-1/+1
Why hasn't earlier versions of GCC caught this? Bug? Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2010-12-29warnings: use more 'const' for char *Øyvind Harboe7-9/+9
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2010-12-23stm32x : always use valid flash base addressSpencer Oliver1-0/+3
This change matches the previous behaviour of using the known flash address. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-12-23flash: print flash bank name on flash info cmdSpencer Oliver1-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>
2010-12-23stm32: fix reversed option byte writeSpencer Oliver1-4/+4
This has been a long standing bug that has never been spotted. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-12-23stm32: update option bytes for stm32xl familySpencer Oliver1-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>
2010-12-23stm32: add stm32 xl family flash supportSpencer Oliver1-1/+45
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-12-23stm32: add dual flash bank supportSpencer Oliver1-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>
2010-12-15stm32: fix unprotectØyvind Harboe1-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>
2010-12-15flash: clarify protect documentationØyvind Harboe1-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>
2010-12-10contrib: add source to the cfi flash loadersSpencer Oliver1-6/+13
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-12-10cfi: disable buffer writes for M29W128GSpencer Oliver2-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>
2010-12-10cfi: allow optional buffer write supportSpencer Oliver1-0/+9
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>
2010-12-10cfi: calculate correct timeoutsSpencer Oliver2-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>
2010-12-10cfi: prefix string hex outputSpencer Oliver1-12/+12
Add hex prefix so we know output is not decimal. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-12-10cfi: add time format to cfi query outputSpencer Oliver1-8/+11
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-12-10cfi: whitespace and long line cleanupSpencer Oliver1-282/+389
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-12-04Fix sector layout for 504-KiB LPC2000 devicesRolf Meeser1-4/+7
2010-12-01lpc2900.c: Improve debug output for device probingRolf Meeser1-1/+5
2010-12-01lpc2900.c: Add support for new device LPC2926Rolf Meeser1-1/+5
2010-12-01LPC2900: Avoid false positive reprobing if first probing failsRolf Meeser1-7/+11
2010-11-23FLASH/NOR: Rename spearsmi.c to stmsmi.cAntonio Borneo2-1/+1
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
2010-11-23FLASH/NOR: rename from spearsmi to stmsmiAntonio Borneo2-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>
2010-11-23STR750: Add SMI interface supportAntonio Borneo1-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>
2010-11-23NOR/SPEARSMI: fix segfaultAntonio Borneo1-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>
2010-11-22flash: iterating over an address range now handles multiple banksØyvind Harboe1-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>
2010-11-18build: add common.mkSpencer Oliver1-3/+1
Rather than specifying common makefile variables move them all to a common.mk. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-11-17FLASH/NOR: Remove useless file tms470.hAntonio Borneo3-40/+15
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
2010-11-17FLASH/NOR: Remove useless file str9xpec.hAntonio Borneo3-79/+50
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>