File tree Expand file tree Collapse file tree 3 files changed +36
-34
lines changed
soc/nxp/imxrt/imxrt7xx/cm33 Expand file tree Collapse file tree 3 files changed +36
-34
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ zephyr_compile_definitions(FSL_SDK_DRIVER_QUICK_ACCESS_ENABLE)
11
11
12
12
zephyr_include_directories (. )
13
13
14
- zephyr_sources (soc.c )
14
+ zephyr_sources (init.c )
15
+
16
+ zephyr_sources_ifdef (CONFIG_MIPI_DSI display_if.c )
15
17
16
18
if (CONFIG_FLASH_MCUX_XSPI_XIP )
17
19
zephyr_sources (flash_clock_setup.c )
Original file line number Diff line number Diff line change 4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
6
7
- /**
8
- * @file
9
- * @brief System/hardware module for NXP RT7XX platform
10
- *
11
- * This module provides routines to initialize and support board-level
12
- * hardware for the RT7XX platforms.
13
- */
14
-
15
- #include <zephyr/init.h>
16
7
#include <zephyr/devicetree.h>
17
- #include <zephyr/linker/sections.h>
18
- #include <zephyr/cache.h>
19
- #include <soc.h>
8
+ #include <zephyr/autoconf.h>
20
9
#include "fsl_power.h"
21
10
#include "fsl_clock.h"
22
11
23
- void soc_early_init_hook (void )
24
- {
25
- /* Enable data cache */
26
- sys_cache_data_enable ();
27
-
28
- __ISB ();
29
- __DSB ();
30
- }
31
-
32
- #ifdef CONFIG_SOC_RESET_HOOK
33
-
34
- void soc_reset_hook (void )
35
- {
36
- SystemInit ();
37
- }
38
-
39
- #endif /* CONFIG_SOC_RESET_HOOK */
40
-
41
- #ifdef CONFIG_MIPI_DSI
42
12
/* Weak so board can override this function */
43
13
void __weak imxrt_pre_init_display_interface (void )
44
14
{
@@ -105,5 +75,3 @@ void __weak imxrt_deinit_display_interface(void)
105
75
/* Remove clock from DPHY */
106
76
CLOCK_AttachClk (kNONE_to_MIPI_DSI_HOST_PHY );
107
77
}
108
-
109
- #endif
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2024,2025 NXP
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ /**
8
+ * @file
9
+ * @brief System/hardware module for NXP RT7XX platform
10
+ *
11
+ * This module provides routines to initialize and support board-level
12
+ * hardware for the RT7XX platforms.
13
+ */
14
+
15
+ #include <zephyr/init.h>
16
+ #include <zephyr/autoconf.h>
17
+ #include <zephyr/cache.h>
18
+ #include <soc.h>
19
+
20
+ void soc_early_init_hook (void )
21
+ {
22
+ /* Enable data cache */
23
+ sys_cache_data_enable ();
24
+
25
+ __ISB ();
26
+ __DSB ();
27
+ }
28
+
29
+ void soc_reset_hook (void )
30
+ {
31
+ SystemInit ();
32
+ }
You can’t perform that action at this time.
0 commit comments