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>
1 parent 10c77cf commit 18ac9ebab9cb5146ea2b0d93719c89834c95ad55
@Rouven Czerwinski Rouven Czerwinski authored on 11 Jun 2019
Sascha Hauer committed on 11 Jun 2019
Showing 1 changed file
View
drivers/nvmem/ocotp.c