Commit efa50a79 authored by Adam Wujek's avatar Adam Wujek 💬

introduce HAS_ABSCAL

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 72cd15f8
...@@ -58,4 +58,10 @@ int board_update(void); ...@@ -58,4 +58,10 @@ int board_update(void);
#define HAS_IP 0 #define HAS_IP 0
#endif #endif
#ifdef CONFIG_ABSCAL
#define HAS_ABSCAL 1
#else
#define HAS_ABSCAL 0
#endif
#endif /* __BOARD_WRC_H */ #endif /* __BOARD_WRC_H */
...@@ -104,7 +104,7 @@ static int bootp_poll(void) ...@@ -104,7 +104,7 @@ static int bootp_poll(void)
return 0; return 0;
/* no extra traffic when abscal is in progress */ /* no extra traffic when abscal is in progress */
if (ptp_mode == WRC_MODE_ABSCAL) if (HAS_ABSCAL && ptp_mode == WRC_MODE_ABSCAL)
return 0; return 0;
if (len > 0) if (len > 0)
......
...@@ -246,7 +246,7 @@ static int lldp_poll(void) ...@@ -246,7 +246,7 @@ static int lldp_poll(void)
static uint8_t old_mac[ETH_ALEN]; static uint8_t old_mac[ETH_ALEN];
/* no extra traffic when abscal is in progress */ /* no extra traffic when abscal is in progress */
if (ptp_mode == WRC_MODE_ABSCAL) if (HAS_ABSCAL && ptp_mode == WRC_MODE_ABSCAL)
return 0; return 0;
/* periodic tasks */ /* periodic tasks */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment