summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-11-11 16:04:05 -0600
committerCommit Bot <commit-bot@chromium.org>2021-11-18 04:54:42 +0000
commit1c448adb961a62560b20ee3ce430fd4723371cbe (patch)
treea151dd116e62f33267f19d7946a8a27776ab14c1
parente46565d25b1479b9116a7ee66d89f97cde87d71c (diff)
downloadchrome-ec-1c448adb961a62560b20ee3ce430fd4723371cbe.tar.gz
Revert "stm32: add TRNG support"
This reverts commit 4cbf0cc358a2983a76dc1d732cf158dc15de8629. BUG=b:200823466 TEST=make buildall -j Change-Id: If21cdbbe793c412c740d4ab8c83aa04a038ba7f7 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3285749 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
-rw-r--r--include/config.h3
-rw-r--r--include/software_panic.h1
-rw-r--r--include/trng.h10
3 files changed, 0 insertions, 14 deletions
diff --git a/include/config.h b/include/config.h
index 3ec133bd58..523bf2045b 100644
--- a/include/config.h
+++ b/include/config.h
@@ -2844,9 +2844,6 @@
*/
#undef CONFIG_RMA_AUTH_USE_P256
-/* Enable hardware Random Number generator support */
-#undef CONFIG_RNG
-
/* Support verifying 2048-bit RSA signature */
#undef CONFIG_RSA
diff --git a/include/software_panic.h b/include/software_panic.h
index 99205f02c3..b4f397e6bb 100644
--- a/include/software_panic.h
+++ b/include/software_panic.h
@@ -20,7 +20,6 @@
#define PANIC_SW_PD_CRASH (PANIC_SW_BASE + 2)
#define PANIC_SW_ASSERT (PANIC_SW_BASE + 3)
#define PANIC_SW_WATCHDOG (PANIC_SW_BASE + 4)
-#define PANIC_SW_BAD_RNG (PANIC_SW_BASE + 5)
#define PANIC_SW_PMIC_FAULT (PANIC_SW_BASE + 6)
#endif /* __CROS_EC_SOFTWARE_PANIC_H */
diff --git a/include/trng.h b/include/trng.h
index cea4555b41..bc59425eab 100644
--- a/include/trng.h
+++ b/include/trng.h
@@ -17,16 +17,6 @@
void init_trng(void);
/**
- * Shutdown the true random number generator.
- *
- * The opposite operation of init_trng(), disable the hardware resources
- * used by the TRNG to save power.
- *
- * Not supported by all platforms.
- **/
-void exit_trng(void);
-
-/**
* Retrieve a 32 bit random value.
*
* Not supported on all platforms.