return (id<<8)|c1;
}
-
+#if defined(BIST_MODE)
static int anx980x_bist_mode(struct i2c_client *client)
{
char val,i;
return 0;
}
-
+#endif
static int anx980x_aux_rst(struct i2c_client *client)
{
char val;
return 0;
}
-
+#if defined(BIST_MODE)
static int anx6345_bist_mode(struct i2c_client *client)
{
struct edp_anx6345 *anx6345 = i2c_get_clientdata(client);
return 0;
}
-
+#endif
int anx6345_start_aux_transaction(struct i2c_client *client)
{
#endif
/*#define EDP_BIST_MODE*/
-
+/*#define SW_LT*/
static struct rk32_edp *rk32_edp;
static int rk32_edp_clk_enable(struct rk32_edp *edp)
return 0;
}
+#if 0
static int rk32_edp_detect_hpd(struct rk32_edp *edp)
{
int timeout_loop = 0;
return 0;
}
-
+#endif
static int rk32_edp_read_edid(struct rk32_edp *edp)
{
unsigned char edid[EDID_LENGTH * 2];
return 0;
}
+#if 0
static int rk32_edp_handle_edid(struct rk32_edp *edp)
{
u8 buf[12];
return retval;
}
+
static int rk32_edp_enable_rx_to_enhanced_mode(struct rk32_edp *edp,
bool enable)
{
}*/
}
+
static int rk32_edp_is_enhanced_mode_available(struct rk32_edp *edp)
{
u8 data;
return DPCD_ENHANCED_FRAME_CAP(data);
}
+
static void rk32_edp_disable_rx_zmux(struct rk32_edp *edp)
{
/*rk32_edp_write_byte_to_dpcd(edp,
return 0;
}
+#endif
+#if defined(SW_LT)
static int rk32_edp_training_pattern_dis(struct rk32_edp *edp)
{
int retval;
rk32_edp_reduce_link_rate(edp);
return -EIO;
}
-
+#endif
static int rk32_edp_get_max_rx_bandwidth(struct rk32_edp *edp,
u8 *bandwidth)
{
return 0;
}
+#if defined(SW_LT)
static int rk32_edp_sw_link_training(struct rk32_edp *edp)
{
int retval = 0;
return retval;
}
-
+#else
static int rk32_edp_hw_link_training(struct rk32_edp *edp)
{
u32 cnt = 50;
return val;
}
+#endif
+
static int rk32_edp_set_link_train(struct rk32_edp *edp)
{
int retval;
retval = rk32_edp_init_training(edp);
if (retval < 0)
dev_err(edp->dev, "DP LT init failed!\n");
-#if 0
+#if defined(SW_LT)
retval = rk32_edp_sw_link_training(edp);
#else
retval = rk32_edp_hw_link_training(edp);
return retval;
}
+#if 0
static int rk32_edp_enable_scramble(struct rk32_edp *edp, bool enable)
{
u8 data;
return 0;
}
+#endif
static irqreturn_t rk32_edp_isr(int irq, void *arg)
{