| 1 |
|
| 2 |
|
| 3 |
#include <console/console.h> |
| 4 |
#include <delay.h> |
| 5 |
#include <soc/dptx.h> |
| 6 |
#include <soc/dptx_hal.h> |
| 7 |
#include <soc/dptx_reg.h> |
| 8 |
|
| 9 |
void dptx_hal_reset_swing_preemphasis(struct mtk_dp *mtk_dp) |
| 10 |
{ |
| 11 |
for (int i = 0; i < dptx_hal_driving_offset_size; i++) |
| 12 |
mtk_dp_phy_mask(mtk_dp, dptx_hal_driving_offset[i], 0, |
| 13 |
EDP_TX_LN_VOLT_SWING_VAL_MASK | EDP_TX_LN_PRE_EMPH_VAL_MASK); |
| 14 |
} |
| 15 |
|
| 16 |
void dptx_hal_phy_set_lanes(struct mtk_dp *mtk_dp, u8 lane_count) |
| 17 |
{ |
| 18 |
for (int i = 0; i < lane_count; i++) |
| 19 |
mtk_dp_phy_mask(mtk_dp, PHYD_DIG_GLB_OFFSET + 0x74, BIT(i), BIT(i)); |
| 20 |
} |