developer | e5e687d | 2023-08-08 16:05:33 +0800 | [diff] [blame] | 1 | /* 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 | |
| 15 | enum wdt_cmd { |
| 16 | WDT_CMD_TRIGGER_TIMEOUT, |
| 17 | |
| 18 | __WDT_CMD_MAX, |
| 19 | }; |
| 20 | |
| 21 | struct tops_wdt_ser_data { |
| 22 | u32 timeout_cores; |
| 23 | }; |
| 24 | |
| 25 | int mtk_tops_wdt_trigger_timeout(enum core_id core); |
| 26 | int mtk_tops_wdt_init(struct platform_device *pdev); |
| 27 | int mtk_tops_wdt_deinit(struct platform_device *pdev); |
| 28 | #endif /* _TOPS_WDT_H_ */ |