This series patches merge all the reset numbers in one head file
v2 changes:
merge all the reset numbers in one head file,
instead of pass the reset number via DTS (v1).
v1 changes:
https://patchwork.kernel.org/patch/11688915/
https://patchwork.kernel.org/patch/11688925/
https://patchwork.kernel.org/patch/11688923/
Crystal Guo (3):
dt-bindings: watchdog: modify description for mt2712 and mt8183
dt-bindings: watchdog: add a new head file for toprgu reset-controllers
watchdog: mtk_wdt: merge all the reset numbers in one head file
Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 4 ++--
drivers/watchdog/mtk_wdt.c | 3 +--
include/dt-bindings/reset-controller/mtk-resets.h | 13 +++++++++++++
3 files changed, 16 insertions(+), 4 deletions(-)
create mode 100644 include/dt-bindings/reset-controller/mtk-resets.h
mt8xxx-resets.h actually just used to define TOPRGU_SW_RST_NUM.
Instead of resubmit a new mt8xxx-reset.h for a new IC, merge all
the reset numbers in one head file.
Signed-off-by: Crystal Guo <[email protected]>
---
drivers/watchdog/mtk_wdt.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c
index d6a6393..5000a49 100644
--- a/drivers/watchdog/mtk_wdt.c
+++ b/drivers/watchdog/mtk_wdt.c
@@ -9,8 +9,7 @@
* Based on sunxi_wdt.c
*/
-#include <dt-bindings/reset-controller/mt2712-resets.h>
-#include <dt-bindings/reset-controller/mt8183-resets.h>
+#include <dt-bindings/reset-controller/mtk-resets.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/init.h>
--
1.8.1.1.dirty