RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Data Structures | Macros
reg_pll.h File Reference

This header file provides PLL interfaces. More...

#include <bsp/utility.h>

Go to the source code of this file.

Data Structures

struct  tms570_pll_t
 

Macros

#define TMS570_PLL_PLLCTL3_ODPLL2(val)   BSP_FLD32(val,29, 31)
 
#define TMS570_PLL_PLLCTL3_ODPLL2_GET(reg)   BSP_FLD32GET(reg,29, 31)
 
#define TMS570_PLL_PLLCTL3_ODPLL2_SET(reg, val)   BSP_FLD32SET(reg, val,29, 31)
 
#define TMS570_PLL_PLLCTL3_PLLDIV2(val)   BSP_FLD32(val,24, 28)
 
#define TMS570_PLL_PLLCTL3_PLLDIV2_GET(reg)   BSP_FLD32GET(reg,24, 28)
 
#define TMS570_PLL_PLLCTL3_PLLDIV2_SET(reg, val)   BSP_FLD32SET(reg, val,24, 28)
 
#define TMS570_PLL_PLLCTL3_REFCLKDIV2(val)   BSP_FLD32(val,16, 21)
 
#define TMS570_PLL_PLLCTL3_REFCLKDIV2_GET(reg)   BSP_FLD32GET(reg,16, 21)
 
#define TMS570_PLL_PLLCTL3_REFCLKDIV2_SET(reg, val)   BSP_FLD32SET(reg, val,16, 21)
 
#define TMS570_PLL_PLLCTL3_PLLMUL2(val)   BSP_FLD32(val,0, 15)
 
#define TMS570_PLL_PLLCTL3_PLLMUL2_GET(reg)   BSP_FLD32GET(reg,0, 15)
 
#define TMS570_PLL_PLLCTL3_PLLMUL2_SET(reg, val)   BSP_FLD32SET(reg, val,0, 15)
 
#define TMS570_PLL_CLKSLIP_PLL1_SLIP_FILTER_COUNT(val)   BSP_FLD32(val,8, 13)
 
#define TMS570_PLL_CLKSLIP_PLL1_SLIP_FILTER_COUNT_GET(reg)   BSP_FLD32GET(reg,8, 13)
 
#define TMS570_PLL_CLKSLIP_PLL1_SLIP_FILTER_COUNT_SET(reg, val)   BSP_FLD32SET(reg, val,8, 13)
 
#define TMS570_PLL_CLKSLIP_PLL1_SLIP_FILTER_KEY(val)   BSP_FLD32(val,0, 3)
 
#define TMS570_PLL_CLKSLIP_PLL1_SLIP_FILTER_KEY_GET(reg)   BSP_FLD32GET(reg,0, 3)
 
#define TMS570_PLL_CLKSLIP_PLL1_SLIP_FILTER_KEY_SET(reg, val)   BSP_FLD32SET(reg, val,0, 3)
 
#define TMS570_PLL_SSWPLL1_CAPTURE_WINDOW_INDEX(val)   BSP_FLD32(val,8, 15)
 
#define TMS570_PLL_SSWPLL1_CAPTURE_WINDOW_INDEX_GET(reg)   BSP_FLD32GET(reg,8, 15)
 
#define TMS570_PLL_SSWPLL1_CAPTURE_WINDOW_INDEX_SET(reg, val)   BSP_FLD32SET(reg, val,8, 15)
 
#define TMS570_PLL_SSWPLL1_COUNTER_READ_READY   BSP_BIT32(6)
 
#define TMS570_PLL_SSWPLL1_COUNTER_RESET   BSP_BIT32(5)
 
#define TMS570_PLL_SSWPLL1_COUNTER_EN   BSP_BIT32(4)
 
#define TMS570_PLL_SSWPLL1_TAP_COUNTER_DIS(val)   BSP_FLD32(val,1, 3)
 
#define TMS570_PLL_SSWPLL1_TAP_COUNTER_DIS_GET(reg)   BSP_FLD32GET(reg,1, 3)
 
#define TMS570_PLL_SSWPLL1_TAP_COUNTER_DIS_SET(reg, val)   BSP_FLD32SET(reg, val,1, 3)
 
#define TMS570_PLL_SSWPLL1_EXT_COUNTER_EN   BSP_BIT32(0)
 
#define TMS570_PLL_CSDIS_CLKSR_7_3_OFF(val)   BSP_FLD32(val,3, 7)
 
#define TMS570_PLL_CSDIS_CLKSR_7_3_OFF_GET(reg)   BSP_FLD32GET(reg,3, 7)
 
#define TMS570_PLL_CSDIS_CLKSR_7_3_OFF_SET(reg, val)   BSP_FLD32SET(reg, val,3, 7)
 
#define TMS570_PLL_CSDIS_CLKSR_1_0_OFF(val)   BSP_FLD32(val,0, 1)
 
#define TMS570_PLL_CSDIS_CLKSR_1_0_OFF_GET(reg)   BSP_FLD32GET(reg,0, 1)
 
#define TMS570_PLL_CSDIS_CLKSR_1_0_OFF_SET(reg, val)   BSP_FLD32SET(reg, val,0, 1)
 
#define TMS570_PLL_CSDISSET_SETCLKSR_7_3_OFF(val)   BSP_FLD32(val,3, 7)
 
#define TMS570_PLL_CSDISSET_SETCLKSR_7_3_OFF_GET(reg)   BSP_FLD32GET(reg,3, 7)
 
#define TMS570_PLL_CSDISSET_SETCLKSR_7_3_OFF_SET(reg, val)   BSP_FLD32SET(reg, val,3, 7)
 
#define TMS570_PLL_CSDISSET_SETCLKSR_1_0_OFF(val)   BSP_FLD32(val,0, 1)
 
#define TMS570_PLL_CSDISSET_SETCLKSR_1_0_OFF_GET(reg)   BSP_FLD32GET(reg,0, 1)
 
#define TMS570_PLL_CSDISSET_SETCLKSR_1_0_OFF_SET(reg, val)   BSP_FLD32SET(reg, val,0, 1)
 
#define TMS570_PLL_CSDISCLR_CLRCLKSR_7_3_OFF(val)   BSP_FLD32(val,3, 7)
 
#define TMS570_PLL_CSDISCLR_CLRCLKSR_7_3_OFF_GET(reg)   BSP_FLD32GET(reg,3, 7)
 
#define TMS570_PLL_CSDISCLR_CLRCLKSR_7_3_OFF_SET(reg, val)   BSP_FLD32SET(reg, val,3, 7)
 
#define TMS570_PLL_CSDISCLR_CLRCLKSR_1_0_OFF(val)   BSP_FLD32(val,0, 1)
 
#define TMS570_PLL_CSDISCLR_CLRCLKSR_1_0_OFF_GET(reg)   BSP_FLD32GET(reg,0, 1)
 
#define TMS570_PLL_CSDISCLR_CLRCLKSR_1_0_OFF_SET(reg, val)   BSP_FLD32SET(reg, val,0, 1)
 
#define TMS570_PLL_CSVSTAT_CLKSR_7_3V(val)   BSP_FLD32(val,3, 7)
 
#define TMS570_PLL_CSVSTAT_CLKSR_7_3V_GET(reg)   BSP_FLD32GET(reg,3, 7)
 
#define TMS570_PLL_CSVSTAT_CLKSR_7_3V_SET(reg, val)   BSP_FLD32SET(reg, val,3, 7)
 
#define TMS570_PLL_CSVSTAT_CLKSR_1_0V(val)   BSP_FLD32(val,0, 1)
 
#define TMS570_PLL_CSVSTAT_CLKSR_1_0V_GET(reg)   BSP_FLD32GET(reg,0, 1)
 
#define TMS570_PLL_CSVSTAT_CLKSR_1_0V_SET(reg, val)   BSP_FLD32SET(reg, val,0, 1)
 
#define TMS570_PLL_PLLCTL1_ROS   BSP_BIT32(31)
 
#define TMS570_PLL_PLLCTL1_MASK_SLIP(val)   BSP_FLD32(val,29, 30)
 
#define TMS570_PLL_PLLCTL1_MASK_SLIP_GET(reg)   BSP_FLD32GET(reg,29, 30)
 
#define TMS570_PLL_PLLCTL1_MASK_SLIP_SET(reg, val)   BSP_FLD32SET(reg, val,29, 30)
 
#define TMS570_PLL_PLLCTL1_PLLDIV(val)   BSP_FLD32(val,24, 28)
 
#define TMS570_PLL_PLLCTL1_PLLDIV_GET(reg)   BSP_FLD32GET(reg,24, 28)
 
#define TMS570_PLL_PLLCTL1_PLLDIV_SET(reg, val)   BSP_FLD32SET(reg, val,24, 28)
 
#define TMS570_PLL_PLLCTL1_ROF   BSP_BIT32(23)
 
#define TMS570_PLL_PLLCTL1_REFCLKDIV(val)   BSP_FLD32(val,16, 21)
 
#define TMS570_PLL_PLLCTL1_REFCLKDIV_GET(reg)   BSP_FLD32GET(reg,16, 21)
 
#define TMS570_PLL_PLLCTL1_REFCLKDIV_SET(reg, val)   BSP_FLD32SET(reg, val,16, 21)
 
#define TMS570_PLL_PLLCTL1_PLLMUL(val)   BSP_FLD32(val,0, 15)
 
#define TMS570_PLL_PLLCTL1_PLLMUL_GET(reg)   BSP_FLD32GET(reg,0, 15)
 
#define TMS570_PLL_PLLCTL1_PLLMUL_SET(reg, val)   BSP_FLD32SET(reg, val,0, 15)
 
#define TMS570_PLL_PLLCTL2_FMENA   BSP_BIT32(31)
 
#define TMS570_PLL_PLLCTL2_SPREADINGRATE(val)   BSP_FLD32(val,22, 30)
 
#define TMS570_PLL_PLLCTL2_SPREADINGRATE_GET(reg)   BSP_FLD32GET(reg,22, 30)
 
#define TMS570_PLL_PLLCTL2_SPREADINGRATE_SET(reg, val)   BSP_FLD32SET(reg, val,22, 30)
 
#define TMS570_PLL_PLLCTL2_MULMOD(val)   BSP_FLD32(val,12, 20)
 
#define TMS570_PLL_PLLCTL2_MULMOD_GET(reg)   BSP_FLD32GET(reg,12, 20)
 
#define TMS570_PLL_PLLCTL2_MULMOD_SET(reg, val)   BSP_FLD32SET(reg, val,12, 20)
 
#define TMS570_PLL_PLLCTL2_ODPLL(val)   BSP_FLD32(val,9, 11)
 
#define TMS570_PLL_PLLCTL2_ODPLL_GET(reg)   BSP_FLD32GET(reg,9, 11)
 
#define TMS570_PLL_PLLCTL2_ODPLL_SET(reg, val)   BSP_FLD32SET(reg, val,9, 11)
 
#define TMS570_PLL_PLLCTL2_SPR_AMOUNT(val)   BSP_FLD32(val,0, 8)
 
#define TMS570_PLL_PLLCTL2_SPR_AMOUNT_GET(reg)   BSP_FLD32GET(reg,0, 8)
 
#define TMS570_PLL_PLLCTL2_SPR_AMOUNT_SET(reg, val)   BSP_FLD32SET(reg, val,0, 8)
 
#define TMS570_PLL_LPOMONCTL_BIAS_ENABLE   BSP_BIT32(24)
 
#define TMS570_PLL_LPOMONCTL_OSCFRQCONFIGCNT   BSP_BIT32(16)
 
#define TMS570_PLL_LPOMONCTL_HFTRIM(val)   BSP_FLD32(val,8, 12)
 
#define TMS570_PLL_LPOMONCTL_HFTRIM_GET(reg)   BSP_FLD32GET(reg,8, 12)
 
#define TMS570_PLL_LPOMONCTL_HFTRIM_SET(reg, val)   BSP_FLD32SET(reg, val,8, 12)
 
#define TMS570_PLL_CLKTEST_ALTLIMPCLOCKENABLE   BSP_BIT32(26)
 
#define TMS570_PLL_CLKTEST_RANGEDETCTRL   BSP_BIT32(25)
 
#define TMS570_PLL_CLKTEST_RANGEDETENASSEL   BSP_BIT32(24)
 
#define TMS570_PLL_CLKTEST_CLK_TEST_EN(val)   BSP_FLD32(val,16, 19)
 
#define TMS570_PLL_CLKTEST_CLK_TEST_EN_GET(reg)   BSP_FLD32GET(reg,16, 19)
 
#define TMS570_PLL_CLKTEST_CLK_TEST_EN_SET(reg, val)   BSP_FLD32SET(reg, val,16, 19)
 
#define TMS570_PLL_GPREG1_EMIF_FUNC   BSP_BIT32(31)
 
#define TMS570_PLL_GPREG1_PLL1_FBSLIP_FILTER__COUNT(val)   BSP_FLD32(val,20, 25)
 
#define TMS570_PLL_GPREG1_PLL1_FBSLIP_FILTER__COUNT_GET(reg)   BSP_FLD32GET(reg,20, 25)
 
#define TMS570_PLL_GPREG1_PLL1_FBSLIP_FILTER__COUNT_SET(reg, val)   BSP_FLD32SET(reg, val,20, 25)
 
#define TMS570_PLL_GPREG1_PLL1_RFSLIP_FILTER__KEY(val)   BSP_FLD32(val,16, 19)
 
#define TMS570_PLL_GPREG1_PLL1_RFSLIP_FILTER__KEY_GET(reg)   BSP_FLD32GET(reg,16, 19)
 
#define TMS570_PLL_GPREG1_PLL1_RFSLIP_FILTER__KEY_SET(reg, val)   BSP_FLD32SET(reg, val,16, 19)
 
#define TMS570_PLL_GPREG1_OUTPUT_BUFFER_LOW_EMI_MODE(val)   BSP_FLD32(val,0, 15)
 
#define TMS570_PLL_GPREG1_OUTPUT_BUFFER_LOW_EMI_MODE_GET(reg)   BSP_FLD32GET(reg,0, 15)
 
#define TMS570_PLL_GPREG1_OUTPUT_BUFFER_LOW_EMI_MODE_SET(reg, val)   BSP_FLD32SET(reg, val,0, 15)
 
#define TMS570_PLL_GLBSTAT_FBSLIP   BSP_BIT32(9)
 
#define TMS570_PLL_GLBSTAT_RFSLIP   BSP_BIT32(8)
 
#define TMS570_PLL_GLBSTAT_OSCFAIL   BSP_BIT32(0)
 

Detailed Description

This header file provides PLL interfaces.