diff options
| author | Heiko Stuebner <[email protected]> | 2025-04-15 23:51:21 +0200 |
|---|---|---|
| committer | Kever Yang <[email protected]> | 2025-04-23 22:12:05 +0800 |
| commit | a252b5bed58043a0bf3a6ce861870da72a946d70 (patch) | |
| tree | 87448ae4b7612effe31c88a39658efecc17eb694 /drivers/misc | |
| parent | c0d9ac0b00bb5792ce7e4772115b655670185097 (diff) | |
rockchip: otp: Add support for RK3576
Add support for RK3576 compatible.
The RK3576 OTP uses the same read mechanism as the RK3588, just
with different values for offset and size.
Signed-off-by: Heiko Stuebner <[email protected]>
Reviewed-by: Jonas Karlman <[email protected]>
Reviewed-by: Kever Yang <[email protected]>
Diffstat (limited to 'drivers/misc')
| -rw-r--r-- | drivers/misc/rockchip-otp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/misc/rockchip-otp.c b/drivers/misc/rockchip-otp.c index b5597de39ac..46820425a84 100644 --- a/drivers/misc/rockchip-otp.c +++ b/drivers/misc/rockchip-otp.c @@ -361,6 +361,13 @@ static const struct rockchip_otp_data rk3568_data = { .block_size = 2, }; +static const struct rockchip_otp_data rk3576_data = { + .read = rockchip_rk3588_otp_read, + .offset = 0x700, + .size = 0x100, + .block_size = 4, +}; + static const struct rockchip_otp_data rk3588_data = { .read = rockchip_rk3588_otp_read, .offset = 0xC00, @@ -392,6 +399,10 @@ static const struct udevice_id rockchip_otp_ids[] = { .data = (ulong)&rk3568_data, }, { + .compatible = "rockchip,rk3576-otp", + .data = (ulong)&rk3576_data, + }, + { .compatible = "rockchip,rk3588-otp", .data = (ulong)&rk3588_data, }, |
