aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/crb/tpm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/crb/tpm.h')
-rw-r--r--src/drivers/crb/tpm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/crb/tpm.h b/src/drivers/crb/tpm.h
index 0d683848ae..c43beb6843 100644
--- a/src/drivers/crb/tpm.h
+++ b/src/drivers/crb/tpm.h
@@ -6,7 +6,7 @@
#define TPM_CRB_BASE_ADDRESS CONFIG_CRB_TPM_BASE_ADDRESS
#define CRB_REG(LOCTY, REG) \
- (void *)(CONFIG_CRB_TPM_BASE_ADDRESS + (LOCTY << 12) + REG)
+ (void *)(uintptr_t)(CONFIG_CRB_TPM_BASE_ADDRESS + (LOCTY << 12) + REG)
/* hardware registers */
#define CRB_REG_LOC_STATE 0x00