arcpgu_regs.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * ARC PGU DRM driver.
  3. *
  4. * Copyright (C) 2016 Synopsys, Inc. (www.synopsys.com)
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. */
  16. #ifndef _ARC_PGU_REGS_H_
  17. #define _ARC_PGU_REGS_H_
  18. #define ARCPGU_REG_CTRL 0x00
  19. #define ARCPGU_REG_STAT 0x04
  20. #define ARCPGU_REG_FMT 0x10
  21. #define ARCPGU_REG_HSYNC 0x14
  22. #define ARCPGU_REG_VSYNC 0x18
  23. #define ARCPGU_REG_ACTIVE 0x1c
  24. #define ARCPGU_REG_BUF0_ADDR 0x40
  25. #define ARCPGU_REG_STRIDE 0x50
  26. #define ARCPGU_REG_START_SET 0x84
  27. #define ARCPGU_REG_ID 0x3FC
  28. #define ARCPGU_CTRL_ENABLE_MASK 0x02
  29. #define ARCPGU_CTRL_VS_POL_MASK 0x1
  30. #define ARCPGU_CTRL_VS_POL_OFST 0x3
  31. #define ARCPGU_CTRL_HS_POL_MASK 0x1
  32. #define ARCPGU_CTRL_HS_POL_OFST 0x4
  33. #define ARCPGU_MODE_RGB888_MASK 0x04
  34. #define ARCPGU_STAT_BUSY_MASK 0x02
  35. #endif