nvmem: ocotp: Convert to NVMEM device
Not that barebox has a proper NVMEM subsystem, convert OCOTP driver to
use that to both make things more consistent with Linux and also allow
accessing OCOTP fields without the need for
imx_ocotp_read_field()/imx_ocotp_write_field().

Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Tested-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 611a0d0 commit b8dce5d3a3be4ecb92055732927f0213976902d4
@Andrey Smirnov Andrey Smirnov authored on 29 May 2018
Sascha Hauer committed on 31 May 2018
Showing 1 changed file
View
drivers/nvmem/ocotp.c