kernel: add module to support SFP cages
Enables kernel SFP case support. Signed-off-by: René van Dorst <opensource@vdorst.com>
This commit is contained in:
		 René van Dorst
					René van Dorst
				
			
				
					committed by
					
						 Alexander Couzens
						Alexander Couzens
					
				
			
			
				
	
			
			
			 Alexander Couzens
						Alexander Couzens
					
				
			
						parent
						
							6d924706a6
						
					
				
				
					commit
					ec2f7a47d3
				
			| @@ -1141,3 +1141,23 @@ define KernelPackage/mlx5-core/description | |||||||
| endef | endef | ||||||
|  |  | ||||||
| $(eval $(call KernelPackage,mlx5-core)) | $(eval $(call KernelPackage,mlx5-core)) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | define KernelPackage/sfp | ||||||
|  |   SUBMENU:=$(NETWORK_DEVICES_MENU) | ||||||
|  |   TITLE:=SFP cage support | ||||||
|  |   DEPENDS:=+kmod-i2c-core +kmod-hwmon-core | ||||||
|  |   KCONFIG:= \ | ||||||
|  | 	CONFIG_SFP=m \ | ||||||
|  | 	CONFIG_MDIO_I2C=m | ||||||
|  |   FILES:= \ | ||||||
|  | 	$(LINUX_DIR)/drivers/net/phy/sfp.ko \ | ||||||
|  | 	$(LINUX_DIR)/drivers/net/phy/mdio-i2c.ko | ||||||
|  |   AUTOLOAD:=$(call AutoProbe,mdio-i2c sfp) | ||||||
|  | endef | ||||||
|  |  | ||||||
|  | define KernelPackage/SFP/description | ||||||
|  |  Kernel module to support SFP cages | ||||||
|  | endef | ||||||
|  |  | ||||||
|  | $(eval $(call KernelPackage,sfp)) | ||||||
|   | |||||||
| @@ -820,7 +820,7 @@ TARGET_DEVICES += ubnt_edgerouter-x | |||||||
| define Device/ubnt_edgerouter-x-sfp | define Device/ubnt_edgerouter-x-sfp | ||||||
|   $(Device/ubnt_edgerouter_common) |   $(Device/ubnt_edgerouter_common) | ||||||
|   DEVICE_MODEL := EdgeRouter X SFP |   DEVICE_MODEL := EdgeRouter X SFP | ||||||
|   DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x |   DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x kmod-sfp | ||||||
|   SUPPORTED_DEVICES += ubnt-erx-sfp ubiquiti,edgerouterx-sfp |   SUPPORTED_DEVICES += ubnt-erx-sfp ubiquiti,edgerouterx-sfp | ||||||
| endef | endef | ||||||
| TARGET_DEVICES += ubnt_edgerouter-x-sfp | TARGET_DEVICES += ubnt_edgerouter-x-sfp | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user