diff --git a/core/arch/arm/plat-nuvoton/main.c b/core/arch/arm/plat-nuvoton/main.c index 933fb2dd1a5..88db73db1d4 100644 --- a/core/arch/arm/plat-nuvoton/main.c +++ b/core/arch/arm/plat-nuvoton/main.c @@ -26,8 +26,8 @@ #define COLOR_WHITE "\x1B[37m" #define NPCM_MEASURE_BASE 0xF0848000 -#define NPCM_MEASURE_DME 0x0E0 -#define NPCM_MEASURE_SIZE 64 +#define NPCM_MEASURE_UUID 0xC50 +#define NPCM_MEASURE_SIZE 5 static struct ns16550_data console_data __nex_bss; @@ -76,7 +76,7 @@ TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) if (npcm_hwkey.ready) goto out; - vaddr = phys_to_virt(NPCM_MEASURE_BASE + NPCM_MEASURE_DME, + vaddr = phys_to_virt(NPCM_MEASURE_BASE + NPCM_MEASURE_UUID, MEM_AREA_RAM_NSEC, NPCM_MEASURE_SIZE); if (!vaddr) { EMSG("Not enough memory mapped");