X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Finclude%2Flinux%2Fmfd%2Fti_am335x_tscadc.h;fp=kernel%2Finclude%2Flinux%2Fmfd%2Fti_am335x_tscadc.h;h=175c82699e9d68a84e034295c6ef14aaf6e6e309;hb=52f993b8e89487ec9ee15a7fb4979e0f09a45b27;hp=1fd50dcfe47c629b75e9d8cfe855cad3aba8a1fa;hpb=c189ccac5702322ed843fe17057035b7222a59b6;p=kvmfornfv.git diff --git a/kernel/include/linux/mfd/ti_am335x_tscadc.h b/kernel/include/linux/mfd/ti_am335x_tscadc.h index 1fd50dcfe..175c82699 100644 --- a/kernel/include/linux/mfd/ti_am335x_tscadc.h +++ b/kernel/include/linux/mfd/ti_am335x_tscadc.h @@ -138,16 +138,16 @@ /* * time in us for processing a single channel, calculated as follows: * - * num cycles = open delay + (sample delay + conv time) * averaging + * max num cycles = open delay + (sample delay + conv time) * averaging * - * num cycles: 152 + (1 + 13) * 16 = 376 + * max num cycles: 262143 + (255 + 13) * 16 = 266431 * * clock frequency: 26MHz / 8 = 3.25MHz * clock period: 1 / 3.25MHz = 308ns * - * processing time: 376 * 308ns = 116us + * max processing time: 266431 * 308ns = 83ms(approx) */ -#define IDLE_TIMEOUT 116 /* microsec */ +#define IDLE_TIMEOUT 83 /* milliseconds */ #define TSCADC_CELLS 2