mxcfb.h 901 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Porting to u-boot:
  3. *
  4. * (C) Copyright 2010
  5. * Stefano Babic, DENX Software Engineering, sbabic@denx.de
  6. *
  7. * Linux IPU driver for MX51:
  8. *
  9. * (C) Copyright 2004-2009 Freescale Semiconductor, Inc.
  10. *
  11. * SPDX-License-Identifier: GPL-2.0+
  12. */
  13. #ifndef __ASM_ARCH_MXCFB_H__
  14. #define __ASM_ARCH_MXCFB_H__
  15. #define FB_SYNC_OE_LOW_ACT 0x80000000
  16. #define FB_SYNC_CLK_LAT_FALL 0x40000000
  17. #define FB_SYNC_DATA_INVERT 0x20000000
  18. #define FB_SYNC_CLK_IDLE_EN 0x10000000
  19. #define FB_SYNC_SHARP_MODE 0x08000000
  20. #define FB_SYNC_SWAP_RGB 0x04000000
  21. struct mxcfb_gbl_alpha {
  22. int enable;
  23. int alpha;
  24. };
  25. struct mxcfb_loc_alpha {
  26. int enable;
  27. int alpha_in_pixel;
  28. unsigned long alpha_phy_addr0;
  29. unsigned long alpha_phy_addr1;
  30. };
  31. struct mxcfb_color_key {
  32. int enable;
  33. __u32 color_key;
  34. };
  35. struct mxcfb_pos {
  36. __u16 x;
  37. __u16 y;
  38. };
  39. struct mxcfb_gamma {
  40. int enable;
  41. int constk[16];
  42. int slopek[16];
  43. };
  44. #endif