blob: 7542e22aa3ffd6a504da605bffc778fa5a141e65 [file] [log] [blame]
Caesar Wangb4003742016-10-12 08:10:12 +08001/*
2 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
3 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Caesar Wangb4003742016-10-12 08:10:12 +08005 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef M0_CTL_H
8#define M0_CTL_H
Xing Zheng93280b72016-10-26 21:25:26 +08009
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 Huang00960ba2018-04-20 15:55:21 +080014#define M0PMU_BINCODE_BASE ((uintptr_t)rk3399m0pmu_bin)
Caesar Wangb4003742016-10-12 08:10:12 +080015
16/* pmu_fw.c */
17extern char rk3399m0_bin[];
18extern char rk3399m0_bin_end[];
19
Lin Huang00960ba2018-04-20 15:55:21 +080020extern char rk3399m0pmu_bin[];
21extern char rk3399m0pmu_bin_end[];
22
Xing Zheng93280b72016-10-26 21:25:26 +080023extern void m0_init(void);
24extern void m0_start(void);
25extern void m0_stop(void);
26extern void m0_wait_done(void);
Lin Huang00960ba2018-04-20 15:55:21 +080027extern void m0_configure_execute_addr(uintptr_t addr);
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000028
29#endif /* M0_CTL_H */