mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 18:56:46 +07:00
6219f432ec
Calculate ADCR_VTEMP25 using VTEMP25 at VREFH_ADC 3V3. Existing calculations consider the typical values provided in datasheet. Those typical values are valid for VREFH_ADC at 3.0V. VTEMP25 is different for different VREFH_ADC voltages. With VREFH_ADC at 3.3V, voltage at 25°C is 0.699V. Hence update the VTEMP25 to 0.699V which gives ADCR@Temp25 as 867. Formula for finding ADCR@Temp25: ADCR@Temp25 = (ADCR@Vdd * V@TEMP25 * 10) / VDDconv ADCR@Vdd for 12-Bit ADC = 4095 VDDconv = VREFH_ADC * 10 VREFH_ADC@3.3V ADCR@Temp25 = (4095 * .699 * 10) / 33 ADCR@Temp25 ~= 867 | VREFH_ADC | V@TEMP25 | VDDconv | ADCR@Temp25 | | 3.0V | 0.696mV | 30 | 950 | | 3.3V | 0.699mV | 33 | 867 | Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> Acked-by: Fugang Duan <B38611@freescale.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org> |
||
---|---|---|
.. | ||
ad799x.c | ||
ad7266.c | ||
ad7291.c | ||
ad7298.c | ||
ad7476.c | ||
ad7791.c | ||
ad7793.c | ||
ad7887.c | ||
ad7923.c | ||
ad_sigma_delta.c | ||
at91_adc.c | ||
axp288_adc.c | ||
berlin2-adc.c | ||
cc10001_adc.c | ||
da9150-gpadc.c | ||
exynos_adc.c | ||
Kconfig | ||
lp8788_adc.c | ||
Makefile | ||
max1027.c | ||
max1363.c | ||
mcp320x.c | ||
mcp3422.c | ||
men_z188_adc.c | ||
nau7802.c | ||
qcom-spmi-iadc.c | ||
qcom-spmi-vadc.c | ||
rockchip_saradc.c | ||
ti_am335x_adc.c | ||
ti-adc081c.c | ||
ti-adc128s052.c | ||
twl4030-madc.c | ||
twl6030-gpadc.c | ||
vf610_adc.c | ||
viperboard_adc.c | ||
xilinx-xadc-core.c | ||
xilinx-xadc-events.c | ||
xilinx-xadc.h |