How To Rotate 90 Degree Video For Display In I.MX8X

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How To Rotate 90 Degree Video For Display In I.MX8X

18,302 Views
alighieri
Contributor III

Here According To Datasheet And Reference Manual The New Follower Of I.MX Series Processor I.MX8X Is Designed Without IPU Which Is Built-In In Previous Series I.MX6 Processor. My Questions Is How To Rotate 90 / 180 Degree For Target Display In Wanted Orientation? Is Here Also Contain FRAMEBUFFER.C In BSP For Doing That?

0 Kudos
Reply
26 Replies

9,597 Views
whale-1958
Contributor I

Hi Igor,

Is the patch available for I.MX8M Plus? Can you share the patch with me?

Thank you.

Regards,

whale

0 Kudos
Reply

12,812 Views
jeniceks
Contributor I

Hi everyone

If anyone use imx8x and yocto and need display rotation (or flip), here is my solution: Screen rotate feature has Display controller (DC) DPR block. In register  Frame Control 0 (FRAME_CTRL0 offset 0x70) you can find flip and rotate settings.

To change screen direction, edit driver in kernel source: drivers/gpu/imx/imx8_dprc.c. There is the register definition (#define FRAME_CTRL0 0x70). If you use ctrl+f you can find where is written to it:

dprc_write(dprc, PITCH(stride), FRAME_CTRL0);

Modify it and you can see screen rotation. I use:

stride_tmp = PITCH(stride) | VFLIP_EN | HFLIP_EN;

... and It works!

0 Kudos
Reply

15,015 Views
tanyid
Contributor I

hi  igorpadykov  . I met the same issue on the imx8m mini platform, will you please send me a copy of the patch?

thanks !!!

0 Kudos
Reply

14,473 Views
igorpadykov
NXP Employee
NXP Employee

patch was for i.MX8QXP, it will not work on i.MX8M Mini.

 

Best regards
igor

0 Kudos
Reply

13,997 Views
zc_tee
Contributor III

Hi Igor,

Is the patch available for I.MX8M Plus? Can you share the patch with me?

Thank you.

Regards,

Tee

0 Kudos
Reply

13,987 Views
aber
Contributor III

BoardConfig.mk


SF_PRIMARY_DISPLAY_ORIENTATION := 90

0 Kudos
Reply

15,015 Views
igorpadykov
NXP Employee
NXP Employee

Hi Bright

rotation patch was sent via mail.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

12,259 Views
kalra
Contributor I

Hi Igor,

Could you please share the patch for I.MX8M Plus with me?

Thank you.

Regards,

Kalra

0 Kudos
Reply

9,537 Views
whale-1958
Contributor I

Hi,

did you get the patch?

If yes, could yo please send it me?

Kind regards

0 Kudos
Reply

12,877 Views
jeniceks
Contributor I

Hello Igor

I'm facing problem with display rotation on imx8x. Please can you send me the patch.

Thank you

0 Kudos
Reply

14,387 Views
aber
Contributor III

Dear igorpadykov

   Would you please send me the patch? I also want to rotate screen on imx8mm and imx8mq.

Tks!

0 Kudos
Reply

14,489 Views
YCYao
Contributor I

Hi @igorpadykov ,

Would you please send me the patch? I also want to rotate screen on imx8mm.

0 Kudos
Reply

14,861 Views
jran
Contributor II

Hello,

Is this patch still available? We also need to rotate the LVDS display 180 degrees in our i.MX8X project.

Please send the patch. @igorpadykov 

0 Kudos
Reply

14,952 Views
matthewmader
Contributor II

Is it still possible to get this patch?

0 Kudos
Reply

15,015 Views
petersonhou
Contributor II

Hi, igorpadykov

would you send me the patch?i have the same problem,thank you so much!

0 Kudos
Reply

15,015 Views
llp
Contributor II

We also need the patch.igorpadykov   We want to rotate the screen in linux without gpu.

0 Kudos
Reply

15,015 Views
jack_huang1
Contributor IV

Dear igorpadykov 员工 :

         I met the same issue on the imx8x platform, will you please send me a copy of the patch? Thank you.

      Jack Huang

0 Kudos
Reply

15,015 Views
wayne_s
Contributor II

Hi Igor,

Can you also please send me the rotation patch.

Thank you,

Wayne

0 Kudos
Reply

15,015 Views
28658180
Contributor I

Hello, Igor

I met the same issue on the imx8m mini platform, will you please send me a copy of the patch?

thanks a lot.

Best regards

frank

0 Kudos
Reply

14,951 Views
matthewmader
Contributor II

Did you get the patch for the imx8mm?

0 Kudos
Reply