panel-nx: match jdi panel driver style
squash later
This commit is contained in:
@@ -612,8 +612,7 @@ static const struct drm_display_mode default_mode = {
|
||||
.vsync_start = 1280 + 10,
|
||||
.vsync_end = 1280 + 10 + 2,
|
||||
.vtotal = 1280 + 10 + 1 + 9,
|
||||
.width_mm = 77,
|
||||
.height_mm = 137,
|
||||
.flags = 0,
|
||||
};
|
||||
|
||||
static int nx_panel_get_modes(struct drm_panel *panel,
|
||||
@@ -636,8 +635,9 @@ static int nx_panel_get_modes(struct drm_panel *panel,
|
||||
drm_mode_set_name(mode);
|
||||
drm_mode_probed_add(connector, mode);
|
||||
|
||||
connector->display_info.width_mm = default_mode.width_mm;
|
||||
connector->display_info.height_mm = default_mode.height_mm;
|
||||
connector->display_info.width_mm = 77;
|
||||
connector->display_info.height_mm = 137;
|
||||
connector->display_info.bpc = 8;
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -676,6 +676,8 @@ static int nx_panel_add(struct nx_panel *nx)
|
||||
gpiod_set_value(nx->reset_gpio, 0);
|
||||
}
|
||||
|
||||
usleep_range(2000, 4000);
|
||||
|
||||
printk("backlight");
|
||||
|
||||
np = of_parse_phandle(dev->of_node, "backlight", 0);
|
||||
|
||||
Reference in New Issue
Block a user