Commits
![Peng Fan](https://secure.gravatar.com/avatar/bd1578dc29252dc0fbe1358b4daf5138.jpg?s=96&d=mm)
Peng Fan committed cb5dbf03994
MLK-13538-2 char: otp: support i.MX7ULP1 Add ULP1 OTP support. No timing required for ULP1 OTP. The CTRL_ADDR is 8 bits width. When finished access to OTP, gate the power to OTP memory to save power. Fix store, when invalid args, not return 0, but return the error values. To ULP, fuse only support being programmed once, so add a check before program. Test log: root@imx6qdlsolo:/sys/fsl_otp# cat HW_OCOTP_GP84 0x0 root@imx6qdlsolo:/sys/fsl_otp# echo 1 > HW_OCOTP_GP84 root@imx6qdlsolo:/sys/fsl_otp# cat HW_OCOTP_GP84 0x1 root@imx6qdlsolo:/sys/fsl_otp# echo 1 > HW_OCOTP_GP84 -sh: echo: write error: Operation not permitted root@imx6qdlsolo:/sys/fsl_otp# echo fg > HW_OCOTP_GP84 -sh: echo: write error: Invalid argument Signed-off-by: Peng Fan <peng.fan@nxp.com>