1 /* SPDX-License-Identifier: MIT */ 2 #ifndef _XE_I2C_REGS_H_ 3 #define _XE_I2C_REGS_H_ 4 5 #include <linux/pci_regs.h> 6 7 #include "xe_reg_defs.h" 8 #include "xe_regs.h" 9 10 #define I2C_BRIDGE_OFFSET (SOC_BASE + 0xd9000) 11 #define I2C_CONFIG_SPACE_OFFSET (SOC_BASE + 0xf6000) 12 #define I2C_MEM_SPACE_OFFSET (SOC_BASE + 0xf7400) 13 14 #define REG_SG_REMAP_ADDR_PREFIX XE_REG(SOC_BASE + 0x0164) 15 #define REG_SG_REMAP_ADDR_POSTFIX XE_REG(SOC_BASE + 0x0168) 16 17 #define I2C_CONFIG_CMD XE_REG(I2C_CONFIG_SPACE_OFFSET + PCI_COMMAND) 18 #define I2C_CONFIG_PMCSR XE_REG(I2C_CONFIG_SPACE_OFFSET + 0x84) 19 20 #endif /* _XE_I2C_REGS_H_ */ 21