fb.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* linux/include/asm/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. *
  12. * Changelog:
  13. * 07-Sep-2004 RTP Created file
  14. * 03-Nov-2004 BJD Updated and minor cleanups
  15. * 03-Aug-2005 RTP Renamed to fb.h
  16. */
  17. #ifndef __ASM_ARM_FB_H
  18. #define __ASM_ARM_FB_H
  19. #include <asm/arch/regs-lcd.h>
  20. struct s3c2410fb_val {
  21. unsigned int defval;
  22. unsigned int min;
  23. unsigned int max;
  24. };
  25. struct s3c2410fb_hw {
  26. unsigned long lcdcon1;
  27. unsigned long lcdcon2;
  28. unsigned long lcdcon3;
  29. unsigned long lcdcon4;
  30. unsigned long lcdcon5;
  31. };
  32. struct s3c2410fb_mach_info {
  33. unsigned char fixed_syncs; /* do not update sync/border */
  34. /* Screen size */
  35. int width;
  36. int height;
  37. /* Screen info */
  38. struct s3c2410fb_val xres;
  39. struct s3c2410fb_val yres;
  40. struct s3c2410fb_val bpp;
  41. /* lcd configuration registers */
  42. struct s3c2410fb_hw regs;
  43. /* GPIOs */
  44. unsigned long gpcup;
  45. unsigned long gpcup_mask;
  46. unsigned long gpccon;
  47. unsigned long gpccon_mask;
  48. unsigned long gpdup;
  49. unsigned long gpdup_mask;
  50. unsigned long gpdcon;
  51. unsigned long gpdcon_mask;
  52. /* lpc3600 control register */
  53. unsigned long lpcsel;
  54. };
  55. void __init set_s3c2410fb_info(struct s3c2410fb_mach_info *hard_s3c2410fb_info);
  56. #endif /* __ASM_ARM_FB_H */