bfin-lq035q1.h 868 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Blackfin LCD Framebuffer driver SHARP LQ035Q1DH02
  3. *
  4. * Copyright 2008-2009 Analog Devices Inc.
  5. * Licensed under the GPL-2 or later.
  6. */
  7. #ifndef BFIN_LQ035Q1_H
  8. #define BFIN_LQ035Q1_H
  9. /*
  10. * LCD Modes
  11. */
  12. #define LQ035_RL (0 << 8) /* Right -> Left Scan */
  13. #define LQ035_LR (1 << 8) /* Left -> Right Scan */
  14. #define LQ035_TB (1 << 9) /* Top -> Botton Scan */
  15. #define LQ035_BT (0 << 9) /* Botton -> Top Scan */
  16. #define LQ035_BGR (1 << 11) /* Use BGR format */
  17. #define LQ035_RGB (0 << 11) /* Use RGB format */
  18. #define LQ035_NORM (1 << 13) /* Reversal */
  19. #define LQ035_REV (0 << 13) /* Reversal */
  20. /*
  21. * PPI Modes
  22. */
  23. #define USE_RGB565_16_BIT_PPI 1
  24. #define USE_RGB565_8_BIT_PPI 2
  25. #define USE_RGB888_8_BIT_PPI 3
  26. struct bfin_lq035q1fb_disp_info {
  27. unsigned mode;
  28. unsigned ppi_mode;
  29. /* GPIOs */
  30. int use_bl;
  31. unsigned gpio_bl;
  32. };
  33. #endif /* BFIN_LQ035Q1_H */