mxcfb.h 901 B

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