Build Fix: Fix build issues with Board DDR Temp Monitor
authorDon Dominic <a0486429@ti.com>
Fri, 5 Mar 2021 15:29:56 +0000 (20:59 +0530)
committerDon Dominic <a0486429@ti.com>
Fri, 5 Mar 2021 15:29:56 +0000 (20:59 +0530)
- Not applicable for mpu1_0
- Removed #ifdef for BUILD_MCU1_0 when added support for main R5 cores
https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/commits/8e4f1ae9e303b3627fbe71b81bde75b6dd601a07#packages/ti/board/src/j721e_evm/board_ddrtempmonitor.c
- But should have protected with MCU ifdef
- Fixed by adding #ifdef for BUILD_MCU

Signed-off-by: Don Dominic <a0486429@ti.com>
packages/ti/board/src/j721e_evm/board_ddrtempmonitor.c

index 10cda0865179fdcf52d384a07643d8f38b28ddf3..d596c7294af59257c85ed4dd4c95c65a2565d1c1 100644 (file)
@@ -35,6 +35,7 @@
 #include <ti/csl/arch/csl_arch.h>
 #include "board_ddr.h"
 
+#ifdef BUILD_MCU
 typedef struct Board_DDRThermalMgmtInstance_s
 {
     LPDDR4_Config      boardDDRCfg;
@@ -442,3 +443,5 @@ Board_STATUS Board_DDRTempMonitoringInit(Board_thermalMgmtCallbackFunction_t cal
     }
     return status;
 }
+
+#endif /* BUILD_MCU*/