aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-03-04 08:43:05 -0700
committerTom Rini <trini@konsulko.com>2022-03-10 08:28:36 -0500
commit7fe32b3442f0d0e77a0768dcc1ee65fb352a080a (patch)
tree96a205669eeb9145d15eaec2f9bac5a53ea3c791 /arch/riscv/include
parent42fdcebf859f93139d58defd5abef44dedb9b17a (diff)
downloadu-boot-7fe32b3442f0d0e77a0768dcc1ee65fb352a080a.zip
u-boot-7fe32b3442f0d0e77a0768dcc1ee65fb352a080a.tar.gz
u-boot-7fe32b3442f0d0e77a0768dcc1ee65fb352a080a.tar.bz2
event: Convert arch_cpu_init_dm() to use events
Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r--arch/riscv/include/asm/system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/system.h b/arch/riscv/include/asm/system.h
index a340475..9d8e43e 100644
--- a/arch/riscv/include/asm/system.h
+++ b/arch/riscv/include/asm/system.h
@@ -7,6 +7,8 @@
#ifndef __ASM_RISCV_SYSTEM_H
#define __ASM_RISCV_SYSTEM_H
+struct event;
+
/*
* Interrupt configuring macros.
*
@@ -14,4 +16,7 @@
*
*/
+/* Hook to set up the CPU (called from SPL too) */
+int riscv_cpu_setup(void *ctx, struct event *event);
+
#endif /* __ASM_RISCV_SYSTEM_H */