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: mediatek: mt8188: add wdt support

Support MT8188 watchdog device.

Signed-off-by: Runyang Chen <runyang.chen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/20221026063327.20037-4-Runyang.Chen@mediatek.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Runyang Chen and committed by
Wim Van Sebroeck
bc731365 fea58041

+6
+6
drivers/watchdog/mtk_wdt.c
··· 14 14 #include <dt-bindings/reset/mt7986-resets.h> 15 15 #include <dt-bindings/reset/mt8183-resets.h> 16 16 #include <dt-bindings/reset/mt8186-resets.h> 17 + #include <dt-bindings/reset/mt8188-resets.h> 17 18 #include <dt-bindings/reset/mt8192-resets.h> 18 19 #include <dt-bindings/reset/mt8195-resets.h> 19 20 #include <linux/delay.h> ··· 94 93 95 94 static const struct mtk_wdt_data mt8186_data = { 96 95 .toprgu_sw_rst_num = MT8186_TOPRGU_SW_RST_NUM, 96 + }; 97 + 98 + static const struct mtk_wdt_data mt8188_data = { 99 + .toprgu_sw_rst_num = MT8188_TOPRGU_SW_RST_NUM, 97 100 }; 98 101 99 102 static const struct mtk_wdt_data mt8192_data = { ··· 440 435 { .compatible = "mediatek,mt7986-wdt", .data = &mt7986_data }, 441 436 { .compatible = "mediatek,mt8183-wdt", .data = &mt8183_data }, 442 437 { .compatible = "mediatek,mt8186-wdt", .data = &mt8186_data }, 438 + { .compatible = "mediatek,mt8188-wdt", .data = &mt8188_data }, 443 439 { .compatible = "mediatek,mt8192-wdt", .data = &mt8192_data }, 444 440 { .compatible = "mediatek,mt8195-wdt", .data = &mt8195_data }, 445 441 { /* sentinel */ }