Skip to content

Commit 4c2703d

Browse files
vkochan-plvdavem330
authored andcommitted
net: marvell: prestera: Add PCI interface support
Add PCI interface driver for Prestera Switch ASICs family devices, which provides: - Firmware loading mechanism - Requests & events handling to/from the firmware - Access to the firmware on the bus level The firmware has to be loaded each time the device is reset. The driver is loading it from: /lib/firmware/mrvl/prestera/mvsw_prestera_fw-v{MAJOR}.{MINOR}.img The full firmware image version is located within the internal header and consists of 3 numbers - MAJOR.MINOR.PATCH. Additionally, driver has hard-coded minimum supported firmware version which it can work with: MAJOR - reflects the support on ABI level between driver and loaded firmware, this number should be the same for driver and loaded firmware. MINOR - this is the minimum supported version between driver and the firmware. PATCH - indicates only fixes, firmware ABI is not changed. Firmware image file name contains only MAJOR and MINOR numbers to make driver be compatible with any PATCH version. Co-developed-by: Oleksandr Mazur <[email protected]> Signed-off-by: Oleksandr Mazur <[email protected]> Signed-off-by: Vadym Kochan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 501ef30 commit 4c2703d

File tree

3 files changed

+782
-0
lines changed

3 files changed

+782
-0
lines changed

drivers/net/ethernet/marvell/prestera/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,14 @@ config PRESTERA
1111

1212
To compile this driver as a module, choose M here: the
1313
module will be called prestera.
14+
15+
config PRESTERA_PCI
16+
tristate "PCI interface driver for Marvell Prestera Switch ASICs family"
17+
depends on PCI && HAS_IOMEM && PRESTERA
18+
default PRESTERA
19+
help
20+
This is implementation of PCI interface support for Marvell Prestera
21+
Switch ASICs family.
22+
23+
To compile this driver as a module, choose M here: the
24+
module will be called prestera_pci.

drivers/net/ethernet/marvell/prestera/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
obj-$(CONFIG_PRESTERA) += prestera.o
33
prestera-objs := prestera_main.o prestera_hw.o prestera_dsa.o \
44
prestera_rxtx.o
5+
6+
obj-$(CONFIG_PRESTERA_PCI) += prestera_pci.o

0 commit comments

Comments
 (0)