1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright ASPEED Technology Inc.
4  */
5 #ifndef __AST2600_I2C_GLOBAL_H_
6 #define __AST2600_I2C_GLOBAL_H_
7 
8 #define AST2600_I2CG_ISR			0x00
9 #define AST2600_I2CG_SLAVE_ISR		0x04
10 #define AST2600_I2CG_OWNER		    0x08
11 #define AST2600_I2CG_CTRL		    0x0C
12 #define AST2600_I2CG_CLK_DIV_CTRL	0x10
13 
14 #define AST2600_I2CG_SLAVE_PKT_NAK	    BIT(4)
15 #define AST2600_I2CG_M_S_SEPARATE_INTR	BIT(3)
16 #define AST2600_I2CG_CTRL_NEW_REG	    BIT(2)
17 #define AST2600_I2CG_CTRL_NEW_CLK_DIV	BIT(1)
18 
19 #define AST2600_GLOBAL_INIT					\
20 			(AST2600_I2CG_SLAVE_PKT_NAK |	\
21 			AST2600_I2CG_CTRL_NEW_REG |		\
22 			AST2600_I2CG_CTRL_NEW_CLK_DIV)
23 #define I2CCG_DIV_CTRL 0xC6411208
24 
25 #endif				/* __AST2600_I2C_GLOBAL_H_ */
26