Skip to content

Commit

Permalink
mtd: devices: elm: Add support for ELM error correction
Browse files Browse the repository at this point in the history
The ELM hardware module can be used to speedup BCH 4/8/16 ECC scheme
error correction.
For now only 4 & 8 bit support is added

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
  • Loading branch information
Philip Avinash authored and Artem Bityutskiy committed Feb 4, 2013
1 parent c3e4b99 commit bf22433
Show file tree
Hide file tree
Showing 4 changed files with 476 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Documentation/devicetree/bindings/mtd/elm.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Error location module

Required properties:
- compatible: Must be "ti,am33xx-elm"
- reg: physical base address and size of the registers map.
- interrupts: Interrupt number for the elm.

Optional properties:
- ti,hwmods: Name of the hwmod associated to the elm

Example:
elm: elm@0 {
compatible = "ti,am33xx-elm";
reg = <0x48080000 0x2000>;
interrupts = <4>;
};
4 changes: 3 additions & 1 deletion drivers/mtd/devices/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ obj-$(CONFIG_MTD_LART) += lart.o
obj-$(CONFIG_MTD_BLOCK2MTD) += block2mtd.o
obj-$(CONFIG_MTD_DATAFLASH) += mtd_dataflash.o
obj-$(CONFIG_MTD_M25P80) += m25p80.o
obj-$(CONFIG_MTD_NAND_OMAP_BCH) += elm.o
obj-$(CONFIG_MTD_SPEAR_SMI) += spear_smi.o
obj-$(CONFIG_MTD_SST25L) += sst25l.o
obj-$(CONFIG_MTD_BCM47XXSFLASH) += bcm47xxsflash.o

CFLAGS_docg3.o += -I$(src)

CFLAGS_docg3.o += -I$(src)
Loading

0 comments on commit bf22433

Please sign in to comment.