]> git.ipfire.org Git - thirdparty/linux.git/commit
watchdog: sbsa: Update the W_IIDR Implementer bit mask to 0xFFF
authorNaina Mehta <naina.mehta@oss.qualcomm.com>
Fri, 21 Nov 2025 06:14:11 +0000 (11:44 +0530)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 18 Jan 2026 09:55:09 +0000 (10:55 +0100)
commita1a548c5eca62716c118134a8a1988277e8c5e96
tree8680b2804a41c23176b8123405d5b6011dad75b9
parentb0fd1f580bd1eaea1074408dd8ebbc6d3a1ba03c
watchdog: sbsa: Update the W_IIDR Implementer bit mask to 0xFFF

The implementer mask defined in the driver [1] captures bits 0-10,
whereas section C.4.2 of BSA specification [2] indicates that bits
0-11 of the W_IIDR register represent the implementer JEP106 code.
Update the SBSA_GWDT_IMPL_MASK corresponding to bits 0-11, while
at it update SBSA_GWDT_VERSION_MASK mask to use GENMASK.

[1] #define SBSA_GWDT_IMPL_MASK    0x7FF

[2] Implementer, bits [11:0]
Contains the JEP106 code of the company that implemented the
Generic Watchdog:
Bits[11:8] The JEP106 continuation code of the implementer.
Bit[7] Always 0
Bits [6:0] The JEP106 identity code of the implementer.

Signed-off-by: Naina Mehta <naina.mehta@oss.qualcomm.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/sbsa_gwdt.c