summaryrefslogtreecommitdiff
path: root/cesar/hal/phy/src/phy.c
diff options
context:
space:
mode:
authorNicolas Schodet2012-12-11 17:54:22 +0100
committerNicolas Schodet2012-12-13 11:36:35 +0100
commit99ac38a3a199681b9c532ad1ff8e1f85577e57a3 (patch)
tree72498b3606667843d4577c085e6c7f09789c5f35 /cesar/hal/phy/src/phy.c
parent5d484d2df3f484f861a24d591c49201405a9884d (diff)
cesar/hal: stop if AES is requested on MSE500 revision 1, closes #3595
Diffstat (limited to 'cesar/hal/phy/src/phy.c')
-rw-r--r--cesar/hal/phy/src/phy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cesar/hal/phy/src/phy.c b/cesar/hal/phy/src/phy.c
index 21f2f4996c..c397eacced 100644
--- a/cesar/hal/phy/src/phy.c
+++ b/cesar/hal/phy/src/phy.c
@@ -36,6 +36,7 @@
#include "config/phy/trace/more.h"
#include "config/phy/cap.h"
#include "config/phy/access/watchdog.h"
+#include "config/phy/aes.h"
#include "lib/stats.h"
#include "lib/fixed.h"
@@ -639,6 +640,10 @@ phy_init (void *user_data, phy_rx_fc_cb_t rx_fc_cb, phy_access_cb_t access_cb,
cyg_drv_interrupt_unmask (LEON_ITC2_HIGH_PRIORITY_ITC1_IT);
/* Activate clocks and release DSP reset. */
phy_init_dsp ();
+ /* Check hardware compatibility. */
+ if (!CONFIG_PHY_AES_ALWAYS_BYPASSED)
+ /* No AES on MSE500 revision 1. */
+ dbg_assert (arch_mse500_chip () != 1);
/* Initialise hardware. */
phy_clock_set_numerator (ctx, 1000000);
PHY_PRATIC_IMMEDIATE_ACTION = PHY_PRATIC_ACTION__INIT_TX;