linux_dsm_epyc7002/Documentation/devicetree/bindings/mtd
Stefan Roese 1648eaaa15 mtd: cfi_cmdset_0002: Support Persistent Protection Bits (PPB) locking
Currently cfi_cmdset_0002.c does not support PPB locking of sectors. This
patch adds support for this locking/unlocking mechanism. It is needed on
some platforms, since newer U-Boot versions do support this PPB locking
and protect for example their environment sector(s) this way.

This PPB locking/unlocking will be enabled for all devices supported by
cfi_cmdset_0002 reporting 8 in the CFI word 0x49 (Sector Protect/Unprotect
scheme).

Please note that PPB locking does support sector-by-sector locking. But
the whole chip can only be unlocked together. So unlocking one sector
will automatically unlock all sectors of this device. Because of this
chip limitation, the PPB unlocking function saves the current locking
status of all sectors before unlocking the whole device. After unlocking
the saved locking status is re-configured. This way only the addressed
sectors will be unlocked.

To selectively enable this advanced sector protection mechanism, the
device-tree property "use-advanced-sector-protection" has been created.
To enable support for this locking this property needs to be present in the
flash DT node. E.g.:

nor_flash@0,0 {
	compatible = "amd,s29gl256n", "cfi-flash";
	bank-width = <2>;
	use-advanced-sector-protection;
	...

Tested with Spansion S29GL512S10THI and Micron JS28F512M29EWx flash
devices.

Signed-off-by: Stefan Roese <sr@denx.de>
Tested-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
2013-02-04 09:27:33 +02:00
..
arm-versatile.txt mtd: Move fdt partition documentation to a seperate file 2012-03-28 17:07:30 -06:00
atmel-dataflash.txt mtd: Move fdt partition documentation to a seperate file 2012-03-28 17:07:30 -06:00
atmel-nand.txt mtd: at91: add dt parameters for Atmel PMECC 2012-07-06 18:21:09 +01:00
denali-nand.txt mtd: denali: add a DT driver 2012-11-15 15:37:46 +02:00
elm.txt mtd: devices: elm: Add support for ELM error correction 2013-02-04 09:26:29 +02:00
flctl-nand.txt mtd: sh_flctl: Add device tree support 2012-11-15 15:37:50 +02:00
fsl-upm-nand.txt mtd: Move fdt partition documentation to a seperate file 2012-03-28 17:07:30 -06:00
fsmc-nand.txt mtd: fsmc_nand: pass the ale and cmd resource via resource 2012-11-15 15:37:47 +02:00
gpio-control-nand.txt mtd: Move fdt partition documentation to a seperate file 2012-03-28 17:07:30 -06:00
gpmi-nand.txt mtd: gpmi: add on-flash BBT support for gpmi nand 2012-07-16 21:46:46 +01:00
lpc32xx-mlc.txt mtd: add LPC32xx MLC NAND driver 2012-07-06 18:27:04 +01:00
lpc32xx-slc.txt mtd: add LPC32xx SLC NAND driver 2012-07-06 18:17:07 +01:00
m25p80.txt mtd: m25p80: Make fast read configurable via DT 2012-11-15 15:37:46 +02:00
mtd-physmap.txt mtd: cfi_cmdset_0002: Support Persistent Protection Bits (PPB) locking 2013-02-04 09:27:33 +02:00
mxc-nand.txt mtd: mxc_nand: implement device tree probing 2012-05-13 23:03:08 -05:00
nand.txt of/mtd/nand: add generic bindings and helpers 2012-03-15 23:28:19 +08:00
orion-nand.txt ARM: Kirkwood: Replace mrvl with marvell 2012-07-25 17:06:23 +02:00
partition.txt of: fix a few typos in the binding documentation 2012-07-06 07:16:14 -05:00
pxa3xx-nand.txt MTD: pxa3xx-nand: add devicetree bindings 2012-08-16 16:14:24 +08:00
spear_smi.txt mtd: add device-tree support to spear_smi 2012-03-27 01:01:21 +01:00