mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 18:26:39 +07:00
60263dcd82
Till now we used clockevent from generic ARC driver. This was enough as long as we worked with simple multicore SoC. When we are working with multithread SoC each HW thread can be scheduled to receive timer interrupt using timer mask register. This patch will provide a way to control clock events per HW thread. The design idea is that for each core there is dedicated register (TSI) serving all 16 HW threads. The register is a bitmask with one bit for each HW thread. When HW thread wants that next expiration of timer interrupt will hit it then the proper bit should be set in this dedicated register. When timer expires all HW threads within this core which their bit is set at the TSI register will be interrupted. Driver can be used from device tree by: compatible = "ezchip,nps400-timer0" <-- for clocksource compatible = "ezchip,nps400-timer1" <-- for clockevent Note that name convention for timer0/timer1 was taken from legacy ARC design. This design is our base before adding HW threads. For backward compatibility we keep "ezchip,nps400-timer" for clocksource Signed-off-by: Noam Camus <noamca@mellanox.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Rob Herring <robh@kernel.org> |
||
---|---|---|
.. | ||
allwinner,sun4i-timer.txt | ||
allwinner,sun5i-a13-hstimer.txt | ||
amlogic,meson6-timer.txt | ||
arm,mps2-timer.txt | ||
arm,sp804.txt | ||
brcm,bcm2835-system-timer.txt | ||
brcm,kona-timer.txt | ||
cadence,ttc-timer.txt | ||
cirrus,clps711x-timer.txt | ||
digicolor-timer.txt | ||
energymicro,efm32-timer.txt | ||
ezchip,nps400-timer0.txt | ||
ezchip,nps400-timer1.txt | ||
fsl,ftm-timer.txt | ||
fsl,imxgpt.txt | ||
img,pistachio-gptimer.txt | ||
jcore,pit.txt | ||
lsi,zevio-timer.txt | ||
marvell,armada-370-xp-timer.txt | ||
marvell,orion-timer.txt | ||
mediatek,mtk-timer.txt | ||
moxa,moxart-timer.txt | ||
nvidia,tegra20-timer.txt | ||
nvidia,tegra30-timer.txt | ||
nxp,lpc3220-timer.txt | ||
oxsemi,rps-timer.txt | ||
renesas,8bit-timer.txt | ||
renesas,16bit-timer.txt | ||
renesas,cmt.txt | ||
renesas,mtu2.txt | ||
renesas,tmu.txt | ||
renesas,tpu.txt | ||
rockchip,rk-timer.txt | ||
samsung,exynos4210-mct.txt | ||
snps,arc-timer.txt | ||
snps,archs-gfrc.txt | ||
snps,archs-rtc.txt | ||
st,stih407-lpc | ||
st,stm32-timer.txt | ||
stericsson-u300-apptimer.txt | ||
ti,keystone-timer.txt |