qemu/include/hw/misc
Hao Wu 380a37e498 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>
2021-03-12 12:48:56 +00:00
..
macio
a9scu.h
allwinner-cpucfg.h
allwinner-h3-ccu.h
allwinner-h3-dramc.h
allwinner-h3-sysctrl.h
allwinner-sid.h
arm11scu.h
arm_integrator_debug.h
armsse-cpu-pwrctrl.h
armsse-cpuid.h
armsse-mhu.h
aspeed_lpc.h
aspeed_scu.h
aspeed_sdmc.h
aspeed_xdma.h
auxbus.h
avr_power.h
bcm2835_cprman_internals.h
bcm2835_cprman.h
bcm2835_mbox_defs.h
bcm2835_mbox.h
bcm2835_mphi.h
bcm2835_property.h
bcm2835_rng.h
bcm2835_thermal.h
cbus.h
emc141x_regs.h
empty_slot.h
grlib_ahb_apb_pnp.h
imx6_ccm.h
imx6_src.h
imx6ul_ccm.h
imx7_ccm.h
imx7_gpr.h
imx7_snvs.h
imx25_ccm.h
imx31_ccm.h
imx_ccm.h
imx_rngc.h
iotkit-secctl.h
iotkit-sysctl.h
iotkit-sysinfo.h
ivshmem.h
led.h
mac_via.h
max111x.h
mchp_pfsoc_dmc.h
mchp_pfsoc_ioscb.h
mchp_pfsoc_sysreg.h
mips_cmgcr.h
mips_cpc.h
mips_itu.h
mos6522.h
mps2-fpgaio.h
mps2-scc.h
msf2-sysreg.h
npcm7xx_clk.h
npcm7xx_gcr.h
npcm7xx_mft.h
npcm7xx_pwm.h
npcm7xx_rng.h
nrf51_rng.h
pca9552_regs.h
pca9552.h
pvpanic.h
sifive_e_prci.h
sifive_test.h
sifive_u_otp.h
sifive_u_prci.h
stm32f2xx_syscfg.h
stm32f4xx_exti.h
stm32f4xx_syscfg.h
tmp105_regs.h
tz-mpc.h
tz-msc.h
tz-ppc.h
unimp.h
vmcoreinfo.h
xlnx-versal-xramc.h
zynq-xadc.h