tilcdc.h 956 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
  4. */
  5. #ifndef _TILCDC_H
  6. #define _TILCDC_H
  7. /**
  8. * tilcdc_panel_info: Panel parameters
  9. *
  10. * @ac_bias: AC Bias Pin Frequency
  11. * @ac_bias_intrpt: AC Bias Pin Transitions per Interrupt
  12. * @dma_burst_sz: DMA burst size
  13. * @bpp: Bits per pixel
  14. * @fdd: FIFO DMA Request Delay
  15. * @tft_alt_mode: TFT Alternative Signal Mapping (Only for active)
  16. * @invert_pxl_clk: Invert pixel clock
  17. * @sync_edge: Horizontal and Vertical Sync Edge: 0=rising 1=falling
  18. * @sync_ctrl: Horizontal and Vertical Sync: Control: 0=ignore
  19. * @raster_order: Raster Data Order Select: 1=Most-to-least 0=Least-to-most
  20. * @fifo_th: DMA FIFO threshold
  21. */
  22. struct tilcdc_panel_info {
  23. u32 ac_bias;
  24. u32 ac_bias_intrpt;
  25. u32 dma_burst_sz;
  26. u32 bpp;
  27. u32 fdd;
  28. bool tft_alt_mode;
  29. bool invert_pxl_clk;
  30. u32 sync_edge;
  31. u32 sync_ctrl;
  32. u32 raster_order;
  33. u32 fifo_th;
  34. };
  35. #endif /* _TILCDC_H */