diff options
author | Aymen Sghaier <aymen.sghaier@nxp.com> | 2018-04-24 18:36:02 +0200 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2020-04-26 23:24:04 -0700 |
commit | e196193fc8ab61e7f51d281fba071bbe0aa7d3fd (patch) | |
tree | cb825e9f95d4e8016602c7b40c5584077ff78305 /include/fsl_caam.h | |
parent | 9c3d5dc42a93257c11cb260f410444ddc484c51a (diff) |
MLK-18703: crypto: caam: Add init TRNG into SPL or U-Boot
The following reasons lead to instantiate the TRNG into U-Boot/SPL:
- On some i.MX platforms Linux Kernel could not instantiate RNG
- RNG could be used/needed by M4/M0 cores before Kernel stage
- Having the RNG instantiation implemented only once for
almost i.MX platforms
Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com>
(cherry picked from commit 1f4134c85f6416cbdadaf5f4ff6321f6c685c74c)
(cherry picked from commit 20bd91de9f4b305adb15dda3a09fd9958557a82b)
Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'include/fsl_caam.h')
-rw-r--r-- | include/fsl_caam.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fsl_caam.h b/include/fsl_caam.h index e3ad6b8a30a..29f5ca12953 100644 --- a/include/fsl_caam.h +++ b/include/fsl_caam.h @@ -1,6 +1,7 @@ /* * Copyright (c) 2012-2016, Freescale Semiconductor, Inc. * All rights reserved. + * Copyright 2018 NXP * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -37,6 +38,7 @@ #define SUCCESS (0) #endif +#define ERROR_ANY (-1) #define ERROR_IN_PAGE_ALLOC (1) |