From 52cf0484370c22bbf92612a7d48455475fec2edb Mon Sep 17 00:00:00 2001
From: Markus Gothe <markus.gothe@genexis.eu>
Date: Mon, 23 Aug 2021 15:48:01 +0200
Subject: [PATCH] Change I2C-bus for XGX

The new Broadcom SDK maps the I2C-bus to a different id,
hence the board file must be updated. This commit also
sets the 'hasEthWan' parameter to 1 like the other fiber
demarcation products.
---
 iopsys-brcm63xx-arm/base-files/etc/board-db/boards/XGX | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/iopsys-brcm63xx-arm/base-files/etc/board-db/boards/XGX b/iopsys-brcm63xx-arm/base-files/etc/board-db/boards/XGX
index 5e84f194f..795626b84 100644
--- a/iopsys-brcm63xx-arm/base-files/etc/board-db/boards/XGX
+++ b/iopsys-brcm63xx-arm/base-files/etc/board-db/boards/XGX
@@ -3,7 +3,7 @@ config board 'board'
 	# Specs
 	option hasAdsl '0'
 	option hasVdsl '0'
-	option hasEthWan '0'
+	option hasEthWan '1'
 	option hasVoice '0'
 	option hasDect '0'
 	option hasUsb '1'
@@ -14,7 +14,7 @@ config board 'board'
 	# Voice
 	option VoicePorts '0'
 	# SFP
-	option sfpBus '/dev/i2c-0'
+	option sfpBus '/dev/i2c-1'
 	# Ethernet
 	option ethernetPorts '5'
 	option ethernetWanPort 'eth4'
-- 
GitLab