summaryrefslogtreecommitdiff
path: root/drivers/mtd (follow)
Commit message (Collapse)AuthorAge
...
* | [MTD] Fixup probing logic for single 16bit devicesBen Dooks2005-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change to the generic probe to look for the smallest width of chip first is causing some problems on boards with a single 16bit device. The problem seems to be the jedec_match() is truncating the device-id read from the table to match against the one read from the hardware, causing a match against the partial id of some chips with 16bit IDs (such as the SST39LF160) This fixes things for my own board, but something may need to be done if the same problem is exhibited for chips with an 8bit ID Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] NAND: Read only OOB bytes during bad block scanArtem B. Bityuckiy2005-05-23
| | | | | | | | | | | | | | | | | | | | | | | | When scanning NAND for bad blocks, don't read the whole page, read only needed OOB bytes instead. Also check the return code of the nand_read_raw() function. Correctly free the this->bbt array in case of failure. Tested with Large page NAND. Fix debugging message. Signed-off-by: Artem B. Bityuckiy <dedekind@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] NAND: Allow operation without bad block tableArtem B. Bityuckiy2005-05-23
| | | | | | | | | | | | | | | | Small bugfix. Sometimes it may be handy not to have bbt. So, this->bbt might be NULL. Signed-off-by: Artem B. Bityuckiy <dedekind@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] NAND: Skip bad block table scan on requestThomas Gleixner2005-05-23
| | | | | | | | Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] Unabuse file-f_mode for OTP purposeNicolas Pitre2005-05-23
| | | | | | | | | | Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] User interface to Protection RegistersNicolas Pitre2005-05-23
| | | | | | | | | | | | | | | | | | | | | | This is implemented using a ioctl to switch the MTD char device into one of the different OTP "modes", at which point read/write/seek can operate on the selected OTP area. Also some extra ioctls to query for size and lock protection segments or groups. Some example user space utilities are provided. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] Support for protection register support on Intel FLASH chipsNicolas Pitre2005-05-23
| | | | | | | | | | | | | | | | | | | | This enables support for reading, writing and locking so called "Protection Registers" present on some flash chips. A subset of them are pre-programmed at the factory with a unique set of values. The rest is user-programmable. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] Add OTP basiscNicolas Pitre2005-05-23
| | | | | | | | | | | | | | add structure definition for OTP region info Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] amd_flash: Fix chip ID clashJonas Holmberg2005-05-23
| | | | | | | | | | | | | | | | * Removed table entry for AM29BDS643D, since device ID clashes with AM29DL640G and both chips support CFI. Signed-off-by: Jonas Holmberg <jonas.holmberg@axis.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] DiskOnChip: big endian fix for NFTL devicesThomas Gleixner2005-05-23
| | | | | | | | | | | | Make NFTL devices work on big endian machines. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] DiskOnChip code cleanupThomas Gleixner2005-05-23
| | | | | | | | | | | | Remove commented ugliness Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] DiskOnChip use CONFIG_ options instead of random symbolsThomas Gleixner2005-05-23
| | | | | | | | | | | | Using the CONFIG_ options from KConfig seems to work better :8 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] Fix MTD device probingRussell King2005-05-23
| | | | | | | | | | | | | | | | | | | | | | Try larger numbers of chips before smaller numbers of chips across the bus width. This means we'll avoid misdetecting a 2 x16 array as 1 x32 if the high 16-bits happen to read as zeros in the QRY area. Signed-off-by: Russell King <linux@arm.linux.org.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] rtc_from4 error status check, disable virtual erase blocksDavid A. Marlin2005-05-23
| | | | | | | | | | | | | | | | | | | | Added routine to perform extra error status checks on erase and write failures to determine if errors are correctable. Added option to prevent JFFS2 from using virtual erase blocks. Performed minor cleanup on whitespace and comments. Signed-off-by: David A. Marlin <dmarlin@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] NAND Add optional ECC status check callbackDavid A. Marlin2005-05-23
| | | | | | | | | | | | | | | | Add optional hardware specific callback routine to perform extra error status checks on erase and write failures for devices with hardware ECC. Signed-off-by: David A. Marlin <dmarlin@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] Platform RAM DriverBen Dooks2005-05-23
| | | | | | | | | | | | | | | | Driver for generic RAM blocks which are exported by an platform_device from the device driver system. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] NAND use symbols instead of literalsDavid A. Marlin2005-05-23
| | | | | | | | | | | | | | Replace some literals with defined symbols. Signed-off-by: David A. Marlin <dmarlin@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] NAND SharpSL fix default partition sizeRichard Purdie2005-05-23
| | | | | | | | | | | | | | Correct Poodle default partition size Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] NAND replace yieldThomas Gleixner2005-05-23
| | | | | | | | | | | | Replace yield by msleep. M.Wilcox stared at it and frowned Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] bast-flash partitions fixupBen Dooks2005-05-23
| | | | | | | | | | | | | | | | | | | | Ensure the whole device is added if there are no partitions found on the device, so that at least the flash can be read/written. Replace some of the constants with their SZ_xxx counterparts Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] Renesas AG-AND device recoveryDavid A. Marlin2005-05-23
| | | | | | | | | | | | | | | | Add routine to perform device recovery (deplete) procedure. Clean up some compiler warnings. Signed-off-by: David A. Marlin <dmarlin@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] NAND workaround for AG-AND disturb issue. AG-AND recoveryDavid A. Marlin2005-05-23
| | | | | | | | | | | | | | | | | | | | Added workaround for Renesas AG-AND chips "disturb" issue for Bad Block Table. Added support for the device recovery command sequence for Renesas AG-AND chips. Signed-off-by: David A. Marlin <dmarlin@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] NAND extended commands, badb block table autorefresh David A. Marlin2005-05-23
| | | | | | | | | | | | | | | | Added extended commands for AG-AND device and added option for BBT_AUTO_REFRESH. Signed-off-by: David A. Marlin <dmarlin@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] FTL Fix missing pointer assignmentHerbert Valerio Riedel2005-05-23
| | | | | | | | | | | | | | | | For the case that mtd partitions are enabled it would cause a 0-pointer dereferencing in mtdpart.c:mtd_erase_callback() Signed-off-by: Herbert Valerio Riedel <hvr@inso.tuwien.ac.at> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* | [MTD] slram driver cleanupJosh Boyer2005-05-23
|/ | | | | | | | Add error checks to read/write functions and add an eraseblock size. Makes slram a suitable device for JFFS2. Signed-off-by: Josh Boyer <jdub@us.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [PATCH] fix u32 vs. pm_message_t in drivers/mmc,mtd,scsiPavel Machek2005-04-16
| | | | | | | | | This fixes u32 vs. pm_message_t in drivers/mmc, drivers/mtd and drivers/scsi. Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* Linux-2.6.12-rc2Linus Torvalds2005-04-16
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!