mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
watchdog: mediatek: Add wdt/toprgu resets for mt6589
According to Android sources, mt6589 has 12 reset bits in the WDT_SWSYSRST register. Populate toprgu_sw_rst_num to allow toprgu resets in device trees of the many compatible devices. Signed-off-by: Luca Leonardo Scorcia <l.scorcia@gmail.com> Link: https://patch.msgid.link/20260908174259.9009-2-l.scorcia@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
7c0fd67f93
commit
f12d5facde
|
|
@ -66,6 +66,7 @@
|
|||
#define DRV_NAME "mtk-wdt"
|
||||
#define DRV_VERSION "1.0"
|
||||
|
||||
#define MT6589_TOPRGU_SW_RST_NUM 12
|
||||
#define MT7988_TOPRGU_SW_RST_NUM 24
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
|
|
@ -90,6 +91,10 @@ static const struct mtk_wdt_data mt2712_data = {
|
|||
.toprgu_sw_rst_num = MT2712_TOPRGU_SW_RST_NUM,
|
||||
};
|
||||
|
||||
static const struct mtk_wdt_data mt6589_data = {
|
||||
.toprgu_sw_rst_num = MT6589_TOPRGU_SW_RST_NUM,
|
||||
};
|
||||
|
||||
static const struct mtk_wdt_data mt6735_data = {
|
||||
.toprgu_sw_rst_num = MT6735_TOPRGU_RST_NUM,
|
||||
};
|
||||
|
|
@ -543,7 +548,7 @@ static int mtk_wdt_resume(struct device *dev)
|
|||
|
||||
static const struct of_device_id mtk_wdt_dt_ids[] = {
|
||||
{ .compatible = "mediatek,mt2712-wdt", .data = &mt2712_data },
|
||||
{ .compatible = "mediatek,mt6589-wdt" },
|
||||
{ .compatible = "mediatek,mt6589-wdt", .data = &mt6589_data },
|
||||
{ .compatible = "mediatek,mt6735-wdt", .data = &mt6735_data },
|
||||
{ .compatible = "mediatek,mt6795-wdt", .data = &mt6795_data },
|
||||
{ .compatible = "mediatek,mt7986-wdt", .data = &mt7986_data },
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user