soc/tegra: fuse: Add support for Tegra264
authorStefan Kristiansson <stefank@nvidia.com>
Thu, 11 May 2023 13:20:48 +0000 (16:20 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 16 May 2023 08:58:50 +0000 (10:58 +0200)
Add support for Tegra264 to the fuse handling code.

Signed-off-by: Stefan Kristiansson <stefank@nvidia.com>
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/fuse/tegra-apbmisc.c
include/soc/tegra/fuse.h

index 4591c5b..eb0a1d9 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2014, NVIDIA CORPORATION.  All rights reserved.
+ * Copyright (c) 2014-2023, NVIDIA CORPORATION.  All rights reserved.
  */
 
 #include <linux/export.h>
@@ -62,6 +62,7 @@ bool tegra_is_silicon(void)
        switch (tegra_get_chip_id()) {
        case TEGRA194:
        case TEGRA234:
+       case TEGRA264:
                if (tegra_get_platform() == 0)
                        return true;
 
index a63de5d..3a513be 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
 /*
- * Copyright (c) 2012, NVIDIA CORPORATION.  All rights reserved.
+ * Copyright (c) 2012-2023, NVIDIA CORPORATION.  All rights reserved.
  */
 
 #ifndef __SOC_TEGRA_FUSE_H__
@@ -17,6 +17,7 @@
 #define TEGRA186       0x18
 #define TEGRA194       0x19
 #define TEGRA234       0x23
+#define TEGRA264       0x26
 
 #define TEGRA_FUSE_SKU_CALIB_0 0xf0
 #define TEGRA30_FUSE_SATA_CALIB        0x124