fb.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* linux/include/asm-arm/arch-s3c2410/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 <asm/arch/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 lcdcon1;
  41. unsigned long lcdcon5;
  42. };
  43. struct s3c2410fb_mach_info {
  44. struct s3c2410fb_display *displays; /* attached diplays info */
  45. unsigned num_displays; /* number of defined displays */
  46. unsigned default_display;
  47. /* GPIOs */
  48. unsigned long gpcup;
  49. unsigned long gpcup_mask;
  50. unsigned long gpccon;
  51. unsigned long gpccon_mask;
  52. unsigned long gpdup;
  53. unsigned long gpdup_mask;
  54. unsigned long gpdcon;
  55. unsigned long gpdcon_mask;
  56. /* lpc3600 control register */
  57. unsigned long lpcsel;
  58. };
  59. extern void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *);
  60. #endif /* __ASM_ARM_FB_H */