]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: sparx5: add support for lan969x targets and core clock
authorDaniel Machon <daniel.machon@microchip.com>
Wed, 23 Oct 2024 22:01:20 +0000 (00:01 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 31 Oct 2024 01:08:04 +0000 (18:08 -0700)
commit1ebaa5e189151a396de3fcd280078eaf7b922920
tree5f093b0c66d1f6e8682bad417cab7cea4a43d7c5
parent4ddf7ccfdf70364010005b0b695b1a0d92677425
net: sparx5: add support for lan969x targets and core clock

In preparation for lan969x, add lan969x targets to
sparx5_target_chiptype and set the core clock frequency for these
throughout. Lan969x only supports a core clock frequency of 328MHz.

Also, set the policer update internal (pol_upd_int) matching the 328 MHz
frequency of the lan969x targets.

Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://patch.msgid.link/20241024-sparx5-lan969x-switch-driver-2-v2-1-a0b5fae88a0f@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/sparx5/sparx5_calendar.c
drivers/net/ethernet/microchip/sparx5/sparx5_main.c
drivers/net/ethernet/microchip/sparx5/sparx5_main.h
drivers/net/ethernet/microchip/sparx5/sparx5_ptp.c