]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rtc: loongson: Add Loongson-2K0300 support
authorBinbin Zhou <zhoubinbin@loongson.cn>
Sat, 17 Jan 2026 02:26:50 +0000 (10:26 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 30 Jan 2026 23:12:32 +0000 (00:12 +0100)
commit770a54accf80fa6b68df0753eb0c527a4ecf5402
tree3947e9468971f17711aef0e274c89a3413297a5d
parent5d4899d4859f812290bf2fc458a517781fe6eeca
rtc: loongson: Add Loongson-2K0300 support

The Loongson-2K0300's rtc hardware design is similar to that of the
Loongson-1B, but it does not support the alarm feature.

Introduce `LOONGSON_RTC_ALARM_WORKAROUND`, which indicates a chip that
does not support the alarm feature, and rewrite the related logic in
`loongson_rtc_alarm_setting()`.

Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Link: https://patch.msgid.link/abff68dda2fe6a6601a9e58b31e278d941297fce.1768616276.git.zhoubinbin@loongson.cn
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-loongson.c