[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240119084328.3135503-4-lma@chromium.org>
Date: Fri, 19 Jan 2024 08:43:27 +0000
From: Lukasz Majczak <lma@...omium.org>
To: Gwendal Grignou <gwendal@...omium.org>,
Tzung-Bi Shih <tzungbi@...nel.org>,
Radoslaw Biernacki <biernacki@...gle.com>,
Wim Van Sebroeck <wim@...ux-watchdog.org>,
Lee Jones <lee@...nel.org>,
Benson Leung <bleung@...omium.org>,
Guenter Roeck <groeck@...omium.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
linux-watchdog@...r.kernel.org,
linux-kernel@...r.kernel.org,
chrome-platform@...ts.linux.dev
Cc: Lukasz Majczak <lma@...omium.org>
Subject: [PATCH v3 3/3] mfd: cros_ec: Register EC-based watchdog subdevice
Add ChromeOS EC-based watchdog as EC subdevice.
Signed-off-by: Lukasz Majczak <lma@...omium.org>
---
drivers/mfd/cros_ec_dev.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c
index 603b1cd52785..4996220ce64b 100644
--- a/drivers/mfd/cros_ec_dev.c
+++ b/drivers/mfd/cros_ec_dev.c
@@ -91,6 +91,10 @@ static const struct mfd_cell cros_usbpd_notify_cells[] = {
{ .name = "cros-usbpd-notify", },
};
+static const struct mfd_cell cros_ec_wdt_cells[] = {
+ { .name = "cros-ec-wdt", }
+};
+
static const struct cros_feature_to_cells cros_subdevices[] = {
{
.id = EC_FEATURE_CEC,
@@ -107,6 +111,11 @@ static const struct cros_feature_to_cells cros_subdevices[] = {
.mfd_cells = cros_usbpd_charger_cells,
.num_cells = ARRAY_SIZE(cros_usbpd_charger_cells),
},
+ {
+ .id = EC_FEATURE_HANG_DETECT,
+ .mfd_cells = cros_ec_wdt_cells,
+ .num_cells = ARRAY_SIZE(cros_ec_wdt_cells),
+ },
};
static const struct mfd_cell cros_ec_platform_cells[] = {
--
2.43.0.429.g432eaa2c6b-goog
Powered by blists - more mailing lists