[dif/otbn] Integrate autogen'd IRQ DIFs into source tree.
This commit partially addresses #8142. Specifically it:
1. deprecates existing (manually implemented) **OTBN** IRQ DIFs,
2. integrates the auto-generated **OTBN** IRQ DIFs into meson build
targets, and
3. refactors all existing source code to make use of the new auto-genenerated
**OTBN** IRQ DIFs, and supporting shared DIF typedefs and error codes.
This continues the long-term goal of auto-generating all IRQ DIFs across
all IPs, as described in #8142.
Signed-off-by: Timothy Trippel <ttrippel@google.com>
diff --git a/sw/device/tests/otbn_rsa_test.c b/sw/device/tests/otbn_rsa_test.c
index 96e29b6..6cf7183 100644
--- a/sw/device/tests/otbn_rsa_test.c
+++ b/sw/device/tests/otbn_rsa_test.c
@@ -243,15 +243,12 @@
const uint8_t *private_exponent, const uint8_t *in,
const uint8_t *encrypted_expected,
uint8_t *out_encrypted, uint8_t *out_decrypted) {
- dif_otbn_config_t otbn_config = {
- .base_addr = mmio_region_from_addr(TOP_EARLGREY_OTBN_BASE_ADDR),
- };
-
otbn_t otbn_ctx;
// Initialize
profile_start();
- CHECK(otbn_init(&otbn_ctx, otbn_config) == kOtbnOk);
+ CHECK(otbn_init(&otbn_ctx, mmio_region_from_addr(
+ TOP_EARLGREY_OTBN_BASE_ADDR)) == kOtbnOk);
CHECK(otbn_load_app(&otbn_ctx, kOtbnAppRsa) == kOtbnOk);
profile_end("Initialization");