coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
aop_load_reset.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <cbfs.h>
4 #include <console/console.h>
5 #include <soc/mmu.h>
6 #include <soc/aop_common.h>
7 #include <soc/clock.h>
8 
9 void aop_fw_load_reset(void)
10 {
11  struct prog aop_fw_prog =
12  PROG_INIT(PROG_PAYLOAD, CONFIG_CBFS_PREFIX "/aop");
13 
14  if (!selfload(&aop_fw_prog))
15  die("SOC image: AOP load failed");
16 
18 
19  printk(BIOS_DEBUG, "SOC:AOP brought out of reset.\n");
20 }
void aop_fw_load_reset(void)
Definition: aop_load_reset.c:9
#define printk(level,...)
Definition: stdlib.h:16
void __noreturn die(const char *fmt,...)
Definition: die.c:17
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
Definition: loglevel.h:128
#define PROG_INIT(type_, name_)
bool selfload(struct prog *payload)
Definition: selfboot.c:275
@ PROG_PAYLOAD
void clock_reset_aop(void)