blob: b70bf638cab4ca364a5694238672d95e40946ab0 [file] [log] [blame]
developere5e687d2023-08-08 16:05:33 +08001/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Copyright (c) 2023 MediaTek Inc. All Rights Reserved.
4 *
5 * Author: Alvin Kuo <alvin.kuog@mediatek.com>
6 */
7
8#ifndef _TOPS_WDT_H_
9#define _TOPS_WDT_H_
10
11#include <linux/platform_device.h>
12
13#include "tops.h"
14
15enum wdt_cmd {
16 WDT_CMD_TRIGGER_TIMEOUT,
17
18 __WDT_CMD_MAX,
19};
20
21struct tops_wdt_ser_data {
22 u32 timeout_cores;
23};
24
25int mtk_tops_wdt_trigger_timeout(enum core_id core);
26int mtk_tops_wdt_init(struct platform_device *pdev);
27int mtk_tops_wdt_deinit(struct platform_device *pdev);
28#endif /* _TOPS_WDT_H_ */