Home
last modified time | relevance | path

Searched +full:user +full:- +full:otp (Results 1 – 25 of 29) sorted by relevance

12

/linux/include/uapi/mtd/
H A Dmtd-abi.h1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org> et al.
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
55 * @MTD_OPS_RAW: data are transferred as-is, with no error correction;
69 * struct mtd_write_req - data structure for requesting a write operation
74 * @usr_data: user-provided data buffer
75 * @usr_oob: user-provided OOB buffer
80 * writes in various modes. To write to OOB-only, set @usr_data == NULL, and to
81 * write data-only, set @usr_oob == NULL. However, setting both @usr_data and
95 * struct mtd_read_req_ecc_stats - ECC statistics for a read operation
[all …]
/linux/include/linux/mtd/
H A Dspinand.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2016-2017 Micron Technology, Inc.
17 #include <linux/spi/spi-mem.h>
366 * struct spinand_id - SPI NAND id structure
383 * struct spinand_devid - SPI NAND device id structure
391 * read_id opcode + 1-byte address.
402 * struct manufacurer_ops - SPI NAND manufacturer specific operations
415 * struct spinand_manufacturer - SPI NAND manufacturer instance
449 * struct spinand_op_variants - SPI NAND operation variants
453 * Some operations like read-from-cache/write-to-cache have several variants
[all …]
/linux/Documentation/devicetree/bindings/nvmem/
H A Dmicrochip,lan9662-otpc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/nvmem/microchip,lan9662-otpc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Microchip LAN9662 OTP Controller (OTPC)
10 - Horatiu Vultur <horatiu.vultur@microchip.com>
13 OTP controller drives a NVMEM memory where system specific data
15 user specific data could be stored.
18 - $ref: nvmem.yaml#
23 - items:
[all …]
H A Dmicrochip,sama7g5-otpc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/nvmem/microchip,sama7g5-otpc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Microchip SAMA7G5 OTP Controller (OTPC)
10 - Claudiu Beznea <claudiu.beznea@microchip.com>
13 OTP controller drives a NVMEM memory where system specific data
15 settings, chip identifiers) or user specific data could be stored.
18 - $ref: nvmem.yaml#
19 - $ref: nvmem-deprecated-cells.yaml#
[all …]
/linux/drivers/mtd/chips/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
13 support any device that is CFI-compliant, you need to enable this
18 tristate "Detect non-CFI AMD/JEDEC-compatible flash chips"
22 This option enables JEDEC-style probing of flash chips which are not
24 CFI-targeted flash drivers for any chips which are identified which
26 covers most AMD/Fujitsu-compatible chips and also non-CFI
53 are expected to be wired to the CPU in 'host-endian' form.
85 bool "Support 8-bit buswidth" if MTD_CFI_GEOMETRY
92 bool "Support 16-bit buswidth" if MTD_CFI_GEOMETRY
99 bool "Support 32-bit buswidth" if MTD_CFI_GEOMETRY
[all …]
H A Dcfi_cmdset_0001.c1 // SPDX-License-Identifier: GPL-2.0
10 * - completely revamped method functions so they are aware and
12 * - scalability vs code size is completely set at compile-time
14 * - optimized write buffer method
16 * - reworked lock/unlock/erase support for var size flash
18 * - auto unlock sectors on resume for auto locking flash on power up
124 printk(" Extended Query version %c.%c\n", extp->MajorVersion, extp->MinorVersion); in cfi_tell_features()
125 printk(" Feature/Command Support: %4.4X\n", extp->FeatureSupport); in cfi_tell_features()
126 printk(" - Chip Erase: %s\n", extp->FeatureSupport&1?"supported":"unsupported"); in cfi_tell_features()
127 printk(" - Suspend Erase: %s\n", extp->FeatureSupport&2?"supported":"unsupported"); in cfi_tell_features()
[all …]
H A Dcfi_cmdset_0002.c1 // SPDX-License-Identifier: GPL-2.0
118 * CFI Primary Vendor-Specific Extended Query table 1.5
122 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in cfi_use_status_reg()
125 return extp && extp->MinorVersion >= '5' && in cfi_use_status_reg()
126 (extp->SoftwareFeatures & poll_mask) == CFI_POLL_STATUS_REG; in cfi_use_status_reg()
132 struct cfi_private *cfi = map->fldrv_priv; in cfi_check_err_status()
138 cfi_send_gen_cmd(0x70, cfi->addr_unlock1, chip->start, map, cfi, in cfi_check_err_status()
139 cfi->device_type, NULL); in cfi_check_err_status()
151 map->name, chipstatus); in cfi_check_err_status()
154 map->name, chipstatus); in cfi_check_err_status()
[all …]
/linux/Documentation/devicetree/bindings/mtd/
H A Dnand-macronix.txt2 -----------------------------------
4 Macronix NANDs support randomizer operation for scrambling user data,
11 For more high-reliability concern, if subpage write is not available
17 - randomizer enable: should be "mxic,enable-randomizer-otp"
21 nand: nand-controller@unit-address {
25 mxic,enable-randomizer-otp;
/linux/Documentation/devicetree/bindings/nvmem/layouts/
H A Dkontron,sl28-vpd.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/nvmem/layouts/kontron,sl28-vpd.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: NVMEM layout of the Kontron SMARC-sAL28 vital product data
10 - Michael Walle <michael@walle.cc>
15 on-board ethernet devices are derived from this base MAC address by
22 const: kontron,sl28-vpd
24 serial-number:
30 base-mac-address:
[all …]
H A Donie,tlv-layout.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/nvmem/layouts/onie,tlv-layout.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Miquel Raynal <miquel.raynal@bootlin.com>
14 infrastructure shall provide a non-volatile memory with a table whose the
26 const: onie,tlv-layout
28 product-name:
32 part-number:
36 serial-number:
[all …]
/linux/drivers/mtd/nand/onenand/
H A Donenand_base.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright © 2005-2009 Samsung Electronics
9 * Adrian Hunter <ext-adrian.hunter@nokia.com>:
10 * auto-placement support, read-while load support, various fixes
13 * Flex-OneNAND support
15 * OTP support
39 /* Default Flex-OneNAND boundary and lock respectively */
40 static int flex_bdry[MAX_DIES * 2] = { -1, 0, -1, 0 };
43 MODULE_PARM_DESC(flex_bdry, "SLC Boundary information for Flex-OneNAND"
47 " : 0->Set boundary in unlocked status"
[all …]
/linux/Documentation/ABI/stable/
H A Dsysfs-bus-nvmem6 This read/write attribute allows users to set read-write
7 devices as read-only and back to read-write from userspace.
8 This can be used to unlock and relock write-protection of
11 Read returns '0' or '1' for read-write or read-only modes
23 This file allows user to read/write the raw NVMEM contents.
46 This read-only attribute allows user to read the NVMEM
48 "OTP", "Battery backed", "FRAM".
/linux/Documentation/ABI/testing/
H A Dsysfs-platform-silicom1 What: /sys/devices/platform/silicom-platform/uc_version
4 Contact: Henry Shi <henrys@silicom-usa.com>
9 What: /sys/devices/platform/silicom-platform/power_cycle
12 Contact: Henry Shi <henrys@silicom-usa.com>
14 This file allow user to power cycle the platform.
19 0 - default value.
21 What: /sys/devices/platform/silicom-platform/efuse_status
24 Contact: Henry Shi <henrys@silicom-usa.com>
27 OTP status:
29 0 - not programmed.
[all …]
/linux/arch/arm64/boot/dts/freescale/
H A Dfsl-ls1028a-kontron-sl28.dts1 // SPDX-License-Identifier: GPL-2.0+
3 * Device Tree file for the Kontron SMARC-sAL28 board.
9 /dts-v1/;
10 #include "fsl-ls1028a.dtsi"
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
16 model = "Kontron SMARC-sAL28";
33 compatible = "gpio-keys";
35 power-button {
[all …]
/linux/drivers/iio/gyro/
H A Dmpu3050-core.c1 // SPDX-License-Identifier: GPL-2.0-only
39 * Register map: anything suffixed *_H is a big-endian high byte and always
76 /* Bits 8-11 select memory bank */
163 * Fullscale precision is (for finest precision) +/- 250 deg/s, so the full
184 if (mpu3050->lpf == MPU3050_DLPF_CFG_256HZ_NOLPF2) in mpu3050_get_freq()
188 freq /= (mpu3050->divisor + 1); in mpu3050_get_freq()
200 ret = regmap_set_bits(mpu3050->map, MPU3050_PWR_MGM, in mpu3050_start_sampling()
205 /* Turn on the Z-axis PLL */ in mpu3050_start_sampling()
206 ret = regmap_update_bits(mpu3050->map, MPU3050_PWR_MGM, in mpu3050_start_sampling()
214 raw_val[i] = cpu_to_be16(mpu3050->calibration[i]); in mpu3050_start_sampling()
[all …]
/linux/drivers/mtd/devices/
H A Dmtd_dataflash.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (C) 2003-2005 SAN People (Pty) Ltd
28 * Sometimes DataFlash is packaged in MMC-format cards, although the
57 #define OP_MWRITE_BUFFER1 0x88 /* sector must be pre-erased */
58 #define OP_MWRITE_BUFFER2 0x89 /* sector must be pre-erased */
60 /* write to buffer, then write-erase to flash */
68 /* read flash to buffer, then write-erase to flash */
73 * serial number and OTP bits; and per-sector writeprotect.
129 * This usually takes 5-20 msec or so; more for sector erase.
138 dev_dbg(&spi->dev, "status %d?\n", status); in dataflash_waitready()
[all …]
/linux/drivers/power/supply/
H A Dab8500-bm.h1 /* SPDX-License-Identifier: GPL-2.0-only */
108 * OTP register offsets
267 * struct ab8500_fg_parameters - Fuel gauge algorithm parameters, in seconds
283 * @user_cap_limit Capacity reported from user must be within this
317 * struct ab8500_charger_maximization - struct used by the board config.
331 * struct ab8500_bm_capacity_levels - ab8500 capacity level data
347 * struct ab8500_bm_charger_parameters - Charger specific parameters
361 * struct ab8500_bm_data - ab8500 battery management data
/linux/arch/arm64/boot/dts/renesas/
H A Dr8a779g3-sparrow-hawk.dts1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 * Device Tree Source for the R-Car V4H ES3.0 Sparrow Hawk board
20 * CONN3 (HeadSet) ---+----> MSIOF1
22 * CONN4 AUX ---------+ on/off (A)
36 * > arecord -f cd xxx.wav
39 /dts-v1/;
40 #include <dt-bindings/gpio/gpio.h>
41 #include <dt-bindings/thermal/thermal.h>
47 compatible = "retronix,sparrow-hawk", "renesas,r8a779g3",
66 stdout-path = "serial0:921600n8";
[all …]
/linux/drivers/mfd/
H A Dwm831x-core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm831x-core.c -- Device access for Wolfson WM831x PMICs
24 #include <linux/mfd/wm831x/otp.h>
28 /* Current settings - values are 2*2^(reg_val/4) microamps. These are
93 if (!wm831x->locked) in wm831x_reg_locked()
111 * wm831x_reg_lock: Unlock user keyed registers
113 * The WM831x has a user key preventing writes to particularly
125 dev_vdbg(wm831x->dev, "Registers locked\n"); in wm831x_reg_lock()
127 mutex_lock(&wm831x->io_lock); in wm831x_reg_lock()
128 WARN_ON(wm831x->locked); in wm831x_reg_lock()
[all …]
/linux/security/smack/
H A Dsmack_lsm.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Casey Schaufler <casey@schaufler-ca.com>
11 * Copyright (C) 2007 Casey Schaufler <casey@schaufler-ca.com>
12 * Copyright (C) 2009 Hewlett-Packard Development Company, L.P.
13 * Paul Moore <paul@paul-moore.com>
58 * SMACK64 - for access control,
59 * SMACK64TRANSMUTE - labe
156 smk_bu_task(struct task_struct * otp,int mode,int rc) smk_bu_task() argument
174 smk_bu_task(otp,mode,RC) global() argument
[all...]
/linux/drivers/regulator/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
11 also provide status information to user space applications through a
38 managed regulators and simple non-configurable regulators.
54 from user space. Userspace consumer driver provides ability to
64 the netlink mechanism. User-space applications can subscribe to these events
65 for real-time updates on various regulator events.
75 They provide two I2C-controlled DC/DC step-down converters with
101 tristate "Active-semi act8865 voltage regulator"
106 This driver controls a active-semi act8865 voltage output
110 tristate "Active-semi ACT8945A voltage regulator"
[all …]
/linux/drivers/net/wireless/ath/ath9k/
H A Dinit.c2 * Copyright (c) 2008-2011 Atheros Communications Inc.
19 #include <linux/dma-mapping.h>
24 #include <linux/nvmem-consumer.h>
54 static int ath9k_led_active_high = -1;
60 MODULE_PARM_DESC(btcoex_enable, "Enable wifi-BT coexistence");
108 .ident = "Dell Inspiron 24-3460",
111 DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 24-3460"),
132 .ident = "Dell Vostro 15-3572",
135 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 15-3572"),
140 .ident = "Dell Inspiron 14-3473",
[all …]
/linux/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_core.c1 // SPDX-License-Identifier: GPL-2.0-only
323 clock = st->chip_config.clk; in inv_mpu6050_pwr_mgmt_1_write()
325 temp_dis = !st->chip_config.temp_en; in inv_mpu6050_pwr_mgmt_1_write()
335 dev_dbg(regmap_get_device(st->map), "pwr_mgmt_1: 0x%x\n", val); in inv_mpu6050_pwr_mgmt_1_write()
336 return regmap_write(st->map, st->reg->pwr_mgmt_1, val); in inv_mpu6050_pwr_mgmt_1_write()
344 switch (st->chip_type) { in inv_mpu6050_clock_switch()
349 ret = inv_mpu6050_pwr_mgmt_1_write(st, false, false, clock, -1); in inv_mpu6050_clock_switch()
352 st->chip_config.clk = clock; in inv_mpu6050_clock_switch()
370 if (mask & INV_MPU6050_SENSOR_ACCL && en == st->chip_config.accl_en) in inv_mpu6050_switch_engine()
372 if (mask & INV_MPU6050_SENSOR_GYRO && en == st->chip_config.gyro_en) in inv_mpu6050_switch_engine()
[all …]
/linux/drivers/mtd/spi-nor/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0
18 #include <linux/mtd/spi-nor.h>
32 * For everything but full-chip erase; probably could be much smaller, but kept
38 * For full-chip erase, calibrated to a 2MB flash (M25P16); should be scaled up
49 * spi_nor_get_cmd_ext() - Get the command opcode extension based on the
62 switch (nor->cmd_ext_type) { in spi_nor_get_cmd_ext()
64 return ~op->cmd.opcode; in spi_nor_get_cmd_ext()
67 return op->cmd.opcode; in spi_nor_get_cmd_ext()
70 dev_err(nor->dev, "Unknown command extension type\n"); in spi_nor_get_cmd_ext()
76 * spi_nor_spimem_setup_op() - Set up common properties of a spi-mem op.
[all …]
/linux/drivers/net/wireless/ath/ath10k/
H A Ddebug.c1 // SPDX-License-Identifier: ISC
3 * Copyright (c) 2005-2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc.
21 #include "wmi-ops.h"
37 dev_info(ar->dev, "%pV", &vaf); in ath10k_info()
52 ar->hw_params.name, in ath10k_debug_print_hwfw_info()
53 ar->target_version, in ath10k_debug_print_hwfw_info()
54 ar->bus_param.chip_id, in ath10k_debug_print_hwfw_info()
55 ar->id.subsystem_vendor, ar->id.subsystem_device); in ath10k_debug_print_hwfw_info()
64 firmware = ar->normal_mode_fw.fw_file.firmware; in ath10k_debug_print_hwfw_info()
[all …]

12