summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8173/include
diff options
context:
space:
mode:
authorTristan Shieh <tristan.shieh@mediatek.com>2018-06-12 14:10:09 +0800
committerPatrick Georgi <pgeorgi@google.com>2018-06-21 09:39:40 +0000
commite96a6d26a6dcef86a41233163a4934e52da10235 (patch)
tree8e08fadcb286ee731c3a25da48d4928b6dfbe38a /src/soc/mediatek/mt8173/include
parent1fdb76945a9d06bbff37dee9da69e13a86c933f4 (diff)
mediatek: Share watchdog timer code among similar SOCs
Refactor watchdog timer (WDT) code which will be reused among similar SOCs. BUG=b:80501386 BRANCH=none TEST=Boots correctly on Elm Change-Id: I745c2f204924d9eee1941c0f3e9b6ba45cfb1958 Signed-off-by: Tristan Shieh <tristan.shieh@mediatek.com> Reviewed-on: https://review.coreboot.org/27024 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/mt8173/include')
-rw-r--r--src/soc/mediatek/mt8173/include/soc/wdt.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/mediatek/mt8173/include/soc/wdt.h b/src/soc/mediatek/mt8173/include/soc/wdt.h
index 9ebed640d5..ddca10290f 100644
--- a/src/soc/mediatek/mt8173/include/soc/wdt.h
+++ b/src/soc/mediatek/mt8173/include/soc/wdt.h
@@ -13,12 +13,12 @@
* GNU General Public License for more details.
*/
-#ifndef SOC_MEDIATEK_MT8173_WDT_H
-#define SOC_MEDIATEK_MT8173_WDT_H
+#ifndef SOC_MEDIATEK_COMMON_WDT_H
+#define SOC_MEDIATEK_COMMON_WDT_H
#include <stdint.h>
-struct mt8173_wdt_regs {
+struct mtk_wdt_regs {
u32 wdt_mode;
u32 wdt_length;
u32 wdt_restart;
@@ -50,4 +50,4 @@ enum {
int mtk_wdt_init(void);
-#endif /* SOC_MEDIATEK_MT8173_WDT_H */
+#endif /* SOC_MEDIATEK_COMMON_WDT_H */