crypto: atmel-sha204a - add reading from otp zone
authorLothar Rubusch <l.rubusch@gmail.com>
Fri, 3 May 2024 21:10:53 +0000 (21:10 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 10 May 2024 09:15:25 +0000 (17:15 +0800)
commite05ce444e9e59f924b53da8209bfb7208653817c
tree5503d5206154a6b54fdcc70947f59ba1b3f502ab
parent3f5f746165f7082f3c3f2f4b464e554c05a2621e
crypto: atmel-sha204a - add reading from otp zone

Provide a read function reading the otp zone. The otp zone can be used for
storing serial numbers. The otp zone, as also data zone, are only
accessible if the chip was locked before. Locking the chip is a post
production customization and has to be done manually i.e. not by this
driver. Without this step the chip is pretty much not usable, where
putting or not putting data into the otp zone is optional.

Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-i2c.c
drivers/crypto/atmel-i2c.h
drivers/crypto/atmel-sha204a.c