nvmem: rockchip-otp: Add support for rk3308bs-otp

This adds the necessary data for handling otp on the rk3308bs.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: If146859d4c275bbd9ef80653d8ef206b573e0b77
This commit is contained in:
Finley Xiao 2022-05-16 19:41:53 +08:00 committed by Tao Huang
parent fd7fa23ef9
commit aa9b5f923d

View File

@ -823,6 +823,10 @@ static const struct of_device_id rockchip_otp_match[] = {
.compatible = "rockchip,rk3308-otp",
.data = (void *)&px30_data,
},
{
.compatible = "rockchip,rk3308bs-otp",
.data = (void *)&px30s_data,
},
#endif
#ifdef CONFIG_CPU_RK3568
{
@ -865,7 +869,7 @@ static int rockchip_otp_probe(struct platform_device *pdev)
dev_err(dev, "failed to get match data\n");
return -EINVAL;
}
if (soc_is_px30s())
if (soc_is_px30s() || soc_is_rk3308bs())
data = &px30s_data;
otp = devm_kzalloc(&pdev->dev, sizeof(struct rockchip_otp),