commit | d867bef821ddd65420a37273f10f94a15fe3e6bb | [log] [tgz] |
---|---|---|
author | Hector Palacios <hector.palacios@digi.com> | Fri Nov 21 17:54:43 2014 +0100 |
committer | Stefano Babic <sbabic@denx.de> | Mon Dec 01 10:19:41 2014 +0100 |
tree | f0ce6a8acbfd9e89162e91a43f7ac72705429689 | |
parent | 2dd462a9a08a407b7b7a35a5bd1db380152703b0 [diff] |
mxs_ocotp: check for errors from the OTP controller after writing The write operation may fail when trying to write to a locked area. In this case the ERROR bit is set in the CTRL register. Check for that condition and return an error. Signed-off-by: Hector Palacios <hector.palacios@digi.com> Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>