Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
axi_ad9361: Fixup LVDS RX_FRAME (#916)
The rx_error_r* registers were miss-implemented, they intended to be the negate of valid {rx_frame, rx_frame_s} but only took rx_frame_s into check. As an error for the current adc_data is also improper, because a 2Rx takes 4 clock cycles to fulfil, while {rx_frame, rx_frame_s} only look back 2 clock cycles. Change the logic to have rx_error solely as a link stable signal. Relevant information: AD9361 operates in DDR. AD9361 operating register values according to drivers: reg 0x010 value 0xC8[2] -> Rx Frame Pulse Mode : 50% duty cycle reg 0x011 value 0x00[2] -> Invert Rx Frame : don't rx_r1_mode is ADC_COMMON 0x0011[2] R1_MODE with: clear: 2 channels set: 1 channel Signed-off-by: Jorge Marques <jorge.marques@analog.com>
- Loading branch information