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?
Hi Igor,
Is the patch available for I.MX8M Plus? Can you share the patch with me?
Thank you.
Regards,
whale
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!
patch was for i.MX8QXP, it will not work on i.MX8M Mini.
Best regards
igor
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!
-----------------------------------------------------------------------------------------------------------------------
Hi,
did you get the patch?
If yes, could yo please send it me?
Kind regards
Hi, igorpadykov
would you send me the patch?i have the same problem,thank you so much!
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