fb-s3c2410.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2004 Arnaud Patard <arnaud.patard@rtp-net.org>
  4. *
  5. * Inspired by pxafb.h
  6. */
  7. #ifndef __ASM_PLAT_FB_S3C2410_H
  8. #define __ASM_PLAT_FB_S3C2410_H __FILE__
  9. struct s3c2410fb_hw {
  10. unsigned long lcdcon1;
  11. unsigned long lcdcon2;
  12. unsigned long lcdcon3;
  13. unsigned long lcdcon4;
  14. unsigned long lcdcon5;
  15. };
  16. /* LCD description */
  17. struct s3c2410fb_display {
  18. /* LCD type */
  19. unsigned type;
  20. /* Screen size */
  21. unsigned short width;
  22. unsigned short height;
  23. /* Screen info */
  24. unsigned short xres;
  25. unsigned short yres;
  26. unsigned short bpp;
  27. unsigned pixclock; /* pixclock in picoseconds */
  28. unsigned short left_margin; /* value in pixels (TFT) or HCLKs (STN) */
  29. unsigned short right_margin; /* value in pixels (TFT) or HCLKs (STN) */
  30. unsigned short hsync_len; /* value in pixels (TFT) or HCLKs (STN) */
  31. unsigned short upper_margin; /* value in lines (TFT) or 0 (STN) */
  32. unsigned short lower_margin; /* value in lines (TFT) or 0 (STN) */
  33. unsigned short vsync_len; /* value in lines (TFT) or 0 (STN) */
  34. /* lcd configuration registers */
  35. unsigned long lcdcon5;
  36. };
  37. struct s3c2410fb_mach_info {
  38. struct s3c2410fb_display *displays; /* attached displays info */
  39. unsigned num_displays; /* number of defined displays */
  40. unsigned default_display;
  41. /* GPIOs */
  42. unsigned long gpcup;
  43. unsigned long gpcup_mask;
  44. unsigned long gpccon;
  45. unsigned long gpccon_mask;
  46. unsigned long gpdup;
  47. unsigned long gpdup_mask;
  48. unsigned long gpdcon;
  49. unsigned long gpdcon_mask;
  50. /* lpc3600 control register */
  51. unsigned long lpcsel;
  52. };
  53. extern void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *);
  54. #endif /* __ASM_PLAT_FB_S3C2410_H */