1*2867e1b2SNico Cheng /* SPDX-License-Identifier: GPL-2.0+ */ 2*2867e1b2SNico Cheng /* 3*2867e1b2SNico Cheng * (C) Copyright 2019 Rockchip Electronics Co., Ltd 4*2867e1b2SNico Cheng */ 5*2867e1b2SNico Cheng 6*2867e1b2SNico Cheng #ifndef _RV1126_SECURE_OTP_H_ 7*2867e1b2SNico Cheng #define _RV1126_SECURE_OTP_H_ 8*2867e1b2SNico Cheng 9*2867e1b2SNico Cheng #define NVM_CEB 0x00 10*2867e1b2SNico Cheng #define NVM_RSTB 0x04 11*2867e1b2SNico Cheng #define NVM_TCSRST 0x08 12*2867e1b2SNico Cheng #define NVM_TCEW 0x0c 13*2867e1b2SNico Cheng #define NVM_TRW 0x10 14*2867e1b2SNico Cheng #define NVM_TRS 0x14 15*2867e1b2SNico Cheng #define NVM_ST 0x18 16*2867e1b2SNico Cheng #define NVM_RADDR 0x1c 17*2867e1b2SNico Cheng #define NVM_RSTART 0x20 18*2867e1b2SNico Cheng #define NVM_RDATA 0x24 19*2867e1b2SNico Cheng #define NVM_TRWH 0x28 20*2867e1b2SNico Cheng #define NVM_TREW 0x2c 21*2867e1b2SNico Cheng #define NVM_READ_ST 0x30 22*2867e1b2SNico Cheng #define NVM_PRADDR 0x34 23*2867e1b2SNico Cheng #define NVM_PRLEN 0x38 24*2867e1b2SNico Cheng #define NVM_PRDATA 0x3c 25*2867e1b2SNico Cheng #define NVM_FAILTIME 0x40 26*2867e1b2SNico Cheng #define NVM_PRSTART 0x44 27*2867e1b2SNico Cheng #define NVM_PRSTATE 0x48 28*2867e1b2SNico Cheng #define NVM_PRSUCCESS 0x4c 29*2867e1b2SNico Cheng #define NVM_TAS 0x50 30*2867e1b2SNico Cheng #define NVM_TWWL 0x54 31*2867e1b2SNico Cheng #define NVM_TDLEH 0x58 32*2867e1b2SNico Cheng #define NVM_TDPD 0x5c 33*2867e1b2SNico Cheng #define NVM_TPES 0x60 34*2867e1b2SNico Cheng #define NVM_TCPS 0x64 35*2867e1b2SNico Cheng #define NVM_TPW 0x68 36*2867e1b2SNico Cheng #define NVM_TCPH 0x6c 37*2867e1b2SNico Cheng #define NVM_TPEH 0x70 38*2867e1b2SNico Cheng #define NVM_TPTPD 0x74 39*2867e1b2SNico Cheng #define NVM_TPGMAS 0x78 40*2867e1b2SNico Cheng #define OTPC_INT_ST 0x7c 41*2867e1b2SNico Cheng #define NVM_INT_EN 0x80 42*2867e1b2SNico Cheng #define OTP_PROG_MASK_BASE 0x0200 43*2867e1b2SNico Cheng #define OTP_READ_MASK_BASE 0x0300 44*2867e1b2SNico Cheng #define OTP_MASK_BYPASS 0x0400 45*2867e1b2SNico Cheng #define OTP_MASK_INT_CON 0x0404 46*2867e1b2SNico Cheng #define OTP_MASK_INT_STATUS 0x0408 47*2867e1b2SNico Cheng #define OTP_MASK_STATUS 0x040C 48*2867e1b2SNico Cheng #define OTP_MASK_PROG_LOCK 0x0410 49*2867e1b2SNico Cheng #define OTP_MASK_READ_LOCK 0x0414 50*2867e1b2SNico Cheng #define OTP_MASK_BYPASS_LOCK 0x0418 51*2867e1b2SNico Cheng #define OTP_SLICE_LOCK 0x041c 52*2867e1b2SNico Cheng #define OTP_SLICE 0x0420 53*2867e1b2SNico Cheng 54*2867e1b2SNico Cheng struct rockchip_otp_platdata { 55*2867e1b2SNico Cheng void __iomem *base; 56*2867e1b2SNico Cheng unsigned long secure_conf_base; 57*2867e1b2SNico Cheng }; 58*2867e1b2SNico Cheng 59*2867e1b2SNico Cheng #endif 60*2867e1b2SNico Cheng 61