File tree Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ config SOC_ARC_IOT
66 select ARC
77 select CPU_HAS_MPU
88 select CPU_HAS_FPU
9+ select SOC_EARLY_INIT_HOOK
Original file line number Diff line number Diff line change 1515
1616#define CPU_FREQ DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency)
1717
18- static int arc_iot_init (void )
18+ void soc_early_init_hook (void )
1919{
20-
21- if (arc_iot_pll_fout_config (CPU_FREQ / 1000000 ) < 0 ) {
22- return -1 ;
23- }
24-
25- return 0 ;
20+ arc_iot_pll_fout_config (CPU_FREQ / 1000000 );
2621}
27-
28- SYS_INIT (arc_iot_init , PRE_KERNEL_1 , CONFIG_KERNEL_INIT_PRIORITY_DEFAULT );
Original file line number Diff line number Diff line change 44
55config SOC_EMSK
66 select ARC
7+ select SOC_EARLY_INIT_HOOK
78
89config SOC_EMSK_EM7D
910 select CPU_HAS_MPU
11+ select SOC_EARLY_INIT_HOOK
1012
1113config SOC_EMSK_EM9D
1214 select CPU_HAS_FPU
15+ select SOC_EARLY_INIT_HOOK
1316
1417config SOC_EMSK_EM11D
1518 select CPU_HAS_FPU
19+ select SOC_EARLY_INIT_HOOK
Original file line number Diff line number Diff line change 1111
1212#ifdef CONFIG_UART_NS16550
1313
14- static int uart_ns16550_init (void )
14+ void soc_early_init_hook (void )
1515{
1616
1717 /* On ARC EM Starter kit board,
@@ -25,10 +25,6 @@ static int uart_ns16550_init(void)
2525 sys_write32 (0 , DT_REG_ADDR (DT_INST (1 , ns16550 ))+ 0x4 );
2626 sys_write32 (0 , DT_REG_ADDR (DT_INST (1 , ns16550 ))+ 0x10 );
2727#endif /* DT_NODE_HAS_STATUS(DT_INST(1, ns16550), okay) */
28-
29- return 0 ;
3028}
3129
32- SYS_INIT (uart_ns16550_init , PRE_KERNEL_1 , CONFIG_KERNEL_INIT_PRIORITY_DEFAULT );
33-
3430#endif /* CONFIG_UART_NS16550 */
You can’t perform that action at this time.
0 commit comments