1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-30 08:32:52 +08:00

New I2C register definitions

This commit is contained in:
Alex Forencich 2020-09-19 16:42:37 -07:00
parent 150f3e1768
commit 3284ec3848
2 changed files with 20 additions and 0 deletions

View File

@ -65,6 +65,16 @@ MQNIC_REG_FPGA_ID = 0x0040
MQNIC_REG_GPIO_OUT = 0x0100
MQNIC_REG_GPIO_IN = 0x0104
MQNIC_REG_GPIO_I2C_0 = 0x0110
MQNIC_REG_GPIO_I2C_1 = 0x0114
MQNIC_REG_GPIO_I2C_2 = 0x0118
MQNIC_REG_GPIO_I2C_3 = 0x011C
MQNIC_REG_GPIO_I2C_SCL_IN = 0x00000001
MQNIC_REG_GPIO_I2C_SCL_OUT = 0x00000002
MQNIC_REG_GPIO_I2C_SDA_IN = 0x00000100
MQNIC_REG_GPIO_I2C_SDA_OUT = 0x00000200
MQNIC_PHC_REG_FEATURES = 0x0000
MQNIC_PHC_REG_PTP_CUR_FNS = 0x0010
MQNIC_PHC_REG_PTP_CUR_NS = 0x0014

View File

@ -80,6 +80,16 @@ either expressed or implied, of The Regents of the University of California.
#define MQNIC_REG_GPIO_OUT 0x0100
#define MQNIC_REG_GPIO_IN 0x0104
#define MQNIC_REG_GPIO_I2C_0 0x0110
#define MQNIC_REG_GPIO_I2C_1 0x0114
#define MQNIC_REG_GPIO_I2C_2 0x0118
#define MQNIC_REG_GPIO_I2C_3 0x011C
#define MQNIC_REG_GPIO_I2C_SCL_IN 0x00000001
#define MQNIC_REG_GPIO_I2C_SCL_OUT 0x00000002
#define MQNIC_REG_GPIO_I2C_SDA_IN 0x00000100
#define MQNIC_REG_GPIO_I2C_SDA_OUT 0x00000200
#define MQNIC_PHC_REG_FEATURES 0x0000
#define MQNIC_PHC_REG_PTP_CUR_FNS 0x0010
#define MQNIC_PHC_REG_PTP_CUR_NS 0x0014