diff options
author | Justin Treon <justin_treon@yahoo.com> | 2008-01-30 13:25:49 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-02-03 02:25:16 -0500 |
commit | e619a75ff6201b567a539e787aa9af9bc63a3187 (patch) | |
tree | f13113ce617958181d5cd6b2c56ae9f7b87d0014 /include/mtd/mtd-abi.h | |
parent | 842b1a105c95d22c3e4257879539413d3152629e (diff) |
[MTD] Unlocking all Intel flash that is locked on power up.
Patch for unlocking all Intel flash that has instant locking on power up.
The patch has been tested on Intel M18, P30 and J3D Strata Flash.
1. The automatic unlocking can be disabled for a particular partition
in the map or the command line.
a. For the bit mask in the map it should look like:
.mask_flags = MTD_POWERUP_LOCK,
b. For the command line parsing it should look like:
mtdparts=0x80000(bootloader)lk
2. This will only unlock parts with instant individual block locking.
Intel parts with legacy unlocking will not be unlocked.
Signed-off-by: Justin Treon <justin_treon@yahoo.com>
Signed-off-by: Jared Hulbert <jaredeh@gmail.com>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/mtd/mtd-abi.h')
-rw-r--r-- | include/mtd/mtd-abi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h index f71dac420394..615072c4da04 100644 --- a/include/mtd/mtd-abi.h +++ b/include/mtd/mtd-abi.h | |||
@@ -29,7 +29,7 @@ struct mtd_oob_buf { | |||
29 | #define MTD_WRITEABLE 0x400 /* Device is writeable */ | 29 | #define MTD_WRITEABLE 0x400 /* Device is writeable */ |
30 | #define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */ | 30 | #define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */ |
31 | #define MTD_NO_ERASE 0x1000 /* No erase necessary */ | 31 | #define MTD_NO_ERASE 0x1000 /* No erase necessary */ |
32 | #define MTD_STUPID_LOCK 0x2000 /* Always locked after reset */ | 32 | #define MTD_POWERUP_LOCK 0x2000 /* Always locked after reset */ |
33 | 33 | ||
34 | // Some common devices / combinations of capabilities | 34 | // Some common devices / combinations of capabilities |
35 | #define MTD_CAP_ROM 0 | 35 | #define MTD_CAP_ROM 0 |