Debian Codegraph @

src/southbridge/amd/common/reset.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #ifndef _AMD_SB_RESET_H_
4 #define _AMD_SB_RESET_H_
5
6 #include <arch/cache.h>
7 #include <console/console.h>
8 #include <halt.h>
9
10 /* Implement the bare reset, e.g. write to cf9. */
11 void do_soft_reset(void);
12
13 /* Prepare for reset, run do_soft_reset(), halt. */
14 static inline __noreturn void soft_reset(void)
15 {
16 printk(BIOS_INFO, "%s() called!\n", __func__);
17 dcache_clean_all();
18 do_soft_reset();
19 halt();
20 }
21
22 #endif /* _AMD_SB_RESET_H_ */