nvmem: lan9662-otp: add support
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Fri, 16 Sep 2022 12:20:59 +0000 (13:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2022 12:54:38 +0000 (14:54 +0200)
commit9e8f208ad5229ddda97cd4a83ecf89c735d99592
tree8f77feec4820b46e80ae26fe9b94c08a63cda665
parentd1b274c4819deed7673e5edec12fea1e57110ad8
nvmem: lan9662-otp: add support

Add support for OTP controller available on LAN9662. The OTPC controls
the access to a non-volatile memory. The size of the memory is 8KB.
The OTPC can access the memory based on an offset.
Implement both the read and the write functionality.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220916122100.170016-13-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/Kconfig
drivers/nvmem/Makefile
drivers/nvmem/lan9662-otpc.c [new file with mode: 0644]