Skip to content

Commit 1aea3e1

Browse files
Kathiravan ThirumoorthyWim Van Sebroeck
authored andcommitted
watchdog: qcom: introduce the device data for IPQ5424 watchdog device
To retrieve the restart reason from IMEM, certain device specific data like IMEM compatible to lookup, location of IMEM to read, etc should be defined. To achieve that, introduce the separate device data for IPQ5424 and add the required details subsequently. Signed-off-by: Kathiravan Thirumoorthy <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent f55937e commit 1aea3e1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/watchdog/qcom-wdt.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ static const struct qcom_wdt_match_data match_data_apcs_tmr = {
181181
.max_tick_count = 0x10000000U,
182182
};
183183

184+
static const struct qcom_wdt_match_data match_data_ipq5424 = {
185+
.offset = reg_offset_data_kpss,
186+
.pretimeout = true,
187+
.max_tick_count = 0xFFFFFU,
188+
};
189+
184190
static const struct qcom_wdt_match_data match_data_kpss = {
185191
.offset = reg_offset_data_kpss,
186192
.pretimeout = true,
@@ -322,6 +328,7 @@ static const struct dev_pm_ops qcom_wdt_pm_ops = {
322328
};
323329

324330
static const struct of_device_id qcom_wdt_of_table[] = {
331+
{ .compatible = "qcom,apss-wdt-ipq5424", .data = &match_data_ipq5424 },
325332
{ .compatible = "qcom,kpss-timer", .data = &match_data_apcs_tmr },
326333
{ .compatible = "qcom,scss-timer", .data = &match_data_apcs_tmr },
327334
{ .compatible = "qcom,kpss-wdt", .data = &match_data_kpss },

0 commit comments

Comments
 (0)