Skip to content

Commit

Permalink
drivers: iio: adc: cf_axi_adc.h: Add missing reg
Browse files Browse the repository at this point in the history
Add reg REG_CNTRL_3, CRC_EN and NUM_LANES mask.
This is necessary for AD7768/AD7768-4 ADC driver.

Signed-off-by: Ana-Maria Cusco <[email protected]>
  • Loading branch information
acusco authored and dbogdan committed Aug 22, 2023
1 parent 09e6aac commit 6e9ea0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/iio/adc/cf_axi_adc.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#define ADI_MMCM_RSTN (1 << 1)

#define ADI_REG_CNTRL 0x0044
#define ADI_NUM_LANES(x) (((x) & 0x1F) << 8)
#define ADI_SYNC (1 << 3)
#define ADI_R1_MODE (1 << 2)
#define ADI_DDR_EDGESEL (1 << 1)
Expand All @@ -43,6 +44,9 @@
#define ADI_EXT_SYNC_DISARM (1 << 2)
#define ADI_MANUAL_SYNC_REQUEST (1 << 8)

#define ADI_REG_CNTRL_3 0x004c
#define ADI_CRC_EN (1 << 8)

#define ADI_REG_CLK_FREQ 0x0054
#define ADI_CLK_FREQ(x) (((x) & 0xFFFFFFFF) << 0)
#define ADI_TO_CLK_FREQ(x) (((x) >> 0) & 0xFFFFFFFF)
Expand Down

0 comments on commit 6e9ea0a

Please sign in to comment.