• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * ARC PGU DRM driver.
4  *
5  * Copyright (C) 2016 Synopsys, Inc. (www.synopsys.com)
6  */
7 
8 #ifndef _ARC_PGU_REGS_H_
9 #define _ARC_PGU_REGS_H_
10 
11 #define ARCPGU_REG_CTRL		0x00
12 #define ARCPGU_REG_STAT		0x04
13 #define ARCPGU_REG_FMT		0x10
14 #define ARCPGU_REG_HSYNC	0x14
15 #define ARCPGU_REG_VSYNC	0x18
16 #define ARCPGU_REG_ACTIVE	0x1c
17 #define ARCPGU_REG_BUF0_ADDR	0x40
18 #define ARCPGU_REG_STRIDE	0x50
19 #define ARCPGU_REG_START_SET	0x84
20 
21 #define ARCPGU_REG_ID		0x3FC
22 
23 #define ARCPGU_CTRL_ENABLE_MASK	0x02
24 #define ARCPGU_CTRL_VS_POL_MASK	0x1
25 #define ARCPGU_CTRL_VS_POL_OFST	0x3
26 #define ARCPGU_CTRL_HS_POL_MASK	0x1
27 #define ARCPGU_CTRL_HS_POL_OFST	0x4
28 #define ARCPGU_MODE_XRGB8888	BIT(2)
29 #define ARCPGU_STAT_BUSY_MASK	0x02
30 
31 #endif
32