Lines Matching full:nvmem
13 #include <linux/nvmem-consumer.h>
14 #include <linux/nvmem-provider.h>
143 struct nvmem_config nvmem; in tegra_fuse_probe() local
210 memset(&nvmem, 0, sizeof(nvmem)); in tegra_fuse_probe()
211 nvmem.dev = &pdev->dev; in tegra_fuse_probe()
212 nvmem.name = "fuse"; in tegra_fuse_probe()
213 nvmem.id = -1; in tegra_fuse_probe()
214 nvmem.owner = THIS_MODULE; in tegra_fuse_probe()
215 nvmem.cells = fuse->soc->cells; in tegra_fuse_probe()
216 nvmem.ncells = fuse->soc->num_cells; in tegra_fuse_probe()
217 nvmem.keepout = fuse->soc->keepouts; in tegra_fuse_probe()
218 nvmem.nkeepout = fuse->soc->num_keepouts; in tegra_fuse_probe()
219 nvmem.type = NVMEM_TYPE_OTP; in tegra_fuse_probe()
220 nvmem.read_only = true; in tegra_fuse_probe()
221 nvmem.root_only = false; in tegra_fuse_probe()
222 nvmem.reg_read = tegra_fuse_read; in tegra_fuse_probe()
223 nvmem.size = fuse->soc->info->size; in tegra_fuse_probe()
224 nvmem.word_size = 4; in tegra_fuse_probe()
225 nvmem.stride = 4; in tegra_fuse_probe()
226 nvmem.priv = fuse; in tegra_fuse_probe()
228 fuse->nvmem = devm_nvmem_register(&pdev->dev, &nvmem); in tegra_fuse_probe()
229 if (IS_ERR(fuse->nvmem)) { in tegra_fuse_probe()
230 err = PTR_ERR(fuse->nvmem); in tegra_fuse_probe()
231 dev_err(&pdev->dev, "failed to register NVMEM device: %d\n", in tegra_fuse_probe()