summaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/common/aop_load_reset.c
blob: 1b3a1d50ab195a8c96879a5ba421acef60e6f4c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-only */

#include <cbfs.h>
#include <console/console.h>
#include <soc/mmu.h>
#include <soc/aop_common.h>
#include <soc/clock.h>

void aop_fw_load_reset(void)
{
	struct prog aop_fw_prog =
		PROG_INIT(PROG_PAYLOAD, CONFIG_CBFS_PREFIX "/aop");

	if (!selfload(&aop_fw_prog))
		die("SOC image: AOP load failed");

	clock_reset_aop();

	printk(BIOS_DEBUG, "SOC:AOP brought out of reset.\n");
}