adc: ADS7052 correct spi configuration
SPI configuration did not set bit ordering or more importantly the clock polarity which seemed to be misconfigured. Setting this corrects one more quirk when working with this part on the TDK Robokit1 Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
This commit is contained in:
parent
229d049d4d
commit
da5030eae1
|
@ -288,7 +288,8 @@ static const struct adc_driver_api ads7052_api = {
|
|||
#endif
|
||||
};
|
||||
|
||||
#define ADC_ADS7052_SPI_CFG SPI_OP_MODE_MASTER | SPI_MODE_CPHA | SPI_WORD_SET(8)
|
||||
#define ADC_ADS7052_SPI_CFG \
|
||||
SPI_OP_MODE_MASTER | SPI_MODE_CPOL | SPI_MODE_CPHA | SPI_WORD_SET(8) | SPI_TRANSFER_MSB
|
||||
|
||||
#define ADC_ADS7052_INIT(n) \
|
||||
\
|
||||
|
|
Loading…
Reference in a new issue