[PATCH] x86 64: Add new device Cordoba Edge Platform

Xiaojun Liu xiaojun.liu at silicom.co.il
Sun Nov 12 19:59:45 PST 2023


Add new device Cordoba Edge Platform
hardware specifications: CPU - Intel Atom C3000
                           Ethernet - 2 10Gbps ixgbe SPF+
                                      2 1Gbps  ixgbe RJ45/SPF
                                      4 2.5Gbps  igc RJ45
                           WiFi - mt7915e
                           LED  - 3 multicolor(red|blue|green) LEDs
   
Signed-off-by: Xiaojun Liu mailto:xiaojun.liu at silicom.co.il
--

diff --git a/target/linux/x86/base-files/etc/board.d/01_leds b/target/linux/x86/base-files/etc/board.d/01_leds
index efc5460df3..47ea0929e6 100644
--- a/target/linux/x86/base-files/etc/board.d/01_leds
+++ b/target/linux/x86/base-files/etc/board.d/01_leds
@@ -28,6 +28,10 @@ traverse-technologies-geos)
 	ucidef_set_led_netdev "wlan" "WiFi" "geos:2" "phy0tpt"
 	ucidef_set_led_default "diag" "DIAG" "geos:3" "1"
 	;;
+silicom-80500-0214-*)
+        ucidef_set_led_netdev "wan" "WAN" "multicolor:fp_center" "wan0"
+        ucidef_set_led_netdev "lan" "LAN" "multicolor:fp_right" "br-lan"
+        ;;
 esac
 board_config_flush
 
diff --git a/target/linux/x86/base-files/etc/board.d/02_network b/target/linux/x86/base-files/etc/board.d/02_network
index e00e8c04dd..5174906264 100644
--- a/target/linux/x86/base-files/etc/board.d/02_network
+++ b/target/linux/x86/base-files/etc/board.d/02_network
@@ -75,6 +75,17 @@ traverse-technologies-geos)
 	macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
 	[ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
 	;;
+silicom-80500-0214-*)
+        ucidef_set_network_device_path "wan0" "pci0000:00/0000:00:16.0/0000:03:00.0"
+        ucidef_set_network_device_path "wan1" "pci0000:00/0000:00:16.0/0000:03:00.1"
+        ucidef_set_network_device_path "media0" "pci0000:00/0000:00:17.0/0000:02:00.1"
+        ucidef_set_network_device_path "media1" "pci0000:00/0000:00:17.0/0000:02:00.0"
+        ucidef_set_network_device_path "eth0" "pci0000:00/0000:00:0c.0/0000:04:00.0"
+        ucidef_set_network_device_path "eth1" "pci0000:00/0000:00:0e.0/0000:05:00.0"
+        ucidef_set_network_device_path "eth2" "pci0000:00/0000:00:0f.0/0000:06:00.0"
+        ucidef_set_network_device_path "eth3" "pci0000:00/0000:00:10.0/0000:07:00.0"
+        ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3" "wan0"
+        ;;
 esac
 board_config_flush

-------------- next part --------------
A non-text attachment was scrubbed...
Name: x86 64 Add new device Cordoba Edge Platform.patch
Type: application/octet-stream
Size: 1896 bytes
Desc: x86 64 Add new device Cordoba Edge Platform.patch
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20231113/e1547e2b/attachment-0001.obj>


More information about the openwrt-devel mailing list