nvmem: ocotp: Ensure WAIT bits are preserved
Port of patch from linux-arm-kernel: | From Bryan O'Donoghue <pure.logic@nexus-software.ie> | | nvmem: imx-ocotp: Ensure WAIT bits are preserved when setting timing | | The i.MX6 and i.MX8 both have a bit-field spanning bits 27:22 called the | WAIT field. | | The WAIT field according to the documentation for both parts "specifies | time interval between auto read and write access in one time program. It is | given in number of ipg_clk periods." | | This patch ensures that the relevant field is read and written back to the | timing register. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> |
---|
|
drivers/nvmem/ocotp.c |
---|