Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Ravi Kumar Bokka | 6bbf8f2 | 2019-08-12 14:54:21 +0530 | [diff] [blame] | 2 | |
Ravi Kumar Bokka | 6bbf8f2 | 2019-08-12 14:54:21 +0530 | [diff] [blame] | 3 | #include <console/console.h> |
Elyes HAOUAS | 3272782 | 2022-01-12 13:56:47 +0100 | [diff] [blame] | 4 | #include <program_loading.h> |
Ravi Kumar Bokka | 6bbf8f2 | 2019-08-12 14:54:21 +0530 | [diff] [blame] | 5 | #include <soc/mmu.h> |
Ravi Kumar Bokka | 64f7eaa | 2021-10-15 23:02:41 +0530 | [diff] [blame] | 6 | #include <soc/aop_common.h> |
Ravi Kumar Bokka | 6bbf8f2 | 2019-08-12 14:54:21 +0530 | [diff] [blame] | 7 | #include <soc/clock.h> |
| 8 | |
| 9 | void aop_fw_load_reset(void) |
| 10 | { |
Ravi Kumar Bokka | 6bbf8f2 | 2019-08-12 14:54:21 +0530 | [diff] [blame] | 11 | struct prog aop_fw_prog = |
| 12 | PROG_INIT(PROG_PAYLOAD, CONFIG_CBFS_PREFIX "/aop"); |
| 13 | |
Ravi Kumar Bokka | 64f7eaa | 2021-10-15 23:02:41 +0530 | [diff] [blame] | 14 | if (!selfload(&aop_fw_prog)) |
Ravi Kumar Bokka | 6bbf8f2 | 2019-08-12 14:54:21 +0530 | [diff] [blame] | 15 | die("SOC image: AOP load failed"); |
| 16 | |
| 17 | clock_reset_aop(); |
| 18 | |
Ravi Kumar Bokka | 64f7eaa | 2021-10-15 23:02:41 +0530 | [diff] [blame] | 19 | printk(BIOS_DEBUG, "SOC:AOP brought out of reset.\n"); |
Ravi Kumar Bokka | 6bbf8f2 | 2019-08-12 14:54:21 +0530 | [diff] [blame] | 20 | } |