]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcee06fb1c67beeac9bbb9d11a0143a5d0eed8e72
tree8f77feec4820b46e80ae26fe9b94c08a63cda665
parenta2a4ba297929a91287a159a468105cf3eac911bf
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]