summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2021-11-12 14:46:32 -0800
committerWim Van Sebroeck <wim@linux-watchdog.org>2021-12-28 13:59:07 +0100
commitd6b9c679bbac1d1d2fcac64391b4cadb91763a6f (patch)
tree3f2ba173a2ff29947e2fbfa330f3b9d949b5b4fa /include/linux/platform_data
parent17fffe91ba36d11c7b17be154ecc7c1ed31527eb (diff)
downloadlwn-d6b9c679bbac1d1d2fcac64391b4cadb91763a6f.tar.gz
lwn-d6b9c679bbac1d1d2fcac64391b4cadb91763a6f.zip
watchdog: bcm7038_wdt: Support platform data configuration
The BCM7038 watchdog driver needs to be able to obtain a specific clock name on BCM63xx platforms which is the "periph" clock ticking at 50MHz. make it possible to specify the clock name to obtain via platform data. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20211112224636.395101-4-f.fainelli@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/bcm7038_wdt.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/platform_data/bcm7038_wdt.h b/include/linux/platform_data/bcm7038_wdt.h
new file mode 100644
index 000000000000..e18cfd9ec8f9
--- /dev/null
+++ b/include/linux/platform_data/bcm7038_wdt.h
@@ -0,0 +1,8 @@
+#ifndef __BCM7038_WDT_PDATA_H
+#define __BCM7038_WDT_PDATA_H
+
+struct bcm7038_wdt_platform_data {
+ const char *clk_name;
+};
+
+#endif /* __BCM7038_WDT_PDATA_H */