[PATCH] Updated the orientation quirks to support the many variations of ONEXPLAYER and AokZoe devices.

Matthew Anderson ruinairas1992 at gmail.com
Tue Oct 4 01:22:15 UTC 2022


Has anyone been able to review this? If possible I'd like to see this
pulled into 6.1

On Fri, Sep 16, 2022, 8:50 AM Matthew <ruinairas1992 at gmail.com> wrote:

> Signed-off-by: Matthew Anderson <ruinairas1992 at gmail.com>
> ---
>  .../gpu/drm/drm_panel_orientation_quirks.c    | 86 ++++++++++++++++++-
>  1 file changed, 85 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c
> b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> index fc1728d46ac2..15203c134717 100644
> --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
> +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> @@ -115,6 +115,18 @@ static const struct drm_dmi_panel_orientation_data
> lcd1280x1920_rightside_up = {
>         .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
>  };
>
> +static const struct drm_dmi_panel_orientation_data
> lcd800x1280_leftside_up = {
> +       .width = 800,
> +       .height = 1280,
> +       .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
> +};
> +
> +static const struct drm_dmi_panel_orientation_data
> lcd1200x1920_leftside_up = {
> +       .width = 1200,
> +       .height = 1920,
> +       .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
> +};
> +
>  static const struct drm_dmi_panel_orientation_data
> lcd1600x2560_leftside_up = {
>         .width = 1600,
>         .height = 2560,
> @@ -128,6 +140,12 @@ static const struct dmi_system_id orientation_data[]
> = {
>                   DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "One S1003"),
>                 },
>                 .driver_data = (void *)&lcd800x1280_rightside_up,
> +       }, {    /* AOKZOE A1 AR07 */
> +               .matches = {
> +                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AOKZOE"),
> +                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AOKZOE A1 AR07"),
> +               },
> +               .driver_data = (void *)&lcd1200x1920_leftside_up,
>         }, {    /* Asus T100HA */
>                 .matches = {
>                   DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
> @@ -308,12 +326,78 @@ static const struct dmi_system_id orientation_data[]
> = {
>                   DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Default string"),
>                 },
>                 .driver_data = (void *)&onegx1_pro,
> -       }, {    /* OneXPlayer */
> +       }, {    /* OneXPlayer 800P Original DMI Values */
> +               .matches = {
> +                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY
> CO., LTD."),
> +                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
> +               },
> +               .driver_data = (void *)&lcd800x1280_leftside_up,
> +       }, {    /* OneXPlayer 1200P Original DMI Values */
> +               .matches = {
> +                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY
> CO., LTD."),
> +                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
> +               },
> +               .driver_data = (void *)&lcd1200x1920_leftside_up,
> +       }, {    /* OneXPlayer 1600P Original DMI Values */
>                 .matches = {
>                   DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY
> CO., LTD."),
>                   DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
>                 },
>                 .driver_data = (void *)&lcd1600x2560_leftside_up,
> +       }, {    /* OneXPlayer Gundam Edition Bios Updated */
> +               .matches = {
> +                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
> +                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER GUNDAM
> GA72"),
> +               },
> +               .driver_data = (void *)&lcd1200x1920_leftside_up,
> +       }, {    /* ONEXPLAYER mini A07 800P Bios Updated */
> +               .matches = {
> +                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
> +                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER mini A07"),
> +               },
> +               .driver_data = (void *)&lcd800x1280_leftside_up,
> +       }, {    /* ONEXPLAYER mini A07 1200P Bios Updated*/
> +               .matches = {
> +                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
> +                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER mini A07"),
> +               },
> +               .driver_data = (void *)&lcd1200x1920_leftside_up,
> +       }, {    /* ONEXPLAYER mini GA72 800P Bios Updated*/
> +               .matches = {
> +                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
> +                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER mini
> GA72"),
> +               },
> +               .driver_data = (void *)&lcd800x1280_leftside_up,
> +       }, {    /* ONEXPLAYER mini GA72 1200P Bios Updated*/
> +               .matches = {
> +                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
> +                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER mini
> GA72"),
> +               },
> +               .driver_data = (void *)&lcd1200x1920_leftside_up,
> +       }, {    /* ONEXPLAYER mini GT72 800P Bios Updated*/
> +               .matches = {
> +                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
> +                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER mini
> GT72"),
> +               },
> +               .driver_data = (void *)&lcd800x1280_leftside_up,
> +       }, {    /* ONEXPLAYER mini GT72 1200P Bios Updated*/
> +               .matches = {
> +                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
> +                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER mini
> GT72"),
> +               },
> +               .driver_data = (void *)&lcd1200x1920_leftside_up,
> +       }, {    /* OneXPlayer 1 8.4" Intel Bios Updated */
> +               .matches = {
> +                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
> +                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER 1 T08"),
> +               },
> +               .driver_data = (void *)&lcd1600x2560_leftside_up,
> +       }, {    /* OneXPlayer 1S 8.4" Intel Bios Updated */
> +               .matches = {
> +                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
> +                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER 1S T08"),
> +               },
> +               .driver_data = (void *)&lcd1600x2560_leftside_up,
>         }, {    /* Samsung GalaxyBook 10.6 */
>                 .matches = {
>                   DMI_EXACT_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS
> CO., LTD."),
> --
> 2.37.3
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20221003/c17c44b3/attachment-0001.htm>


More information about the dri-devel mailing list