In my project, I need to use the 8bpp palette mode of the am335x, I modified the LCD related configuration like bpp parameters, I checked the framebuffer info, and got that the framebuffer is in 8bpp mode, but finally I got the results that the display contents displayed twice in the up half of the LCD (up left and up right), and the color of the contents are incorrect, the below half of the LCD displays nothing with green color.
In the file of da8xx-fb.c, once all of the registers have been programmed it load the palette using Palette Only Mode (RASTER_CTRL: PLM = 1h) , get a confirmation that the palette has been loaded (LCD_STAT: PL=1), and then disable the raster controller, then load the frame buffer with setting the Palette Loading Mode to Data Only (RASTER_CTRL: PLM = 2h). But I read in the Technical Reference Manual of am335x that the Data Only mode can only used for 12/16 /24 bpp, and no palette lookup is employed.
Is it the reason for my problems? How can I solve the problems?
Thank you !