Lines Matching refs:base
46 vaddr_t base = (vaddr_t)phys_to_virt(OTP_S_BASE, MEM_AREA_IO_SEC, in rockchip_otp_read_secure() local
54 if (!base) in rockchip_otp_read_secure()
68 io_write32(base + OTP_S_INT_ST, io_read32(base + OTP_S_INT_ST)); in rockchip_otp_read_secure()
71 io_write32(base + OTP_S_AUTO_CTRL, auto_ctrl_val); in rockchip_otp_read_secure()
74 io_write32(base + OTP_S_AUTO_EN, EN_ENABLE); in rockchip_otp_read_secure()
77 res = IO_READ32_POLL_TIMEOUT(base + OTP_S_INT_ST, in rockchip_otp_read_secure()
85 io_write32(base + OTP_S_INT_ST, io_read32(base + OTP_S_INT_ST)); in rockchip_otp_read_secure()
98 val = io_read32(base + OTP_S_DOUT + in rockchip_otp_read_secure()
109 vaddr_t base = (vaddr_t)phys_to_virt(OTP_S_BASE, MEM_AREA_IO_SEC, in rockchip_otp_write_secure() local
114 if (!base) in rockchip_otp_write_secure()
151 io_write32(base + OTP_S_INT_ST, io_read32(base + OTP_S_INT_ST)); in rockchip_otp_write_secure()
154 io_write32(base + OTP_S_AUTO_CTRL, auto_ctrl_val); in rockchip_otp_write_secure()
157 io_write32(base + OTP_S_PROG_DATA, new_val); in rockchip_otp_write_secure()
160 io_write32(base + OTP_S_AUTO_EN, EN_ENABLE); in rockchip_otp_write_secure()
163 res = IO_READ32_POLL_TIMEOUT(base + OTP_S_INT_ST, in rockchip_otp_write_secure()
172 io_write32(base + OTP_S_INT_ST, int_status); in rockchip_otp_write_secure()