File tree Expand file tree Collapse file tree 6 files changed +24
-23
lines changed Expand file tree Collapse file tree 6 files changed +24
-23
lines changed Original file line number Diff line number Diff line change @@ -374,7 +374,9 @@ config ARC_EXCEPTION_STACK_SIZE
374
374
endmenu
375
375
376
376
config ARC_EARLY_SOC_INIT
377
- bool "Make early stage SoC-specific initialization"
377
+ bool "Make early stage SoC-specific initialization [DEPRECATED]"
378
+ select SOC_RESET_HOOK
379
+ select DEPRECATED
378
380
help
379
381
Call SoC per-core setup code on early stage initialization
380
382
(before C runtime initialization). Setup code is called in form of
Original file line number Diff line number Diff line change 16
16
#include <zephyr/arch/cpu.h>
17
17
#include <swap_macros.h>
18
18
#include <zephyr/arch/arc/asm-compat/assembler.h>
19
- #ifdef CONFIG_ARC_EARLY_SOC_INIT
20
- #include <soc_ctrl.h>
19
+
20
+ #if defined(CONFIG_SOC_RESET_HOOK)
21
+ GTEXT(soc_reset_hook)
21
22
#endif
22
23
23
24
GDATA(z_interrupt_stacks)
@@ -112,8 +113,8 @@ done_icache_invalidate:
112
113
113
114
done_dcache_invalidate:
114
115
115
- #ifdef CONFIG_ARC_EARLY_SOC_INIT
116
- soc_early_asm_init_percpu
116
+ #ifdef CONFIG_SOC_RESET_HOOK
117
+ bl soc_reset_hook
117
118
#endif
118
119
119
120
_dsp_extension_probe
Original file line number Diff line number Diff line change 16
16
endif ()
17
17
18
18
zephyr_include_directories (. )
19
+ zephyr_library_sources_ifdef (CONFIG_SOC_RESET_HOOK soc_ctrl.S )
19
20
20
21
set (SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR} /linker.ld CACHE INTERNAL "" )
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ config UART_NS16550_ACCESS_WORD_ONLY
44
44
config ARC_HAS_ACCL_REGS
45
45
default y
46
46
47
- config ARC_EARLY_SOC_INIT
47
+ config SOC_RESET_HOOK
48
48
default y
49
49
50
50
config ARC_HAS_STACK_CHECKING
Original file line number Diff line number Diff line change
1
+ / *
2
+ * Copyright (c) 2023 Synopsys , Inc . All rights reserved.
3
+ *
4
+ * SPDX - License - Identifier: Apache - 2 . 0
5
+ * /
6
+
7
+ #include <zephyr/toolchain.h>
8
+ #include <zephyr/linker/sections.h>
9
+ #include <zephyr/arch/ cpu .h>
10
+
11
+ GTEXT(soc_reset_hook)
12
+ SECTION_FUNC(TEXT , soc_reset_hook)
13
+ mov r0 , 1 / * disable LPB for HS4XD * /
14
+ sr r0 , [ _ARC_V2_LPB_CTRL ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments