| /linux/drivers/nvmem/ |
| H A D | rockchip-otp.c | 85 static int rockchip_otp_reset(struct rockchip_otp *otp) in rockchip_otp_reset() argument 89 ret = reset_control_assert(otp->rst); in rockchip_otp_reset() 91 dev_err(otp->dev, "failed to assert otp phy %d\n", ret); in rockchip_otp_reset() 97 ret = reset_control_deassert(otp->rst); in rockchip_otp_reset() 99 dev_err(otp->dev, "failed to deassert otp phy %d\n", ret); in rockchip_otp_reset() 106 static int rockchip_otp_wait_status(struct rockchip_otp *otp, in rockchip_otp_wait_status() argument 112 ret = readl_poll_timeout_atomic(otp->base + reg, status, in rockchip_otp_wait_status() 118 writel(flag, otp->base + reg); in rockchip_otp_wait_status() 123 static int rockchip_otp_ecc_enable(struct rockchip_otp *otp, bool enable) in rockchip_otp_ecc_enable() argument 128 otp->base + OTPC_SBPI_CTRL); in rockchip_otp_ecc_enable() [all …]
|
| H A D | lan9662-otpc.c | 47 static int lan9662_otp_power(struct lan9662_otp *otp, bool up) in lan9662_otp_power() argument 49 void __iomem *pwrdn = OTP_OTP_PWR_DN(otp->base); in lan9662_otp_power() 53 if (lan9662_otp_wait_flag_clear(OTP_OTP_STATUS(otp->base), in lan9662_otp_power() 63 static int lan9662_otp_execute(struct lan9662_otp *otp) in lan9662_otp_execute() argument 65 if (lan9662_otp_wait_flag_clear(OTP_OTP_CMD_GO(otp->base), in lan9662_otp_execute() 69 if (lan9662_otp_wait_flag_clear(OTP_OTP_STATUS(otp->base), in lan9662_otp_execute() 76 static void lan9662_otp_set_address(struct lan9662_otp *otp, u32 offset) in lan9662_otp_set_address() argument 78 writel(0xff & (offset >> 8), OTP_OTP_ADDR_HI(otp->base)); in lan9662_otp_set_address() 79 writel(0xff & offset, OTP_OTP_ADDR_LO(otp->base)); in lan9662_otp_set_address() 82 static int lan9662_otp_read_byte(struct lan9662_otp *otp, u32 offset, u8 *dst) in lan9662_otp_read_byte() argument [all …]
|
| H A D | mxs-ocotp.c | 37 static int mxs_ocotp_wait(struct mxs_ocotp *otp) in mxs_ocotp_wait() argument 43 status = readl(otp->base); in mxs_ocotp_wait() 62 struct mxs_ocotp *otp = context; in mxs_ocotp_read() local 66 ret = clk_enable(otp->clk); in mxs_ocotp_read() 70 writel(BM_OCOTP_CTRL_ERROR, otp->base + STMP_OFFSET_REG_CLR); in mxs_ocotp_read() 72 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read() 77 writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_SET); in mxs_ocotp_read() 82 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read() 91 *buf++ = readl(otp->base + offset); in mxs_ocotp_read() 100 writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_CLR); in mxs_ocotp_read() [all …]
|
| H A D | sunplus-ocotp.c | 78 static int sp_otp_read_real(struct sp_ocotp_priv *otp, int addr, char *value) in sp_otp_read_real() argument 94 writel(readl(otp->base[OTPRX] + OTP_STATUS) & OTP_READ_DONE_MASK & in sp_otp_read_real() 95 OTP_LOAD_SECURE_DONE_MASK, otp->base[OTPRX] + OTP_STATUS); in sp_otp_read_real() 96 writel(addr, otp->base[OTPRX] + OTP_READ_ADDRESS); in sp_otp_read_real() 97 writel(readl(otp->base[OTPRX] + OTP_CONTROL_2) | OTP_READ, in sp_otp_read_real() 98 otp->base[OTPRX] + OTP_CONTROL_2); in sp_otp_read_real() 99 writel(readl(otp->base[OTPRX] + OTP_CONTROL_2) & SEL_BAK_KEY2_MASK & SW_TRIM_EN_MASK in sp_otp_read_real() 101 otp->base[OTPRX] + OTP_CONTROL_2); in sp_otp_read_real() 102 writel((readl(otp->base[OTPRX] + OTP_CONTROL_2) & OTP_RD_PERIOD_MASK) | CPU_CLOCK, in sp_otp_read_real() 103 otp->base[OTPRX] + OTP_CONTROL_2); in sp_otp_read_real() [all …]
|
| H A D | stm32-romem.c | 56 static int stm32_bsec_smc(u8 op, u32 otp, u32 data, u32 *result) in stm32_bsec_smc() argument 61 arm_smccc_smc(STM32_SMC_BSEC, op, otp, data, 0, 0, 0, 0, &res); in stm32_bsec_smc() 92 u32 otp = i >> 2; in stm32_bsec_read() local 94 if (otp < priv->lower) { in stm32_bsec_read() 99 ret = stm32_bsec_smc(STM32_SMC_READ_SHADOW, otp, 0, in stm32_bsec_read() 102 dev_err(dev, "Can't read data%d (%d)\n", otp, in stm32_bsec_read()
|
| H A D | Makefile | 53 obj-$(CONFIG_NVMEM_NINTENDO_OTP) += nvmem-nintendo-otp.o 54 nvmem-nintendo-otp-y := nintendo-otp.o 69 obj-$(CONFIG_NVMEM_ROCKCHIP_OTP) += nvmem-rockchip-otp.o 70 nvmem-rockchip-otp-y := rockchip-otp.o
|
| /linux/Documentation/devicetree/bindings/nvmem/ |
| H A D | lpc1850-otp.txt | 6 - compatible: Should be "nxp,lpc1850-otp" 15 otp: otp@40045000 { 16 compatible = "nxp,lpc1850-otp";
|
| /linux/drivers/crypto/ |
| H A D | atmel-sha204a.c | 94 static int atmel_sha204a_otp_read(struct i2c_client *client, u16 addr, u8 *otp) in atmel_sha204a_otp_read() argument 112 memcpy(otp, cmd.data+1, 4); in atmel_sha204a_otp_read() 121 u8 otp[OTP_ZONE_SIZE]; in otp_show() local 127 if (atmel_sha204a_otp_read(client, addr, otp + addr * 4) < 0) { in otp_show() 134 str += sprintf(str, "%02X", otp[i]); in otp_show() 138 static DEVICE_ATTR_RO(otp);
|
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| H A D | pcie.c | 359 struct brcmf_otp_params otp; member 1976 strscpy(devinfo->otp.module, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor() 1979 strscpy(devinfo->otp.vendor, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor() 1982 strscpy(devinfo->otp.version, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor() 1991 devinfo->otp.module, devinfo->otp.vendor, in brcmf_pcie_parse_otp_sys_vendor() 1992 devinfo->otp.version); in brcmf_pcie_parse_otp_sys_vendor() 1994 if (!devinfo->otp.module[0] || in brcmf_pcie_parse_otp_sys_vendor() 1995 !devinfo->otp.vendor[0] || in brcmf_pcie_parse_otp_sys_vendor() 1996 !devinfo->otp.version[0]) in brcmf_pcie_parse_otp_sys_vendor() 1999 devinfo->otp.valid = true; in brcmf_pcie_parse_otp_sys_vendor() [all …]
|
| /linux/Documentation/devicetree/bindings/mtd/ |
| H A D | nand-macronix.txt | 17 - randomizer enable: should be "mxic,enable-randomizer-otp" 25 mxic,enable-randomizer-otp;
|
| /linux/lib/crypto/x86/ |
| H A D | poly1305-x86_64-cryptogams.pl | 3863 my ($out,$inp,$otp,$len)=$win64 ? ("%rcx","%rdx","%r8", "%r9") : # Win64 order 3870 sub $otp,$inp 3871 sub $otp,$out 3877 movdqu ($inp,$otp),%xmm0 3878 pxor ($otp),%xmm0 3879 movdqu %xmm0,($out,$otp) 3880 movdqa %xmm0,($otp) 3881 lea 16($otp),$otp 3893 mov ($inp,$otp),%al 3894 xor ($otp),%al [all …]
|
| /linux/drivers/mtd/chips/ |
| H A D | cfi_cmdset_0001.c | 426 struct cfi_intelext_otpinfo *otp = in read_pri_intelext() local 437 otp->ProtRegAddr = le32_to_cpu(otp->ProtRegAddr); in read_pri_intelext() 438 otp->FactGroups = le16_to_cpu(otp->FactGroups); in read_pri_intelext() 439 otp->UserGroups = le16_to_cpu(otp->UserGroups); in read_pri_intelext() 440 otp++; in read_pri_intelext() 2324 struct cfi_intelext_otpinfo *otp; in cfi_intelext_otp_walk() local 2354 otp = (struct cfi_intelext_otpinfo *)&extp->extra[0]; in cfi_intelext_otp_walk() 2438 reg_prot_offset = otp->ProtRegAddr; in cfi_intelext_otp_walk() 2439 reg_fact_groups = otp->FactGroups; in cfi_intelext_otp_walk() 2440 reg_fact_size = 1 << otp->FactProtRegSize; in cfi_intelext_otp_walk() [all …]
|
| /linux/drivers/bluetooth/ |
| H A D | hci_bcm4377.c | 2049 static int bcm4377_parse_otp_sys_vendor(struct bcm4377_data *bcm4377, u8 *otp, in bcm4377_parse_otp_sys_vendor() argument 2061 if (get_unaligned_le32(otp) != BCM4377_OTP_VENDOR_HDR) in bcm4377_parse_otp_sys_vendor() 2064 chip_params = &otp[idx]; in bcm4377_parse_otp_sys_vendor() 2071 board_params = &otp[idx]; in bcm4377_parse_otp_sys_vendor() 2103 u8 *otp; in bcm4377_parse_otp() local 2107 otp = kzalloc(BCM4377_OTP_SIZE, GFP_KERNEL); in bcm4377_parse_otp() 2108 if (!otp) in bcm4377_parse_otp() 2112 otp[i] = ioread8(bcm4377->bar0 + bcm4377->hw->otp_offset + i); in bcm4377_parse_otp() 2116 u8 type = otp[i]; in bcm4377_parse_otp() 2117 u8 length = otp[i + 1]; in bcm4377_parse_otp() [all …]
|
| /linux/drivers/mtd/spi-nor/ |
| H A D | Makefile | 3 spi-nor-objs := core.o sfdp.o swp.o otp.o sysfs.o
|
| /linux/arch/powerpc/boot/dts/ |
| H A D | wii.dts | 233 otp@d8001ec { 234 compatible = "nintendo,hollywood-otp";
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | fsl-ls1028a-kontron-sl28.dts | 160 otp-1 { 161 compatible = "user-otp";
|
| /linux/arch/arm/boot/dts/sunplus/ |
| H A D | sunplus-sp7021.dtsi | 52 otp: otp@af00 { label
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | init.c | 52 .otp = AR6003_HW_2_0_OTP_FILE, 75 .otp = AR6003_HW_2_1_1_OTP_FILE, 792 if (ar->hw.fw.otp == NULL) { in ath6kl_fetch_otp_file() 799 ar->hw.fw.dir, ar->hw.fw.otp); in ath6kl_fetch_otp_file()
|
| /linux/arch/arm/boot/dts/broadcom/ |
| H A D | bcm-cygnus.dtsi | 108 otp: otp@301c800 { label
|
| /linux/arch/arm/boot/dts/microchip/ |
| H A D | lan966x.dtsi | 160 otp: otp@e0021000 { label
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3308.dtsi | 564 otp: efuse@ff210000 { label 565 compatible = "rockchip,rk3308-otp"; 571 clock-names = "otp", "apb_pclk", "phy"; 1866 tsadc_otp_pin: tsadc-otp-pin { 1871 tsadc_otp_out: tsadc-otp-out {
|
| H A D | px30.dtsi | 801 otp: nvmem@ff290000 { label 802 compatible = "rockchip,px30-otp"; 806 clock-names = "otp", "apb_pclk", "phy"; 1563 tsadc_otp_pin: tsadc-otp-pin { 1568 tsadc_otp_out: tsadc-otp-out {
|
| /linux/arch/arm64/boot/dts/broadcom/stingray/ |
| H A D | stingray.dtsi | 274 otp: otp@1c400 { label
|
| /linux/arch/arm/boot/dts/rockchip/ |
| H A D | rv1108.dtsi | 910 otp_out: otp-out { 914 otp_pin: otp-pin {
|
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | k3-am67a-kontron-sa67-base.dts | 946 otp-1 { 947 compatible = "user-otp";
|