mirror of
https://github.com/armbian/linux-cix.git
synced 2026-01-06 12:30:45 -08:00
nvmem: rockchip-otp: set add_legacy_fixed_of_cells config option
[ Upstream commit 2933e79db3c00a8cdc56f6bb050a857fec1875ad ]
The Rockchip OTP describes its layout via devicetree subnodes,
so set the appropriate property.
Fixes: 2cc3b37f5b6d ("nvmem: add explicit config option to read old syntax fixed OF cells")
Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20240705074852.423202-5-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
90d41ebe0c
commit
846ee3b60a
@@ -255,6 +255,7 @@ static int rockchip_otp_read(void *context, unsigned int offset,
|
||||
static struct nvmem_config otp_config = {
|
||||
.name = "rockchip-otp",
|
||||
.owner = THIS_MODULE,
|
||||
.add_legacy_fixed_of_cells = true,
|
||||
.read_only = true,
|
||||
.stride = 1,
|
||||
.word_size = 1,
|
||||
|
||||
Reference in New Issue
Block a user