/drivers/mfd/ |
D | ab3100-otp.c | 62 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 …]
|
D | Makefile | 66 wm831x-objs := wm831x-core.o wm831x-irq.o wm831x-otp.o 160 obj-$(CONFIG_AB3100_OTP) += ab3100-otp.o
|
/drivers/nvmem/ |
D | mxs-ocotp.c | 46 static int mxs_ocotp_wait(struct mxs_ocotp *otp) in mxs_ocotp_wait() argument 52 status = readl(otp->base); in mxs_ocotp_wait() 71 struct mxs_ocotp *otp = context; in mxs_ocotp_read() local 75 ret = clk_enable(otp->clk); in mxs_ocotp_read() 79 writel(BM_OCOTP_CTRL_ERROR, otp->base + STMP_OFFSET_REG_CLR); in mxs_ocotp_read() 81 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read() 86 writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_SET); in mxs_ocotp_read() 91 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read() 100 *buf++ = readl(otp->base + offset); in mxs_ocotp_read() 109 writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_CLR); in mxs_ocotp_read() [all …]
|
D | lpc18xx_otp.c | 47 struct lpc18xx_otp *otp = context; in lpc18xx_otp_read() local 57 *buf++ = readl(otp->base + i * LPC18XX_OTP_WORD_SIZE); in lpc18xx_otp_read() 74 struct lpc18xx_otp *otp; in lpc18xx_otp_probe() local 77 otp = devm_kzalloc(&pdev->dev, sizeof(*otp), GFP_KERNEL); in lpc18xx_otp_probe() 78 if (!otp) in lpc18xx_otp_probe() 82 otp->base = devm_ioremap_resource(&pdev->dev, res); in lpc18xx_otp_probe() 83 if (IS_ERR(otp->base)) in lpc18xx_otp_probe() 84 return PTR_ERR(otp->base); in lpc18xx_otp_probe() 88 lpc18xx_otp_nvmem_config.priv = otp; in lpc18xx_otp_probe()
|
/drivers/staging/mt29f_spinand/ |
D | mt29f_spinand.c | 206 static int spinand_get_otp(struct spi_device *spi_nand, u8 *otp) in spinand_get_otp() argument 215 cmd.rx_buf = otp; in spinand_get_otp() 230 static int spinand_set_otp(struct spi_device *spi_nand, u8 *otp) in spinand_set_otp() argument 239 cmd.tx_buf = otp; in spinand_set_otp() 259 u8 otp = 0; in spinand_enable_ecc() local 261 retval = spinand_get_otp(spi_nand, &otp); in spinand_enable_ecc() 265 if ((otp & OTP_ECC_MASK) == OTP_ECC_MASK) in spinand_enable_ecc() 267 otp |= OTP_ECC_MASK; in spinand_enable_ecc() 268 retval = spinand_set_otp(spi_nand, &otp); in spinand_enable_ecc() 271 return spinand_get_otp(spi_nand, &otp); in spinand_enable_ecc() [all …]
|
/drivers/iio/gyro/ |
D | mpu3050-core.c | 789 u8 otp[8]; in mpu3050_hw_init() local 820 sizeof(otp), in mpu3050_hw_init() 821 otp); in mpu3050_hw_init() 826 add_device_randomness(otp, sizeof(otp)); in mpu3050_hw_init() 832 (otp[1] << 8 | otp[0]) & 0x1fff, in mpu3050_hw_init() 834 ((otp[2] << 8 | otp[1]) & 0x03e0) >> 5, in mpu3050_hw_init() 836 ((otp[4] << 16 | otp[3] << 8 | otp[2]) & 0x3fffc) >> 2, in mpu3050_hw_init() 838 ((otp[5] << 8 | otp[4]) & 0x3ffc) >> 2, in mpu3050_hw_init() 840 ((otp[6] << 8 | otp[5]) & 0x0380) >> 7, in mpu3050_hw_init() 842 otp[6] >> 2); in mpu3050_hw_init()
|
/drivers/input/mouse/ |
D | alps.c | 2461 unsigned char index, unsigned char otp[]) in alps_get_otp_values_ss4_v2() argument 2469 ps2_command(ps2dev, otp, PSMOUSE_CMD_GETINFO)) in alps_get_otp_values_ss4_v2() 2477 ps2_command(ps2dev, otp, PSMOUSE_CMD_GETINFO)) in alps_get_otp_values_ss4_v2() 2486 static int alps_update_device_area_ss4_v2(unsigned char otp[][4], in alps_update_device_area_ss4_v2() 2495 SS4PLUS_NUMSENSOR_XOFFSET + (otp[0][2] & 0x0F); in alps_update_device_area_ss4_v2() 2497 SS4PLUS_NUMSENSOR_YOFFSET + ((otp[0][2] >> 4) & 0x0F); in alps_update_device_area_ss4_v2() 2504 x_pitch = (otp[0][1] & 0x0F) + SS4PLUS_MIN_PITCH_MM; in alps_update_device_area_ss4_v2() 2505 y_pitch = ((otp[0][1] >> 4) & 0x0F) + SS4PLUS_MIN_PITCH_MM; in alps_update_device_area_ss4_v2() 2509 SS4_NUMSENSOR_XOFFSET + (otp[1][0] & 0x0F); in alps_update_device_area_ss4_v2() 2511 SS4_NUMSENSOR_YOFFSET + ((otp[1][0] >> 4) & 0x0F); in alps_update_device_area_ss4_v2() [all …]
|
/drivers/staging/media/atomisp/i2c/imx/ |
D | Makefile | 4 imx1x5-objs := imx.o drv201.o ad5816g.o dw9714.o dw9719.o dw9718.o vcm.o otp.o otp_imx.o otp_brcc06…
|
/drivers/char/ |
D | Makefile | 17 obj-$(CONFIG_BFIN_OTP) += bfin-otp.o
|
D | Kconfig | 81 will be called bfin-otp.
|
/drivers/mtd/chips/ |
D | cfi_cmdset_0001.c | 2311 struct cfi_intelext_otpinfo *otp; in cfi_intelext_otp_walk() local 2341 otp = (struct cfi_intelext_otpinfo *)&extp->extra[0]; in cfi_intelext_otp_walk() 2425 reg_prot_offset = otp->ProtRegAddr; in cfi_intelext_otp_walk() 2426 reg_fact_groups = otp->FactGroups; in cfi_intelext_otp_walk() 2427 reg_fact_size = 1 << otp->FactProtRegSize; in cfi_intelext_otp_walk() 2428 reg_user_groups = otp->UserGroups; in cfi_intelext_otp_walk() 2429 reg_user_size = 1 << otp->UserProtRegSize; in cfi_intelext_otp_walk() 2430 otp++; in cfi_intelext_otp_walk()
|
D | cfi_cmdset_0002.c | 1397 uint8_t otp, lockreg; in cfi_amdstd_otp_walk() local 1424 otp = cfi_read_query(map, base + 0x3 * ofs_factor); in cfi_amdstd_otp_walk() 1429 if (otp & 0x80) { in cfi_amdstd_otp_walk()
|
/drivers/net/wireless/ath/ath6kl/ |
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()
|
D | core.h | 793 const char *otp; member
|
/drivers/mtd/onenand/ |
D | onenand_base.c | 56 static int otp; variable 58 module_param(otp, int, 0400); 59 MODULE_PARM_DESC(otp, "Corresponding behaviour of OneNAND in OTP" 3325 if (otp == 1) in onenand_lock_user_prot_reg() 3327 else if (otp == 2) in onenand_lock_user_prot_reg() 3329 else if (otp == 3) in onenand_lock_user_prot_reg() 3331 else if (otp != 0) in onenand_lock_user_prot_reg()
|
/drivers/net/ethernet/broadcom/ |
D | tg3.c | 2311 u32 otp, phy; in tg3_phy_apply_otp() local 2316 otp = tp->phy_otp; in tg3_phy_apply_otp() 2321 phy = ((otp & TG3_OTP_AGCTGT_MASK) >> TG3_OTP_AGCTGT_SHIFT); in tg3_phy_apply_otp() 2325 phy = ((otp & TG3_OTP_HPFFLTR_MASK) >> TG3_OTP_HPFFLTR_SHIFT) | in tg3_phy_apply_otp() 2326 ((otp & TG3_OTP_HPFOVER_MASK) >> TG3_OTP_HPFOVER_SHIFT); in tg3_phy_apply_otp() 2329 phy = ((otp & TG3_OTP_LPFDIS_MASK) >> TG3_OTP_LPFDIS_SHIFT); in tg3_phy_apply_otp() 2333 phy = ((otp & TG3_OTP_VDAC_MASK) >> TG3_OTP_VDAC_SHIFT); in tg3_phy_apply_otp() 2336 phy = ((otp & TG3_OTP_10BTAMP_MASK) >> TG3_OTP_10BTAMP_SHIFT); in tg3_phy_apply_otp() 2339 phy = ((otp & TG3_OTP_ROFF_MASK) >> TG3_OTP_ROFF_SHIFT) | in tg3_phy_apply_otp() 2340 ((otp & TG3_OTP_RCOFF_MASK) >> TG3_OTP_RCOFF_SHIFT); in tg3_phy_apply_otp()
|