mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
nvmem: rockchip-otp: Add support for RK3528
Add support for the OTP controller in RK3528. The OTPC is similar to the OTPC in RK3562 and RK3568, exept for a missing phy clock and reset. Signed-off-by: Jonas Karlman <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]> Tested-by: Willy Tarreau <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
7efe11aace
commit
a255f352b0
1 file changed
+16
@@ -333,6 +333,18 @@ static const struct rockchip_data px30_data = {
|
||||
.reg_read = px30_otp_read,
|
||||
};
|
||||
|
||||
static const char * const rk3528_otp_clocks[] = {
|
||||
"otp", "apb_pclk", "sbpi",
|
||||
};
|
||||
|
||||
static const struct rockchip_data rk3528_data = {
|
||||
.size = 0x80,
|
||||
.word_size = sizeof(u16),
|
||||
.clks = rk3528_otp_clocks,
|
||||
.num_clks = ARRAY_SIZE(rk3528_otp_clocks),
|
||||
.reg_read = rk3568_otp_read,
|
||||
};
|
||||
|
||||
static const char * const rk3568_otp_clocks[] = {
|
||||
"otp", "apb_pclk", "phy", "sbpi",
|
||||
};
|
||||
@@ -376,6 +388,10 @@ static const struct of_device_id rockchip_otp_match[] = {
|
||||
.compatible = "rockchip,rk3308-otp",
|
||||
.data = &px30_data,
|
||||
},
|
||||
{
|
||||
.compatible = "rockchip,rk3528-otp",
|
||||
.data = &rk3528_data,
|
||||
},
|
||||
{
|
||||
.compatible = "rockchip,rk3562-otp",
|
||||
.data = &rk3568_data,
|
||||
|
||||
Reference in new issue
Block a user