1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Add perout offset and stride defines

This commit is contained in:
Alex Forencich 2019-12-30 20:45:56 -08:00
parent f642bb7f7e
commit 8aeea9e110
2 changed files with 4 additions and 1 deletions

View File

@ -93,6 +93,9 @@ either expressed or implied, of The Regents of the University of California.
#define MQNIC_PHC_REG_PTP_ADJ_COUNT 0x0058
#define MQNIC_PHC_REG_PTP_ADJ_ACTIVE 0x005C
#define MQNIC_PHC_PEROUT_OFFSET 0x60
#define MQNIC_PHC_PEROUT_STRIDE 0x40
#define MQNIC_PHC_REG_PEROUT_CTRL 0x0000
#define MQNIC_PHC_REG_PEROUT_STATUS 0x0004
#define MQNIC_PHC_REG_PEROUT_START_FNS 0x0010

View File

@ -168,7 +168,7 @@ static int mqnic_phc_perout(struct ptp_clock_info *ptp, int on, struct ptp_perou
return -EINVAL;
}
hw_addr = mdev->phc_hw_addr + 0x60;
hw_addr = mdev->phc_hw_addr + MQNIC_PHC_PEROUT_OFFSET;
if (!on)
{