[openwrt/openwrt] x86 64: Add new device Cordoba Edge Platform
LEDE Commits
lede-commits at lists.infradead.org
Sun Nov 26 11:05:09 PST 2023
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/5899689159e2a608b74a20b103e052128d443672
commit 5899689159e2a608b74a20b103e052128d443672
Author: Xiaojun Liu <xiaojun.liu at silicom.co.il>
AuthorDate: Mon Nov 13 03:59:45 2023 +0000
x86 64: Add new device Cordoba Edge Platform
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 <xiaojun.liu at silicom.co.il>
---
target/linux/x86/base-files/etc/board.d/01_leds | 4 ++++
target/linux/x86/base-files/etc/board.d/02_network | 11 +++++++++++
2 files changed, 15 insertions(+)
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 0a0f32eb80..b18ab60120 100644
--- a/target/linux/x86/base-files/etc/board.d/02_network
+++ b/target/linux/x86/base-files/etc/board.d/02_network
@@ -78,6 +78,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
More information about the lede-commits
mailing list