imx: nandbcb: add support for writing BCB only
authorIgor Opaniuk <igor.opaniuk@toradex.com>
Sun, 3 Nov 2019 15:49:46 +0000 (16:49 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 3 Nov 2019 20:49:49 +0000 (21:49 +0100)
commitae8a53ece0ff3b1ed686c3e0af14e59973d25db8
treed5778783194105f4be4a2c3b114095619bb1dade
parent1b899a80415060600b8150b9e29d3428cfec3513
imx: nandbcb: add support for writing BCB only

Add subcommand for add writing BCB only, where we provide appropriate
offsets for firmware1 and firmware2 and size.

Example of usage:
> nandbcb bcbonly 0x00180000 0x00080000 0x00200000
Writing 1024 bytes to 0x0: randomizing
OK
Writing 1024 bytes to 0x20000: randomizing
OK

Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Tested-by: Max Krummenacher <max.krummenacher@toradex.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
arch/arm/mach-imx/cmd_nandbcb.c