]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30ddfed7c28a2772542bf0cb2a985b950bab4123
tree6b543348a218ca3db88913a26a049a8ad2dfecaf
parent9236e4c88e1b0832b58f7caf86a0a17489aa818b
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