nvmem: imx-ocotp: add write support
authorRichard Leitner <richard.leitner@skidata.com>
Fri, 31 Mar 2017 12:44:55 +0000 (13:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 15:51:48 +0000 (17:51 +0200)
commit0642bac7da4240912c3e923a7d1c47af3dd89b9d
treea3ae1b6494a562da42de72d982809d08a2d3acbd
parent9b66587ee259800d278e84af64755083ea09926b
nvmem: imx-ocotp: add write support

Implement write routine for OCOTP controller found in i.MX6 SoC's.
Furthermore add locking to the read function to prevent race conditions.
The write routine code is based on the fsl_otp driver from Freescale.

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
drivers/nvmem/imx-ocotp.c