[PATCH 2/2] drm/panel: add Ilitek ILI9806E panel driver
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Tue Jun 25 14:29:59 UTC 2024
On Tue, Jun 25, 2024 at 03:33:17PM GMT, Michael Walle wrote:
> The Ortustech COM35H3P70ULC panel is based on the ILI9806E DSI display
> controller.
>
[...]
> +static int ili9806e_get_modes(struct drm_panel *panel,
> + struct drm_connector *connector)
> +{
> + struct ili9806e_panel *ctx = to_ili9806e_panel(panel);
> + struct drm_display_mode *mode;
> +
> + mode = drm_mode_duplicate(connector->dev, ctx->desc->display_mode);
> + if (!mode)
> + return -ENOMEM;
> +
> + drm_mode_set_name(mode);
> +
> + mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED;
> + connector->display_info.width_mm = mode->width_mm;
> + connector->display_info.height_mm = mode->height_mm;
> + drm_mode_probed_add(connector, mode);
drm_connector_helper_get_modes_fixed(), please.
> +
> + return 1;
> +}
> +
--
With best wishes
Dmitry
More information about the dri-devel
mailing list