mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
nvmem: rockchip-otp: add rk3576 variant data
The variant works very similar to the rk3588, just with a different read-offset and size. 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-5-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9165960606
commit
50d75a13a9
1 changed files with 12 additions and 0 deletions
|
@ -274,6 +274,14 @@ static const struct rockchip_data px30_data = {
|
|||
.reg_read = px30_otp_read,
|
||||
};
|
||||
|
||||
static const struct rockchip_data rk3576_data = {
|
||||
.size = 0x100,
|
||||
.read_offset = 0x700,
|
||||
.clks = px30_otp_clocks,
|
||||
.num_clks = ARRAY_SIZE(px30_otp_clocks),
|
||||
.reg_read = rk3588_otp_read,
|
||||
};
|
||||
|
||||
static const char * const rk3588_otp_clocks[] = {
|
||||
"otp", "apb_pclk", "phy", "arb",
|
||||
};
|
||||
|
@ -295,6 +303,10 @@ static const struct of_device_id rockchip_otp_match[] = {
|
|||
.compatible = "rockchip,rk3308-otp",
|
||||
.data = &px30_data,
|
||||
},
|
||||
{
|
||||
.compatible = "rockchip,rk3576-otp",
|
||||
.data = &rk3576_data,
|
||||
},
|
||||
{
|
||||
.compatible = "rockchip,rk3588-otp",
|
||||
.data = &rk3588_data,
|
||||
|
|
Loading…
Add table
Reference in a new issue