Caesar Wang | b400374 | 2016-10-12 08:10:12 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Caesar Wang | b400374 | 2016-10-12 08:10:12 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
Xing Zheng | 93280b7 | 2016-10-26 21:25:26 +0800 | [diff] [blame] | 7 | #ifndef __M0_CTL_H__ |
| 8 | #define __M0_CTL_H__ |
| 9 | |
| 10 | #include <m0_param.h> |
| 11 | |
| 12 | #define M0_BINCODE_BASE ((uintptr_t)rk3399m0_bin) |
| 13 | #define M0_PARAM_ADDR (M0_BINCODE_BASE + PARAM_ADDR) |
Lin Huang | 00960ba | 2018-04-20 15:55:21 +0800 | [diff] [blame] | 14 | #define M0PMU_BINCODE_BASE ((uintptr_t)rk3399m0pmu_bin) |
Caesar Wang | b400374 | 2016-10-12 08:10:12 +0800 | [diff] [blame] | 15 | |
| 16 | /* pmu_fw.c */ |
| 17 | extern char rk3399m0_bin[]; |
| 18 | extern char rk3399m0_bin_end[]; |
| 19 | |
Lin Huang | 00960ba | 2018-04-20 15:55:21 +0800 | [diff] [blame] | 20 | extern char rk3399m0pmu_bin[]; |
| 21 | extern char rk3399m0pmu_bin_end[]; |
| 22 | |
Xing Zheng | 93280b7 | 2016-10-26 21:25:26 +0800 | [diff] [blame] | 23 | extern void m0_init(void); |
| 24 | extern void m0_start(void); |
| 25 | extern void m0_stop(void); |
| 26 | extern void m0_wait_done(void); |
Lin Huang | 00960ba | 2018-04-20 15:55:21 +0800 | [diff] [blame] | 27 | extern void m0_configure_execute_addr(uintptr_t addr); |
Xing Zheng | 93280b7 | 2016-10-26 21:25:26 +0800 | [diff] [blame] | 28 | #endif /* __M0_CTL_H__ */ |