MLK-21976 nvmem: imx-scu-octop: implement program support
authorPeng Fan <peng.fan@nxp.com>
Thu, 25 Jul 2019 10:41:51 +0000 (18:41 +0800)
committerPeng Fan <peng.fan@nxp.com>
Mon, 29 Jul 2019 01:13:30 +0000 (09:13 +0800)
commit30d9d2d0904dc31bf92e9bd1b52c62d371f705a4
tree136cfd343f0ed19721cb394bf18422f3cd4cb57c
parentca7106d6994b5877f8b7f37f480d889b4acb93fe
MLK-21976 nvmem: imx-scu-octop: implement program support

Implement program support.
Restruct code to check hole/ecc region.
Use ATF SIP to program fuse
Add mutex lock to protect access

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
drivers/nvmem/imx-scu-ocotp.c
include/soc/imx/fsl_sip.h