s3c2410fb.h 935 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * linux/drivers/video/s3c2410fb.h
  3. * Copyright (c) 2004 Arnaud Patard
  4. *
  5. * S3C2410 LCD Framebuffer Driver
  6. *
  7. * This file is subject to the terms and conditions of the GNU General Public
  8. * License. See the file COPYING in the main directory of this archive for
  9. * more details.
  10. *
  11. */
  12. #ifndef __S3C2410FB_H
  13. #define __S3C2410FB_H
  14. enum s3c_drv_type {
  15. DRV_S3C2410,
  16. DRV_S3C2412,
  17. };
  18. struct s3c2410fb_info {
  19. struct device *dev;
  20. struct clk *clk;
  21. struct resource *mem;
  22. void __iomem *io;
  23. void __iomem *irq_base;
  24. enum s3c_drv_type drv_type;
  25. struct s3c2410fb_hw regs;
  26. unsigned long clk_rate;
  27. unsigned int palette_ready;
  28. #ifdef CONFIG_CPU_FREQ
  29. struct notifier_block freq_transition;
  30. #endif
  31. /* keep these registers in case we need to re-write palette */
  32. u32 palette_buffer[256];
  33. u32 pseudo_pal[16];
  34. };
  35. #define PALETTE_BUFF_CLEAR (0x80000000) /* entry is clear/invalid */
  36. int s3c2410fb_init(void);
  37. #endif