nvmem: rockchip-otp: Move read-offset into variant-data
authorHeiko Stuebner <heiko@sntech.de>
Fri, 11 Apr 2025 11:22:39 +0000 (12:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Apr 2025 12:41:20 +0000 (14:41 +0200)
commit6907e8093b3070d877ee607e5ceede60cfd08bde
tree123111a09f87de27c184902050505b169393240e
parent0af2f6be1b4281385b618cb86ad946eded089ac8
nvmem: rockchip-otp: Move read-offset into variant-data

The RK3588 has an offset into the OTP area where the readable area begins
and automatically adds this to the start address.
Other variants are very much similar to rk3588, just with a different
offset, so move that value into variant-data.

To match the size in bytes, store this value also in bytes and not in
number of blocks.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20250411112251.68002-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/rockchip-otp.c