aboutsummaryrefslogtreecommitdiff
path: root/include/linux/mtd
AgeCommit message (Collapse)AuthorFilesLines
2006-05-23[MTD] NAND modularize ECCThomas Gleixner1-30/+33
First step of modularizing ECC support. - Move ECC related functionality into a seperate embedded data structure - Get rid of the hardware dependend constants to simplify new ECC models Signed-off-by: Thomas Gleixner <[email protected]>
2006-05-23[MTD] NAND consolidate data typesThomas Gleixner1-11/+11
The NAND driver used a mix of unsigned char, u_char amd uint8_t data types. Consolidate to uint8_t usage Signed-off-by: Thomas Gleixner <[email protected]>
2006-05-23[MTD] NAND whitespace and formatting cleanupThomas Gleixner1-69/+34
Signed-off-by: Thomas Gleixner <[email protected]>
2006-05-23[MTD] Add support for NDFC NAND controllerThomas Gleixner1-0/+66
NDFC NAND Flash controller is embedded in PPC EP44x SoCs. Add platform driver based support. Signed-off-by: Thomas Gleixner <[email protected]>
2006-05-23[MTD] Add platform support for NANDThomas Gleixner1-0/+47
Add the data structures necessary to provide platform device support for NAND Signed-off-by: Thomas Gleixner <[email protected]>
2006-05-23[MTD] Simplify NAND lockingThomas Gleixner1-3/+4
Replace the chip lock by a the controller lock. For simple drivers a dummy controller structure is created by the scan code. This simplifies the locking algorithm in nand_get/release_chip(). Signed-off-by: Thomas Gleixner <[email protected]>
2006-05-22[MTD] Introduce writesizeJoern Engel1-2/+5
At least two flashes exists that have the concept of a minimum write unit, similar to NAND pages, but no other NAND characteristics. Therefore, rename the minimum write unit to "writesize" for all flashes, including NAND. Signed-off-by: Joern Engel <[email protected]>
2006-05-14[MTD] Clean up <linux/mtd/physmap.h> to fix modular buildDavid Woodhouse1-6/+2
... and also fix the multiple inclusion guard so it actually _works_ Signed-off-by: David Woodhouse <[email protected]>
2006-05-14[MTD] Fix legacy character sets throughout drivers/mtd, include/linux/mtdDavid Woodhouse1-1/+1
Signed-off-by: David Woodhouse <[email protected]>
2006-05-12OneNAND: One-Time Programmable (OTP) supportKyungmin Park2-0/+10
One Block of the NAND Flash Array memory is reserved as a One-Time Programmable Block memory area. Also, 1st Block of NAND Flash Array can be used as OTP. The OTP block can be read, programmed and locked using the same operations as any other NAND Flash Array memory block. OTP block cannot be erased. OTP block is fully-guaranteed to be a valid block. Signed-off-by: Kyungmin Park <[email protected]>
2006-05-12OneNAND: handle byte access on BufferRAMKyungmin Park1-0/+3
Signed-off-by: Kyungmin Park <[email protected]>
2006-05-07[MTD] Convert physmap to platform driverLennert Buytenhek1-13/+8
After dwmw2 let me know it ought to be done, I rewrote the physmap map driver to be a platform driver. I know zilch about the driver model, so I probably botched it in some way, but I've done some tests on an ixp23xx board which uses physmap, and it all seems to work. In order to not break existing physmap users, I've added some compat code that will instantiate a platform device iff CONFIG_MTD_PHYSMAP_LEN is defined and != 0. Also, I've changed the default value for CONFIG_MTD_PHYSMAP_LEN to zero, so that people who inadvertently compile in physmap (or new, platform-style, users of physmap) don't get burned. This works pretty well -- the new physmap driver is a drop-in replacement for the old one, and works on said ixp23xx board without any code changes needed. (This should hold as long as users don't touch 'physmap_map' directly.) Once all physmap users have been converted to instantiate their own platform devices, the compat code can go. (Or we decide that we can change all the in-tree users at the same time, and never merge the compat code.) Signed-off-by: Lennert Buytenhek <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
2006-04-26Don't include linux/config.h from anywhere else in include/David Woodhouse6-6/+0
Signed-off-by: David Woodhouse <[email protected]>
2006-03-31[PATCH] drivers/mtd/: small cleanupsAdrian Bunk1-0/+5
- chips/sharp.c: make two needlessly global functions static - move some declarations to a header file where they belong to Signed-off-by: Adrian Bunk <[email protected]> Acked-by: David Woodhouse <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-03-31[PATCH] sem2mutex: drivers/mtd/Ingo Molnar2-4/+4
Semaphore to mutex conversion. The conversion was generated via scripts, and the result was validated automatically via a script as well. Signed-off-by: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Acked-by: David Woodhouse <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-02-07[PATCH] remove bogus asm/bug.h includes.Al Viro1-1/+0
A bunch of asm/bug.h includes are both not needed (since it will get pulled anyway) and bogus (since they are done too early). Removed. Signed-off-by: Al Viro <[email protected]>
2005-12-18[PATCH] mtd onenand driver: reduce stack usageKyungmin Park1-2/+2
Signed-off-by: Linus Torvalds <[email protected]>
2005-12-18[PATCH] mtd onenand driver: check correct manufacturerKyungmin Park1-1/+0
This (and the three subsequent patches) is working well on OMAP H4 with 2.6.15-rc4 kernel and passes the LTP fs test. Signed-off-by: Linus Torvalds <[email protected]>
2005-11-29[MTD] CFI: Use 16-bit access to autoselect/read device id dataTodd Poynor1-1/+17
Recent models of Intel/Sharp and Spansion CFI flash now have significant bits in the upper byte of device ID codes, read via what Spansion calls "autoselect" and Intel calls "read device identifier". Currently these values are truncated to the low 8 bits in the mtd data structures, as all CFI read query info has previously been read one byte at a time. Add a new method for reading 16-bit info, currently just manufacturer and device codes; datasheets hint at future uses for upper bytes in other fields. Signed-off-by: Todd Poynor <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-09[PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reasonOlaf Hering2-2/+0
This patch removes almost all inclusions of linux/version.h. The 3 #defines are unused in most of the touched files. A few drivers use the simple KERNEL_VERSION(a,b,c) macro, which is unfortunatly in linux/version.h. There are also lots of #ifdef for long obsolete kernels, this was not touched. In a few places, the linux/version.h include was move to where the LINUX_VERSION_CODE was used. quilt vi `find * -type f -name "*.[ch]"|xargs grep -El '(UTS_RELEASE|LINUX_VERSION_CODE|KERNEL_VERSION|linux/version.h)'|grep -Ev '(/(boot|coda|drm)/|~$)'` search pattern: /UTS_RELEASE\|LINUX_VERSION_CODE\|KERNEL_VERSION\|linux\/\(utsname\|version\).h Signed-off-by: Olaf Hering <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2005-11-07[MTD] includes: Clean up trailing white spacesThomas Gleixner16-118/+118
Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[MTD] Don't let gcc inline functions marked __xipramNicolas Pitre1-8/+8
If they get inlined into non __xipram functions we're screwed. Signed-off-by: Nicolas Pitre <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[MTD] OneNAND: Enhanced support for DDP (Dual Densitiy Packages)Kyungmin Park1-0/+1
Add density mask for better support of DDP chips. Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[MTD] OneNAND: Power Management (PM) supportKyungmin Park1-0/+1
Add suspend/resume Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[MTD] OneNAND: Add missing filesKyungmin Park1-0/+122
Simple bad block table source and header files Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[MTD] NAND: Add suspend/resume functionalityVitaly Wool1-1/+2
The changes introduced allow to suspend/resume NAND flash. A new state (FL_PM_SUSPENDED) is introduced, as well as routines for mtd->suspend and mtd->resume to put the flash in suspended state from software pov. Signed-off-by: Vitaly Wool <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[PATCH] OneNAND: Fix bug in write verifyKyungmin Park1-0/+1
- Remove unused block, page parameters - Add constant instead of runtime value Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[PATCH] OneNAND: Update OMAP OneNAND mapping using device driver modelKyungmin Park1-0/+8
- Update OMAP OneNAND mapping file using device driver model - Remove board specific macro and values. Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[PATCH] OneNAND: Simple Bad Block handling supportKyungmin Park1-0/+9
Based on NAND memory bad block table code Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[PATCH] OneNAND: Sync. Burst Read supportKyungmin Park2-2/+16
Add OneNAND Sync. Burst Read support Tested with OMAP platform Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[MTD] Add initial support for OneNAND flash chipsKyungmin Park2-0/+301
OneNAND is a new flash technology from Samsung with integrated SRAM buffers and logic interface. Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06{MTD] add support for Intel's "Sibley" flashNicolas Pitre2-4/+23
This updates the Primary Vendor-Specific Extended Query parsing to version 1.4 in order to get the information about the Configurable Programming Mode regions implemented in the Sibley flash, as well as selecting the appropriate write command code. This flash does not behave like traditional NOR flash when writing data. While mtdblock should just work, further changes are needed for JFFS2 use. Signed-off-by: Nicolas Pitre <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-10-30[PATCH] fix missing includesTim Schmielau1-0/+3
I recently picked up my older work to remove unnecessary #includes of sched.h, starting from a patch by Dave Jones to not include sched.h from module.h. This reduces the number of indirect includes of sched.h by ~300. Another ~400 pointless direct includes can be removed after this disentangling (patch to follow later). However, quite a few indirect includes need to be fixed up for this. In order to feed the patches through -mm with as little disturbance as possible, I've split out the fixes I accumulated up to now (complete for i386 and x86_64, more archs to follow later) and post them before the real patch. This way this large part of the patch is kept simple with only adding #includes, and all hunks are independent of each other. So if any hunk rejects or gets in the way of other patches, just drop it. My scripts will pick it up again in the next round. Signed-off-by: Tim Schmielau <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2005-07-07[MTD] XIP cleanupThomas Gleixner1-18/+13
Move the architecture dependend code into include/asm/mtd-xip.h Signed-off-by: Thomas Gleixner <[email protected]>
2005-06-29[MTD] Use correct major number for INFTLSean Young1-2/+2
inftl was assigned new major number 96, 94 is in use by dasd. See: http://www.ussg.iu.edu/hypermail/linux/kernel/0409.2/1220.html Signed-off-by: Sean Young <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-06-29[MTD] XIP for AMD CFI flash.Todd Poynor1-11/+1
Author: Vitaly Wool <[email protected]> Signed-off-by: Todd Poynor <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-06-29[MTD] NAND: Reorganize chip lockingThomas Gleixner1-1/+4
The code was wrong in several aspects. The locking order was inconsistent, the device aquire code did not reset a variable after a wakeup and the wakeup handling was not working for applications where multiple chips are sharing a single hardware controller. When a hardware controller is available the locking is now reduced to the hardware controller lock and the waitqueue is moved to the hardware controller structure in order to avoid a wake_up_all(). The problem was pointed out by Ben Dooks, who also found the missing variable reset as main cause for his deadlock problem. Signed-off-by: Thomas Gleixner <[email protected]>
2005-05-27[MTD] NAND: Add Hynix to manufacturer listNicolas S. Dade1-0/+1
Signed-off-by: Nicolas S. Dade <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-05-25[MTD] Fix it reallyThomas Gleixner1-2/+2
tglx declares him self to be the idiot of the day. Signed-off-by: Thomas Gleixner <[email protected]>
2005-05-25[MTD] map.h Use the correct macro and fix the resulting compiler warningThomas Gleixner1-3/+4
Signed-off-by: Thomas Gleixner <[email protected]>
2005-05-24[MTD] Make map_word_ff ware of the flash buswidthThomas Gleixner1-4/+13
map_word_ff() was setting the mapword to ~0UL regardless of the buswidth of the mapped flash chip. The read_map functions are buswidth aware and therefor the map_word_equal function failed. Signed-off-by: Thomas Gleixner <[email protected]>
2005-05-23[MTD] Fix broken user ABIThomas Gleixner1-2/+2
Move kernel data where it belongs. Previous change broke user abi. Signed-off-by: Thomas Gleixner <[email protected]>
2005-05-23[MTD] Add reboot notifier to Intel NOR flash driverNicolas Pitre1-1/+4
to make sure the flash is in array mode whenever we're about to reboot. This is especially useful to allow "soft" reboot to work which consists of branching back into the bootloader. Signed-off-by: Nicolas Pitre <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-05-23[MTD] Add the reverse operation of cfi_build_cmd()Thomas Gleixner1-1/+64
This is necessary to fix the broken status check in cfi_cmdset_0001 Signed-off-by: Thomas Gleixner <[email protected]>
2005-05-23[MTD] Fixed signed 1bit bitfieldBen Dooks1-3/+3
Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-05-23[MTD] Quiet unused variable warningNicolas Pitre1-2/+2
Signed-off-by: Nioclas Pitre <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-05-23[MTD] NAND: Skip bad block table scan on requestThomas Gleixner1-2/+3
Signed-off-by: Thomas Gleixner <[email protected]>
2005-05-23[MTD] Support for protection register support on Intel FLASH chipsNicolas Pitre4-9/+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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-05-23[MTD] Add OTP basiscNicolas Pitre1-1/+9
add structure definition for OTP region info Signed-off-by: Nicolas Pitre <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-05-23[MTD] NAND Add optional ECC status check callbackDavid A. Marlin1-2/+14
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>