![]() |
![]() |
Functions | |
CSL_IDEF_INLINE CSL_SERDES_RESULT | CSL_DFESerdesInit (uint32_t base_addr, CSL_SERDES_REF_CLOCK ref_clock, CSL_SERDES_LINK_RATE rate) |
CSL_IDEF_INLINE void | CSL_DFESerdesLaneEnable (uint32_t base_addr, uint32_t lane_num, CSL_SERDES_LOOPBACK loopback_mode, CSL_SERDES_LANE_CTRL_RATE lane_ctrl_rate) |
CSL_IDEF_INLINE void | CSL_DFESerdesPllEnable (uint32_t base_addr) |
CSL_IDEF_INLINE void | CSL_DFESerdesLaneDisable (uint32_t base_addr, uint32_t lane_num) |
CSL_IDEF_INLINE CSL_SERDES_STATUS | CSL_DFESerdesGetStatus (uint32_t base_addr, uint32_t num_lanes) |
CSL_IDEF_INLINE CSL_SERDES_STATUS | CSL_DFESerdesGetLaneStatus (uint32_t base_addr, uint32_t lane_num) |
CSL_IDEF_INLINE void | CSL_DFESerdesShutdown (uint32_t base_addr) |
CSL_IDEF_INLINE uint32_t | CSL_DFESerdesIsReset (uint32_t base_addr) |
============================================================================
This module deals with setting up SERDES configuration for DFE. The API flow should be as follows:
CSL_DFESerdesInit (base_addr, ref_clock, rate);
CSL_DFESerdesLaneEnable (base_addr, lane_num, link_rate);
CSL_DFESerdesPllEnable (base_addr);
CSL_DFESerdesGetStatus (base_addr);
============================================================================
CSL_IDEF_INLINE CSL_SERDES_STATUS CSL_DFESerdesGetLaneStatus | ( | uint32_t | base_addr, |
uint32_t | lane_num | ||
) |
============================================================================
CSL_DFESerdesGetLaneStatus
Description
This API returns the Lane specific status of the Serdes Lane PLL lock
Arguments base_addr, lane_num
Return Value CSL_SERDES_STATUS
Pre Condition
None
Post Condition
None
Reads
None
Usage Constraints:
None
Example
CSL_DFESerdesGetLaneStatus(CSL_CSISC2_0_SERDES_CFG_REGS, 0);
===========================================================================
CSL_IDEF_INLINE CSL_SERDES_STATUS CSL_DFESerdesGetStatus | ( | uint32_t | base_addr, |
uint32_t | num_lanes | ||
) |
============================================================================
CSL_DFESerdesGetStatus
Description
This API returns the status of the Serdes Lane PLL lock
Arguments base_addr, num_lanes
Return Value CSL_SERDES_STATUS
Pre Condition
None
Post Condition
None
Reads
None
Usage Constraints:
None
Example
CSL_DFESerdesGetStatus(CSL_CSISC2_0_SERDES_CFG_REGS, 2);
===========================================================================
CSL_IDEF_INLINE CSL_SERDES_RESULT CSL_DFESerdesInit | ( | uint32_t | base_addr, |
CSL_SERDES_REF_CLOCK | ref_clock, | ||
CSL_SERDES_LINK_RATE | rate | ||
) |
============================================================================
CSL_DFESerdesInit
Description
This API initializes the Serdes CMU and COMLANE registers for DFE.
Arguments base_addr, ref_clock, rate
Return Value CSL_SERDES_RESULT
Pre Condition
None
Post Condition
None
Reads
None
Usage Constraints:
None
Example
csl_retval = CSL_DFESerdesInit(CSL_CSISC2_0_SERDES_CFG_REGS, CSL_SERDES_REF_CLOCK_122p88M, CSL_SERDES_LINK_RATE_7p3728G);
===========================================================================
CSL_IDEF_INLINE uint32_t CSL_DFESerdesIsReset | ( | uint32_t | base_addr | ) |
============================================================================
CSL_DFESerdesIsReset
Description
This API returns a flag indicating whether the SerDes is in reset (1), or whether a previous configuration was applied to the SerDes
Arguments base_addr
Return Value None
Pre Condition
None
Post Condition
None
Reads
None
Usage Constraints:
None
Example
uint32_t serdesIsReset; serdesIsReset = CSL_DFESerdesIsReset(CSL_CSISC2_0_SERDES_CFG_REGS);
===========================================================================
CSL_IDEF_INLINE void CSL_DFESerdesLaneDisable | ( | uint32_t | base_addr, |
uint32_t | lane_num | ||
) |
============================================================================
CSL_DFESerdesLaneDisable
Description
This API disables the Serdes Lanes
Arguments base_addr, lane_num
Return Value None
Pre Condition
None
Post Condition
None
Reads
None
Usage Constraints:
None
Example
CSL_DFESerdesLaneDisable(CSL_CSISC2_0_SERDES_CFG_REGS, 0);
===========================================================================
CSL_IDEF_INLINE void CSL_DFESerdesLaneEnable | ( | uint32_t | base_addr, |
uint32_t | lane_num, | ||
CSL_SERDES_LOOPBACK | loopback_mode, | ||
CSL_SERDES_LANE_CTRL_RATE | lane_ctrl_rate | ||
) |
============================================================================
CSL_DFESerdesLaneEnable
Description
This API enables the Serdes CMU and COMLANE
Arguments base_addr, lane_num, link_rate
Return Value None
Pre Condition
None
Post Condition
None
Reads
None
Usage Constraints:
None
Example
CSL_DFESerdesLaneEnable(CSL_CSISC2_0_SERDES_CFG_REGS, 0, CSL_SERDES_LOOPBACK_DISABLED, CSL_SERDES_LANE_FULL_RATE);
===========================================================================
CSL_IDEF_INLINE void CSL_DFESerdesPllEnable | ( | uint32_t | base_addr | ) |
============================================================================
CSL_DFESerdesPllEnable
Description
This API enables the DFE Serdes PLL
Arguments base_addr
Return Value None
Pre Condition
None
Post Condition
None
Reads
None
Usage Constraints:
None
Example
CSL_DFESerdesPllEnable(CSL_CSISC2_0_SERDES_CFG_REGS);
===========================================================================
CSL_IDEF_INLINE void CSL_DFESerdesShutdown | ( | uint32_t | base_addr | ) |
============================================================================
CSL_DFESerdesShutdown
Description
This API shuts down the Serdes by Disabling and Resetting the Serdes
Arguments base_addr
Return Value None
Pre Condition
None
Post Condition
None
Reads
None
Usage Constraints:
None
Example
CSL_DFESerdesShutdown(CSL_CSISC2_0_SERDES_CFG_REGS);
===========================================================================