zephyr/soc
Gerard Marull-Paretas e42f58ec94 init: s/ARCH/EARLY, call it just before arch kernel init
The `ARCH` init level was added to solve a specific problem, call init
code (SYS_INIT/devices) before `z_cstart` in the `intel_adsp` platform.
The documentation claims it runs before `z_cstart`, but this is only
true if the SoC/arch takes care of calling:

```c
z_sys_init_run_level(_SYS_INIT_LEVEL_ARCH);
```

Which is only true for `intel_adsp` nowadays. So in practice, we now
have a platform specific init level. This patch proposes to do things in
a slightly different way. First, level name is renamed to `EARLY`, to
emphasize it runs in the early stage of the boot process. Then, it is
handled by the Kernel (inside `z_cstart()` before calling
`arch_kernel_init()`). This means that any platform can now use this
level. For `intel_adsp`, there should be no changes, other than
`gcov_static_init()` will be called before (I assume this will allow to
obtain coverage for code called in EARLY?).

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-10-12 17:16:27 +09:00
..
arc soc: arc: add missing aux_regs.h include 2022-10-11 18:05:17 +02:00
arm soc: lpc55xxx: remove unnecessary include 2022-10-11 18:05:17 +02:00
arm64 boards: Add support for Khadas Edge-V board 2022-10-08 18:32:14 +02:00
mips asm: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
nios2 linker: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
posix cmake: Update CONFIG_ASAN support 2022-08-19 08:30:01 +02:00
riscv include: add missing sys/util.h include 2022-10-11 18:05:17 +02:00
sparc linker: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
x86 soc: x86: Clean up GPIO related defines 2022-10-10 19:17:03 +03:00
xtensa init: s/ARCH/EARLY, call it just before arch kernel init 2022-10-12 17:16:27 +09:00
Kconfig kconfig: soc and shield cleanup 2021-06-11 16:13:22 +02:00