nvmem: add a driver for the Amlogic Meson6/Meson8/Meson8b SoCs
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Mon, 9 Oct 2017 13:26:41 +0000 (15:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Oct 2017 13:38:02 +0000 (15:38 +0200)
commit8caef1fa9176c4789b74c806434517b3adf7544a
tree251d8cb6f6a8e96679a29f7e7e1af60ff1110012
parent9593ad32b8be82f3abd6002336a93c405361b9fd
nvmem: add a driver for the Amlogic Meson6/Meson8/Meson8b SoCs

This adds a driver to access the efuse on Amlogic Meson6, Meson8 and
Meson8b SoCs.
These SoCs are accessing the efuse IP block directly through the
registers in the "secbus" region. This makes it different from the Meson
GX efuse driver which uses the "secure monitor" firmware to access the
efuse.

The efuse on Meson6 can only read one byte at a time, while the efuse on
Meson8 and Meson8b always reads 4 bytes at a time. The new driver
supports both, but due to lack of hardware Meson6 support was not tested.

The hardware also supports writing. However, this is currently not
supported by the driver.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/Kconfig
drivers/nvmem/Makefile
drivers/nvmem/meson-mx-efuse.c [new file with mode: 0644]