42#ifndef __ALT_CLK_MGR_H__
43#define __ALT_CLK_MGR_H__
99 ALT_CLK_F2H_PERIPH_REF,
103 ALT_CLK_F2H_SDRAM_REF,
1183 uint32_t guard_band);
enum ALT_CLK_GRP_e ALT_CLK_GRP_t
ALT_STATUS_CODE alt_clk_pll_is_bypassed(ALT_CLK_t pll)
Definition: alt_clock_manager.c:778
ALT_STATUS_CODE alt_clk_pll_bypass_enable(ALT_CLK_t pll, bool use_input_mux)
Definition: alt_clock_manager.c:660
ALT_STATUS_CODE alt_clk_pll_bypass_disable(ALT_CLK_t pll)
Definition: alt_clock_manager.c:530
ALT_STATUS_CODE alt_clk_source_set(ALT_CLK_t clk, ALT_CLK_t ref_clk)
Definition: alt_clock_manager.c:1514
ALT_CLK_t alt_clk_source_get(ALT_CLK_t clk)
Definition: alt_clock_manager.c:1253
ALT_STATUS_CODE alt_clk_divider_get(ALT_CLK_t clk, uint32_t *div)
Definition: alt_clock_manager.c:2658
ALT_STATUS_CODE alt_clk_pll_cfg_get(ALT_CLK_t pll, ALT_CLK_PLL_CFG_t *pll_cfg)
Definition: alt_clock_manager.c:1789
struct ALT_CLK_PLL_CFG_s ALT_CLK_PLL_CFG_t
ALT_STATUS_CODE alt_clk_pll_cfg_set(ALT_CLK_t pll, const ALT_CLK_PLL_CFG_t *pll_cfg)
Definition: alt_clock_manager.c:1931
ALT_STATUS_CODE alt_clk_ext_clk_freq_set(ALT_CLK_t clk, alt_freq_t freq)
Definition: alt_clock_manager.c:1697
ALT_STATUS_CODE alt_clk_pll_vco_cfg_set(ALT_CLK_t pll, uint32_t mult, uint32_t div)
Definition: alt_clock_manager.c:2354
uint32_t alt_clk_pll_guard_band_get(ALT_CLK_t pll)
Definition: alt_clock_manager.c:2596
ALT_STATUS_CODE alt_clk_freq_get(ALT_CLK_t clk, alt_freq_t *freq)
Definition: alt_clock_manager.c:4154
ALT_STATUS_CODE alt_clk_divider_set(ALT_CLK_t clk, uint32_t div)
Definition: alt_clock_manager.c:3082
ALT_STATUS_CODE alt_clk_pll_vco_cfg_get(ALT_CLK_t pll, uint32_t *mult, uint32_t *div)
Definition: alt_clock_manager.c:2084
alt_freq_t alt_clk_ext_clk_freq_get(ALT_CLK_t clk)
Definition: alt_clock_manager.c:1762
ALT_STATUS_CODE alt_clk_pll_guard_band_set(ALT_CLK_t pll, uint32_t guard_band)
Definition: alt_clock_manager.c:2620
ALT_STATUS_CODE alt_clk_pll_vco_freq_get(ALT_CLK_t pll, alt_freq_t *freq)
Definition: alt_clock_manager.c:2477
ALT_STATUS_CODE alt_clk_clock_disable(ALT_CLK_t clk)
Definition: alt_clock_manager.c:859
ALT_STATUS_CODE alt_clk_clock_enable(ALT_CLK_t clk)
Definition: alt_clock_manager.c:972
ALT_STATUS_CODE alt_clk_is_enabled(ALT_CLK_t clk)
Definition: alt_clock_manager.c:1087
ALT_STATUS_CODE alt_clk_group_cfg_raw_set(const ALT_CLK_GROUP_RAW_CFG_t *clk_group_raw_cfg)
Definition: alt_clock_manager.c:4999
ALT_STATUS_CODE alt_clk_group_cfg_raw_get(ALT_CLK_GRP_t clk_group, ALT_CLK_GROUP_RAW_CFG_t *clk_group_raw_cfg)
Definition: alt_clock_manager.c:4875
ALT_STATUS_CODE alt_clk_irq_enable(ALT_CLK_PLL_LOCK_STATUS_t lock_stat_mask)
Definition: alt_clock_manager.c:4856
ALT_STATUS_CODE alt_clk_irq_disable(ALT_CLK_PLL_LOCK_STATUS_t lock_stat_mask)
Definition: alt_clock_manager.c:4839
enum ALT_CLK_SAFE_DOMAIN_e ALT_CLK_SAFE_DOMAIN_t
ALT_STATUS_CODE alt_clk_safe_mode_clear(void)
Definition: alt_clock_manager.c:463
ALT_CLK_SAFE_DOMAIN_e
Definition: alt_clock_manager.h:656
bool alt_clk_is_in_safe_mode(ALT_CLK_SAFE_DOMAIN_t clk_domain)
Definition: alt_clock_manager.c:497
@ ALT_CLK_DOMAIN_DEBUG
Definition: alt_clock_manager.h:666
@ ALT_CLK_DOMAIN_NORMAL
Definition: alt_clock_manager.h:661
enum ALT_CLK_PLL_LOCK_STATUS_e ALT_CLK_PLL_LOCK_STATUS_t
ALT_STATUS_CODE alt_clk_lock_status_clear(ALT_CLK_PLL_LOCK_STATUS_t lock_stat_mask)
Definition: alt_clock_manager.c:392
ALT_STATUS_CODE alt_clk_pll_is_locked(ALT_CLK_t pll)
Definition: alt_clock_manager.c:435
uint32_t alt_clk_lock_status_get(void)
Definition: alt_clock_manager.c:416
ALT_CLK_PLL_LOCK_STATUS_e
Definition: alt_clock_manager.h:521
@ ALT_SDR_PLL_LOCK_LOST
Definition: alt_clock_manager.h:547
@ ALT_PERIPH_PLL_LOCK_LOST
Definition: alt_clock_manager.h:542
@ ALT_MAIN_PLL_LOCK_ACHV
Definition: alt_clock_manager.h:522
@ ALT_SDR_PLL_LOCK_ACHV
Definition: alt_clock_manager.h:532
@ ALT_PERIPH_PLL_LOCK_ACHV
Definition: alt_clock_manager.h:527
@ ALT_MAIN_PLL_LOCK_LOST
Definition: alt_clock_manager.h:537
ALT_CLK_e
Definition: alt_clock_manager.h:74
uint32_t alt_freq_t
Definition: alt_clock_manager.h:66
@ ALT_CLK_IN_PIN_EMAC0_RX
Definition: alt_clock_manager.h:129
@ ALT_CLK_NAND_X
Definition: alt_clock_manager.h:339
@ ALT_CLK_CAN0
Definition: alt_clock_manager.h:370
@ ALT_CLK_OSC1
Definition: alt_clock_manager.h:167
@ ALT_CLK_SPI_M
Definition: alt_clock_manager.h:329
@ ALT_CLK_MAIN_PLL_C5
Definition: alt_clock_manager.h:193
@ ALT_CLK_OUT_PIN_SDMMC
Definition: alt_clock_manager.h:455
@ ALT_CLK_OUT_PIN_I2C1_SCL
Definition: alt_clock_manager.h:467
@ ALT_CLK_DDR_2X_DQS
Definition: alt_clock_manager.h:423
@ ALT_CLK_OUT_PIN_EMAC1_TX
Definition: alt_clock_manager.h:449
@ ALT_CLK_DBG_AT
Definition: alt_clock_manager.h:254
@ ALT_CLK_DBG_TIMER
Definition: alt_clock_manager.h:267
@ ALT_CLK_MPU_PERIPH
Definition: alt_clock_manager.h:208
@ ALT_CLK_PERIPHERAL_PLL_C1
Definition: alt_clock_manager.h:309
@ ALT_CLK_SDRAM_PLL_C3
Definition: alt_clock_manager.h:406
@ ALT_CLK_PERIPHERAL_PLL_C2
Definition: alt_clock_manager.h:312
@ ALT_CLK_MAIN_PLL_C3
Definition: alt_clock_manager.h:187
@ ALT_CLK_DBG
Definition: alt_clock_manager.h:273
@ ALT_CLK_MAIN_PLL_C4
Definition: alt_clock_manager.h:190
@ ALT_CLK_IN_PIN_JTAG
Definition: alt_clock_manager.h:109
@ ALT_CLK_OUT_PIN_SPIM0
Definition: alt_clock_manager.h:485
@ ALT_CLK_PERIPHERAL_PLL_C4
Definition: alt_clock_manager.h:318
@ ALT_CLK_CFG
Definition: alt_clock_manager.h:294
@ ALT_CLK_L3_MP
Definition: alt_clock_manager.h:221
@ ALT_CLK_MPU_L2_RAM
Definition: alt_clock_manager.h:203
@ ALT_CLK_SDRAM_PLL_C5
Definition: alt_clock_manager.h:412
@ ALT_CLK_PERIPHERAL_PLL
Definition: alt_clock_manager.h:150
@ ALT_CLK_QSPI
Definition: alt_clock_manager.h:334
@ ALT_CLK_SDRAM_PLL_C1
Definition: alt_clock_manager.h:400
@ ALT_CLK_EMAC1
Definition: alt_clock_manager.h:363
@ ALT_CLK_MAIN_PLL_C0
Definition: alt_clock_manager.h:178
@ ALT_CLK_GPIO_DB
Definition: alt_clock_manager.h:382
@ ALT_CLK_SDRAM_PLL_C2
Definition: alt_clock_manager.h:403
@ ALT_CLK_L3_SP
Definition: alt_clock_manager.h:226
@ ALT_CLK_H2F_USER0
Definition: alt_clock_manager.h:299
@ ALT_CLK_L3_MAIN
Definition: alt_clock_manager.h:215
@ ALT_CLK_IN_PIN_ULPI1
Definition: alt_clock_manager.h:122
@ ALT_CLK_MAIN_PLL
Definition: alt_clock_manager.h:143
@ ALT_CLK_OUT_PIN_QSPI
Definition: alt_clock_manager.h:497
@ ALT_CLK_H2F_USER2
Definition: alt_clock_manager.h:435
@ ALT_CLK_SDMMC
Definition: alt_clock_manager.h:351
@ ALT_CLK_MAIN_PLL_C2
Definition: alt_clock_manager.h:184
@ ALT_CLK_DBG_TRACE
Definition: alt_clock_manager.h:261
@ ALT_CLK_IN_PIN_OSC1
Definition: alt_clock_manager.h:76
@ ALT_CLK_OUT_PIN_EMAC0_TX
Definition: alt_clock_manager.h:443
@ ALT_CLK_SDRAM_PLL_C4
Definition: alt_clock_manager.h:409
@ ALT_CLK_OUT_PIN_I2C2_SCL
Definition: alt_clock_manager.h:473
@ ALT_CLK_DBG_BASE
Definition: alt_clock_manager.h:248
@ ALT_CLK_PERIPHERAL_PLL_C3
Definition: alt_clock_manager.h:315
@ ALT_CLK_OUT_PIN_SPIM1
Definition: alt_clock_manager.h:491
@ ALT_CLK_EMAC0
Definition: alt_clock_manager.h:356
@ ALT_CLK_SDRAM_PLL
Definition: alt_clock_manager.h:158
@ ALT_CLK_MAIN_NAND_SDMMC
Definition: alt_clock_manager.h:287
@ ALT_CLK_MPU
Definition: alt_clock_manager.h:196
@ ALT_CLK_OUT_PIN_I2C3_SCL
Definition: alt_clock_manager.h:479
@ ALT_CLK_SDRAM_PLL_C0
Definition: alt_clock_manager.h:397
@ ALT_CLK_H2F_USER1
Definition: alt_clock_manager.h:388
@ ALT_CLK_L4_MP
Definition: alt_clock_manager.h:238
@ ALT_CLK_MAIN_QSPI
Definition: alt_clock_manager.h:280
@ ALT_CLK_CAN1
Definition: alt_clock_manager.h:376
@ ALT_CLK_NAND
Definition: alt_clock_manager.h:345
@ ALT_CLK_OUT_PIN_I2C0_SCL
Definition: alt_clock_manager.h:461
@ ALT_CLK_L4_MAIN
Definition: alt_clock_manager.h:231
@ ALT_CLK_IN_PIN_OSC2
Definition: alt_clock_manager.h:87
@ ALT_CLK_IN_PIN_EMAC1_RX
Definition: alt_clock_manager.h:135
@ ALT_CLK_L4_SP
Definition: alt_clock_manager.h:243
@ ALT_CLK_USB_MP
Definition: alt_clock_manager.h:324
@ ALT_CLK_MAIN_PLL_C1
Definition: alt_clock_manager.h:181
@ ALT_CLK_PERIPHERAL_PLL_C5
Definition: alt_clock_manager.h:321
@ ALT_CLK_DDR_DQS
Definition: alt_clock_manager.h:415
@ ALT_CLK_DDR_DQ
Definition: alt_clock_manager.h:429
@ ALT_CLK_PERIPHERAL_PLL_C0
Definition: alt_clock_manager.h:306
@ ALT_CLK_IN_PIN_ULPI0
Definition: alt_clock_manager.h:115
int32_t ALT_STATUS_CODE
Definition: hwlib.h:60
Definition: alt_clock_group.h:73
Definition: alt_clock_manager.h:1025
uint32_t cntrs[6]
Definition: alt_clock_manager.h:1033
uint32_t pshift[6]
Definition: alt_clock_manager.h:1036
uint32_t mult
Definition: alt_clock_manager.h:1027
uint32_t div
Definition: alt_clock_manager.h:1030
ALT_CLK_t ref_clk
Definition: alt_clock_manager.h:1026