summaryrefslogtreecommitdiffstats
path: root/docs/system
diff options
context:
space:
mode:
authorHao Wu2021-03-11 19:08:52 +0100
committerPeter Maydell2021-03-12 13:48:56 +0100
commit380a37e49891f8d9462124f593516a9ced58343a (patch)
tree1c84cd2ebbbd97b42c713a58935724a7cf4170ce /docs/system
parenthw/misc: Add GPIOs for duty in NPCM7xx PWM (diff)
downloadqemu-380a37e49891f8d9462124f593516a9ced58343a.tar.gz
qemu-380a37e49891f8d9462124f593516a9ced58343a.tar.xz
qemu-380a37e49891f8d9462124f593516a9ced58343a.zip
hw/misc: Add NPCM7XX MFT Module
This patch implements Multi Function Timer (MFT) module for NPCM7XX. This module is mainly used to configure PWM fans. It has just enough functionality to make the PWM fan kernel module work. The module takes two input, the max_rpm of a fan (modifiable via QMP) and duty cycle (a GPIO from the PWM module.) The actual measured RPM is equal to max_rpm * duty_cycle / NPCM7XX_PWM_MAX_DUTY. The RPM is measured as a counter compared to a prescaled input clock. The kernel driver reads this counter and report to user space. Refs: https://github.com/torvalds/linux/blob/master/drivers/hwmon/npcm750-pwm-fan.c Reviewed-by: Doug Evans <dje@google.com> Reviewed-by: Tyrone Ting <kfting@nuvoton.com> Signed-off-by: Hao Wu <wuhaotsh@google.com> Message-id: 20210311180855.149764-3-wuhaotsh@google.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'docs/system')
0 files changed, 0 insertions, 0 deletions