mtd: rawnand: davinci: add ROM supported OOB layout
authorMarcus Folkesson <marcus.folkesson@combitech.com>
Thu, 9 Jan 2025 07:58:31 +0000 (08:58 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 15 Jan 2025 18:07:19 +0000 (19:07 +0100)
commitd0b806fc9932a04dae87dbd03a2dea8114ee6996
tree533b2de091d67de92fd881a956bf5bb66ff6a47a
parent6df2d9553e168fe32dd49873dd254a63ca913307
mtd: rawnand: davinci: add ROM supported OOB layout

Add support for the OOB layout used by the ROM bootloader.
The same layout is used by both Keystone [1] and OMAPL138/DA850 [2]
which currently is the only users of davinci-nand.

Only select this layout if the `nand-is-boot-medium` property is set.
This to avoid breaking any existing devices out there.

[1] https://www.ti.com/lit/ug/spruhj3/spruhj3.pdf
[2] https://www.ti.com/lit/an/sprab41f/sprab41f.pdf

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/davinci_nand.c