File tree 10 files changed +14
-25
lines changed
intel_socfpga_std/cyclonev
10 files changed +14
-25
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ config SOC_SERIES_INTEL_ADSP_ACE
15
15
select XTENSA_CPU_HAS_HIFI3
16
16
select XTENSA_CPU_HAS_HIFI4
17
17
select ARCH_HAS_RESERVED_PAGE_FRAMES if MMU
18
+ select SOC_LATE_INIT_HOOK
19
+ select SOC_EARLY_INIT_HOOK
18
20
19
21
config SOC_INTEL_COMM_WIDGET
20
22
bool "Intel Communication Widget driver"
Original file line number Diff line number Diff line change @@ -108,11 +108,11 @@ void soc_mp_init(void)
108
108
soc_cpus_active [0 ] = true;
109
109
}
110
110
111
- static int host_runtime_get (void )
111
+ void soc_late_init_hook (void )
112
112
{
113
- return pm_device_runtime_get (INTEL_ADSP_HST_DOMAIN_DEV );
113
+ pm_device_runtime_get (INTEL_ADSP_HST_DOMAIN_DEV );
114
114
}
115
- SYS_INIT ( host_runtime_get , POST_KERNEL , 99 );
115
+
116
116
117
117
#ifdef CONFIG_ADSP_IMR_CONTEXT_SAVE
118
118
/*
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ config SOC_SERIES_INTEL_ADSP_CAVS
11
11
select ATOMIC_OPERATIONS_ARCH if "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "xcc"
12
12
select ARCH_HAS_COHERENCE
13
13
select HAS_PM
14
+ select SOC_EARLY_INIT_HOOK
14
15
15
16
config SOC_INTEL_CAVS_V25
16
17
select XTENSA_WAITI_BUG
Original file line number Diff line number Diff line change @@ -28,5 +28,3 @@ int boot_complete(void)
28
28
29
29
return 0 ;
30
30
}
31
-
32
- SYS_INIT (boot_complete , PRE_KERNEL_1 , CONFIG_KERNEL_INIT_PRIORITY_DEVICE );
Original file line number Diff line number Diff line change 6
6
#include <zephyr/init.h>
7
7
#include <zephyr/linker/section_tags.h>
8
8
9
+ extern int boot_complete (void );
9
10
extern void power_init (void );
10
11
extern void adsp_clock_init (void );
11
12
12
13
#if CONFIG_MP_MAX_NUM_CPUS > 1
13
14
extern void soc_mp_init (void );
14
15
#endif
15
16
16
- static __imr int soc_init (void )
17
+ void soc_early_init_hook (void )
17
18
{
19
+ (void )boot_complete ();
18
20
power_init ();
19
21
20
22
#ifdef CONFIG_ADSP_CLOCK
@@ -24,8 +26,4 @@ static __imr int soc_init(void)
24
26
#if CONFIG_MP_MAX_NUM_CPUS > 1
25
27
soc_mp_init ();
26
28
#endif
27
-
28
- return 0 ;
29
29
}
30
-
31
- SYS_INIT (soc_init , PRE_KERNEL_1 , 99 );
Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ config SOC_FAMILY_INTEL_ISH
13
13
select INTEL_HAL
14
14
select HAS_PM
15
15
select HAS_COVERAGE_SUPPORT
16
+ select SOC_EARLY_INIT_HOOK
Original file line number Diff line number Diff line change @@ -72,11 +72,7 @@ void sys_arch_reboot(int type)
72
72
73
73
extern void sedi_pm_init (void );
74
74
75
- static int ish_sedi_pm_init (void )
75
+ void soc_early_init_hook (void )
76
76
{
77
77
sedi_pm_init ();
78
-
79
- return 0 ;
80
78
}
81
-
82
- SYS_INIT (ish_sedi_pm_init , PRE_KERNEL_2 , CONFIG_KERNEL_INIT_PRIORITY_DEFAULT );
Original file line number Diff line number Diff line change 11
11
#include "sedi_driver_hpet.h"
12
12
#endif
13
13
14
- static int intel_ish_init (void )
14
+ void soc_early_init_hook (void )
15
15
{
16
16
#if defined(CONFIG_HPET_TIMER )
17
17
sedi_hpet_set_min_delay (HPET_CMP_MIN_DELAY );
18
18
#endif
19
-
20
- return 0 ;
21
19
}
22
-
23
- SYS_INIT (intel_ish_init , PRE_KERNEL_2 , CONFIG_KERNEL_INIT_PRIORITY_DEFAULT );
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ config SOC_SERIES_CYCLONEV
7
7
select ARM_AARCH32_MMU
8
8
select ARM_ARCH_TIMER_ERRATUM_740657 if ARM_ARCH_TIMER
9
9
select ARCH_HAS_RESERVED_PAGE_FRAMES
10
+ select SOC_EARLY_INIT_HOOK
Original file line number Diff line number Diff line change @@ -70,16 +70,12 @@ const struct arm_mmu_config mmu_config = {
70
70
*
71
71
* @return 0
72
72
*/
73
- static int soc_intel_cyclonev_init (void )
73
+ void soc_early_init_hook (void )
74
74
{
75
75
unsigned int sctlr = __get_SCTLR (); /* modifying some registers prior to initialization */
76
76
77
77
sctlr &= ~SCTLR_A_Msk ;
78
78
__set_SCTLR (sctlr );
79
79
__set_VBAR (0 );
80
- return 0 ;
81
80
}
82
-
83
- SYS_INIT (soc_intel_cyclonev_init , PRE_KERNEL_1 ,
84
- CONFIG_KERNEL_INIT_PRIORITY_DEFAULT );
85
81
/* EOF */
You can’t perform that action at this time.
0 commit comments