]> git.baikalelectronics.ru Git - kernel.git/commit
bgmac: add bgmac_umac_*() helpers for accessing UniMAC registers
authorRafał Miłecki <rafal@milecki.pl>
Thu, 7 Jan 2021 18:00:49 +0000 (19:00 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Jan 2021 03:17:28 +0000 (19:17 -0800)
commitbbccb63173d556246679cde4b89f800502dfa587
tree5d84341160d6a02d76133044b8ff0a2a4acad87b
parent0ada9a94a99cbea704e94d00b19aecee9b25f4dc
bgmac: add bgmac_umac_*() helpers for accessing UniMAC registers

UniMAC is a hardware block commonly used in Broadcom Ethernet controllers
that should get its own header file. Not every controller has it mapped at
the 0x800 offset so add bgmac access helpers. They will allow using
shared register defines.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210107180051.1542-1-zajec5@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bgmac.c
drivers/net/ethernet/broadcom/bgmac.h