mxc_ocotp: Update driver to support OCOTP controller on i.MX7ULP
authorPeng Fan <peng.fan@nxp.com>
Wed, 22 Feb 2017 08:21:46 +0000 (16:21 +0800)
committerYe Li <ye.li@nxp.com>
Wed, 5 Apr 2017 09:23:51 +0000 (17:23 +0800)
commit9988956a0bcbf841df262096c7154d1bb1e8b906
treea6dcf0d0c633fa863649712b5d5c8e3fda0855fc
parent8a6a9f74a28f9ca30612452ebe1c325a3486d309
mxc_ocotp: Update driver to support OCOTP controller on i.MX7ULP

Update the mxc_ocotp driver to support i.MX7ULP.
The read/write sequence has some changes due to
PDN and OUT_STATUS registers added and TIME register is
removed. Also update the bank size and number.

Add is_mx7ulp macro in sys_proto.h

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by : Stefano Babic <sbabic@denx.de>
arch/arm/include/asm/imx-common/sys_proto.h
drivers/misc/mxc_ocotp.c