pxafb.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * linux/include/asm-arm/arch-pxa/pxafb.h
  3. *
  4. * Support for the xscale frame buffer.
  5. *
  6. * Author: Jean-Frederic Clere
  7. * Created: Sep 22, 2003
  8. * Copyright: jfclere@sinix.net
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. /*
  15. * This structure describes the machine which we are running on.
  16. * It is set in linux/arch/arm/mach-pxa/machine_name.c and used in the probe routine
  17. * of linux/drivers/video/pxafb.c
  18. */
  19. struct pxafb_mach_info {
  20. u_long pixclock;
  21. u_short xres;
  22. u_short yres;
  23. u_char bpp;
  24. u_char hsync_len;
  25. u_char left_margin;
  26. u_char right_margin;
  27. u_char vsync_len;
  28. u_char upper_margin;
  29. u_char lower_margin;
  30. u_char sync;
  31. u_int cmap_greyscale:1,
  32. cmap_inverse:1,
  33. cmap_static:1,
  34. unused:29;
  35. /* The following should be defined in LCCR0
  36. * LCCR0_Act or LCCR0_Pas Active or Passive
  37. * LCCR0_Sngl or LCCR0_Dual Single/Dual panel
  38. * LCCR0_Mono or LCCR0_Color Mono/Color
  39. * LCCR0_4PixMono or LCCR0_8PixMono (in mono single mode)
  40. * LCCR0_DMADel(Tcpu) (optional) DMA request delay
  41. *
  42. * The following should not be defined in LCCR0:
  43. * LCCR0_OUM, LCCR0_BM, LCCR0_QDM, LCCR0_DIS, LCCR0_EFM
  44. * LCCR0_IUM, LCCR0_SFM, LCCR0_LDM, LCCR0_ENB
  45. */
  46. u_int lccr0;
  47. /* The following should be defined in LCCR3
  48. * LCCR3_OutEnH or LCCR3_OutEnL Output enable polarity
  49. * LCCR3_PixRsEdg or LCCR3_PixFlEdg Pixel clock edge type
  50. * LCCR3_Acb(X) AB Bias pin frequency
  51. * LCCR3_DPC (optional) Double Pixel Clock mode (untested)
  52. *
  53. * The following should not be defined in LCCR3
  54. * LCCR3_HSP, LCCR3_VSP, LCCR0_Pcd(x), LCCR3_Bpp
  55. */
  56. u_int lccr3;
  57. void (*pxafb_backlight_power)(int);
  58. void (*pxafb_lcd_power)(int);
  59. };
  60. void set_pxa_fb_info(struct pxafb_mach_info *hard_pxa_fb_info);
  61. void set_pxa_fb_parent(struct device *parent_dev);
  62. unsigned long pxafb_get_hsync_time(struct device *dev);