summaryrefslogtreecommitdiffstats
path: root/drivers/nor
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'next'Sascha Hauer2010-07-031-1/+4
|\
| * cfi flash driver: Use generic progression bar functionSascha Hauer2010-06-281-1/+4
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | nor: don't use sector for ERASE_STARTWolfram Sang2010-06-291-2/+1
|/ | | | | | | | | | | | | | Similar to ac2d4d71ba493fd638ae0bf1a530a51c76d3c53d, copy the behaviour from Linux which does: cfi_send_gen_cmd(0x80, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); Notice the third parameter which is simply chip->start. Needed for some SST-flashes. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfi_flash: use flash_write_word instead of reimplementing it againUwe Kleine-König2010-05-031-18/+1
| | | | | | | | | While at it remove some unused code and an unbalanced enable_interrupts(). Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nor: Don't use the sector for the unlock sequenceWolfram Sang2010-05-031-8/+8
| | | | | | | | | | | | | | | Copy the behaviour from Linux which does: cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); ... (Notice the third parameter which is simply chip->start). Solves erase problems with SST flashes. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfi_flash: move include/cfi_flash.c next to driverSascha Hauer2010-02-084-3/+657
| | | | | | | | This file has no useful things for others than the driver, so move it next to the driver and remove the corresponding include from other files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfi_flash: remove old driver and switch to new oneSascha Hauer2010-02-086-2046/+515
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfi_flash_new: make code more readable, return is not a functionSascha Hauer2010-02-081-4/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfi_flash_new: generate flash erase dots in common functionSascha Hauer2010-02-083-16/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfi_flash_new: Safe indention level by bailing out earlier in error caseSascha Hauer2010-02-081-21/+24
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfi_flash_new: Fix Intel chipsSascha Hauer2010-02-081-39/+3
| | | | | | | There was some mixup when to to a full status check and when to do a status check only. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfi_flash: fix alignment problemMarc Kleine-Budde2010-02-011-3/+7
| | | | | | | | | | | | | | | | | | | | | | This patch fixes a alignment problem which may show during this scenario: - 32 or 64 attached NOR flash - flashing an image directly from network to the nor flash The involved network driver is "smc9111.c". The data that comes from the network stack and should be written into the flash isn't 32 bit alligned (at least with this network driver). This is probably due to the 48 bit wide ethernet addresses. However the "cfi_flash.c" driver doesn't handle this situation, and accesses the not-alligned address with a 32 bit pointer. This patch fixes the problem by reducing the access width if an alligment problem between source and destination is found. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* New CFI flash driver: Fix misleading trace when unprotecting a sectorMatthias Kaehlcke2010-01-051-1/+3
| | | | | | | | | When (un)protecting a flash sector with the new CFI flash driver a trace "protect 0x..." is generated, independently of the type of operation. This is misleading in case of an unprotect. Tell the truth when unprotecting a sector. Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* CFI flash driver: Fix misleading trace when unprotecting a sectorMatthias Kaehlcke2010-01-051-1/+2
| | | | | | | | | When (un)protecting a flash sector with the CFI flash driver a trace "protect 0x..." is generated, independently of the type of operation. This is misleading in case of an unprotect. Tell the truth when unprotecting a sector. Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cleanup some more collateral damage from renamingMarc Kleine-Budde2009-12-151-1/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-153-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfi new: fix new disabling buffer supportJean-Christophe PLAGNIOL-VILLARD2009-10-202-0/+4
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* get rid of device idsSascha Hauer2009-07-212-6/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce cdevSascha Hauer2009-07-212-55/+71
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* new cfi driver: change function order to a more common oneSascha Hauer2009-05-251-49/+49
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfi driver: change function order to a more common oneSascha Hauer2009-05-251-50/+47
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* [cfi] add autoprobing, use cfi size for flash chips sizeKarsten Schwinne2009-05-181-0/+6
| | | | | | | | If a flash chip has been added with the size of "0" the cfi's size is used for the flash chip. Signed-off-by: Karsten Schwinne <kartsten.schwinne@de.bucurus.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* cfi driver: Limit device size to actual sizeSascha Hauer2008-12-171-0/+6
| | | | | | | When probing CFI, limit the device size to the actual probed size of the flash Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Move cfi flash drivers to drivers/nor as suggested by Nishanth MenonSascha Hauer2008-08-256-0/+2885
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>