blob: 9064120215dd8df1e2de4807b8ba333dc3159285 [file] [log] [blame]
Patrick Georgiac959032020-05-05 22:49:26 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Ravi Kumar Bokka6bbf8f22019-08-12 14:54:21 +05302
Ravi Kumar Bokka6bbf8f22019-08-12 14:54:21 +05303#include <console/console.h>
Elyes HAOUAS32727822022-01-12 13:56:47 +01004#include <program_loading.h>
Ravi Kumar Bokka6bbf8f22019-08-12 14:54:21 +05305#include <soc/mmu.h>
Ravi Kumar Bokka64f7eaa2021-10-15 23:02:41 +05306#include <soc/aop_common.h>
Ravi Kumar Bokka6bbf8f22019-08-12 14:54:21 +05307#include <soc/clock.h>
8
9void aop_fw_load_reset(void)
10{
Ravi Kumar Bokka6bbf8f22019-08-12 14:54:21 +053011 struct prog aop_fw_prog =
12 PROG_INIT(PROG_PAYLOAD, CONFIG_CBFS_PREFIX "/aop");
13
Ravi Kumar Bokka64f7eaa2021-10-15 23:02:41 +053014 if (!selfload(&aop_fw_prog))
Ravi Kumar Bokka6bbf8f22019-08-12 14:54:21 +053015 die("SOC image: AOP load failed");
16
17 clock_reset_aop();
18
Ravi Kumar Bokka64f7eaa2021-10-15 23:02:41 +053019 printk(BIOS_DEBUG, "SOC:AOP brought out of reset.\n");
Ravi Kumar Bokka6bbf8f22019-08-12 14:54:21 +053020}