]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Wed, 4 Jun 2025 12:41:52 +0000 (14:41 +0200)
commit266e5f4813808b75a0254b66fff2de9d3987e824
tree80ddb63e689af5dfed376ce7555f4bb791d037e2
parentb3145041e990a233c27f2f9cc8456d5a9a88d422
nvmem: rockchip-otp: Move read-offset into variant-data

[ Upstream commit 6907e8093b3070d877ee607e5ceede60cfd08bde ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvmem/rockchip-otp.c