This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM1808 - how to rotate graphic image from within da8xx-fb

Other Parts Discussed in Thread: AM1808, DA8XX

Hi,
I'm developing on a AM1808 based board (w sdk 5.03.02.00).
My board features a graphical LCD. This LCD is natively 240x320 (portrait), while I need a 320x240 configuration (landscape).
First of all, in drivers/video/da8xx-fb.c I've added parameters definition for this display under the relevant struct:

static struct da8xx_panel known_lcd_panels[] = {
  ...
 /* Tianma TM035HBHT1 */
 [1] = {
  .name = "Tianma_TM035HBHT1",
  .width = 240,  /* hor. resolution */
  .height = 320,  /* ver. resolution */
  .hfp = 10,  /* hor. front porch */
  .hbp = 60,  /* hor. back porch */
  .hsw = 2,  /* HSYNC pulse widht */
  .vfp = 4,  /* ver. front porch */
  .vbp = 4,  /* ver. back porch */
  .vsw = 310,  /* VSYNC pulse widht */
  .pxl_clk = 4608000, /* 320*240*60 */
  .invert_pxl_clk = 1, /* set 1/0 if RGB is sampled on rising/falling edge of CK */
 },
};

As expected, I can see the sdk demo's images on LCD in portrait mode.
Now I want to permanently change the LCD orientation in landscape mode .
Unfortunately the LCD's controller (ILI9340) doesn't support an embedded command for display rotation (90 degrees clockwise in my case),
then I suppose to have to take care of rotating the image in the davinci fb driver.
Can someone give me an example/suggestion on how to patch the drivers/video/da8xx-fb.c in order to do this job ?

Regards,