diff options
author | Lukasz Majczak <lma@chromium.org> | 2024-01-19 09:43:27 +0100 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-02-23 15:58:01 +0100 |
commit | 6cea614ba78d6b78e64e39f5ccdfad4aac1d0110 (patch) | |
tree | 74400312e6ac50769d2d8f14d6959ab50731438d | |
parent | dt-bindings: mfd: qcom,tcsr: Add compatibles for QCM2290 and SM6115 (diff) | |
download | linux-6cea614ba78d6b78e64e39f5ccdfad4aac1d0110.tar.xz linux-6cea614ba78d6b78e64e39f5ccdfad4aac1d0110.zip |
mfd: cros_ec: Register EC-based watchdog subdevice
Add ChromeOS EC-based watchdog as EC subdevice.
Signed-off-by: Lukasz Majczak <lma@chromium.org>
Link: https://lore.kernel.org/r/20240119084328.3135503-4-lma@chromium.org
Signed-off-by: Lee Jones <lee@kernel.org>
-rw-r--r-- | drivers/mfd/cros_ec_dev.c | 9 |
1 files changed, 9 insertions, 0 deletions
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[] = { |