clocksource/drivers/sp804: Add support for Hisilicon sp804 timer
authorZhen Lei <thunder.leizhen@huawei.com>
Fri, 18 Sep 2020 13:22:35 +0000 (21:22 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 24 Sep 2020 08:51:04 +0000 (10:51 +0200)
commitbd5a1936ffa2b69032815775fa54fc1c422d49d5
tree55db2b06065ca6c0cb783282dd71d390899f3559
parent23c788cd48db9e2646fb5455f004e4a5626e4230
clocksource/drivers/sp804: Add support for Hisilicon sp804 timer

The ARM SP804 supports a maximum of 32-bit counter, but Hisilicon extends
it to 64-bit. That means, the registers: TimerXload, TimerXValue and
TimerXBGLoad are 64bits, all other registers are the same as those in the
SP804. The driver code can be completely reused except that the register
offset is different.

Use compatible = "hisilicon,sp804" mark as Hisilicon sp804 timer.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200918132237.3552-8-thunder.leizhen@huawei.com
drivers/clocksource/timer-sp804.c