diff options
author | Kshitiz Varshney <kshitiz.varshney@nxp.com> | 2022-11-11 13:06:03 +0100 |
---|---|---|
committer | Kshitiz Varshney <kshitiz.varshney@nxp.com> | 2022-11-11 13:23:19 +0100 |
commit | 62ad7799b6cad795f73acacc28bf3711fc83a886 (patch) | |
tree | 9798e56563fed5a60635a9a6a7c03900e16e02a1 /arch | |
parent | b35420da607480d13334acd485d1e20954a14b58 (diff) |
LF-7602: Device tree fixup based on compatible string
Updated otp_crypto_key & otp_unique_key device tree fix up.
Earlier, device tree fix up was based on hardcoded address, but now it's
based on compatible string of crypto node:- "fsl,imx28-dcp"
Signed-off-by: Kshitiz Varshney <kshitiz.varshney@nxp.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/mx6/module_fuse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mx6/module_fuse.c b/arch/arm/mach-imx/mx6/module_fuse.c index 19780b64a5..a171e7b54d 100644 --- a/arch/arm/mach-imx/mx6/module_fuse.c +++ b/arch/arm/mach-imx/mx6/module_fuse.c @@ -311,7 +311,7 @@ add_status: void *buf; char keys[2][16] = {"otp_crypto_key", "otp_unique_key"}; int ret = 0; - int nodeoff = fdt_path_offset(blob, "/soc/bus@2200000/crypto@2280000"); + int nodeoff = fdt_node_offset_by_compatible(blob, -1, "fsl,imx28-dcp"); if (nodeoff < 0) { printf("node to update the SoC serial number is not found.\n"); |