]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/ast: Use constants for WDT registers
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 27 Mar 2026 13:32:59 +0000 (14:32 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 8 Apr 2026 09:04:49 +0000 (11:04 +0200)
commita0320ef5a99090d5c5ee1f5fd40409b0c0035430
treec05fda0c694af8aee9e4da4ac68559ef6807ef58
parentf9f57e03d2c661d5f8d46886d407ad648b8b670f
drm/ast: Use constants for WDT registers

WDT is the Watchdog timer. WDC registers are located at the memory
range at [0x1e785000, 0x1e785fff]. There are currently up to 8
watchdog timers in the range, of which 2 are being used by AST2500.

Refer to them with macros named AST_REG_WDT<n>, where <n> is the byte
offset into the watchdog timer's memory range. Each macro also takes
the index of the watchdog timer to access. A new watchdog timer starts
at each 0x40 byte offset.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patch.msgid.link/20260327133532.79696-8-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_2500.c
drivers/gpu/drm/ast/ast_reg.h