platform/mellanox: Add BlueField-3 support in the tmfifo driver
authorLiming Sun <limings@nvidia.com>
Tue, 18 Oct 2022 13:33:03 +0000 (09:33 -0400)
committerHans de Goede <hdegoede@redhat.com>
Wed, 16 Nov 2022 07:48:19 +0000 (08:48 +0100)
commitbc05ea63b39420fd561dcffba00753da90338ea8
tree00cb80fe488e753c58dd78b1c3183b8ae54af781
parentdb5e2a4ca0a7a5fe54f410590292ea2e91de6798
platform/mellanox: Add BlueField-3 support in the tmfifo driver

BlueField-3 uses the same control registers in tmfifo access but
at different addresses. This commit replaces the offset reference
with pointers, and set up these pointers in the probe functions
accordingly.

Signed-off-by: Liming Sun <limings@nvidia.com>
Reviewed-by: David Thompson <davthompson@nvidia.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20221018133303.243920-1-limings@nvidia.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/mellanox/mlxbf-tmfifo-regs.h
drivers/platform/mellanox/mlxbf-tmfifo.c