Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

watchdog: mtk_wdt: mt7986: Add toprgu reset controller support

Besides watchdog, the mt7986 toprgu module also provides software reset
functionality for various peripheral subsystems
(eg, ethernet, pcie, and connectivity)

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220105100456.7126-3-sam.shih@mediatek.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Sam Shih and committed by
Wim Van Sebroeck
711a5b25 2dd441f1

+6
+6
drivers/watchdog/mtk_wdt.c
··· 10 10 */ 11 11 12 12 #include <dt-bindings/reset/mt2712-resets.h> 13 + #include <dt-bindings/reset/mt7986-resets.h> 13 14 #include <dt-bindings/reset/mt8183-resets.h> 14 15 #include <dt-bindings/reset/mt8186-resets.h> 15 16 #include <dt-bindings/reset/mt8192-resets.h> ··· 76 75 77 76 static const struct mtk_wdt_data mt2712_data = { 78 77 .toprgu_sw_rst_num = MT2712_TOPRGU_SW_RST_NUM, 78 + }; 79 + 80 + static const struct mtk_wdt_data mt7986_data = { 81 + .toprgu_sw_rst_num = MT7986_TOPRGU_SW_RST_NUM, 79 82 }; 80 83 81 84 static const struct mtk_wdt_data mt8183_data = { ··· 428 423 static const struct of_device_id mtk_wdt_dt_ids[] = { 429 424 { .compatible = "mediatek,mt2712-wdt", .data = &mt2712_data }, 430 425 { .compatible = "mediatek,mt6589-wdt" }, 426 + { .compatible = "mediatek,mt7986-wdt", .data = &mt7986_data }, 431 427 { .compatible = "mediatek,mt8183-wdt", .data = &mt8183_data }, 432 428 { .compatible = "mediatek,mt8186-wdt", .data = &mt8186_data }, 433 429 { .compatible = "mediatek,mt8192-wdt", .data = &mt8192_data },