Commit 62ad7799b6cad795f73acacc28bf3711fc83a886

Authored by Kshitiz Varshney
1 parent b35420da60
Exists in emb_lf_v2022.04

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/arm/mach-imx/mx6/module_fuse.c
... ... @@ -311,7 +311,7 @@
311 311 void *buf;
312 312 char keys[2][16] = {"otp_crypto_key", "otp_unique_key"};
313 313 int ret = 0;
314   - int nodeoff = fdt_path_offset(blob, "/soc/bus@2200000/crypto@2280000");
  314 + int nodeoff = fdt_node_offset_by_compatible(blob, -1, "fsl,imx28-dcp");
315 315  
316 316 if (nodeoff < 0) {
317 317 printf("node to update the SoC serial number is not found.\n");