mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-13 07:54:14 +00:00
Zyxel GS1900-8 v2 devices have been produced more recently than v1 devices. As there are v1 boards with RTL8380M rev. C SoCs, it can likely safely be assumed that all v2 devices will also have a recent SoC revision, supporting the hardware auxiliary MDIO controller. Make the GS1900-8 v1 use an emulated auxiliary MDIO bus, for backward compatibility with devices containing an RTL8380M rev. A. Since the devicetrees are otherwise identical, GS1900-8 v1 devices with an RTL8380M rev. B or C will also be able to use the (more efficient) v2 image. This includes any currently functioning device with OpenWrt, so include the old compatible as a supported device for the GS1900-8 v2. Link: https://github.com/openwrt/openwrt/issues/9534 Signed-off-by: Sander Vanheule <sander@svanheule.net>
35 lines
609 B
Plaintext
35 lines
609 B
Plaintext
#
|
|
# Copyright (C) 2020 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions.sh
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board_config_update
|
|
|
|
case "$(board_name)" in
|
|
hpe,1920-8g-poe-180w | \
|
|
hpe,1920-24g-poe-180w | \
|
|
hpe,1920-24g-poe-370w)
|
|
ucidef_set_compat_version "1.1"
|
|
;;
|
|
zyxel,gs1900-8-v1 | \
|
|
zyxel,gs1900-8-v2 | \
|
|
zyxel,gs1900-8hp-v1 | \
|
|
zyxel,gs1900-8hp-v2 | \
|
|
zyxel,gs1900-10hp | \
|
|
zyxel,gs1900-16 | \
|
|
zyxel,gs1900-24e | \
|
|
zyxel,gs1900-24ep | \
|
|
zyxel,gs1900-24hp-v1 | \
|
|
zyxel,gs1900-24hp-v2 | \
|
|
zyxel,gs1900-24-v1 | \
|
|
zyxel,gs1900-48)
|
|
ucidef_set_compat_version "2.0"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|