mfd: intel-m10-bmc: Expose MAC address and count
authorRuss Weight <russell.h.weight@intel.com>
Thu, 14 Jan 2021 23:16:48 +0000 (15:16 -0800)
committerLee Jones <lee.jones@linaro.org>
Mon, 8 Feb 2021 13:54:25 +0000 (13:54 +0000)
commit296f5568c6ee906e2a8db00adc751674f1745bd8
tree5ba9bdf7057b50b420349d087b69406153ee8f8c
parent92eba6802c2b1ffb30f1454e9d99ef980b94bbbf
mfd: intel-m10-bmc: Expose MAC address and count

Create two sysfs entries for exposing the MAC address and count
from the MAX10 BMC register space. The MAC address is the first
in a sequential block of MAC addresses reserved for the FPGA card.
The MAC count is the number of MAC addresses in the reserved block.

Signed-off-by: Russ Weight <russell.h.weight@intel.com>
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Documentation/ABI/testing/sysfs-driver-intel-m10-bmc
drivers/mfd/intel-m10-bmc.c
include/linux/mfd/intel-m10-bmc.h