video-mx3fb.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2008
  4. * Guennadi Liakhovetski, DENX Software Engineering, <[email protected]>
  5. */
  6. #ifndef __ASM_ARCH_MX3FB_H__
  7. #define __ASM_ARCH_MX3FB_H__
  8. #include <linux/device.h>
  9. #include <linux/fb.h>
  10. /* Proprietary FB_SYNC_ flags */
  11. #define FB_SYNC_OE_ACT_HIGH 0x80000000
  12. #define FB_SYNC_CLK_INVERT 0x40000000
  13. #define FB_SYNC_DATA_INVERT 0x20000000
  14. #define FB_SYNC_CLK_IDLE_EN 0x10000000
  15. #define FB_SYNC_SHARP_MODE 0x08000000
  16. #define FB_SYNC_SWAP_RGB 0x04000000
  17. #define FB_SYNC_CLK_SEL_EN 0x02000000
  18. /*
  19. * Specify the way your display is connected. The IPU can arbitrarily
  20. * map the internal colors to the external data lines. We only support
  21. * the following mappings at the moment.
  22. */
  23. enum disp_data_mapping {
  24. /* blue -> d[0..5], green -> d[6..11], red -> d[12..17] */
  25. IPU_DISP_DATA_MAPPING_RGB666,
  26. /* blue -> d[0..4], green -> d[5..10], red -> d[11..15] */
  27. IPU_DISP_DATA_MAPPING_RGB565,
  28. /* blue -> d[0..7], green -> d[8..15], red -> d[16..23] */
  29. IPU_DISP_DATA_MAPPING_RGB888,
  30. };
  31. /**
  32. * struct mx3fb_platform_data - mx3fb platform data
  33. *
  34. * @dma_dev: pointer to the dma-device, used for dma-slave connection
  35. * @mode: pointer to a platform-provided per mxc_register_fb() videomode
  36. */
  37. struct mx3fb_platform_data {
  38. struct device *dma_dev;
  39. const char *name;
  40. const struct fb_videomode *mode;
  41. int num_modes;
  42. enum disp_data_mapping disp_data_fmt;
  43. };
  44. #endif