tests/qtest: Test PWM fan RPM using MFT in PWM test
commit999be4a2d3d156ba38d4620e3dbfc8851943874f
authorHao Wu <wuhaotsh@google.com>
Thu, 11 Mar 2021 18:08:55 +0000 (11 10:08 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 12 Mar 2021 12:50:36 +0000 (12 12:50 +0000)
tree3f657f374b8d0042ce86045b6aba79e61d814366
parenta9d3d7b17e5a3c246ecf4e420d2d4bb089a8d7c3
tests/qtest: Test PWM fan RPM using MFT in PWM test

This patch adds testing of PWM fan RPMs in the existing npcm7xx pwm
test. It tests whether the MFT module can measure correct fan values
for a PWM fan in NPCM7XX boards.

Reviewed-by: Doug Evans <dje@google.com>
Reviewed-by: Tyrone Ting <kfting@nuvoton.com>
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20210311180855.149764-6-wuhaotsh@google.com
[PMM: fixed format strings for printing uint64_t]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/qtest/npcm7xx_pwm-test.c