apupwr_clkctl.h 739 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2021, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef APUPWR_CLKCTL_H
  7. #define APUPWR_CLKCTL_H
  8. #include <arch_helpers.h>
  9. #include <apupwr_clkctl_def.h>
  10. int32_t apupwr_smc_acc_init_all(void);
  11. void apupwr_smc_acc_top(bool enable);
  12. int32_t apupwr_smc_acc_set_parent(uint32_t freq, uint32_t domain);
  13. int32_t apupwr_smc_pll_set_rate(uint32_t pll, bool div2, uint32_t domain);
  14. int32_t apupwr_smc_bulk_pll(bool enable);
  15. void apupwr_smc_bus_prot_cg_on(void);
  16. int32_t apu_pll_enable(int32_t pll_idx, bool enable, bool fhctl_en);
  17. int32_t anpu_pll_set_rate(enum dvfs_voltage_domain domain,
  18. enum pll_set_rate_mode mode, int32_t freq);
  19. #endif /* APUPWR_CLKCTL_H */