fb.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* arch/arm/mach-s3c2410/include/mach/fb.h
  2. *
  3. * Copyright (c) 2004 Arnaud Patard <arnaud.patard@rtp-net.org>
  4. *
  5. * Inspired by pxafb.h
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef __ASM_ARM_FB_H
  12. #define __ASM_ARM_FB_H
  13. #include <mach/regs-lcd.h>
  14. struct s3c2410fb_hw {
  15. unsigned long lcdcon1;
  16. unsigned long lcdcon2;
  17. unsigned long lcdcon3;
  18. unsigned long lcdcon4;
  19. unsigned long lcdcon5;
  20. };
  21. /* LCD description */
  22. struct s3c2410fb_display {
  23. /* LCD type */
  24. unsigned type;
  25. /* Screen size */
  26. unsigned short width;
  27. unsigned short height;
  28. /* Screen info */
  29. unsigned short xres;
  30. unsigned short yres;
  31. unsigned short bpp;
  32. unsigned pixclock; /* pixclock in picoseconds */
  33. unsigned short left_margin; /* value in pixels (TFT) or HCLKs (STN) */
  34. unsigned short right_margin; /* value in pixels (TFT) or HCLKs (STN) */
  35. unsigned short hsync_len; /* value in pixels (TFT) or HCLKs (STN) */
  36. unsigned short upper_margin; /* value in lines (TFT) or 0 (STN) */
  37. unsigned short lower_margin; /* value in lines (TFT) or 0 (STN) */
  38. unsigned short vsync_len; /* value in lines (TFT) or 0 (STN) */
  39. /* lcd configuration registers */
  40. unsigned long lcdcon5;
  41. };
  42. struct s3c2410fb_mach_info {
  43. struct s3c2410fb_display *displays; /* attached diplays info */
  44. unsigned num_displays; /* number of defined displays */
  45. unsigned default_display;
  46. /* GPIOs */
  47. unsigned long gpcup;
  48. unsigned long gpcup_mask;
  49. unsigned long gpccon;
  50. unsigned long gpccon_mask;
  51. unsigned long gpdup;
  52. unsigned long gpdup_mask;
  53. unsigned long gpdcon;
  54. unsigned long gpdcon_mask;
  55. /* lpc3600 control register */
  56. unsigned long lpcsel;
  57. };
  58. extern void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *);
  59. #endif /* __ASM_ARM_FB_H */