18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * ARC PGU DRM driver.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2016 Synopsys, Inc. (www.synopsys.com)
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef _ARC_PGU_REGS_H_
98c2ecf20Sopenharmony_ci#define _ARC_PGU_REGS_H_
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#define ARCPGU_REG_CTRL		0x00
128c2ecf20Sopenharmony_ci#define ARCPGU_REG_STAT		0x04
138c2ecf20Sopenharmony_ci#define ARCPGU_REG_FMT		0x10
148c2ecf20Sopenharmony_ci#define ARCPGU_REG_HSYNC	0x14
158c2ecf20Sopenharmony_ci#define ARCPGU_REG_VSYNC	0x18
168c2ecf20Sopenharmony_ci#define ARCPGU_REG_ACTIVE	0x1c
178c2ecf20Sopenharmony_ci#define ARCPGU_REG_BUF0_ADDR	0x40
188c2ecf20Sopenharmony_ci#define ARCPGU_REG_STRIDE	0x50
198c2ecf20Sopenharmony_ci#define ARCPGU_REG_START_SET	0x84
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#define ARCPGU_REG_ID		0x3FC
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#define ARCPGU_CTRL_ENABLE_MASK	0x02
248c2ecf20Sopenharmony_ci#define ARCPGU_CTRL_VS_POL_MASK	0x1
258c2ecf20Sopenharmony_ci#define ARCPGU_CTRL_VS_POL_OFST	0x3
268c2ecf20Sopenharmony_ci#define ARCPGU_CTRL_HS_POL_MASK	0x1
278c2ecf20Sopenharmony_ci#define ARCPGU_CTRL_HS_POL_OFST	0x4
288c2ecf20Sopenharmony_ci#define ARCPGU_MODE_XRGB8888	BIT(2)
298c2ecf20Sopenharmony_ci#define ARCPGU_STAT_BUSY_MASK	0x02
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#endif
32