summaryrefslogtreecommitdiff
path: root/drivers/soc/tegra/fuse/fuse.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-08-20 17:01:04 +0300
committerThierry Reding <treding@nvidia.com>2019-10-16 15:33:16 +0300
commit9f94fadd75d34acec19c164ffb1b60c66d72f898 (patch)
tree4157b36b6e2be419ad677b732418403c0dd7787b /drivers/soc/tegra/fuse/fuse.h
parentf4619c7f68ba02f8357a9d42340a6dc8a229268d (diff)
downloadlinux-9f94fadd75d34acec19c164ffb1b60c66d72f898.tar.xz
soc/tegra: fuse: Register cell lookups for compatibility
Typically nvmem cells would be stored in device tree. However, for compatibility with device trees that don't contain nvmem cell definitions, register lookups for cells currently used by consumers. This allows the consumers to use the same API to query cells from the device tree or using the legacy mechanism. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/soc/tegra/fuse/fuse.h')
-rw-r--r--drivers/soc/tegra/fuse/fuse.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/soc/tegra/fuse/fuse.h b/drivers/soc/tegra/fuse/fuse.h
index 32bf6c070ae7..0f74c2c34af0 100644
--- a/drivers/soc/tegra/fuse/fuse.h
+++ b/drivers/soc/tegra/fuse/fuse.h
@@ -13,6 +13,7 @@
#include <linux/dmaengine.h>
#include <linux/types.h>
+struct nvmem_cell_lookup;
struct nvmem_device;
struct tegra_fuse;
@@ -28,6 +29,9 @@ struct tegra_fuse_soc {
int (*probe)(struct tegra_fuse *fuse);
const struct tegra_fuse_info *info;
+
+ const struct nvmem_cell_lookup *lookups;
+ unsigned int num_lookups;
};
struct tegra_fuse {
@@ -51,6 +55,7 @@ struct tegra_fuse {
} apbdma;
struct nvmem_device *nvmem;
+ struct nvmem_cell_lookup *lookups;
};
void tegra_init_revision(void);