18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2017 Sanechips Technology Co., Ltd. 48c2ecf20Sopenharmony_ci * Copyright 2017 Linaro Ltd. 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef __ZX_VGA_REGS_H__ 88c2ecf20Sopenharmony_ci#define __ZX_VGA_REGS_H__ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#define VGA_CMD_CFG 0x04 118c2ecf20Sopenharmony_ci#define VGA_CMD_TRANS BIT(6) 128c2ecf20Sopenharmony_ci#define VGA_CMD_COMBO BIT(5) 138c2ecf20Sopenharmony_ci#define VGA_CMD_RW BIT(4) 148c2ecf20Sopenharmony_ci#define VGA_SUB_ADDR 0x0c 158c2ecf20Sopenharmony_ci#define VGA_DEVICE_ADDR 0x10 168c2ecf20Sopenharmony_ci#define VGA_CLK_DIV_FS 0x14 178c2ecf20Sopenharmony_ci#define VGA_RXF_CTRL 0x20 188c2ecf20Sopenharmony_ci#define VGA_RX_FIFO_CLEAR BIT(7) 198c2ecf20Sopenharmony_ci#define VGA_DATA 0x24 208c2ecf20Sopenharmony_ci#define VGA_I2C_STATUS 0x28 218c2ecf20Sopenharmony_ci#define VGA_DEVICE_DISCONNECTED BIT(7) 228c2ecf20Sopenharmony_ci#define VGA_DEVICE_CONNECTED BIT(6) 238c2ecf20Sopenharmony_ci#define VGA_CLEAR_IRQ BIT(4) 248c2ecf20Sopenharmony_ci#define VGA_TRANS_DONE BIT(0) 258c2ecf20Sopenharmony_ci#define VGA_RXF_STATUS 0x30 268c2ecf20Sopenharmony_ci#define VGA_RXF_COUNT_SHIFT 2 278c2ecf20Sopenharmony_ci#define VGA_RXF_COUNT_MASK GENMASK(7, 2) 288c2ecf20Sopenharmony_ci#define VGA_AUTO_DETECT_PARA 0x34 298c2ecf20Sopenharmony_ci#define VGA_AUTO_DETECT_SEL 0x38 308c2ecf20Sopenharmony_ci#define VGA_DETECT_SEL_HAS_DEVICE BIT(1) 318c2ecf20Sopenharmony_ci#define VGA_DETECT_SEL_NO_DEVICE BIT(0) 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci#endif /* __ZX_VGA_REGS_H__ */ 34