static int is_bl_supported(struct msm_fb_data_type *mfd)
{
    static int is_bl_supported = -1;
    int ret;
    u8 rdata;

    if (is_bl_supported == -1) {
        if (!is_evt0_sample(mfd))
            is_bl_supported = 1;
        else {
            /* To determine if BL is supported, need to read MTP
               to see if it is programmed.  Per spec, must be done
               in LP mode */
            mipi_set_tx_power_mode(1);
            mipi_mot_tx_cmds(&set_mtp_read_off[0],
                             ARRAY_SIZE(set_mtp_read_off));
            ret = mipi_mot_rx_cmd(&mtp_read_cmd, &rdata, 1);
            mipi_set_tx_power_mode(0);
            if (ret < 0)
                pr_err("%s: failed to determine if MTP is programmed, ret = %d",
                       __func__, ret);
            else {
                pr_info("%s: Panel MTP data = 0x%02x\n",
                        __func__, rdata);
                is_bl_supported = (!rdata) ? 0 : 1;
            }
        }
    }

    return ((is_bl_supported == 1) ? 1 : 0);
}
int check_dsi_error(void)
{
	int ret = -1;
	u8 rdata = 0;

	ret = mipi_mot_rx_cmd(&chk_dsi_err_cmd, &rdata, 1);
	if (ret < 0) {
		pr_err("%s: failed to read DSI 05h,ret %d\n", __func__, ret);
		ret = -1;
	} else
		ret = rdata;

	return ret;
}
static void mipi_mot_get_mtpset4(struct msm_fb_data_type *mfd)
{
	static u8 d4_value = INVALID_VALUE;
	int ret;

	if (d4_value == INVALID_VALUE) {
		ret = mipi_mot_rx_cmd(&get_d4_cmd, &d4_value, 1);
		if (ret != 1)
			pr_err("%s: failed to read d4_value. ret =%d\n",
						__func__, ret);
		else {
			elvss_value = d4_value & 0x3F;

			pr_info("%s: elvss = 0x%2x\n", __func__, elvss_value);
		}
	}
}