OSDN Git Service

nvmem: imx: scu: support write
authorPeng Fan <peng.fan@nxp.com>
Tue, 29 Oct 2019 11:42:34 +0000 (11:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2019 17:35:29 +0000 (18:35 +0100)
commit885ce72a09d072a3d75231c68e27f21c956c9f46
treee771d11941551c2c33035260d08c9598d1d06eba
parentf8017bfc14146d3f392aad08d060dfde5fd563b0
nvmem: imx: scu: support write

The fuse programming from non-secure world is blocked, so we could
only use Arm Trusted Firmware SIP call to let ATF program fuse.

Because there is ECC region that could only be programmed once,
so add a heler in_ecc to check the ecc region.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20191029114240.14905-5-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/imx-ocotp-scu.c