cmd: nand biterr - Add support for nand biterr command
authorBalamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
Tue, 29 Jun 2021 07:16:11 +0000 (12:46 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 26 Oct 2021 19:26:45 +0000 (15:26 -0400)
commit4ea84c5dce5a96a4ed9f8c410974425ff2167721
treeb45baeac49148ce62d0d62181cdcbc40d93841f3
parent75e33b378b3c81f1be1a8fa3815390b39fddda57
cmd: nand biterr - Add support for nand biterr command

The command shall be used to induce bit errors in the nand page
manually. The code flips a bit in the specified offset without
changing the ECC. This helps to see how the software handles the
error.

The patch is ported from
https://patchwork.ozlabs.org/project/uboot/patch/\
1325691123-19565-1-git-send-email-holger.brunck@keymile.com

The implementation is inspired from
'mtd-utils/nand-utils/nandflipbits.c'

Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
cmd/nand.c