summaryrefslogtreecommitdiffstats
path: root/bsps/arm/imxrt/mcux-sdk/devices/MIMXRT1166/xip/fsl_flexspi_nor_boot.h
diff options
context:
space:
mode:
authorChristian Mauderer <christian.mauderer@embedded-brains.de>2023-03-31 16:56:51 +0200
committerChristian Mauderer <christian.mauderer@embedded-brains.de>2023-05-22 09:43:48 +0200
commit4cb2b07402a111cf38fa8f6ade5e68d270aee0d8 (patch)
tree274940d29a94fbfb8dc1fe53be6f46ae179b947d /bsps/arm/imxrt/mcux-sdk/devices/MIMXRT1166/xip/fsl_flexspi_nor_boot.h
parentbsp/imxrt: Update support library from mcux-sdk (diff)
downloadrtems-4cb2b07402a111cf38fa8f6ade5e68d270aee0d8.tar.bz2
bsps/imxrt: (Re-)Apply RTEMS patches to new lib
Reapply patches used in the old version of the NXP library and apply patches necessary for the new version of the library.
Diffstat (limited to 'bsps/arm/imxrt/mcux-sdk/devices/MIMXRT1166/xip/fsl_flexspi_nor_boot.h')
-rw-r--r--bsps/arm/imxrt/mcux-sdk/devices/MIMXRT1166/xip/fsl_flexspi_nor_boot.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsps/arm/imxrt/mcux-sdk/devices/MIMXRT1166/xip/fsl_flexspi_nor_boot.h b/bsps/arm/imxrt/mcux-sdk/devices/MIMXRT1166/xip/fsl_flexspi_nor_boot.h
index 6aeb096486..16c0c0a6be 100644
--- a/bsps/arm/imxrt/mcux-sdk/devices/MIMXRT1166/xip/fsl_flexspi_nor_boot.h
+++ b/bsps/arm/imxrt/mcux-sdk/devices/MIMXRT1166/xip/fsl_flexspi_nor_boot.h
@@ -10,9 +10,11 @@
#include <stdint.h>
#include "fsl_common.h"
+#ifndef __rtems__
#ifndef BOARD_FLASH_SIZE
#include "board.h"
#endif
+#endif /* __rtems__ */
/*! @name Driver version */
/*@{*/
@@ -133,11 +135,13 @@ typedef struct _boot_data_
#define FLASH_BASE FlexSPI1_ALIAS_BASE
#endif
+#ifndef __rtems__
#if defined(BOARD_FLASH_SIZE)
#define FLASH_SIZE BOARD_FLASH_SIZE
#else
#error "Please define macro BOARD_FLASH_SIZE"
#endif
+#endif /* __rtems__ */
#define PLUGIN_FLAG (uint32_t)0
/* External Variables */