nvmem: imx-ocotp: add support for post processing
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 13 Oct 2021 13:19:57 +0000 (14:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Oct 2021 13:33:17 +0000 (15:33 +0200)
commitd0221a780cbc99fec6c27a98dba2828dc5735c00
tree1c91de1961033a2160c3f8ee578fee8fd52e5c0a
parent5008062f1c3f5af3acf86164aa6fcc77b0c7bdce
nvmem: imx-ocotp: add support for post processing

Add .cell_post_process callback for imx-ocotp to deal with MAC address,
since MAC address need to be reversed byte for some i.MX SoCs.

Tested-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20211013131957.30271-4-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/imx-ocotp.c