Home
last modified time | relevance | path

Searched refs:otp (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v5.10/drivers/nvmem/
Drockchip-otp.c74 static int rockchip_otp_reset(struct rockchip_otp *otp) in rockchip_otp_reset() argument
78 ret = reset_control_assert(otp->rst); in rockchip_otp_reset()
80 dev_err(otp->dev, "failed to assert otp phy %d\n", ret); in rockchip_otp_reset()
86 ret = reset_control_deassert(otp->rst); in rockchip_otp_reset()
88 dev_err(otp->dev, "failed to deassert otp phy %d\n", ret); in rockchip_otp_reset()
95 static int rockchip_otp_wait_status(struct rockchip_otp *otp, u32 flag) in rockchip_otp_wait_status() argument
100 ret = readl_poll_timeout_atomic(otp->base + OTPC_INT_STATUS, status, in rockchip_otp_wait_status()
106 writel(flag, otp->base + OTPC_INT_STATUS); in rockchip_otp_wait_status()
111 static int rockchip_otp_ecc_enable(struct rockchip_otp *otp, bool enable) in rockchip_otp_ecc_enable() argument
116 otp->base + OTPC_SBPI_CTRL); in rockchip_otp_ecc_enable()
[all …]
Dmxs-ocotp.c36 static int mxs_ocotp_wait(struct mxs_ocotp *otp) in mxs_ocotp_wait() argument
42 status = readl(otp->base); in mxs_ocotp_wait()
61 struct mxs_ocotp *otp = context; in mxs_ocotp_read() local
65 ret = clk_enable(otp->clk); in mxs_ocotp_read()
69 writel(BM_OCOTP_CTRL_ERROR, otp->base + STMP_OFFSET_REG_CLR); in mxs_ocotp_read()
71 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read()
76 writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_SET); in mxs_ocotp_read()
81 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read()
90 *buf++ = readl(otp->base + offset); in mxs_ocotp_read()
99 writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_CLR); in mxs_ocotp_read()
[all …]
Dlpc18xx_otp.c44 struct lpc18xx_otp *otp = context; in lpc18xx_otp_read() local
54 *buf++ = readl(otp->base + i * LPC18XX_OTP_WORD_SIZE); in lpc18xx_otp_read()
70 struct lpc18xx_otp *otp; in lpc18xx_otp_probe() local
73 otp = devm_kzalloc(&pdev->dev, sizeof(*otp), GFP_KERNEL); in lpc18xx_otp_probe()
74 if (!otp) in lpc18xx_otp_probe()
78 otp->base = devm_ioremap_resource(&pdev->dev, res); in lpc18xx_otp_probe()
79 if (IS_ERR(otp->base)) in lpc18xx_otp_probe()
80 return PTR_ERR(otp->base); in lpc18xx_otp_probe()
84 lpc18xx_otp_nvmem_config.priv = otp; in lpc18xx_otp_probe()
Dstm32-romem.c50 static int stm32_bsec_smc(u8 op, u32 otp, u32 data, u32 *result) in stm32_bsec_smc() argument
55 arm_smccc_smc(STM32_SMC_BSEC, op, otp, data, 0, 0, 0, 0, &res); in stm32_bsec_smc()
86 u32 otp = i >> 2; in stm32_bsec_read() local
88 if (otp < STM32MP15_BSEC_NUM_LOWER) { in stm32_bsec_read()
93 ret = stm32_bsec_smc(STM32_SMC_READ_SHADOW, otp, 0, in stm32_bsec_read()
96 dev_err(dev, "Can't read data%d (%d)\n", otp, in stm32_bsec_read()
DMakefile34 obj-$(CONFIG_ROCKCHIP_OTP) += nvmem-rockchip-otp.o
35 nvmem-rockchip-otp-y := rockchip-otp.o
/Linux-v5.10/drivers/mfd/
Dab3100-otp.c62 static int __init ab3100_otp_read(struct ab3100_otp *otp) in ab3100_otp_read() argument
68 err = abx500_get_register_interruptible(otp->dev, 0, in ab3100_otp_read()
71 dev_err(otp->dev, "unable to read OTPP register\n"); in ab3100_otp_read()
75 err = abx500_get_register_page_interruptible(otp->dev, 0, in ab3100_otp_read()
78 dev_err(otp->dev, "unable to read OTP register page\n"); in ab3100_otp_read()
83 otp->locked = (otpp & 0x80); in ab3100_otp_read()
84 otp->freq = (otpp & 0x40) ? 32768 : 34100; in ab3100_otp_read()
85 otp->paf = (otpval[1] & 0x80); in ab3100_otp_read()
86 otp->imeich = (otpval[1] & 0x40); in ab3100_otp_read()
87 otp->cid = ((otpval[1] << 8) | otpval[0]) & 0x3fff; in ab3100_otp_read()
[all …]
DMakefile65 wm831x-objs := wm831x-core.o wm831x-irq.o wm831x-otp.o
182 obj-$(CONFIG_AB3100_OTP) += ab3100-otp.o
/Linux-v5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Deeprom.c54 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); in mt7615_efuse_init()
55 dev->mt76.otp.size = len; in mt7615_efuse_init()
56 if (!dev->mt76.otp.data) in mt7615_efuse_init()
59 buf = dev->mt76.otp.data; in mt7615_efuse_init()
272 u8 *otp = dev->mt76.otp.data; in mt7615_apply_cal_free_data() local
275 if (!otp) in mt7615_apply_cal_free_data()
279 if (!otp[ical[i]]) in mt7615_apply_cal_free_data()
283 eeprom[ical[i]] = otp[ical[i]]; in mt7615_apply_cal_free_data()
286 eeprom[ical_nocheck[i]] = otp[ical_nocheck[i]]; in mt7615_apply_cal_free_data()
295 u8 *otp = dev->mt76.otp.data; in mt7622_apply_cal_free_data() local
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/nvmem/
Drockchip-otp.txt5 - "rockchip,px30-otp" - for PX30 SoCs.
6 - "rockchip,rk3308-otp" - for RK3308 SoCs.
9 - clock-names: Should be "otp", "apb_pclk" and "phy".
17 otp: otp@ff290000 {
18 compatible = "rockchip,px30-otp";
24 clock-names = "otp", "apb_pclk", "phy";
Dlpc1850-otp.txt6 - compatible: Should be "nxp,lpc1850-otp"
15 otp: otp@40045000 {
16 compatible = "nxp,lpc1850-otp";
Dbrcm,ocotp.txt13 otp: otp@301c800 {
/Linux-v5.10/drivers/net/wireless/mediatek/mt76/mt7603/
Deeprom.c51 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); in mt7603_efuse_init()
52 dev->mt76.otp.size = len; in mt7603_efuse_init()
53 if (!dev->mt76.otp.data) in mt7603_efuse_init()
56 buf = dev->mt76.otp.data; in mt7603_efuse_init()
164 if (dev->mt76.otp.data) { in mt7603_eeprom_init()
166 mt7603_apply_cal_free_data(dev, dev->mt76.otp.data); in mt7603_eeprom_init()
168 memcpy(dev->mt76.eeprom.data, dev->mt76.otp.data, in mt7603_eeprom_init()
/Linux-v5.10/drivers/iio/gyro/
Dmpu3050-core.c787 u8 otp[8]; in mpu3050_hw_init() local
818 sizeof(otp), in mpu3050_hw_init()
819 otp); in mpu3050_hw_init()
824 add_device_randomness(otp, sizeof(otp)); in mpu3050_hw_init()
830 (otp[1] << 8 | otp[0]) & 0x1fff, in mpu3050_hw_init()
832 ((otp[2] << 8 | otp[1]) & 0x03e0) >> 5, in mpu3050_hw_init()
834 ((otp[4] << 16 | otp[3] << 8 | otp[2]) & 0x3fffc) >> 2, in mpu3050_hw_init()
836 ((otp[5] << 8 | otp[4]) & 0x3ffc) >> 2, in mpu3050_hw_init()
838 ((otp[6] << 8 | otp[5]) & 0x0380) >> 7, in mpu3050_hw_init()
840 otp[6] >> 2); in mpu3050_hw_init()
/Linux-v5.10/Documentation/devicetree/bindings/mtd/
Dnand-macronix.txt17 - randomizer enable: should be "mxic,enable-randomizer-otp"
25 mxic,enable-randomizer-otp;
/Linux-v5.10/drivers/input/mouse/
Dalps.c2462 unsigned char index, unsigned char otp[]) in alps_get_otp_values_ss4_v2() argument
2470 ps2_command(ps2dev, otp, PSMOUSE_CMD_GETINFO)) in alps_get_otp_values_ss4_v2()
2478 ps2_command(ps2dev, otp, PSMOUSE_CMD_GETINFO)) in alps_get_otp_values_ss4_v2()
2487 static int alps_update_device_area_ss4_v2(unsigned char otp[][4], in alps_update_device_area_ss4_v2()
2496 SS4PLUS_NUMSENSOR_XOFFSET + (otp[0][2] & 0x0F); in alps_update_device_area_ss4_v2()
2498 SS4PLUS_NUMSENSOR_YOFFSET + ((otp[0][2] >> 4) & 0x0F); in alps_update_device_area_ss4_v2()
2505 x_pitch = (otp[0][1] & 0x0F) + SS4PLUS_MIN_PITCH_MM; in alps_update_device_area_ss4_v2()
2506 y_pitch = ((otp[0][1] >> 4) & 0x0F) + SS4PLUS_MIN_PITCH_MM; in alps_update_device_area_ss4_v2()
2510 SS4_NUMSENSOR_XOFFSET + (otp[1][0] & 0x0F); in alps_update_device_area_ss4_v2()
2512 SS4_NUMSENSOR_YOFFSET + ((otp[1][0] >> 4) & 0x0F); in alps_update_device_area_ss4_v2()
[all …]
/Linux-v5.10/arch/x86/crypto/
Dpoly1305-x86_64-cryptogams.pl3872 my ($out,$inp,$otp,$len)=$win64 ? ("%rcx","%rdx","%r8", "%r9") : # Win64 order
3879 sub $otp,$inp
3880 sub $otp,$out
3886 movdqu ($inp,$otp),%xmm0
3887 pxor ($otp),%xmm0
3888 movdqu %xmm0,($out,$otp)
3889 movdqa %xmm0,($otp)
3890 lea 16($otp),$otp
3902 mov ($inp,$otp),%al
3903 xor ($otp),%al
[all …]
/Linux-v5.10/drivers/net/wireless/mediatek/mt76/
Ddebugfs.c106 if (dev->otp.data) in mt76_register_debugfs()
107 debugfs_create_blob("otp", 0400, dir, &dev->otp); in mt76_register_debugfs()
/Linux-v5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
Deeprom.c155 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, MT7662_EEPROM_SIZE, in mt76x2_eeprom_load()
157 dev->mt76.otp.size = MT7662_EEPROM_SIZE; in mt76x2_eeprom_load()
158 if (!dev->mt76.otp.data) in mt76x2_eeprom_load()
161 efuse = dev->mt76.otp.data; in mt76x2_eeprom_load()
/Linux-v5.10/fs/xfs/
Dxfs_trans_dquot.c74 struct xfs_trans *otp, in xfs_trans_dup_dqinfo() argument
82 if (!otp->t_dqinfo) in xfs_trans_dup_dqinfo()
91 if (otp->t_flags & XFS_TRANS_DQ_DIRTY) in xfs_trans_dup_dqinfo()
95 oqa = otp->t_dqinfo->dqs[j]; in xfs_trans_dup_dqinfo()
/Linux-v5.10/arch/arm/boot/dts/
Dpicoxcell-pc3x3.dtsi350 otp@ffff8000 {
351 compatible = "picochip,otp-pc3x3";
Dbcm-cygnus.dtsi108 otp: otp@301c800 { label
/Linux-v5.10/Documentation/devicetree/bindings/net/wireless/
Dmediatek,mt76.txt28 - mediatek,eeprom-merge-otp: Merge EEPROM data with OTP data. Can be used on
/Linux-v5.10/drivers/mtd/chips/
Dcfi_cmdset_0001.c2306 struct cfi_intelext_otpinfo *otp; in cfi_intelext_otp_walk() local
2336 otp = (struct cfi_intelext_otpinfo *)&extp->extra[0]; in cfi_intelext_otp_walk()
2420 reg_prot_offset = otp->ProtRegAddr; in cfi_intelext_otp_walk()
2421 reg_fact_groups = otp->FactGroups; in cfi_intelext_otp_walk()
2422 reg_fact_size = 1 << otp->FactProtRegSize; in cfi_intelext_otp_walk()
2423 reg_user_groups = otp->UserGroups; in cfi_intelext_otp_walk()
2424 reg_user_size = 1 << otp->UserProtRegSize; in cfi_intelext_otp_walk()
2425 otp++; in cfi_intelext_otp_walk()
/Linux-v5.10/drivers/net/wireless/ath/ath6kl/
Dinit.c52 .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-v5.10/drivers/mtd/nand/onenand/
Donenand_base.c51 static int otp; variable
53 module_param(otp, int, 0400);
54 MODULE_PARM_DESC(otp, "Corresponding behaviour of OneNAND in OTP"
3219 if (otp == 1) in onenand_lock_user_prot_reg()
3221 else if (otp == 2) in onenand_lock_user_prot_reg()
3223 else if (otp == 3) in onenand_lock_user_prot_reg()
3225 else if (otp != 0) in onenand_lock_user_prot_reg()

12