[PATCH v3 0/2] MediaTek SoC ARM/ARM64 System Timer

From: AngeloGioacchino Del Regno
Date: Wed May 18 2022 - 07:24:49 EST


In an effort to give some love to the apparently forgotten MT6795 SoC,
I am upstreaming more components that are necessary to support platforms
powered by this one apart from a simple boot to serial console.

This series introduces support to start the System Timer for the CPU
cores found in various MediaTek SoCs including, but not limited to the
MT6795 Helio X10 - and will most probably unblock many developers for
the upstreaming of various platforms.

For a broad overview of why/what/when, please look at the description
of patch [2/2] in this series.

Tested on a MT6795 Sony Xperia M5 (codename "Holly") smartphone.

Changes in v3:
- Merged mtk_cpux_{enable,disable}_irq() as one mtk_cpux_set_irq() function
as suggested by Matthias

Changes in v2:
- Added back a lost line in commit 2/2 (sorry, commit didn't get amended...!)
- Tested again for safety

AngeloGioacchino Del Regno (2):
dt-bindings: timer: mediatek: Add CPUX System Timer and MT6795
compatible
clocksource/drivers/timer-mediatek: Implement CPUXGPT timers

.../bindings/timer/mediatek,mtk-timer.txt | 4 +
drivers/clocksource/timer-mediatek.c | 114 ++++++++++++++++++
2 files changed, 118 insertions(+)

--
2.35.1