mvebu: rename generic rb5009 to rb5009ug
Specialize RB5009UG model from generic RB5009. Signed-off-by: Przemek Rudy <prudy@protonmail.com> [carlo@common-net.org: fixed model name and backward compatibility ] Signed-off-by: Carlo Filippi <carlo@common-net.org> Signed-off-by: Sm00shed <sm00shed@posteo.de> Link: https://github.com/openwrt/openwrt/pull/23698 Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
This commit is contained in:
@@ -70,7 +70,7 @@ endef
|
||||
define U-Boot/rb5009
|
||||
NAME:=MikroTik RB5009
|
||||
BUILD_SUBTARGET:=cortexa72
|
||||
BUILD_DEVICES:=mikrotik_rb5009
|
||||
BUILD_DEVICES:=mikrotik_rb5009ug
|
||||
UBOOT_CONFIG:=mvebu_rb5009
|
||||
UBOOT_IMAGE:=u-boot.elf
|
||||
endef
|
||||
|
||||
@@ -13,7 +13,8 @@ iei,puzzle-m901)
|
||||
iei,puzzle-m902)
|
||||
ucidef_set_led_netdev "wan" "WAN" "white:network" "eth2" "link"
|
||||
;;
|
||||
mikrotik,rb5009)
|
||||
mikrotik,rb5009ug|\
|
||||
mikrotik,rb5009upr)
|
||||
ucidef_set_led_netdev "sfp" "SFP" "green:sfp" "sfp"
|
||||
ucidef_set_led_netdev "wan-port-link" "WAN-PORT-LINK" "!cp0!config-space@f2000000!mdio@12a200!switch@0!mdio1:00:green:" "p1" "tx rx link_10 link_100 link_1000 link_2500"
|
||||
;;
|
||||
|
||||
@@ -38,7 +38,7 @@ marvell,armada7040-db)
|
||||
marvell,armada8040-clearfog-gt-8k)
|
||||
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 eth2" "eth0 eth1"
|
||||
;;
|
||||
mikrotik,rb5009)
|
||||
mikrotik,rb5009ug)
|
||||
ucidef_set_interfaces_lan_wan "p2 p3 p4 p5 p6 p7 p8 sfp" "p1"
|
||||
;;
|
||||
solidrun,clearfog-pro)
|
||||
|
||||
@@ -83,7 +83,7 @@ platform_do_upgrade() {
|
||||
solidrun,clearfog-pro)
|
||||
legacy_sdcard_do_upgrade "$1"
|
||||
;;
|
||||
mikrotik,rb5009)
|
||||
mikrotik,rb5009ug)
|
||||
nand_do_upgrade "$1"
|
||||
;;
|
||||
*)
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "armada-7040-rb5009.dtsi"
|
||||
|
||||
/ {
|
||||
model = "MikroTik RB5009UG";
|
||||
compatible = "mikrotik,rb5009ug", "marvell,armada7040",
|
||||
"marvell,armada-ap806-quad", "marvell,armada-ap806";
|
||||
};
|
||||
@@ -106,12 +106,18 @@ define Device/mikrotik_rb5009
|
||||
$(call Device/FitImage)
|
||||
$(call Device/UbiFit)
|
||||
DEVICE_VENDOR := MikroTik
|
||||
DEVICE_MODEL := RB5009
|
||||
SOC := armada-7040
|
||||
KERNEL_LOADADDR := 0x22000000
|
||||
DEVICE_PACKAGES += kmod-i2c-gpio yafut kmod-dsa-mv88e6xxx
|
||||
endef
|
||||
TARGET_DEVICES += mikrotik_rb5009
|
||||
|
||||
define Device/mikrotik_rb5009ug
|
||||
$(call Device/mikrotik_rb5009)
|
||||
DEVICE_DTS := armada-7040-rb5009ug
|
||||
DEVICE_MODEL := RB5009UG+S+IN
|
||||
SUPPORTED_DEVICES += mikrotik,rb5009
|
||||
endef
|
||||
TARGET_DEVICES += mikrotik_rb5009ug
|
||||
|
||||
define Device/marvell_clearfog-gt-8k
|
||||
$(call Device/Default-arm64)
|
||||
|
||||
Reference in New Issue
Block a user