mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 13:15:57 +00:00
soc/tegra: fuse: Add Tegra194 support
This commit adds Tegra194 fuse/apbmisc support. Signed-off-by: JC Kuo <jckuo@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
e42617b825
commit
3979a4c626
@ -49,6 +49,9 @@ static struct tegra_fuse *fuse = &(struct tegra_fuse) {
|
||||
};
|
||||
|
||||
static const struct of_device_id tegra_fuse_match[] = {
|
||||
#ifdef CONFIG_ARCH_TEGRA_194_SOC
|
||||
{ .compatible = "nvidia,tegra194-efuse", .data = &tegra194_fuse_soc },
|
||||
#endif
|
||||
#ifdef CONFIG_ARCH_TEGRA_186_SOC
|
||||
{ .compatible = "nvidia,tegra186-efuse", .data = &tegra186_fuse_soc },
|
||||
#endif
|
||||
|
@ -320,3 +320,32 @@ const struct tegra_fuse_soc tegra186_fuse_soc = {
|
||||
.num_lookups = ARRAY_SIZE(tegra186_fuse_lookups),
|
||||
};
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_ARCH_TEGRA_194_SOC)
|
||||
static const struct nvmem_cell_lookup tegra194_fuse_lookups[] = {
|
||||
{
|
||||
.nvmem_name = "fuse",
|
||||
.cell_name = "xusb-pad-calibration",
|
||||
.dev_id = "3520000.padctl",
|
||||
.con_id = "calibration",
|
||||
}, {
|
||||
.nvmem_name = "fuse",
|
||||
.cell_name = "xusb-pad-calibration-ext",
|
||||
.dev_id = "3520000.padctl",
|
||||
.con_id = "calibration-ext",
|
||||
},
|
||||
};
|
||||
|
||||
static const struct tegra_fuse_info tegra194_fuse_info = {
|
||||
.read = tegra30_fuse_read,
|
||||
.size = 0x300,
|
||||
.spare = 0x280,
|
||||
};
|
||||
|
||||
const struct tegra_fuse_soc tegra194_fuse_soc = {
|
||||
.init = tegra30_fuse_init,
|
||||
.info = &tegra194_fuse_info,
|
||||
.lookups = tegra194_fuse_lookups,
|
||||
.num_lookups = ARRAY_SIZE(tegra194_fuse_lookups),
|
||||
};
|
||||
#endif
|
||||
|
@ -108,4 +108,8 @@ extern const struct tegra_fuse_soc tegra210_fuse_soc;
|
||||
extern const struct tegra_fuse_soc tegra186_fuse_soc;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ARCH_TEGRA_194_SOC
|
||||
extern const struct tegra_fuse_soc tegra194_fuse_soc;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -63,6 +63,7 @@ u32 tegra_read_ram_code(void)
|
||||
static const struct of_device_id apbmisc_match[] __initconst = {
|
||||
{ .compatible = "nvidia,tegra20-apbmisc", },
|
||||
{ .compatible = "nvidia,tegra186-misc", },
|
||||
{ .compatible = "nvidia,tegra194-misc", },
|
||||
{},
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user