net: sparx5: add calendar bandwidth allocation support
authorSteen Hegelund <steen.hegelund@microchip.com>
Thu, 24 Jun 2021 07:07:56 +0000 (09:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Jun 2021 18:28:13 +0000 (11:28 -0700)
commit0a9d48ad0d09ce869ea44e405e066959aa5d5371
treee19adbcff3d56440a8d1b05b058d871467ca8760
parentd6fce5141929697a27f029c633433d487f6f62cb
net: sparx5: add calendar bandwidth allocation support

This configures the Sparx5 calendars according to the bandwidth
requested in the Device Tree nodes.
It also checks if the total requested bandwidth is within the
specs of the detected Sparx5 models limits.

Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
Signed-off-by: Bjarni Jonasson <bjarni.jonasson@microchip.com>
Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/sparx5/Makefile
drivers/net/ethernet/microchip/sparx5/sparx5_calendar.c [new file with mode: 0644]
drivers/net/ethernet/microchip/sparx5/sparx5_main.c
drivers/net/ethernet/microchip/sparx5/sparx5_main.h