diff options
Diffstat (limited to 'lib/trusty/ql-tipc/libtipc.c')
-rw-r--r-- | lib/trusty/ql-tipc/libtipc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/trusty/ql-tipc/libtipc.c b/lib/trusty/ql-tipc/libtipc.c index 0affd4aac2..03e6906de4 100644 --- a/lib/trusty/ql-tipc/libtipc.c +++ b/lib/trusty/ql-tipc/libtipc.c @@ -1,5 +1,6 @@ /* * Copyright (C) 2016 The Android Open Source Project + * Copyright NXP 2018 * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation @@ -23,6 +24,7 @@ */ #include <trusty/avb.h> +#include <trusty/hwcrypto.h> #include <trusty/keymaster.h> #include <trusty/rpmb.h> #include <trusty/trusty_dev.h> @@ -45,6 +47,7 @@ void trusty_ipc_shutdown(void) (void)avb_tipc_shutdown(_ipc_dev); (void)km_tipc_shutdown(_ipc_dev); + (void)hwcrypto_tipc_shutdown(_ipc_dev); /* shutdown Trusty IPC device */ (void)trusty_ipc_dev_shutdown(_ipc_dev); @@ -98,5 +101,12 @@ int trusty_ipc_init(void) return rc; } + trusty_info("Initializing Trusty Hardware Crypto client\n"); + rc = hwcrypto_tipc_init(_ipc_dev); + if (rc != 0) { + trusty_error("Initlializing Trusty Keymaster client failed (%d)\n", rc); + return rc; + } + return TRUSTY_ERR_NONE; } |