]> git.sur5r.net Git - u-boot/blobdiff - drivers/crypto/ace_sha.h
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / drivers / crypto / ace_sha.h
index a426d523724bf8807514fdd0690860307f99c269..a671b925b6e71e665c42ac93fb7f675a84672d06 100644 (file)
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * Header file for Advanced Crypto Engine - SFR definitions
  *
  * Copyright (c) 2012  Samsung Electronics
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef __ACE_SHA_H
@@ -72,9 +71,10 @@ struct exynos_ace_sfr {
        unsigned char   res12[0x30];
        unsigned int    hash_result[8];
        unsigned char   res13[0x20];
-       unsigned int    hash_seed[8];
-       unsigned int    hash_prng[8];
-       unsigned char   res14[0x180];
+       unsigned int    hash_seed[5];
+       unsigned char   res14[12];
+       unsigned int    hash_prng[5];
+       unsigned char   res15[0x18c];
 
        unsigned int    pka_sfr[5];             /* base + 0x700 */
 };
@@ -291,6 +291,7 @@ struct exynos_ace_sfr {
 #define ACE_HASH_PRNGERROR_MASK        (1 << 7)
 #define ACE_HASH_PRNGERROR_OFF         (0 << 7)
 #define ACE_HASH_PRNGERROR_ON          (1 << 7)
+#define ACE_HASH_PRNG_REG_NUM          5
 
 #define ACE_SHA_TYPE_SHA1              1
 #define ACE_SHA_TYPE_SHA256            2