/Linux-v6.1/drivers/nvmem/ |
D | core.c | 56 struct nvmem_device *nvmem; member 76 static int __nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in __nvmem_reg_read() argument 79 if (nvmem->reg_read) in __nvmem_reg_read() 80 return nvmem->reg_read(nvmem->priv, offset, val, bytes); in __nvmem_reg_read() 85 static int __nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in __nvmem_reg_write() argument 90 if (nvmem->reg_write) { in __nvmem_reg_write() 91 gpiod_set_value_cansleep(nvmem->wp_gpio, 0); in __nvmem_reg_write() 92 ret = nvmem->reg_write(nvmem->priv, offset, val, bytes); in __nvmem_reg_write() 93 gpiod_set_value_cansleep(nvmem->wp_gpio, 1); in __nvmem_reg_write() 100 static int nvmem_access_with_keepouts(struct nvmem_device *nvmem, in nvmem_access_with_keepouts() argument [all …]
|
D | Makefile | 10 obj-$(CONFIG_NVMEM_APPLE_EFUSES) += nvmem-apple-efuses.o 11 nvmem-apple-efuses-y := apple-efuses.o 12 obj-$(CONFIG_NVMEM_BCM_OCOTP) += nvmem-bcm-ocotp.o 13 nvmem-bcm-ocotp-y := bcm-ocotp.o 16 obj-$(CONFIG_NVMEM_IMX_IIM) += nvmem-imx-iim.o 17 nvmem-imx-iim-y := imx-iim.o 18 obj-$(CONFIG_NVMEM_IMX_OCOTP) += nvmem-imx-ocotp.o 19 nvmem-imx-ocotp-y := imx-ocotp.o 20 obj-$(CONFIG_NVMEM_IMX_OCOTP_SCU) += nvmem-imx-ocotp-scu.o 21 nvmem-imx-ocotp-scu-y := imx-ocotp-scu.o [all …]
|
D | Kconfig | 15 bool "/sys/bus/nvmem/devices/*/nvmem (sysfs interface)" 22 read/write directly into nvmem. 36 be called nvmem-apple-efuses. 48 will be called nvmem-bcm-ocotp. 67 will be called nvmem-imx-iim. 79 will be called nvmem-imx-ocotp. 190 will be called nvmem-mxs-ocotp. 202 will be called nvmem-nintendo-otp. 210 functions for QFPROM data to rest of the drivers via nvmem interface. 225 This driver maps reserved memory into an nvmem device. It might be [all …]
|
D | sunxi_sid.c | 117 struct nvmem_device *nvmem; in sunxi_sid_probe() local 156 nvmem = devm_nvmem_register(dev, nvmem_cfg); in sunxi_sid_probe() 157 if (IS_ERR(nvmem)) in sunxi_sid_probe() 158 return PTR_ERR(nvmem); in sunxi_sid_probe() 168 platform_set_drvdata(pdev, nvmem); in sunxi_sid_probe()
|
D | zynqmp_nvmem.c | 16 struct nvmem_device *nvmem; member 64 priv->nvmem = devm_nvmem_register(dev, &econfig); in zynqmp_nvmem_probe() 66 return PTR_ERR_OR_ZERO(priv->nvmem); in zynqmp_nvmem_probe()
|
D | uniphier-efuse.c | 36 struct nvmem_device *nvmem; in uniphier_efuse_probe() local 56 nvmem = devm_nvmem_register(dev, &econfig); in uniphier_efuse_probe() 58 return PTR_ERR_OR_ZERO(nvmem); in uniphier_efuse_probe()
|
D | sunplus-ocotp.c | 159 struct nvmem_device *nvmem; in sp_ocotp_probe() local 194 nvmem = devm_nvmem_register(dev, &sp_ocotp_nvmem_config); in sp_ocotp_probe() 195 if (IS_ERR(nvmem)) in sp_ocotp_probe() 196 return dev_err_probe(&pdev->dev, PTR_ERR(nvmem), in sp_ocotp_probe() 199 platform_set_drvdata(pdev, nvmem); in sp_ocotp_probe()
|
D | mxs-ocotp.c | 33 struct nvmem_device *nvmem; member 177 otp->nvmem = devm_nvmem_register(dev, &ocotp_config); in mxs_ocotp_probe() 178 if (IS_ERR(otp->nvmem)) in mxs_ocotp_probe() 179 return PTR_ERR(otp->nvmem); in mxs_ocotp_probe()
|
D | lpc18xx_otp.c | 69 struct nvmem_device *nvmem; in lpc18xx_otp_probe() local 86 nvmem = devm_nvmem_register(&pdev->dev, &lpc18xx_otp_nvmem_config); in lpc18xx_otp_probe() 88 return PTR_ERR_OR_ZERO(nvmem); in lpc18xx_otp_probe()
|
/Linux-v6.1/Documentation/devicetree/bindings/nvmem/ |
D | xlnx,zynqmp-nvmem.txt | 2 = Zynq UltraScale+ MPSoC nvmem firmware driver binding = 8 - compatible: should be "xlnx,zynqmp-nvmem-fw" 12 bindings/nvmem/nvmem.txt 23 compatible = "xlnx,zynqmp-nvmem-fw"; 36 Are device nodes which consume nvmem data cells. 42 nvmem-cells = <&soc_revision>; 43 nvmem-cell-names = "soc_revision";
|
D | sprd-efuse.txt | 12 bindings/nvmem/nvmem.txt 30 Are device nodes which consume nvmem data cells. 37 nvmem-cells = <&thermal_calib>; 38 nvmem-cell-names = "calibration";
|
D | amlogic-efuse.txt | 11 bindings/nvmem/nvmem.txt 40 Are device nodes which consume nvmem data cells. 46 nvmem-cells = <ð_mac>; 47 nvmem-cell-names = "eth_mac";
|
D | sc27xx-efuse.txt | 15 bindings/nvmem/nvmem.txt 44 Are device nodes which consume nvmem data cells. 50 nvmem-cells = <&thermal_calib>; 51 nvmem-cell-names = "calibration";
|
/Linux-v6.1/include/linux/ |
D | nvmem-consumer.h | 78 void nvmem_device_put(struct nvmem_device *nvmem); 79 void devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem); 80 int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset, 82 int nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset, 84 ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, 86 int nvmem_device_cell_write(struct nvmem_device *nvmem, 89 const char *nvmem_dev_name(struct nvmem_device *nvmem); 180 static inline void nvmem_device_put(struct nvmem_device *nvmem) in nvmem_device_put() argument 185 struct nvmem_device *nvmem) in devm_nvmem_device_put() argument 189 static inline ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, in nvmem_device_cell_read() argument [all …]
|
/Linux-v6.1/drivers/soc/tegra/fuse/ |
D | fuse-tegra.c | 212 struct nvmem_config nvmem; in tegra_fuse_probe() local 251 memset(&nvmem, 0, sizeof(nvmem)); in tegra_fuse_probe() 252 nvmem.dev = &pdev->dev; in tegra_fuse_probe() 253 nvmem.name = "fuse"; in tegra_fuse_probe() 254 nvmem.id = -1; in tegra_fuse_probe() 255 nvmem.owner = THIS_MODULE; in tegra_fuse_probe() 256 nvmem.cells = tegra_fuse_cells; in tegra_fuse_probe() 257 nvmem.ncells = ARRAY_SIZE(tegra_fuse_cells); in tegra_fuse_probe() 258 nvmem.type = NVMEM_TYPE_OTP; in tegra_fuse_probe() 259 nvmem.read_only = true; in tegra_fuse_probe() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/power/reset/ |
D | nvmem-reboot-mode.txt | 9 - compatible: should be "nvmem-reboot-mode". 10 - nvmem-cells: A phandle to the reboot mode provided by a nvmem device. 11 - nvmem-cell-names: Should be "reboot-mode". 18 compatible = "nvmem-reboot-mode"; 19 nvmem-cells = <&reboot_mode>; 20 nvmem-cell-names = "reboot-mode";
|
/Linux-v6.1/Documentation/driver-api/ |
D | nvmem.rst | 41 nvmem configuration to nvmem_register(), on success core would return a valid 44 nvmem_unregister(nvmem) is used to unregister a previously registered provider. 62 Users of board files can define and register nvmem cells using the 81 Additionally it is possible to create nvmem cell lookup entries and register 82 them with the nvmem framework from machine code as shown in the example below:: 114 `*nvmem_cell_get()` apis will get a reference to nvmem cell for a given id, 130 void nvmem_device_put(struct nvmem_device *nvmem); 131 int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset, 133 int nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset, 135 int nvmem_device_cell_read(struct nvmem_device *nvmem, [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/net/ |
D | nixge.txt | 15 - nvmem-cells: Phandle of nvmem cell containing the MAC address 16 - nvmem-cell-names: Should be "address" 31 nvmem-cells = <ð1_addr>; 32 nvmem-cell-names = "address"; 54 nvmem-cells = <ð1_addr>; 55 nvmem-cell-names = "address"; 70 nvmem-cells = <ð1_addr>; 71 nvmem-cell-names = "address";
|
/Linux-v6.1/Documentation/ABI/stable/ |
D | sysfs-bus-nvmem | 1 What: /sys/bus/nvmem/devices/.../nvmem 7 Permissions for write to this file depends on the nvmem 14 hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
|
/Linux-v6.1/drivers/soc/ti/ |
D | pm33xx.c | 276 struct nvmem_device *nvmem; in am33xx_pm_begin() local 279 nvmem = devm_nvmem_device_get(&omap_rtc->dev, in am33xx_pm_begin() 281 if (!IS_ERR(nvmem)) in am33xx_pm_begin() 282 nvmem_device_write(nvmem, RTC_SCRATCH_MAGIC_REG * 4, 4, in am33xx_pm_begin() 306 struct nvmem_device *nvmem; in am33xx_pm_end() local 308 nvmem = devm_nvmem_device_get(&omap_rtc->dev, "omap_rtc_scratch0"); in am33xx_pm_end() 309 if (IS_ERR(nvmem)) in am33xx_pm_end() 327 nvmem_device_write(nvmem, RTC_SCRATCH_MAGIC_REG * 4, 4, in am33xx_pm_end() 440 struct nvmem_device *nvmem; in am33xx_pm_rtc_setup() local 465 nvmem = devm_nvmem_device_get(&omap_rtc->dev, in am33xx_pm_rtc_setup() [all …]
|
/Linux-v6.1/drivers/rtc/ |
D | nvmem.c | 17 struct nvmem_device *nvmem; in devm_rtc_nvmem_register() local 24 nvmem = devm_nvmem_register(dev, nvmem_config); in devm_rtc_nvmem_register() 25 if (IS_ERR(nvmem)) in devm_rtc_nvmem_register() 28 return PTR_ERR_OR_ZERO(nvmem); in devm_rtc_nvmem_register()
|
/Linux-v6.1/Documentation/devicetree/bindings/watchdog/ |
D | zii,rave-sp-wdt.txt | 18 - wdt-timeout: Two byte nvmem cell specified as per 19 Documentation/devicetree/bindings/nvmem/nvmem.txt 35 nvmem-cells = <&wdt_timeout>; 36 nvmem-cell-names = "wdt-timeout";
|
/Linux-v6.1/drivers/soc/atmel/ |
D | sfr.c | 46 struct nvmem_device *nvmem; in atmel_sfr_probe() local 64 nvmem = devm_nvmem_register(dev, &atmel_sfr_nvmem_config); in atmel_sfr_probe() 65 if (IS_ERR(nvmem)) { in atmel_sfr_probe() 67 return PTR_ERR(nvmem); in atmel_sfr_probe()
|
/Linux-v6.1/drivers/thunderbolt/ |
D | nvm.c | 427 struct nvmem_device *nvmem; in tb_nvm_add_active() local 442 nvmem = nvmem_register(&config); in tb_nvm_add_active() 443 if (IS_ERR(nvmem)) in tb_nvm_add_active() 444 return PTR_ERR(nvmem); in tb_nvm_add_active() 446 nvm->active = nvmem; in tb_nvm_add_active() 492 struct nvmem_device *nvmem; in tb_nvm_add_non_active() local 507 nvmem = nvmem_register(&config); in tb_nvm_add_non_active() 508 if (IS_ERR(nvmem)) in tb_nvm_add_non_active() 509 return PTR_ERR(nvmem); in tb_nvm_add_non_active() 511 nvm->non_active = nvmem; in tb_nvm_add_non_active()
|
/Linux-v6.1/Documentation/devicetree/bindings/thermal/ |
D | mediatek-thermal.txt | 30 - nvmem-cells: A phandle to the calibration data provided by a nvmem device. If 32 - nvmem-cell-names: Should be "calibration-data" 47 nvmem-cells = <&thermal_calibration_data>; 48 nvmem-cell-names = "calibration-data";
|