Guest User

471_fiiom3k_Reduce_LCDClk-TE_off.diff

a guest
Aug 25th, 2024
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.05 KB | Source Code | 0 0
  1. fiiom3k_Reduce_LCDClk-TE_off.diff
  2.  
  3. Without this the time of WAIT_EOF / SLEEP_EOF is unexpected High for the fiiom3k
  4.  
  5. (lt. DMA Debug: ~35ms vs ~7ms for 153kB Screendata Transfer Wait,
  6. te_enable=1 highly suspicious for this)
  7.  
  8. Mini-Credit ZappBranigan2972 on forums / F. Jacobsen on the Theme Site
  9.  
  10. ---
  11.  
  12. --- a/firmware/target/mips/ingenic_x1000/fiiom3k/lcd-fiiom3k.c.orig 2024-02-02 21:18:28.090867623 +0100
  13. +++ b/firmware/target/mips/ingenic_x1000/fiiom3k/lcd-fiiom3k.c  2024-02-02 21:18:42.174675179 +0100
  14. @@ -156,7 +156,7 @@
  15.      .clk_polarity = 0,
  16.      .dc_polarity = 0,
  17.      .wr_polarity = 1,
  18. -    .te_enable = 1,
  19. +    .te_enable = 0,
  20.      .te_polarity = 1,
  21.      .te_narrow = 0,
  22.      .dma_wr_cmd_buf = &fiio_lcd_dma_wr_cmd,
  23. @@ -173,7 +173,7 @@
  24.          gpio_set_level(GPIO_LCD_CE, 0);
  25.  
  26.          /* set the clock whatever it is... */
  27. -        lcd_set_clock(X1000_CLK_SCLK_A, 30000000);
  28. +        lcd_set_clock(X1000_CLK_SCLK_A, 20000000);
  29.  
  30.          /* program the initial configuration */
  31.          lcd_exec_commands(&fiio_lcd_cmd_enable[0]);
  32.  
Advertisement
Add Comment
Please, Sign In to add comment