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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

8,390 次查看
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 项奖励
回复
26 回复数

2,036 次查看
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 项奖励
回复

5,251 次查看
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 项奖励
回复

7,454 次查看
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 项奖励
回复

6,912 次查看
igorpadykov
NXP Employee
NXP Employee

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

 

Best regards
igor

0 项奖励
回复

6,436 次查看
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 项奖励
回复

6,426 次查看
aber
Contributor III

BoardConfig.mk


SF_PRIMARY_DISPLAY_ORIENTATION := 90

0 项奖励
回复

7,454 次查看
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 项奖励
回复

4,698 次查看
kalra
Contributor I

Hi Igor,

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

Thank you.

Regards,

Kalra

0 项奖励
回复

1,976 次查看
whale-1958
Contributor I

Hi,

did you get the patch?

If yes, could yo please send it me?

Kind regards

0 项奖励
回复

5,316 次查看
jeniceks
Contributor I

Hello Igor

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

Thank you

0 项奖励
回复

6,826 次查看
aber
Contributor III

Dear igorpadykov

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

Tks!

0 项奖励
回复

6,928 次查看
YCYao
Contributor I

Hi @igorpadykov ,

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

0 项奖励
回复

7,300 次查看
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 项奖励
回复

7,391 次查看
matthewmader
Contributor II

Is it still possible to get this patch?

0 项奖励
回复

7,454 次查看
petersonhou
Contributor II

Hi, igorpadykov

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

0 项奖励
回复

7,454 次查看
jhhong
Contributor II

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

0 项奖励
回复

7,454 次查看
jack_huang1
Contributor III

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 项奖励
回复

7,454 次查看
wayne_s
Contributor II

Hi Igor,

Can you also please send me the rotation patch.

Thank you,

Wayne

0 项奖励
回复

7,454 次查看
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 项奖励
回复

7,390 次查看
matthewmader
Contributor II

Did you get the patch for the imx8mm?

0 项奖励
回复