Skip to content

Commit

Permalink
[SPI,dv] Set strong drive strength and fast slew rate for SPI device …
Browse files Browse the repository at this point in the history
…pads

This is a cherry pick of commit 1f8d77f
to branch earlgrey_1.0.0.

Signed-off-by: Sharon Topaz <[email protected]>
  • Loading branch information
sha-ron authored and vogelpi committed Oct 31, 2024
1 parent a78922f commit 010e51b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions sw/device/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3294,6 +3294,7 @@ opentitan_test(
"//sw/device/lib/runtime:irq",
"//sw/device/lib/runtime:log",
"//sw/device/lib/testing:isr_testutils",
"//sw/device/lib/testing:spi_device_testutils",
"//sw/device/lib/testing/test_framework:ottf_main",
"//sw/device/lib/testing/test_framework:status",
],
Expand Down
4 changes: 4 additions & 0 deletions sw/device/tests/spi_device_tpm_tx_rx_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "sw/device/lib/runtime/hart.h"
#include "sw/device/lib/runtime/irq.h"
#include "sw/device/lib/runtime/log.h"
#include "sw/device/lib/testing/spi_device_testutils.h"
#include "sw/device/lib/testing/test_framework/check.h"
#include "sw/device/lib/testing/test_framework/ottf_main.h"
#include "sw/device/lib/testing/test_framework/status.h"
Expand Down Expand Up @@ -155,6 +156,9 @@ bool test_main(void) {
&out_attr));
}

// Configure fast slew rate and strong drive strength for SPI device pads.
CHECK_STATUS_OK(spi_device_testutils_configure_pad_attrs(&pinmux));

CHECK_DIF_OK(
dif_spi_device_tpm_configure(&spi_device, kDifToggleEnabled, kTpmConfig));

Expand Down

0 comments on commit 010e51b

Please sign in to comment.