Skip to content

Commit 776dbd8

Browse files
committed
iio: adc: at91-sama5d2_adc: fix AT91_SAMA5D2_MR_TRACKTIM_MAX
All ADC HW versions handled by this driver (SAMA5D2, SAM9X60, SAMA7G5) have MR.TRACKTIM on 4 bits. Fix AT91_SAMA5D2_MR_TRACKTIM_MAX to reflect this. Fixes: 27e1771 ("iio:adc:at91_adc8xx: introduce new atmel adc driver") Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
1 parent 1e8ca63 commit 776dbd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iio/adc/at91-sama5d2_adc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ struct at91_adc_reg_layout {
7777
#define AT91_SAMA5D2_MR_ANACH BIT(23)
7878
/* Tracking Time */
7979
#define AT91_SAMA5D2_MR_TRACKTIM(v) ((v) << 24)
80-
#define AT91_SAMA5D2_MR_TRACKTIM_MAX 0xff
80+
#define AT91_SAMA5D2_MR_TRACKTIM_MAX 0xf
8181
/* Transfer Time */
8282
#define AT91_SAMA5D2_MR_TRANSFER(v) ((v) << 28)
8383
#define AT91_SAMA5D2_MR_TRANSFER_MAX 0x3

0 commit comments

Comments
 (0)