summaryrefslogtreecommitdiff
path: root/cesar/hal/phy/src/pbdma.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/hal/phy/src/pbdma.c')
-rw-r--r--cesar/hal/phy/src/pbdma.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cesar/hal/phy/src/pbdma.c b/cesar/hal/phy/src/pbdma.c
index a19c38d3ea..93e0ce6350 100644
--- a/cesar/hal/phy/src/pbdma.c
+++ b/cesar/hal/phy/src/pbdma.c
@@ -16,6 +16,7 @@
#include "inc/regs.h"
#include "hal/arch/arch.h"
+#include "config/phy/aes.h"
void ARCH_ILRAM
phy_pbdma_start (phy_t *ctx, bool bypass_aes,
@@ -29,6 +30,11 @@ phy_pbdma_start (phy_t *ctx, bool bypass_aes,
&& nb_total >= nb_pb_it);
dbg_claim_ptr (first_pb);
dbg_claim (ARCH_DMA_VALID (first_pb));
+
+#if CONFIG_PHY_AES_ALWAYS_BYPASSED
+ bypass_aes = true;
+#endif
+
if (first_chandata)
{
dbg_claim_ptr (first_chandata);