nvmem: imx-ocotp: Move i.MX6 write clock setup to dedicated function
authorBryan O'Donoghue <pure.logic@nexus-software.ie>
Tue, 24 Oct 2017 09:54:30 +0000 (10:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2017 13:19:05 +0000 (14:19 +0100)
commitb50cb68f16ce393db040f755dcb26b9a246180c4
tree8235c24e9bf8fcfab1601e3a3b41c9d162437c2e
parentffd9115f6548c51d347489e76bfb7d10e728f43d
nvmem: imx-ocotp: Move i.MX6 write clock setup to dedicated function

The i.MX7S/D has a different set of timing requirements, as a pre-cursor to
adding the i.MX7 timing parameters, move the i.MX6 stuff to a dedicated
function.

Fixes: 0642bac7da42 ("nvmem: imx-ocotp: add write support")
Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/imx-ocotp.c