#include "API_AFE_mcu1_dp.h"
#include "../../../../mxc/hdp/all.h"
-u8 AFE_check_rate_supported(ENUM_AFE_LINK_RATE rate)
-{
- switch (rate) {
- case AFE_LINK_RATE_1_6:
- case AFE_LINK_RATE_2_1:
- case AFE_LINK_RATE_2_4:
- case AFE_LINK_RATE_2_7:
- case AFE_LINK_RATE_3_2:
- case AFE_LINK_RATE_4_3:
- case AFE_LINK_RATE_5_4:
- return 1;
- default:
- return 0;
- }
-}
-
static void AFE_WriteReg(state_struct *state, ENUM_AFE_LINK_RATE link_rate,
unsigned int addr,
unsigned int val1_6,
}
}
-void phy_cfg_24mhz(state_struct *state, int num_lanes)
+static void phy_cfg_24mhz(state_struct *state, int num_lanes)
{
int k;
}
/* Valid for 24 MHz only */
-void phy_cfg_dp_pll0(state_struct *state, int num_lanes, ENUM_AFE_LINK_RATE link_rate)
+static void phy_cfg_dp_pll0(state_struct *state,
+ int num_lanes,
+ ENUM_AFE_LINK_RATE link_rate)
{
int k;
volatile u16 rdata;
}
}
-void phy_cfg_dp_ln(state_struct *state, int num_lanes)
+static void phy_cfg_dp_ln(state_struct *state, int num_lanes)
{
int k;
u16 rdata;
}
}
-u16 aux_cal_cfg(state_struct *state, u16 prev_calib_code)
+static u16 aux_cal_cfg(state_struct *state, u16 prev_calib_code)
{
u16 txpu_calib_code;
u16 txpd_calib_code;
return new_calib_code;
}
-void aux_cfg(state_struct *state)
+static void aux_cfg(state_struct *state)
{
volatile u16 rdata;
#define TX_DIAG_TX_DRV_1 0x43E1
#define TX_DIAG_TX_DRV_2 0x45E1
#define TX_DIAG_TX_DRV_3 0x47E1
-#define PHY_HDP_MODE CTRL 0xC008
+#define PHY_HDP_MODE_CTRL 0xC008
#define TX_DIAG_ACYA_0 0x41ff
#define TX_DIAG_ACYA_1 0x43ff
#define TX_DIAG_ACYA_2 0x45ff
#define PHY_HDP_TX_CTL_L2 0xC488
#define PHY_HDP_TX_CTL_L3 0xC4C8
-#endif //API_AFE_MCU1_DP_H
+#endif /*API_AFE_MCU1_DP_H*/