fb.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. /* lcd configuration registers */
  33. struct s3c2410fb_hw regs;
  34. };
  35. struct s3c2410fb_mach_info {
  36. unsigned char fixed_syncs; /* do not update sync/border */
  37. struct s3c2410fb_display *displays; /* attached diplays info */
  38. unsigned num_displays; /* number of defined displays */
  39. unsigned default_display;
  40. /* GPIOs */
  41. unsigned long gpcup;
  42. unsigned long gpcup_mask;
  43. unsigned long gpccon;
  44. unsigned long gpccon_mask;
  45. unsigned long gpdup;
  46. unsigned long gpdup_mask;
  47. unsigned long gpdcon;
  48. unsigned long gpdcon_mask;
  49. /* lpc3600 control register */
  50. unsigned long lpcsel;
  51. };
  52. extern void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *);
  53. #endif /* __ASM_ARM_FB_H */