nvmem: imx: ocotp: introduce ocotp_ctrl_reg
authorPeng Fan <peng.fan@nxp.com>
Thu, 9 Jan 2020 10:40:16 +0000 (10:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jan 2020 12:52:12 +0000 (13:52 +0100)
commit226c512699ee047b7fae0df297ea0be9e2b629c5
tree6b543348a218ca3db88913a26a049a8ad2dfecaf
parent8c4d35aff54042aa80efaabdb7b754b3d74a71d5
nvmem: imx: ocotp: introduce ocotp_ctrl_reg

Introduce ocotp_ctrl_reg to include the low 16bits mask of CTRL
register.

i.MX chips will have different layout of the low 16bits of CTRL
register, so use ocotp_ctrl_reg will make it clean to add new
chip support.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200109104017.6249-4-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/imx-ocotp.c