1 /* 2 * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef __MTK_MCDI_H__ 8 #define __MTK_MCDI_H__ 9 10 #include <stdbool.h> 11 12 void sspm_set_bootaddr(uint32_t bootaddr); 13 void sspm_standbywfi_irq_enable(uint32_t cpu_idx); 14 void sspm_cluster_pwr_off_notify(uint32_t cluster); 15 void sspm_cluster_pwr_on_notify(uint32_t cluster); 16 17 uint32_t mcdi_avail_cpu_mask_read(void); 18 uint32_t mcdi_avail_cpu_mask_write(uint32_t mask); 19 uint32_t mcdi_avail_cpu_mask_set(uint32_t mask); 20 uint32_t mcdi_avail_cpu_mask_clr(uint32_t mask); 21 uint32_t mcdi_cpu_cluster_pwr_stat_read(void); 22 23 void mcdi_pause(void); 24 void mcdi_unpause(void); 25 void mcdi_pause_set(int cluster, int cpu_idx, bool on); 26 void mcdi_pause_clr(int cluster, int cpu_idx, bool on); 27 void mcdi_hotplug_set(int cluster, int cpu_idx, bool on); 28 void mcdi_hotplug_clr(int cluster, int cpu_idx, bool on); 29 void mcdi_hotplug_wait_ack(int cluster, int cpu_idx, bool on); 30 31 bool check_mcdi_ctl_stat(void); 32 void mcdi_init(void); 33 34 #endif /* __MTK_MCDI_H__ */ 35