static int s5p_dp_handle_edid(struct s5p_dp_device *dp)
{
	u8 buf[12];
	int i;
	int retval;

	/* Read DPCD DPCD_ADDR_DPCD_REV~RECEIVE_PORT1_CAP_1 */
	retval = s5p_dp_read_bytes_from_dpcd(dp,
			DPCD_ADDR_DPCD_REV,
			12, buf);
	if (retval < 0)
		return retval;

    dev_err(dp->dev, "======== READED EDID ========\n"); 

    for (i=0;i<12;i++) {
        dev_err(dp->dev,"addr : %d, value : %x\n",i ,buf[i]);
    }

    dev_err(dp->dev,"==============================\n");
	/* Read EDID */
#if 0     
	for (i = 0; i < 3; i++) {
		retval = s5p_dp_read_edid(dp);
		if (retval == 0)
			break;
	}
#endif
	return retval;
}
コード例 #2
0
static int s5p_dp_handle_edid(struct s5p_dp_device *dp)
{
	u8 buf[12];
	int i;
	int retval;

	/* Read DPCD DPCD_ADDR_DPCD_REV~RECEIVE_PORT1_CAP_1 */
	retval = s5p_dp_read_bytes_from_dpcd(dp,
			DPCD_ADDR_DPCD_REV,
			12, buf);
	if (retval < 0)
		return retval;

	/* Read EDID */
	for (i = 0; i < 3; i++) {
		retval = s5p_dp_read_edid(dp);
		if (retval == 0)
			break;
	}

	return retval;
}