m0_ctl.h 681 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef M0_CTL_H
  7. #define M0_CTL_H
  8. #include <m0_param.h>
  9. #define M0_BINCODE_BASE ((uintptr_t)rk3399m0_bin)
  10. #define M0_PARAM_ADDR (M0_BINCODE_BASE + PARAM_ADDR)
  11. #define M0PMU_BINCODE_BASE ((uintptr_t)rk3399m0pmu_bin)
  12. /* pmu_fw.c */
  13. extern char rk3399m0_bin[];
  14. extern char rk3399m0_bin_end[];
  15. extern char rk3399m0pmu_bin[];
  16. extern char rk3399m0pmu_bin_end[];
  17. extern void m0_init(void);
  18. extern void m0_start(void);
  19. extern void m0_stop(void);
  20. extern void m0_wait_done(void);
  21. extern void m0_configure_execute_addr(uintptr_t addr);
  22. #endif /* M0_CTL_H */