Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions arch/risc-v/src/common/riscv_initialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,12 @@ void up_initialize(void)

riscv_netinitialize();

#ifdef CONFIG_HAVE_WEAKFUNCTIONS
if (riscv_soc_initialize)
#endif
{
riscv_soc_initialize();
}

board_autoled_on(LED_IRQSENABLED);
}
4 changes: 4 additions & 0 deletions arch/risc-v/src/common/riscv_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ void riscv_pminitialize(void);
void weak_function riscv_dma_initialize(void);
#endif

/* SoC-specific CPU initialization ******************************************/

void weak_function riscv_soc_initialize(void);

/* Low level serial output **************************************************/

void riscv_lowputc(char ch);
Expand Down
4 changes: 4 additions & 0 deletions arch/xtensa/src/common/xtensa.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ void xtensa_clrpend_irq(int irq);
void weak_function xtensa_dma_initialize(void);
#endif

/* SoC-specific CPU initialization */

void weak_function xtensa_soc_initialize(void);

/* Memory management */

#if CONFIG_MM_REGIONS > 1
Expand Down
7 changes: 7 additions & 0 deletions arch/xtensa/src/common/xtensa_initialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,12 @@ void up_initialize(void)

xtensa_usbinitialize();

#ifdef CONFIG_HAVE_WEAKFUNCTIONS
if (xtensa_soc_initialize)
#endif
{
xtensa_soc_initialize();
}

board_autoled_on(LED_IRQSENABLED);
}
Loading