]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvmem: nintendo-otp: Add new driver for the Wii and Wii U OTP
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Sun, 1 Aug 2021 07:38:18 +0000 (09:38 +0200)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 10 Aug 2021 10:51:52 +0000 (11:51 +0100)
commit80c3356bea4e90ffa420a57c1e689738ebaf3d63
tree2a756a861c12b8fa2b7e677e5e157ac22b30b380
parent85bf0c3c3e1b3b40e6b1c4d70e865ee1e1d666cc
nvmem: nintendo-otp: Add new driver for the Wii and Wii U OTP

This OTP is read-only and contains various keys used by the console to
decrypt, encrypt or verify various pieces of storage.

Its size depends on the console, it is 128 bytes on the Wii and
1024 bytes on the Wii U (split into eight 128 bytes banks).

It can be used directly by writing into one register and reading from
the other one, without any additional synchronisation.

This driver was written based on reversed documentation, see:
https://wiiubrew.org/wiki/Hardware/OTP

Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Tested-by: Jonathan Neuschäfer <j.ne@posteo.net> # on Wii
Tested-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> # on Wii U
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
drivers/nvmem/Kconfig
drivers/nvmem/Makefile
drivers/nvmem/nintendo-otp.c [new file with mode: 0644]