Beispiel #1
0
static int info_show(struct seq_file *s, void *unused)
{
	struct msm_fb_data_type *mfd = s->private;
	struct mipi_dsi_data *dsi_data;

	dev_dbg(&mfd->panel_pdev->dev, "%s\n", __func__);
	dsi_data = platform_get_drvdata(mfd->panel_pdev);
	if (!dsi_data || !dsi_data->panel) {
		seq_printf(s, "No panel\n");
		pr_err("%s: no panels\n", __func__);
		return 0;
	}

	if (dsi_data->panel->name) {
		seq_printf(s, "Panel: %s\n", dsi_data->panel->name);
		seq_printf(s, "xres = %d, yres = %d\n",
					dsi_data->panel_data.panel_info.xres,
					dsi_data->panel_data.panel_info.yres);
		seq_printf(s, "width = %d mm, height = %d mm\n",
					dsi_data->panel->width,
					dsi_data->panel->height);
		seq_printf(s, "---------\n");
		if (dsi_data->panel->pctrl) {
			seq_printf(s, "display_init commands:\n");
			print_cmds2file(dsi_data->panel->pctrl->display_init,
									s);
			seq_printf(s, "display_on commands:\n");
			print_cmds2file(dsi_data->panel->pctrl->display_on, s);
			seq_printf(s, "display_off commands:\n");
			print_cmds2file(dsi_data->panel->pctrl->display_off, s);
			seq_printf(s, "read_id commands:\n");
			print_cmds2file(dsi_data->panel->pctrl->read_id, s);
		} else {
			seq_printf(s, "No pctrl\n");
		}
	} else {
		seq_printf(s, "No panel name\n");
	}
	return 0;
}
Beispiel #2
0
static int info_show(struct seq_file *s, void *unused)
{
	struct mcde_display_device *ddev = s->private;
	struct panel_record *rd;
	struct device *dev;

	if (!ddev || !&ddev->dev) {
		pr_err("%s: no device\n", __func__);
		return 0;
	}
	dev = &ddev->dev;
	rd = dev_get_drvdata(dev);

	dev_dbg(dev, "%s\n", __func__);

	if (rd->panel->name) {
		seq_printf(s, "Panel: %s\n", rd->panel->name);
		seq_printf(s, "xres = %d, yres = %d\n", rd->panel->x_res,
							rd->panel->y_res);
		seq_printf(s, "width = %d mm, height = %d mm\n",
					rd->panel->width, rd->panel->height);
		seq_printf(s, "disable_ulpm = %d\n", rd->panel->disable_ulpm);
		seq_printf(s, "Use deep standby as power off = %d\n",
					ddev->deep_standby_as_power_off);
		seq_printf(s, "---------\n");
		seq_printf(s, "off_to_standby commands:\n");
		print_cmds2file(rd->panel->pinfo->off_to_standby, s);
		seq_printf(s, "deep_standby_to_standby commands:\n");
		print_cmds2file(rd->panel->pinfo->deep_standby_to_standby, s);
		seq_printf(s, "standby_to_off commands:\n");
		print_cmds2file(rd->panel->pinfo->standby_to_off, s);
		seq_printf(s, "standby_to_deep_standby commands:\n");
		print_cmds2file(rd->panel->pinfo->standby_to_deep_standby, s);
		seq_printf(s, "on_to_standby commands:\n");
		print_cmds2file(rd->panel->pinfo->on_to_standby, s);
		seq_printf(s, "standby_to_on commands:\n");
		print_cmds2file(rd->panel->pinfo->standby_to_on, s);
		seq_printf(s, "standby_to_intermediate commands:\n");
		print_cmds2file(rd->panel->pinfo->standby_to_intermediate, s);
		seq_printf(s, "intermediate_to_on commands:\n");
		print_cmds2file(rd->panel->pinfo->intermediate_to_on, s);
	} else {
		seq_printf(s, "No panel name\n");
	}
	return 0;
}