zx_common_regs.h 980 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (C) 2017 Sanechips Technology Co., Ltd.
  3. * Copyright 2017 Linaro Ltd.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef __ZX_COMMON_REGS_H__
  10. #define __ZX_COMMON_REGS_H__
  11. /* CSC registers */
  12. #define CSC_CTRL0 0x30
  13. #define CSC_COV_MODE_SHIFT 16
  14. #define CSC_COV_MODE_MASK (0xffff << CSC_COV_MODE_SHIFT)
  15. #define CSC_BT601_IMAGE_RGB2YCBCR 0
  16. #define CSC_BT601_IMAGE_YCBCR2RGB 1
  17. #define CSC_BT601_VIDEO_RGB2YCBCR 2
  18. #define CSC_BT601_VIDEO_YCBCR2RGB 3
  19. #define CSC_BT709_IMAGE_RGB2YCBCR 4
  20. #define CSC_BT709_IMAGE_YCBCR2RGB 5
  21. #define CSC_BT709_VIDEO_RGB2YCBCR 6
  22. #define CSC_BT709_VIDEO_YCBCR2RGB 7
  23. #define CSC_BT2020_IMAGE_RGB2YCBCR 8
  24. #define CSC_BT2020_IMAGE_YCBCR2RGB 9
  25. #define CSC_BT2020_VIDEO_RGB2YCBCR 10
  26. #define CSC_BT2020_VIDEO_YCBCR2RGB 11
  27. #define CSC_WORK_ENABLE BIT(0)
  28. #endif /* __ZX_COMMON_REGS_H__ */