mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-08 10:23:47 +08:00
Merge Official Source
This commit is contained in:
commit
302bf7a233
@ -8,13 +8,13 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=tfa-layerscape
|
||||
PKG_VERSION:=LSDK-20.04
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=LSDK-20.04-update-290520
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/atf
|
||||
PKG_SOURCE_VERSION:=4a82c939a0211196e2b80a495f966383803753bb
|
||||
PKG_MIRROR_HASH:=31c264551ce800b646d7dcc5baa62cfbb4c8fa3299a93931c7ef71dc3e88380d
|
||||
PKG_SOURCE_VERSION:=7d748e6f0ec652ba7c43733dc67a3d0b0217390a
|
||||
PKG_MIRROR_HASH:=d209c9ad18aac9f18375450b98b8dab00f0382ccb485df14623bf9b72ea1dd9b
|
||||
PKG_BUILD_DEPENDS:=tfa-layerscape/host
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
|
@ -8,13 +8,13 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=uboot-layerscape
|
||||
PKG_VERSION:=LSDK-20.04
|
||||
PKG_RELEASE:=3
|
||||
PKG_VERSION:=LSDK-20.04-update-290520
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/u-boot
|
||||
PKG_SOURCE_VERSION:=b0833bd0e26c059277f0673c9887b967f1ea5837
|
||||
PKG_MIRROR_HASH:=3cc01d4853ba56d9bcfe5366eddb5f664ae110741146d04f03434d38b4b5b0a0
|
||||
PKG_SOURCE_VERSION:=1e55b2f9e7f56b76569089b9e950f49c1579580e
|
||||
PKG_MIRROR_HASH:=46aace27e1367f40b424a64215d524a99c3bd62f49057550039e72d5a1ab7edb
|
||||
|
||||
include $(INCLUDE_DIR)/u-boot.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
@ -1,8 +1,8 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x81000000
|
||||
fdt_high=0xffffffffffffffff
|
||||
fdt_high=0x8fffffff
|
||||
initrd_high=0xffffffffffffffff
|
||||
sd_boot=mmc read $fdtaddr 7800 800;mmc read $loadaddr 8000 8000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;pfe stop;run sd_boot
|
||||
bootdelay=3
|
||||
|
@ -3,6 +3,6 @@ loadaddr=0x81000000
|
||||
fdt_high=0xffffffffffffffff
|
||||
initrd_high=0xffffffffffffffff
|
||||
qspi_boot=sf probe 0:0;sf read $fdtaddr f00000 100000;sf read $loadaddr 1000000 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock8 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=1550000.spi:1m(bl2),4m(fip),1m(u-boot-env),4m(reserved-1),3m(pfe),2m(reserved-2),1m(dtb),16m(kernel),32m(rootfs),48m@0x1000000(firmware)
|
||||
bootargs=root=/dev/mtdblock8 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=1550000.spi:1m(bl2),4m(fip),1m(u-boot-env),4m(reserved-1),3m(pfe),2m(reserved-2),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware)
|
||||
bootcmd=echo starting openwrt ...;pfe stop;run qspi_boot
|
||||
bootdelay=3
|
||||
|
@ -1,8 +1,8 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x81000000
|
||||
fdt_high=0xffffffff
|
||||
fdt_high=0x8fffffff
|
||||
initrd_high=0xffffffff
|
||||
sd_boot=mmc read ${fdtaddr} 7800 800;mmc read ${loadaddr} 8000 8000;bootm ${loadaddr} - ${fdtaddr}
|
||||
bootargs=root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;run sd_boot
|
||||
bootdelay=3
|
||||
|
@ -1,8 +1,8 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x81000000
|
||||
fdt_high=0xffffffff
|
||||
fdt_high=0x8fffffff
|
||||
initrd_high=0xffffffff
|
||||
sd_boot=mmc read $fdtaddr 7800 800;mmc read $loadaddr 8000 8000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 cma=64M@0x0-0xb0000000
|
||||
sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;run sd_boot
|
||||
bootdelay=3
|
||||
|
@ -3,6 +3,6 @@ loadaddr=0x81000000
|
||||
fdt_high=0xffffffff
|
||||
initrd_high=0xffffffff
|
||||
nor_boot=cp.b 60f00000 $fdtaddr 100000;cp.b 61000000 $loadaddr 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock6 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1m(rcw),2m(u-boot),1m(u-boot-env),11m(reserved-1),1m(dtb),16m(kernel),32m(rootfs),48m@0x1000000(firmware) cma=64M@0x0-0xb0000000
|
||||
bootargs=root=/dev/mtdblock6 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1m(rcw),2m(u-boot),1m(u-boot-env),11m(reserved-1),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware) cma=64M@0x0-0xb0000000
|
||||
bootcmd=echo starting openwrt ...;run nor_boot
|
||||
bootdelay=3
|
||||
|
@ -1,9 +1,9 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x81000000
|
||||
fdt_high=0xffffffffffffffff
|
||||
fdt_high=0x8fffffff
|
||||
initrd_high=0xffffffffffffffff
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
sd_boot=mmc read $fdtaddr 7800 800;mmc read $loadaddr 8000 8000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;run sd_boot
|
||||
bootdelay=3
|
||||
|
@ -4,6 +4,6 @@ fdt_high=0xffffffffffffffff
|
||||
initrd_high=0xffffffffffffffff
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
nor_boot=cp.b 60f00000 $fdtaddr 100000;cp.b 61000000 $loadaddr 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock8 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1m(bl2),4m(fip),1m(u-boot-env),3m(reserved-1),256k(fman),5888k(reserved-2),1m(dtb),16m(kernel),32m(rootfs),48m@0x1000000(firmware)
|
||||
bootargs=root=/dev/mtdblock8 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1m(bl2),4m(fip),1m(u-boot-env),3m(reserved-1),256k(fman),5888k(reserved-2),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware)
|
||||
bootcmd=echo starting openwrt ...;run nor_boot
|
||||
bootdelay=3
|
||||
|
@ -1,9 +1,9 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x81000000
|
||||
fdt_high=0xffffffffffffffff
|
||||
fdt_high=0x8fffffff
|
||||
initrd_high=0xffffffffffffffff
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
sd_boot=mmc read $fdtaddr 7800 800;mmc read $loadaddr 8000 8000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;run sd_boot
|
||||
bootdelay=3
|
||||
|
@ -4,6 +4,6 @@ fdt_high=0xffffffffffffffff
|
||||
initrd_high=0xffffffffffffffff
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
qspi_boot=sf probe 0:0;sf read $fdtaddr f00000 100000;sf read $loadaddr 1000000 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock9 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=1550000.spi-0:1m(bl2),4m(fip),1m(u-boot-env),3m(reserved-1),256k(fman),5888k(reserved-2),1m(dtb),16m(kernel),32m(rootfs),48m@0x1000000(firmware)
|
||||
bootargs=root=/dev/mtdblock9 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=1550000.spi-0:1m(bl2),4m(fip),1m(u-boot-env),3m(reserved-1),256k(fman),5888k(reserved-2),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware)
|
||||
bootcmd=echo starting openwrt ...;run qspi_boot
|
||||
bootdelay=3
|
||||
|
@ -4,7 +4,7 @@ fdt_high=0xa0000000
|
||||
initrd_high=0xffffffffffffffff
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
mc_init=mmc read 80000000 5000 1800;mmc read 80300000 7000 800;fsl_mc start mc 80000000 80300000;mmc read 80400000 6800 800;fsl_mc apply dpl 80400000
|
||||
sd_boot=mmc read $fdtaddr 7800 800;mmc read $loadaddr 8000 8000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;run mc_init;run sd_boot
|
||||
bootdelay=3
|
||||
|
@ -5,6 +5,6 @@ initrd_high=0xffffffffffffffff
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
mc_init=sf probe 0:0;sf read 80000000 a00000 300000;sf read 80300000 e00000 100000;fsl_mc start mc 80000000 80300000;sf read 80400000 d00000 100000;fsl_mc apply dpl 80400000
|
||||
qspi_boot=sf probe 0:0;sf read $fdtaddr f00000 100000;sf read $loadaddr 1000000 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock10 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=20c0000.spi-0:1m(bl2),4m(fip),1m(u-boot-env),4m(reserved-1),3m(mc),1m(dpl),1m(dpc),1m(dtb),16m(kernel),32m(rootfs),48m@0x1000000(firmware)
|
||||
bootargs=root=/dev/mtdblock10 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=20c0000.spi-0:1m(bl2),4m(fip),1m(u-boot-env),4m(reserved-1),3m(mc),1m(dpl),1m(dpc),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware)
|
||||
bootcmd=echo starting openwrt ...;run mc_init;run qspi_boot
|
||||
bootdelay=3
|
||||
|
@ -5,6 +5,6 @@ initrd_high=0xffffffffffffffff
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
mc_init=fsl_mc start mc 580a00000 580e00000;fsl_mc apply dpl 580d00000
|
||||
nor_boot=cp.b 580f00000 $fdtaddr 100000;cp.b 581000000 $loadaddr 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock9 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS1,115200 mtdparts=580000000.nor:1m(bl2),4m(fip),1m(u-boot-env),4m(reserved-1),3m(mc),1m(dpl),1m(dpc),1m(dtb),16m(kernel),32m(rootfs),48m@0x1000000(firmware)
|
||||
bootargs=root=/dev/mtdblock9 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS1,115200 mtdparts=580000000.nor:1m(bl2),4m(fip),1m(u-boot-env),4m(reserved-1),3m(mc),1m(dpl),1m(dpc),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware)
|
||||
bootcmd=echo starting openwrt ...;run mc_init;run nor_boot
|
||||
bootdelay=3
|
||||
|
@ -8,13 +8,13 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ls-rcw
|
||||
PKG_VERSION:=LSDK-20.04
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=LSDK-20.04-update-290520
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/rcw
|
||||
PKG_SOURCE_VERSION:=5689bf9c9f087f50aaa0d91b43d8a791fedbedd3
|
||||
PKG_MIRROR_HASH:=45709aa92f84fea8100b472a29762bfe69a333e6aca7a4fc4edc8cc3e10bf44e
|
||||
PKG_SOURCE_VERSION:=e0fab6d9b61003caef577f7474c2fac61e6ba2ff
|
||||
PKG_MIRROR_HASH:=b6bc66e27b7c6db31101fdc2e6be7255181861bd38d8f25eb5eb80c468983eb2
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||
PKG_NAME:=mac80211
|
||||
|
||||
PKG_VERSION:=5.8-1
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
PKG_SOURCE_URL:=@KERNEL/linux/kernel/projects/backports/stable/v5.8/
|
||||
PKG_HASH:=19b4174d89bf11ee221458e11f1e8dace26558498774b823051156f522d2036b
|
||||
|
||||
|
@ -372,7 +372,7 @@ mac80211_hostapd_setup_bss() {
|
||||
hostapd_cfg=
|
||||
append hostapd_cfg "$type=$ifname" "$N"
|
||||
|
||||
hostapd_set_bss_options hostapd_cfg "$vif" || return 1
|
||||
hostapd_set_bss_options hostapd_cfg "$phy" "$vif" || return 1
|
||||
json_get_vars wds wds_bridge dtim_period max_listen_int start_disabled
|
||||
|
||||
set_default wds 0
|
||||
@ -627,7 +627,7 @@ mac80211_setup_supplicant() {
|
||||
local spobj="$(ubus -S list | grep wpa_supplicant.${ifname})"
|
||||
|
||||
[ "$enable" = 0 ] && {
|
||||
ubus call wpa_supplicant.${phy} config_del "{\"iface\":\"$ifname\"}"
|
||||
ubus call wpa_supplicant.${phy} config_remove "{\"iface\":\"$ifname\"}"
|
||||
ip link set dev "$ifname" down
|
||||
iw dev "$ifname" del
|
||||
return 0
|
||||
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||
PKG_NAME:=dnsmasq
|
||||
PKG_UPSTREAM_VERSION:=2.82
|
||||
PKG_VERSION:=$(subst test,~~test,$(subst rc,~rc,$(PKG_UPSTREAM_VERSION)))
|
||||
PKG_RELEASE:=6
|
||||
PKG_RELEASE:=8
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_UPSTREAM_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
|
||||
@ -172,7 +172,7 @@ define Package/dnsmasq/install
|
||||
$(INSTALL_DIR) $(1)/etc/hotplug.d/neigh
|
||||
$(INSTALL_DIR) $(1)/etc/hotplug.d/ntp
|
||||
$(INSTALL_DIR) $(1)/etc/hotplug.d/tftp
|
||||
$(INSTALL_CONF) ./files/dnsmasqsec.hotplug $(1)/etc/hotplug.d/ntp/25-dnsmasqsec
|
||||
$(INSTALL_DATA) ./files/dnsmasqsec.hotplug $(1)/etc/hotplug.d/ntp/25-dnsmasqsec
|
||||
$(INSTALL_DIR) $(1)/usr/share/dnsmasq
|
||||
$(INSTALL_CONF) ./files/dhcpbogushostname.conf $(1)/usr/share/dnsmasq/
|
||||
$(INSTALL_CONF) ./files/rfc6761.conf $(1)/usr/share/dnsmasq/
|
||||
@ -180,6 +180,7 @@ define Package/dnsmasq/install
|
||||
$(INSTALL_BIN) ./files/dhcp-script.sh $(1)/usr/lib/dnsmasq/dhcp-script.sh
|
||||
$(INSTALL_DIR) $(1)/usr/share/acl.d
|
||||
$(INSTALL_DATA) ./files/dnsmasq_acl.json $(1)/usr/share/acl.d/
|
||||
$(INSTALL_DATA) ./files/dnsmasqsec_hotplug_acl.json $(1)/usr/share/acl.d/
|
||||
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
||||
$(INSTALL_BIN) ./files/50-dnsmasq-migrate-resolv-conf-auto.sh $(1)/etc/uci-defaults
|
||||
endef
|
||||
|
@ -1070,6 +1070,7 @@ dnsmasq_start()
|
||||
echo "search $DOMAIN" >> /tmp/resolv.conf
|
||||
}
|
||||
DNS_SERVERS="$DNS_SERVERS 127.0.0.1"
|
||||
[ -e /proc/sys/net/ipv6 ] && DNS_SERVERS="$DNS_SERVERS ::1"
|
||||
for DNS_SERVER in $DNS_SERVERS ; do
|
||||
echo "nameserver $DNS_SERVER" >> /tmp/resolv.conf
|
||||
done
|
||||
|
@ -0,0 +1,8 @@
|
||||
{
|
||||
"user": "ntp",
|
||||
"access": {
|
||||
"service": {
|
||||
"methods": [ "signal" ]
|
||||
}
|
||||
}
|
||||
}
|
@ -7,7 +7,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=hostapd
|
||||
PKG_RELEASE:=12
|
||||
PKG_RELEASE:=14
|
||||
|
||||
PKG_SOURCE_URL:=http://w1.fi/hostap.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
|
@ -313,7 +313,7 @@ CONFIG_INTERNAL_LIBTOMMATH=y
|
||||
# Interworking (IEEE 802.11u)
|
||||
# This can be used to enable functionality to improve interworking with
|
||||
# external networks.
|
||||
#CONFIG_INTERWORKING=y
|
||||
CONFIG_INTERWORKING=y
|
||||
|
||||
# Hotspot 2.0
|
||||
#CONFIG_HS20=y
|
||||
|
@ -241,12 +241,15 @@ hostapd_common_add_bss_config() {
|
||||
config_add_string wps_device_type wps_device_name wps_manufacturer wps_pin
|
||||
config_add_string multi_ap_backhaul_ssid multi_ap_backhaul_key
|
||||
|
||||
config_add_boolean ieee80211v wnm_sleep_mode bss_transition
|
||||
config_add_boolean wnm_sleep_mode bss_transition
|
||||
config_add_int time_advertisement
|
||||
config_add_string time_zone
|
||||
|
||||
config_add_boolean ieee80211k rrm_neighbor_report rrm_beacon_report
|
||||
|
||||
config_add_boolean ftm_responder stationary_ap
|
||||
config_add_string lci civic
|
||||
|
||||
config_add_boolean ieee80211r pmk_r1_push ft_psk_generate_local ft_over_ds
|
||||
config_add_int r0_key_lifetime reassociation_deadline
|
||||
config_add_string mobility_domain r1_key_holder
|
||||
@ -268,6 +271,13 @@ hostapd_common_add_bss_config() {
|
||||
|
||||
config_add_string 'owe_transition_bssid:macaddr' 'owe_transition_ssid:string'
|
||||
|
||||
config_add_boolean iw_enabled iw_internet iw_asra iw_esr iw_uesa
|
||||
config_add_int iw_access_network_type iw_venue_group iw_venue_type
|
||||
config_add_int iw_ipaddr_type_availability iw_gas_address3
|
||||
config_add_string iw_hessid iw_network_auth_type iw_qos_map_set
|
||||
config_add_array iw_roaming_consortium iw_domain_name iw_anqp_3gpp_cell_net iw_nai_realm
|
||||
config_add_array iw_anqp_elem
|
||||
|
||||
config_add_boolean hs20 disable_dgaf osen
|
||||
config_add_int anqp_domain_id
|
||||
config_add_int hs20_deauth_req_timeout
|
||||
@ -313,6 +323,34 @@ hostapd_set_psk() {
|
||||
for_each_station hostapd_set_psk_file ${ifname}
|
||||
}
|
||||
|
||||
append_iw_roaming_consortium() {
|
||||
[ -n "$1" ] && append bss_conf "roaming_consortium=$1" "$N"
|
||||
}
|
||||
|
||||
append_iw_domain_name() {
|
||||
if [ -z "$iw_domain_name_conf" ]; then
|
||||
iw_domain_name_conf="$1"
|
||||
else
|
||||
iw_domain_name_conf="$iw_domain_name_conf,$1"
|
||||
fi
|
||||
}
|
||||
|
||||
append_iw_anqp_3gpp_cell_net() {
|
||||
if [ -z "$iw_anqp_3gpp_cell_net_conf" ]; then
|
||||
iw_anqp_3gpp_cell_net_conf="$1"
|
||||
else
|
||||
iw_anqp_3gpp_cell_net_conf="$iw_anqp_3gpp_cell_net_conf:$1"
|
||||
fi
|
||||
}
|
||||
|
||||
append_iw_anqp_elem() {
|
||||
[ -n "$1" ] && append bss_conf "anqp_elem=$1" "$N"
|
||||
}
|
||||
|
||||
append_iw_nai_realm() {
|
||||
[ -n "$1" ] && append bss_conf "nai_realm=$1" "$N"
|
||||
}
|
||||
|
||||
append_hs20_oper_friendly_name() {
|
||||
append bss_conf "hs20_oper_friendly_name=$1" "$N"
|
||||
}
|
||||
@ -612,30 +650,31 @@ hostapd_set_bss_options() {
|
||||
append bss_conf "iapp_interface=$ifname" "$N"
|
||||
}
|
||||
|
||||
json_get_vars ieee80211v
|
||||
set_default ieee80211v 0
|
||||
if [ "$ieee80211v" -eq "1" ]; then
|
||||
json_get_vars time_advertisement time_zone wnm_sleep_mode bss_transition
|
||||
json_get_vars time_advertisement time_zone wnm_sleep_mode bss_transition
|
||||
|
||||
set_default time_advertisement 0
|
||||
set_default wnm_sleep_mode 0
|
||||
set_default bss_transition 0
|
||||
[ -n "$time_advertisement" ] && append bss_conf "time_advertisement=$time_advertisement" "$N"
|
||||
[ -n "$time_zone" ] && append bss_conf "time_zone=$time_zone" "$N"
|
||||
[ "$wnm_sleep_mode" -eq "1" ] && append bss_conf "wnm_sleep_mode=1" "$N"
|
||||
[ "$bss_transition" -eq "1" ] && append bss_conf "bss_transition=1" "$N"
|
||||
|
||||
append bss_conf "time_advertisement=$time_advertisement" "$N"
|
||||
[ -n "$time_zone" ] && append bss_conf "time_zone=$time_zone" "$N"
|
||||
append bss_conf "wnm_sleep_mode=$wnm_sleep_mode" "$N"
|
||||
append bss_conf "bss_transition=$bss_transition" "$N"
|
||||
fi
|
||||
|
||||
json_get_vars ieee80211k
|
||||
json_get_vars ieee80211k rrm_neighbor_report rrm_beacon_report
|
||||
set_default ieee80211k 0
|
||||
if [ "$ieee80211k" -eq "1" ]; then
|
||||
json_get_vars rrm_neighbor_report rrm_beacon_report
|
||||
|
||||
set_default rrm_neighbor_report 1
|
||||
set_default rrm_beacon_report 1
|
||||
append bss_conf "rrm_neighbor_report=$rrm_neighbor_report" "$N"
|
||||
append bss_conf "rrm_beacon_report=$rrm_beacon_report" "$N"
|
||||
fi
|
||||
|
||||
[ "$rrm_neighbor_report" -eq "1" ] && append bss_conf "rrm_neighbor_report=1" "$N"
|
||||
[ "$rrm_beacon_report" -eq "1" ] && append bss_conf "rrm_beacon_report=1" "$N"
|
||||
|
||||
json_get_vars ftm_responder stationary_ap lci civic
|
||||
if [ "$ftm_responder" -eq "1" ]; then
|
||||
iw phy "$phy" info | grep -q "ENABLE_FTM_RESPONDER" && {
|
||||
append bss_conf "ftm_responder=1" "$N"
|
||||
[ "$stationary_ap" -eq "1" ] && append bss_conf "stationary_ap=1" "$N"
|
||||
[ -n "$lci" ] && append bss_conf "lci=$lci" "$N"
|
||||
[ -n "$civic" ] && append bss_conf "lci=$civic" "$N"
|
||||
}
|
||||
fi
|
||||
|
||||
if [ "$wpa" -ge "1" ]; then
|
||||
@ -772,6 +811,49 @@ hostapd_set_bss_options() {
|
||||
}
|
||||
}
|
||||
|
||||
json_get_vars iw_enabled iw_internet iw_asra iw_esr iw_uesa iw_access_network_type
|
||||
json_get_vars iw_hessid iw_venue_group iw_venue_type iw_network_auth_type
|
||||
json_get_vars iw_roaming_consortium iw_domain_name iw_anqp_3gpp_cell_net iw_nai_realm
|
||||
json_get_vars iw_anqp_elem iw_qos_map_set iw_ipaddr_type_availability iw_gas_address3
|
||||
|
||||
set_default iw_enabled 0
|
||||
if [ "$iw_enabled" = "1" ]; then
|
||||
append bss_conf "interworking=1" "$N"
|
||||
set_default iw_internet 1
|
||||
set_default iw_asra 0
|
||||
set_default iw_esr 0
|
||||
set_default iw_uesa 0
|
||||
|
||||
append bss_conf "internet=$iw_internet" "$N"
|
||||
append bss_conf "asra=$iw_asra" "$N"
|
||||
append bss_conf "esr=$iw_esr" "$N"
|
||||
append bss_conf "uesa=$iw_uesa" "$N"
|
||||
|
||||
[ -n "$iw_access_network_type" ] && \
|
||||
append bss_conf "access_network_type=$iw_access_network_type" "$N"
|
||||
[ -n "$iw_hessid" ] && append bss_conf "hessid=$iw_hessid" "$N"
|
||||
[ -n "$iw_venue_group" ] && \
|
||||
append bss_conf "venue_group=$iw_venue_group" "$N"
|
||||
[ -n "$iw_venue_type" ] && append bss_conf "venue_type=$iw_venue_type" "$N"
|
||||
[ -n "$iw_network_auth_type" ] && \
|
||||
append bss_conf "network_auth_type=$iw_network_auth_type" "$N"
|
||||
[ -n "$iw_gas_address3" ] && append bss_conf "gas_address3=$iw_gas_address3" "$N"
|
||||
[ -n "$iw_qos_map_set" ] && append bss_conf "qos_map_set=$iw_qos_map_set" "$N"
|
||||
|
||||
json_for_each_item append_iw_roaming_consortium iw_roaming_consortium
|
||||
json_for_each_item append_iw_anqp_elem iw_anqp_elem
|
||||
json_for_each_item append_iw_nai_realm iw_nai_realm
|
||||
|
||||
json_for_each_item append_iw_domain_name iw_domain_name
|
||||
[ -n "$iw_domain_name_conf" ] && \
|
||||
append bss_conf "domain_name=$iw_domain_name_conf" "$N"
|
||||
|
||||
json_for_each_item append_iw_anqp_3gpp_cell_net iw_anqp_3gpp_cell_net
|
||||
[ -n "$iw_anqp_3gpp_cell_net_conf" ] && \
|
||||
append bss_conf "anqp_3gpp_cell_net=$iw_anqp_3gpp_cell_net_conf" "$N"
|
||||
fi
|
||||
|
||||
|
||||
local hs20 disable_dgaf osen anqp_domain_id hs20_deauth_req_timeout \
|
||||
osu_ssid hs20_wan_metrics hs20_operating_class hs20_t_c_filename hs20_t_c_timestamp
|
||||
json_get_vars hs20 disable_dgaf osen anqp_domain_id hs20_deauth_req_timeout \
|
||||
|
@ -490,10 +490,10 @@ CONFIG_WNM=y
|
||||
# This can be used to enable functionality to improve interworking with
|
||||
# external networks (GAS/ANQP to learn more about the networks and network
|
||||
# selection based on available credentials).
|
||||
#CONFIG_INTERWORKING=y
|
||||
CONFIG_INTERWORKING=y
|
||||
|
||||
# Hotspot 2.0
|
||||
#CONFIG_HS20=y
|
||||
CONFIG_HS20=y
|
||||
|
||||
# Enable interface matching in wpa_supplicant
|
||||
#CONFIG_MATCH_IFACE=y
|
||||
|
@ -12,9 +12,9 @@ PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/mdnsd.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_DATE:=2020-07-20
|
||||
PKG_SOURCE_VERSION:=eadfa26a5cf31e27f551c37c1362983e9db37c4d
|
||||
PKG_MIRROR_HASH:=a7ea35b9078543050399cda08da49199f49e2535cb8dd957e0dc5a7ff86c32a4
|
||||
PKG_SOURCE_DATE:=2020-10-26
|
||||
PKG_SOURCE_VERSION:=59e4fc98162d253b4e5ecd110f7bc5ea3962e221
|
||||
PKG_MIRROR_HASH:=35fefc76d84c963ccb0aa72ac738065649f361d2946d3bc45fbd205d1dfc3d9f
|
||||
|
||||
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
||||
PKG_LICENSE:=LGPL-2.1
|
||||
|
@ -12,9 +12,9 @@ PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/procd.git
|
||||
PKG_SOURCE_DATE:=2020-10-21
|
||||
PKG_SOURCE_VERSION:=6c5233a16a4831c69e3dcf09bf557156bc144b80
|
||||
PKG_MIRROR_HASH:=026138c6b9a337f87bb1c8928aa6e0f2b0814b6ab04b1f2d044c284facbde0f5
|
||||
PKG_SOURCE_DATE:=2020-10-25
|
||||
PKG_SOURCE_VERSION:=33b799b94c38fd2d3961b465a8114e384573a6d6
|
||||
PKG_MIRROR_HASH:=d890570c35567a03976e591879383c6d8e974cf14e64a1507c6e498ae12007c4
|
||||
CMAKE_INSTALL:=1
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
|
@ -1,13 +1,13 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ubox
|
||||
PKG_RELEASE:=4
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubox.git
|
||||
PKG_SOURCE_DATE:=2019-12-31
|
||||
PKG_SOURCE_VERSION:=0e34af143373126fc62b43612233a158694ec643
|
||||
PKG_MIRROR_HASH:=8ad36b252419a88d1018addec84900f9601ef5aece39bd0171c918d0817688c9
|
||||
PKG_SOURCE_DATE:=2020-10-25
|
||||
PKG_SOURCE_VERSION:=9ef886819dd48303d8ced4cdbc9afbf32682535c
|
||||
PKG_MIRROR_HASH:=e2d93b798b91de98cb003f7b3be97d3d8a2413c8612b527d096c86ac5365cbdd
|
||||
CMAKE_INSTALL:=1
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
@ -44,6 +44,7 @@ define Package/logd
|
||||
CATEGORY:=Base system
|
||||
DEPENDS:=+libubox +libubus +libblobmsg-json +USE_GLIBC:librt
|
||||
TITLE:=OpenWrt system log implementation
|
||||
USERID:=logd=514:logd=514
|
||||
endef
|
||||
|
||||
define Package/getrandom/install
|
||||
|
@ -5,9 +5,9 @@ PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubus.git
|
||||
PKG_SOURCE_DATE:=2020-10-21
|
||||
PKG_SOURCE_VERSION:=13a4438b4ebdf85d301999e0a615640ac4c9b0a8
|
||||
PKG_MIRROR_HASH:=e9e88bb78993a31a33a1c9579f1facca2949c1a4397b842a9f1b469b170be5da
|
||||
PKG_SOURCE_DATE:=2020-10-25
|
||||
PKG_SOURCE_VERSION:=ad0cd117db74934385d81605514e041b1a9cdda9
|
||||
PKG_MIRROR_HASH:=8f6908bd826a342ed8e925dfec4744dbf24616f20d20d1af342a18419a3b14de
|
||||
CMAKE_INSTALL:=1
|
||||
|
||||
PKG_LICENSE:=LGPL-2.1
|
||||
|
@ -13,9 +13,9 @@ PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/uci.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_DATE=2020-04-24
|
||||
PKG_SOURCE_VERSION:=ec8d3233948603485e1b97384113fac9f1bab5d6
|
||||
PKG_MIRROR_HASH:=b3cdc66a8ec4f05a102ce5520a3f8ff69ca4a49930c5bb01065467ef68f0808b
|
||||
PKG_SOURCE_DATE=2020-10-06
|
||||
PKG_SOURCE_VERSION:=52bbc99f69ea6f67b6fe264f424dac91bde5016c
|
||||
PKG_MIRROR_HASH:=39f2225d1b8f62d7133f708fc73f1f841b6113ae4634485fc0dfdf226041c3c4
|
||||
|
||||
PKG_LICENSE:=LGPL-2.1
|
||||
PKG_LICENSE_FILES:=
|
||||
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=busybox
|
||||
PKG_VERSION:=1.31.1
|
||||
PKG_RELEASE:=4
|
||||
PKG_RELEASE:=5
|
||||
PKG_FLAGS:=essential
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
@ -50,6 +50,7 @@ define Package/busybox/Default
|
||||
TITLE:=Core utilities for embedded Linux
|
||||
URL:=http://busybox.net/
|
||||
DEPENDS:=+BUSYBOX_CONFIG_PAM:libpam +BUSYBOX_CONFIG_NTPD:jsonfilter
|
||||
USERID:=ntp=123:ntp=123
|
||||
endef
|
||||
|
||||
define Package/busybox
|
||||
@ -144,6 +145,8 @@ endif
|
||||
ifneq ($(CONFIG_BUSYBOX_$(BUSYBOX_SYM)_NTPD),)
|
||||
$(INSTALL_BIN) ./files/sysntpd $(1)/etc/init.d/sysntpd
|
||||
$(INSTALL_BIN) ./files/ntpd-hotplug $(1)/usr/sbin/ntpd-hotplug
|
||||
$(INSTALL_DIR) $(1)/etc/capabilities/
|
||||
$(INSTALL_DATA) ./files/ntpd.capabilities $(1)/etc/capabilities/ntpd.json
|
||||
endif
|
||||
-rm -rf $(1)/lib64
|
||||
endef
|
||||
|
22
package/utils/busybox/files/ntpd.capabilities
Normal file
22
package/utils/busybox/files/ntpd.capabilities
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"bounding": [
|
||||
"CAP_NET_BIND_SERVICE",
|
||||
"CAP_SYS_TIME"
|
||||
],
|
||||
"effective": [
|
||||
"CAP_NET_BIND_SERVICE",
|
||||
"CAP_SYS_TIME"
|
||||
],
|
||||
"ambient": [
|
||||
"CAP_NET_BIND_SERVICE",
|
||||
"CAP_SYS_TIME"
|
||||
],
|
||||
"permitted": [
|
||||
"CAP_NET_BIND_SERVICE",
|
||||
"CAP_SYS_TIME"
|
||||
],
|
||||
"inheritable": [
|
||||
"CAP_NET_BIND_SERVICE",
|
||||
"CAP_SYS_TIME"
|
||||
]
|
||||
}
|
@ -55,6 +55,13 @@ start_ntpd_instance() {
|
||||
procd_append_param command -p $peer
|
||||
done
|
||||
procd_set_param respawn
|
||||
[ -x /sbin/ujail ] && {
|
||||
procd_add_jail ntpd
|
||||
procd_set_param capabilities /etc/capabilities/ntpd.json
|
||||
procd_set_param user ntp
|
||||
procd_set_param group ntp
|
||||
procd_set_param no_new_privs 1
|
||||
}
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
|
12
package/utils/busybox/patches/600-allow-ntpd-non-root.patch
Normal file
12
package/utils/busybox/patches/600-allow-ntpd-non-root.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- a/networking/ntpd.c
|
||||
+++ b/networking/ntpd.c
|
||||
@@ -2414,9 +2414,6 @@ static NOINLINE void ntp_init(char **arg
|
||||
|
||||
srand(getpid());
|
||||
|
||||
- if (getuid())
|
||||
- bb_error_msg_and_die(bb_msg_you_must_be_root);
|
||||
-
|
||||
/* Set some globals */
|
||||
G.discipline_jitter = G_precision_sec;
|
||||
G.stratum = MAXSTRAT;
|
@ -33,3 +33,9 @@
|
||||
rxdv-delay = <3>;
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
|
@ -12,7 +12,6 @@
|
||||
|
||||
phy-mask = <4>;
|
||||
phy4: ethernet-phy@4 {
|
||||
phy-mode = "rgmii";
|
||||
reg = <4>;
|
||||
};
|
||||
};
|
||||
@ -21,11 +20,11 @@
|
||||
status = "okay";
|
||||
|
||||
/* default for ar934x, except for 1000M and 10M */
|
||||
pll-data = <0x06000000 0x00000101 0x00001313>;
|
||||
pll-data = <0x02000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii";
|
||||
phy-mode = "rgmii-id";
|
||||
phy-handle = <&phy4>;
|
||||
|
||||
gmac-config {
|
||||
@ -34,3 +33,9 @@
|
||||
rxdv-delay = <3>;
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
|
@ -20,6 +20,16 @@ glinet,gl-mifi)
|
||||
pcs,cap324)
|
||||
migrate_leds "lan:amber=amber:lan" "lan:green=green:lan"
|
||||
;;
|
||||
qxwlan,e558-v2-16m|\
|
||||
qxwlan,e558-v2-8m)
|
||||
migrate_leds ":qss=:sig2"
|
||||
;;
|
||||
qxwlan,e750a-v4-16m|\
|
||||
qxwlan,e750a-v4-8m|\
|
||||
qxwlan,e750g-v8-16m|\
|
||||
qxwlan,e750g-v8-8m)
|
||||
migrate_leds ":ds10=:sig1" ":ds20=:sig2"
|
||||
;;
|
||||
mercury,mw4530r-v1|\
|
||||
tplink,archer-c7-v2|\
|
||||
tplink,tl-wdr3600-v1|\
|
||||
|
@ -1507,6 +1507,7 @@ define Device/qxwlan_e1700ac-v2
|
||||
DEVICE_VENDOR := Qxwlan
|
||||
DEVICE_MODEL := E1700AC
|
||||
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
||||
SUPPORTED_DEVICES += e1700ac-v2
|
||||
endef
|
||||
|
||||
define Device/qxwlan_e1700ac-v2-16m
|
||||
@ -1528,6 +1529,7 @@ define Device/qxwlan_e558-v2
|
||||
DEVICE_VENDOR := Qxwlan
|
||||
DEVICE_MODEL := E558
|
||||
DEVICE_PACKAGES := kmod-usb2
|
||||
SUPPORTED_DEVICES += e558-v2
|
||||
endef
|
||||
|
||||
define Device/qxwlan_e558-v2-16m
|
||||
@ -1549,6 +1551,7 @@ define Device/qxwlan_e750a-v4
|
||||
DEVICE_VENDOR := Qxwlan
|
||||
DEVICE_MODEL := E750A
|
||||
DEVICE_PACKAGES := kmod-usb2
|
||||
SUPPORTED_DEVICES += e750a-v4
|
||||
endef
|
||||
|
||||
define Device/qxwlan_e750a-v4-16m
|
||||
@ -1570,6 +1573,7 @@ define Device/qxwlan_e750g-v8
|
||||
DEVICE_VENDOR := Qxwlan
|
||||
DEVICE_MODEL := E750G
|
||||
DEVICE_PACKAGES := kmod-usb2
|
||||
SUPPORTED_DEVICES += e750g-v8
|
||||
endef
|
||||
|
||||
define Device/qxwlan_e750g-v8-16m
|
||||
|
@ -0,0 +1,28 @@
|
||||
From: Nick Hainke <vincent@systemli.org>
|
||||
Date: Sun, 25 Oct 2020 00:52:47 +0200
|
||||
Subject: [PATCH] ath79: fix block protection clearing
|
||||
|
||||
The block protection bits of macronix do not match the implementation.
|
||||
The chip has 3 BP bits. Bit 5 is actually the third BP but here the
|
||||
5th bit is SR_TB. Therefore the patch adds SR_TB to the mask. In the
|
||||
4.19er kernel the whole register was simply set to 0.
|
||||
|
||||
The wrong implementation did not remove the block protection. This led
|
||||
to jffs2 errors in the form of:
|
||||
"jffs2: Newly-erased block contained word 0x19852003 at offset 0x..."
|
||||
This caused inconsistent memory and other errors.
|
||||
|
||||
Suggested-by: David Bauer <mail@david-bauer.net>
|
||||
Signed-off-by: Nick Hainke <vincent@systemli.org>
|
||||
|
||||
--- a/drivers/mtd/spi-nor/spi-nor.c
|
||||
+++ b/drivers/mtd/spi-nor/spi-nor.c
|
||||
@@ -1981,7 +1981,7 @@ static int sr2_bit7_quad_enable(struct s
|
||||
static int spi_nor_clear_sr_bp(struct spi_nor *nor)
|
||||
{
|
||||
int ret;
|
||||
- u8 mask = SR_BP2 | SR_BP1 | SR_BP0;
|
||||
+ u8 mask = SR_TB | SR_BP2 | SR_BP1 | SR_BP0;
|
||||
|
||||
ret = read_sr(nor);
|
||||
if (ret < 0) {
|
@ -1,74 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -49,6 +49,53 @@ static struct board_info __initdata boar
|
||||
#endif /* CONFIG_BCM63XX_CPU_3368 */
|
||||
|
||||
/*
|
||||
+ * known 6318 boards
|
||||
+ */
|
||||
+#ifdef CONFIG_BCM63XX_CPU_6318
|
||||
+static struct board_info __initdata board_96318ref = {
|
||||
+ .name = "96318REF",
|
||||
+ .expected_cpu_id = 0x6318,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_usbd = 1,
|
||||
+ .usbd = {
|
||||
+ .use_fullspeed = 0,
|
||||
+ .port_no = 0,
|
||||
+ },
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
+
|
||||
+/*
|
||||
* known 6328 boards
|
||||
*/
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
@@ -410,6 +457,9 @@ static const struct board_info __initcon
|
||||
#ifdef CONFIG_BCM63XX_CPU_3368
|
||||
&board_cvg834g,
|
||||
#endif /* CONFIG_BCM63XX_CPU_3368 */
|
||||
+#ifdef CONFIG_BCM63XX_CPU_6318
|
||||
+ &board_96318ref,
|
||||
+#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
&board_96328avng,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
@@ -444,6 +494,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "netgear,cvg834g", .data = &board_cvg834g, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_3368 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6318
|
||||
+ { .compatible = "brcm,bcm96318ref", .data = &board_96318ref, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
|
@ -1,15 +1,6 @@
|
||||
From c93c2bbf0cc96da5a47d77f01daf6c983cfe4216 Mon Sep 17 00:00:00 2001
|
||||
From: Jonas Gorski <jonas.gorski@gmail.com>
|
||||
Date: Tue, 29 May 2012 10:52:25 +0200
|
||||
Subject: [PATCH] MIPS: BCM63XX: add 96328avng reference board
|
||||
|
||||
---
|
||||
arch/mips/bcm63xx/boards/board_bcm963xx.c | 77 +++++++++++++++++++++++++++++
|
||||
1 files changed, 77 insertions(+), 0 deletions(-)
|
||||
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -321,6 +321,32 @@ static struct board_info __initdata boar
|
||||
@@ -64,6 +64,32 @@ static struct board_info __initdata boar
|
||||
.use_fullspeed = 0,
|
||||
.port_no = 0,
|
||||
},
|
@ -1,6 +1,6 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1468,6 +1468,7 @@ static struct board_info __initdata boar
|
||||
@@ -426,6 +426,7 @@ static struct board_info __initdata boar
|
||||
},
|
||||
|
||||
.has_ohci0 = 1,
|
@ -1,67 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -93,6 +93,48 @@ static struct board_info __initdata boar
|
||||
},
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_96318ref_p300 = {
|
||||
+ .name = "96318REF_P300",
|
||||
+ .expected_cpu_id = 0x6318,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_usbd = 1,
|
||||
+ .usbd = {
|
||||
+ .use_fullspeed = 0,
|
||||
+ .port_no = 0,
|
||||
+ },
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
|
||||
/*
|
||||
@@ -459,6 +501,7 @@ static const struct board_info __initcon
|
||||
#endif /* CONFIG_BCM63XX_CPU_3368 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6318
|
||||
&board_96318ref,
|
||||
+ &board_96318ref_p300,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
&board_96328avng,
|
||||
@@ -495,6 +538,7 @@ static struct of_device_id const bcm963x
|
||||
#endif /* CONFIG_BCM63XX_CPU_3368 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6318
|
||||
{ .compatible = "brcm,bcm96318ref", .data = &board_96318ref, },
|
||||
+ { .compatible = "brcm,bcm96318ref-p300", .data = &board_96318ref_p300, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
|
@ -1,91 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -135,6 +135,72 @@ static struct board_info __initdata boar
|
||||
},
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct sprom_fixup __initdata dsl2751b_e1_fixups[] = {
|
||||
+ { .offset = 96, .value = 0x2046 },
|
||||
+ { .offset = 97, .value = 0xfe9d },
|
||||
+ { .offset = 98, .value = 0x1854 },
|
||||
+ { .offset = 99, .value = 0xfa59 },
|
||||
+ { .offset = 112, .value = 0x2046 },
|
||||
+ { .offset = 113, .value = 0xfe79 },
|
||||
+ { .offset = 114, .value = 0x17f5 },
|
||||
+ { .offset = 115, .value = 0xfa47 },
|
||||
+ { .offset = 161, .value = 0x2222 },
|
||||
+ { .offset = 162, .value = 0x2222 },
|
||||
+ { .offset = 169, .value = 0x2222 },
|
||||
+ { .offset = 170, .value = 0x2222 },
|
||||
+ { .offset = 171, .value = 0x5555 },
|
||||
+ { .offset = 172, .value = 0x5555 },
|
||||
+ { .offset = 173, .value = 0x4444 },
|
||||
+ { .offset = 174, .value = 0x4444 },
|
||||
+ { .offset = 175, .value = 0x5555 },
|
||||
+ { .offset = 176, .value = 0x5555 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_dsl_2751b_d1 = {
|
||||
+ .name = "AW5200B",
|
||||
+ .expected_cpu_id = 0x6318,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43217,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ .board_fixups = dsl2751b_e1_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(dsl2751b_e1_fixups),
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
|
||||
/*
|
||||
@@ -502,6 +568,7 @@ static const struct board_info __initcon
|
||||
#ifdef CONFIG_BCM63XX_CPU_6318
|
||||
&board_96318ref,
|
||||
&board_96318ref_p300,
|
||||
+ &board_dsl_2751b_d1,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
&board_96328avng,
|
||||
@@ -539,6 +606,7 @@ static struct of_device_id const bcm963x
|
||||
#ifdef CONFIG_BCM63XX_CPU_6318
|
||||
{ .compatible = "brcm,bcm96318ref", .data = &board_96318ref, },
|
||||
{ .compatible = "brcm,bcm96318ref-p300", .data = &board_96318ref_p300, },
|
||||
+ { .compatible = "d-link,dsl-275xb-d1", .data = &board_dsl_2751b_d1, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
|
@ -1,68 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -201,6 +201,49 @@ static struct board_info __initdata boar
|
||||
.num_board_fixups = ARRAY_SIZE(dsl2751b_e1_fixups),
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_FAST2704N = {
|
||||
+ .name = "F@ST2704N",
|
||||
+ .expected_cpu_id = 0x6318,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43217,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
|
||||
/*
|
||||
@@ -569,6 +612,7 @@ static const struct board_info __initcon
|
||||
&board_96318ref,
|
||||
&board_96318ref_p300,
|
||||
&board_dsl_2751b_d1,
|
||||
+ &board_FAST2704N,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
&board_96328avng,
|
||||
@@ -607,6 +651,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "brcm,bcm96318ref", .data = &board_96318ref, },
|
||||
{ .compatible = "brcm,bcm96318ref-p300", .data = &board_96318ref_p300, },
|
||||
{ .compatible = "d-link,dsl-275xb-d1", .data = &board_dsl_2751b_d1, },
|
||||
+ { .compatible = "sagem,fast-2704n", .data = &board_FAST2704N, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
|
@ -1,84 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -136,6 +136,65 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct sprom_fixup __initdata ar5315u_fixups[] = {
|
||||
+ { .offset = 6, .value = 0x1c00 },
|
||||
+ { .offset = 65, .value = 0x1255 },
|
||||
+ { .offset = 97, .value = 0xfe55 },
|
||||
+ { .offset = 98, .value = 0x171d },
|
||||
+ { .offset = 99, .value = 0xfa42 },
|
||||
+ { .offset = 113, .value = 0xfeb7 },
|
||||
+ { .offset = 114, .value = 0x18cd },
|
||||
+ { .offset = 115, .value = 0xfa4f },
|
||||
+ { .offset = 162, .value = 0x6444 },
|
||||
+ { .offset = 170, .value = 0x6444 },
|
||||
+ { .offset = 172, .value = 0x6444 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_AR5315u = {
|
||||
+ .name = "96318A-1441N1",
|
||||
+ .expected_cpu_id = 0x6318,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "LAN4",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "LAN3",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "LAN2",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "LAN1",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43217,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ .board_fixups = ar5315u_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(ar5315u_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct sprom_fixup __initdata dsl2751b_e1_fixups[] = {
|
||||
{ .offset = 96, .value = 0x2046 },
|
||||
{ .offset = 97, .value = 0xfe9d },
|
||||
@@ -611,6 +670,7 @@ static const struct board_info __initcon
|
||||
#ifdef CONFIG_BCM63XX_CPU_6318
|
||||
&board_96318ref,
|
||||
&board_96318ref_p300,
|
||||
+ &board_AR5315u,
|
||||
&board_dsl_2751b_d1,
|
||||
&board_FAST2704N,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
@@ -650,6 +710,7 @@ static struct of_device_id const bcm963x
|
||||
#ifdef CONFIG_BCM63XX_CPU_6318
|
||||
{ .compatible = "brcm,bcm96318ref", .data = &board_96318ref, },
|
||||
{ .compatible = "brcm,bcm96318ref-p300", .data = &board_96318ref_p300, },
|
||||
+ { .compatible = "comtrend,ar-5315u", .data = &board_AR5315u, },
|
||||
{ .compatible = "d-link,dsl-275xb-d1", .data = &board_dsl_2751b_d1, },
|
||||
{ .compatible = "sagem,fast-2704n", .data = &board_FAST2704N, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
292
target/linux/bcm63xx/patches-5.4/511-board_bcm6318.patch
Normal file
292
target/linux/bcm63xx/patches-5.4/511-board_bcm6318.patch
Normal file
@ -0,0 +1,292 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -49,6 +49,263 @@ static struct board_info __initdata boar
|
||||
#endif /* CONFIG_BCM63XX_CPU_3368 */
|
||||
|
||||
/*
|
||||
+ * known 6318 boards
|
||||
+ */
|
||||
+#ifdef CONFIG_BCM63XX_CPU_6318
|
||||
+static struct board_info __initdata board_96318ref = {
|
||||
+ .name = "96318REF",
|
||||
+ .expected_cpu_id = 0x6318,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_usbd = 1,
|
||||
+ .usbd = {
|
||||
+ .use_fullspeed = 0,
|
||||
+ .port_no = 0,
|
||||
+ },
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_96318ref_p300 = {
|
||||
+ .name = "96318REF_P300",
|
||||
+ .expected_cpu_id = 0x6318,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_usbd = 1,
|
||||
+ .usbd = {
|
||||
+ .use_fullspeed = 0,
|
||||
+ .port_no = 0,
|
||||
+ },
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct sprom_fixup __initdata ar5315u_fixups[] = {
|
||||
+ { .offset = 6, .value = 0x1c00 },
|
||||
+ { .offset = 65, .value = 0x1255 },
|
||||
+ { .offset = 97, .value = 0xfe55 },
|
||||
+ { .offset = 98, .value = 0x171d },
|
||||
+ { .offset = 99, .value = 0xfa42 },
|
||||
+ { .offset = 113, .value = 0xfeb7 },
|
||||
+ { .offset = 114, .value = 0x18cd },
|
||||
+ { .offset = 115, .value = 0xfa4f },
|
||||
+ { .offset = 162, .value = 0x6444 },
|
||||
+ { .offset = 170, .value = 0x6444 },
|
||||
+ { .offset = 172, .value = 0x6444 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_AR5315u = {
|
||||
+ .name = "96318A-1441N1",
|
||||
+ .expected_cpu_id = 0x6318,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "LAN4",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "LAN3",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "LAN2",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "LAN1",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43217,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ .board_fixups = ar5315u_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(ar5315u_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct sprom_fixup __initdata dsl2751b_e1_fixups[] = {
|
||||
+ { .offset = 96, .value = 0x2046 },
|
||||
+ { .offset = 97, .value = 0xfe9d },
|
||||
+ { .offset = 98, .value = 0x1854 },
|
||||
+ { .offset = 99, .value = 0xfa59 },
|
||||
+ { .offset = 112, .value = 0x2046 },
|
||||
+ { .offset = 113, .value = 0xfe79 },
|
||||
+ { .offset = 114, .value = 0x17f5 },
|
||||
+ { .offset = 115, .value = 0xfa47 },
|
||||
+ { .offset = 161, .value = 0x2222 },
|
||||
+ { .offset = 162, .value = 0x2222 },
|
||||
+ { .offset = 169, .value = 0x2222 },
|
||||
+ { .offset = 170, .value = 0x2222 },
|
||||
+ { .offset = 171, .value = 0x5555 },
|
||||
+ { .offset = 172, .value = 0x5555 },
|
||||
+ { .offset = 173, .value = 0x4444 },
|
||||
+ { .offset = 174, .value = 0x4444 },
|
||||
+ { .offset = 175, .value = 0x5555 },
|
||||
+ { .offset = 176, .value = 0x5555 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_dsl_2751b_d1 = {
|
||||
+ .name = "AW5200B",
|
||||
+ .expected_cpu_id = 0x6318,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43217,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ .board_fixups = dsl2751b_e1_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(dsl2751b_e1_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_FAST2704N = {
|
||||
+ .name = "F@ST2704N",
|
||||
+ .expected_cpu_id = 0x6318,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43217,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ },
|
||||
+};
|
||||
+#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
+
|
||||
+/*
|
||||
* known 6328 boards
|
||||
*/
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
@@ -437,6 +694,13 @@ static const struct board_info __initcon
|
||||
#ifdef CONFIG_BCM63XX_CPU_3368
|
||||
&board_cvg834g,
|
||||
#endif /* CONFIG_BCM63XX_CPU_3368 */
|
||||
+#ifdef CONFIG_BCM63XX_CPU_6318
|
||||
+ &board_96318ref,
|
||||
+ &board_96318ref_p300,
|
||||
+ &board_AR5315u,
|
||||
+ &board_dsl_2751b_d1,
|
||||
+ &board_FAST2704N,
|
||||
+#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
&board_96328avng,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
@@ -471,6 +735,11 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "netgear,cvg834g", .data = &board_cvg834g, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_3368 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6318
|
||||
+ { .compatible = "brcm,bcm96318ref", .data = &board_96318ref, },
|
||||
+ { .compatible = "brcm,bcm96318ref-p300", .data = &board_96318ref_p300, },
|
||||
+ { .compatible = "comtrend,ar-5315u", .data = &board_AR5315u, },
|
||||
+ { .compatible = "d-link,dsl-275xb-d1", .data = &board_dsl_2751b_d1, },
|
||||
+ { .compatible = "sagem,fast-2704n", .data = &board_FAST2704N, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
|
521
target/linux/bcm63xx/patches-5.4/512-board_bcm6328.patch
Normal file
521
target/linux/bcm63xx/patches-5.4/512-board_bcm6328.patch
Normal file
@ -0,0 +1,521 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -348,6 +348,482 @@ static struct board_info __initdata boar
|
||||
},
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_963281TAN = {
|
||||
+ .name = "963281TAN",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_A4001N = {
|
||||
+ .name = "96328dg2x2",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43225,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_A4001N1 = {
|
||||
+ .name = "963281T_TEF",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43225,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct sprom_fixup __initdata ad1018_fixups[] = {
|
||||
+ { .offset = 6, .value = 0x1c00 },
|
||||
+ { .offset = 65, .value = 0x1256 },
|
||||
+ { .offset = 96, .value = 0x2046 },
|
||||
+ { .offset = 97, .value = 0xfe69 },
|
||||
+ { .offset = 98, .value = 0x1726 },
|
||||
+ { .offset = 99, .value = 0xfa5c },
|
||||
+ { .offset = 112, .value = 0x2046 },
|
||||
+ { .offset = 113, .value = 0xfea8 },
|
||||
+ { .offset = 114, .value = 0x1978 },
|
||||
+ { .offset = 115, .value = 0xfa26 },
|
||||
+ { .offset = 161, .value = 0x2222 },
|
||||
+ { .offset = 169, .value = 0x2222 },
|
||||
+ { .offset = 171, .value = 0x2222 },
|
||||
+ { .offset = 173, .value = 0x2222 },
|
||||
+ { .offset = 174, .value = 0x4444 },
|
||||
+ { .offset = 175, .value = 0x2222 },
|
||||
+ { .offset = 176, .value = 0x4444 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_AD1018 = {
|
||||
+ .name = "96328avngr",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "FIBRE",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "LAN3",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "LAN2",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "LAN1",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43217,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ .board_fixups = ad1018_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(ad1018_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct sprom_fixup __initdata ar5381u_fixups[] = {
|
||||
+ { .offset = 97, .value = 0xfee5 },
|
||||
+ { .offset = 98, .value = 0x157c },
|
||||
+ { .offset = 99, .value = 0xfae7 },
|
||||
+ { .offset = 113, .value = 0xfefa },
|
||||
+ { .offset = 114, .value = 0x15d6 },
|
||||
+ { .offset = 115, .value = 0xfaf8 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_AR5381u = {
|
||||
+ .name = "96328A-1241N",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43225,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ .board_fixups = ar5381u_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(ar5381u_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct sprom_fixup __initdata ar5387un_fixups[] = {
|
||||
+ { .offset = 2, .value = 0x05bb },
|
||||
+ { .offset = 65, .value = 0x1204 },
|
||||
+ { .offset = 78, .value = 0x0303 },
|
||||
+ { .offset = 79, .value = 0x0202 },
|
||||
+ { .offset = 80, .value = 0xff02 },
|
||||
+ { .offset = 87, .value = 0x0315 },
|
||||
+ { .offset = 88, .value = 0x0315 },
|
||||
+ { .offset = 96, .value = 0x2048 },
|
||||
+ { .offset = 97, .value = 0xff11 },
|
||||
+ { .offset = 98, .value = 0x1567 },
|
||||
+ { .offset = 99, .value = 0xfb24 },
|
||||
+ { .offset = 100, .value = 0x3e3c },
|
||||
+ { .offset = 101, .value = 0x4038 },
|
||||
+ { .offset = 102, .value = 0xfe7f },
|
||||
+ { .offset = 103, .value = 0x1279 },
|
||||
+ { .offset = 112, .value = 0x2048 },
|
||||
+ { .offset = 113, .value = 0xff03 },
|
||||
+ { .offset = 114, .value = 0x154c },
|
||||
+ { .offset = 115, .value = 0xfb27 },
|
||||
+ { .offset = 116, .value = 0x3e3c },
|
||||
+ { .offset = 117, .value = 0x4038 },
|
||||
+ { .offset = 118, .value = 0xfe87 },
|
||||
+ { .offset = 119, .value = 0x1233 },
|
||||
+ { .offset = 203, .value = 0x2226 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_AR5387un = {
|
||||
+ .name = "96328A-1441N1",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43225,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ .board_fixups = ar5387un_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(ar5387un_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_dsl_274xb_f1 = {
|
||||
+ .name = "AW4339U",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_caldata = 1,
|
||||
+ .caldata = {
|
||||
+ {
|
||||
+ .vendor = PCI_VENDOR_ID_ATHEROS,
|
||||
+ .caldata_offset = 0x7d1000,
|
||||
+ .slot = 0,
|
||||
+ .led_pin = -1,
|
||||
+ .led_active_high = 1,
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_FAST2704V2 = {
|
||||
+ .name = "F@ST2704V2",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .has_usbd = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_PDG_A4001N_A_000_1A1_AX = {
|
||||
+ .name = "96328avng",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43225,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_R5010UNV2 = {
|
||||
+ .name = "96328ang",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43217,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
|
||||
/*
|
||||
@@ -703,6 +1179,16 @@ static const struct board_info __initcon
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
&board_96328avng,
|
||||
+ &board_963281TAN,
|
||||
+ &board_A4001N,
|
||||
+ &board_A4001N1,
|
||||
+ &board_AD1018,
|
||||
+ &board_AR5381u,
|
||||
+ &board_AR5387un,
|
||||
+ &board_dsl_274xb_f1,
|
||||
+ &board_FAST2704V2,
|
||||
+ &board_PDG_A4001N_A_000_1A1_AX,
|
||||
+ &board_R5010UNV2,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
||||
&board_96338gw,
|
||||
@@ -742,7 +1228,18 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "sagem,fast-2704n", .data = &board_FAST2704N, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
+ { .compatible = "adb,a4001n", .data = &board_A4001N, },
|
||||
+ { .compatible = "adb,a4001n1", .data = &board_A4001N1, },
|
||||
+ { .compatible = "adb,pdg-a4001n-a-000-1a1-ax", .data = &board_PDG_A4001N_A_000_1A1_AX, },
|
||||
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
|
||||
+ { .compatible = "brcm,bcm963281tan", .data = &board_963281TAN, },
|
||||
+ { .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, },
|
||||
+ { .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
|
||||
+ { .compatible = "d-link,dsl-274xb-f1", .data = &board_dsl_274xb_f1, },
|
||||
+ { .compatible = "nucom,r5010un-v2", .data = &board_R5010UNV2, },
|
||||
+ { .compatible = "sagem,fast-2704-v2", .data = &board_FAST2704V2, },
|
||||
+ { .compatible = "sercomm,ad1018", .data = &board_AD1018, },
|
||||
+ { .compatible = "sercomm,ad1018-nor", .data = &board_AD1018, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
||||
{ .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },
|
@ -1,6 +1,6 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -858,6 +858,19 @@ static struct board_info __initdata boar
|
||||
@@ -857,6 +857,32 @@ static struct board_info __initdata boar
|
||||
.force_duplex_full = 1,
|
||||
},
|
||||
};
|
||||
@ -16,23 +16,38 @@
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_rta1320_16m = {
|
||||
+ .name = "RTA1320_16M",
|
||||
+ .expected_cpu_id = 0x6338,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6338 */
|
||||
|
||||
/*
|
||||
@@ -1193,6 +1206,7 @@ static const struct board_info __initcon
|
||||
@@ -1193,6 +1219,8 @@ static const struct board_info __initcon
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
||||
&board_96338gw,
|
||||
&board_96338w,
|
||||
+ &board_96338w2_e7t,
|
||||
+ &board_rta1320_16m,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6338 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6345
|
||||
&board_96345gw2,
|
||||
@@ -1244,6 +1258,7 @@ static struct of_device_id const bcm963x
|
||||
@@ -1244,6 +1272,8 @@ static struct of_device_id const bcm963x
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
||||
{ .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },
|
||||
{ .compatible = "brcm,bcm96338w", .data = &board_96338w, },
|
||||
+ { .compatible = "d-link,dsl-2640u", .data = &board_96338w2_e7t, },
|
||||
+ { .compatible = "dynalink,rta1320", .data = &board_rta1320_16m, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6338 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6345
|
||||
{ .compatible = "brcm,bcm96345gw2", .data = &board_96345gw2, },
|
@ -1,6 +1,6 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -894,6 +894,19 @@ static struct board_info __initdata boar
|
||||
@@ -893,6 +893,19 @@ static struct board_info __initdata boar
|
||||
.name = "96345GW2",
|
||||
.expected_cpu_id = 0x6345,
|
||||
};
|
328
target/linux/bcm63xx/patches-5.4/515-board-bcm6348.patch
Normal file
328
target/linux/bcm63xx/patches-5.4/515-board-bcm6348.patch
Normal file
@ -0,0 +1,328 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1092,6 +1092,275 @@ static struct board_info __initdata boar
|
||||
|
||||
.has_ohci0 = 1,
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_96348A_122 = {
|
||||
+ .name = "96348A-122",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_96348_D4PW = {
|
||||
+ .name = "D-4P-W",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_96348gw_10_AR1004G = {
|
||||
+ .name = "AR1004G",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_96348sv = {
|
||||
+ .name = "MAGIC",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pccard = 1,
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ /* it has BP_ENET_EXTERNAL_PHY */
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+/* NetGear DG834G v4 */
|
||||
+static struct board_info __initdata board_96348W3 = {
|
||||
+ .name = "96348W3",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_CPVA502plus = {
|
||||
+ .name = "CPVA502+",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .ephy_reset_gpio = 4,
|
||||
+ .ephy_reset_gpio_flags = GPIO_ACTIVE_LOW,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_ct536_ct5621 = {
|
||||
+ .name = "CT536_CT5621",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pccard = 1,
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_FAST2604 = {
|
||||
+ .name = "F@ST2604",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_gw6000 = {
|
||||
+ .name = "GW6000",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_gw6200 = {
|
||||
+ .name = "GW6200",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct sprom_fixup __initdata spw500v_fixups[] = {
|
||||
+ { .offset = 46, .value = 0x3046 },
|
||||
+ { .offset = 47, .value = 0x15a7 },
|
||||
+ { .offset = 48, .value = 0xfa89 },
|
||||
+ { .offset = 49, .value = 0xfe79 },
|
||||
+ { .offset = 57, .value = 0x6a49 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_spw500v = {
|
||||
+ .name = "SPW500V",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ .board_fixups = spw500v_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(spw500v_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+/* BT Voyager 2110 */
|
||||
+static struct board_info __initdata board_V2110 = {
|
||||
+ .name = "V2110",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_V2500V_BB = {
|
||||
+ .name = "V2500V_BB",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
|
||||
/*
|
||||
@@ -1248,6 +1517,19 @@ static const struct board_info __initcon
|
||||
&board_DV201AMR,
|
||||
&board_96348gw_a,
|
||||
&board_rta1025w_16,
|
||||
+ &board_96348A_122,
|
||||
+ &board_96348_D4PW,
|
||||
+ &board_96348gw_10_AR1004G,
|
||||
+ &board_96348sv,
|
||||
+ &board_96348W3,
|
||||
+ &board_CPVA502plus,
|
||||
+ &board_ct536_ct5621,
|
||||
+ &board_FAST2604,
|
||||
+ &board_gw6000,
|
||||
+ &board_gw6200,
|
||||
+ &board_spw500v,
|
||||
+ &board_V2110,
|
||||
+ &board_V2500V_BB,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6358
|
||||
&board_96358vw,
|
||||
@@ -1295,15 +1577,29 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "dynalink,rta770w", .data = &board_rta770w, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6345 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6348
|
||||
+ { .compatible = "asmax,ar-1004g", .data = &board_96348gw_10_AR1004G, },
|
||||
{ .compatible = "belkin,f5d7633", .data = &board_96348gw_10, },
|
||||
{ .compatible = "brcm,bcm96348r", .data = &board_96348r, },
|
||||
{ .compatible = "brcm,bcm96348gw-10", .data = &board_96348gw_10, },
|
||||
{ .compatible = "brcm,bcm96348gw-11", .data = &board_96348gw_11, },
|
||||
{ .compatible = "brcm,bcm96348gw-a", .data = &board_96348gw_a, },
|
||||
+ { .compatible = "bt,voyager-2110", .data = &board_V2110, },
|
||||
+ { .compatible = "bt,voyager-2500v-bb", .data = &board_V2500V_BB, },
|
||||
+ { .compatible = "comtrend,ct-5365", .data = &board_96348A_122, },
|
||||
+ { .compatible = "comtrend,ct-536plus", .data = &board_ct536_ct5621, },
|
||||
+ { .compatible = "comtrend,ct-5621", .data = &board_ct536_ct5621, },
|
||||
+ { .compatible = "d-link,dsl-2640b-b", .data = &board_96348_D4PW, },
|
||||
{ .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
|
||||
{ .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
|
||||
{ .compatible = "netgear,dg834gt-pn", .data = &board_96348gw_10, },
|
||||
+ { .compatible = "netgear,dg834g-v4", .data = &board_96348W3, },
|
||||
{ .compatible = "sagem,fast-2404", .data = &board_FAST2404, },
|
||||
+ { .compatible = "sagem,fast-2604", .data = &board_FAST2604, },
|
||||
+ { .compatible = "t-com,speedport-w-500v", .data = &board_spw500v, },
|
||||
+ { .compatible = "tecom,gw6000", .data = &board_gw6000, },
|
||||
+ { .compatible = "tecom,gw6200", .data = &board_gw6200, },
|
||||
+ { .compatible = "telsey,cpva502plus", .data = &board_CPVA502plus, },
|
||||
+ { .compatible = "telsey,magic", .data = &board_96348sv, },
|
||||
{ .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
|
||||
{ .compatible = "usrobotics,usr9108", .data = &board_96348gw_a, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
384
target/linux/bcm63xx/patches-5.4/516-board-bcm6358.patch
Normal file
384
target/linux/bcm63xx/patches-5.4/516-board-bcm6358.patch
Normal file
@ -0,0 +1,384 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
+#include <linux/pci_ids.h>
|
||||
#include <asm/addrspace.h>
|
||||
#include <bcm63xx_board.h>
|
||||
#include <bcm63xx_cpu.h>
|
||||
@@ -1445,6 +1446,88 @@ static struct board_info __initdata boar
|
||||
.has_ehci0 = 1,
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_CPVA642 = {
|
||||
+ .name = "CPVA642",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_ct6373_1 = {
|
||||
+ .name = "CT6373-1",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+/* D-Link DSL-274xB revison C2/C3 */
|
||||
+static struct board_info __initdata board_dsl_274xb_rev_c = {
|
||||
+ .name = "AW4139",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+/* D-Link DVA-G3810BN/TL */
|
||||
+static struct board_info __initdata board_DVAG3810BN = {
|
||||
+ .name = "DVAG3810BN",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pccard = 1,
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_DWVS0 = {
|
||||
.name = "DWV-S0",
|
||||
.expected_cpu_id = 0x6358,
|
||||
@@ -1469,6 +1552,238 @@ static struct board_info __initdata boar
|
||||
.has_ohci0 = 1,
|
||||
.has_ehci0 = 1,
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_homehub2a = {
|
||||
+ .name = "HOMEHUB2A",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4322,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_HW520 = {
|
||||
+ .name = "HW6358GW_B",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_HW553 = {
|
||||
+ .name = "HW553",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_HW556_A = {
|
||||
+ .name = "HW556_A",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_caldata = 1,
|
||||
+ .caldata = {
|
||||
+ {
|
||||
+ .vendor = PCI_VENDOR_ID_ATHEROS,
|
||||
+ .caldata_offset = 0xf7e000,
|
||||
+ .slot = 1,
|
||||
+ .endian_check = 1,
|
||||
+ .led_pin = 2,
|
||||
+ .led_active_high = 1,
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_HW556_B = {
|
||||
+ .name = "HW556_B",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_caldata = 1,
|
||||
+ .caldata = {
|
||||
+ {
|
||||
+ .vendor = PCI_VENDOR_ID_ATHEROS,
|
||||
+ .caldata_offset = 0xefe000,
|
||||
+ .slot = 1,
|
||||
+ .endian_check = 1,
|
||||
+ .led_pin = 2,
|
||||
+ .led_active_high = 1,
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_HW556_C = {
|
||||
+ .name = "HW556_C",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_caldata = 1,
|
||||
+ .caldata = {
|
||||
+ {
|
||||
+ .vendor = PCI_VENDOR_ID_RALINK,
|
||||
+ .caldata_offset = 0xeffe00,
|
||||
+ .slot = 1,
|
||||
+ .eeprom = "rt2x00.eeprom",
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_nb4_ser_r0 = {
|
||||
+ .name = "NB4-SER-r0",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pccard = 1,
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_nb4_fxc_r1 = {
|
||||
+ .name = "NB4-FXC-r1",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pccard = 1,
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+ /* T-Home Speedport W 303V Typ B */
|
||||
+static struct board_info __initdata board_spw303v = {
|
||||
+ .name = "96358-502V",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
|
||||
/*
|
||||
@@ -1535,7 +1850,20 @@ static const struct board_info __initcon
|
||||
&board_96358vw,
|
||||
&board_96358vw2,
|
||||
&board_AGPFS0,
|
||||
+ &board_CPVA642,
|
||||
+ &board_ct6373_1,
|
||||
+ &board_dsl_274xb_rev_c,
|
||||
+ &board_DVAG3810BN,
|
||||
&board_DWVS0,
|
||||
+ &board_homehub2a,
|
||||
+ &board_HW520,
|
||||
+ &board_HW553,
|
||||
+ &board_HW556_A,
|
||||
+ &board_HW556_B,
|
||||
+ &board_HW556_C,
|
||||
+ &board_nb4_ser_r0,
|
||||
+ &board_nb4_fxc_r1,
|
||||
+ &board_spw303v,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
};
|
||||
|
||||
@@ -1607,11 +1935,24 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "alcatel,rg100a", .data = &board_96358vw2, },
|
||||
{ .compatible = "brcm,bcm96358vw", .data = &board_96358vw, },
|
||||
{ .compatible = "brcm,bcm96358vw2", .data = &board_96358vw2, },
|
||||
+ { .compatible = "bt,home-hub-2-a", .data = &board_homehub2a, },
|
||||
+ { .compatible = "comtrend,ct-6373", .data = &board_ct6373_1, },
|
||||
{ .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
|
||||
+ { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
|
||||
+ { .compatible = "d-link,dva-g3810bn-tl", .data = &board_DVAG3810BN, },
|
||||
+ { .compatible = "huawei,echolife-hg520v", .data = &board_HW520, },
|
||||
+ { .compatible = "huawei,echolife-hg553", .data = &board_HW553, },
|
||||
+ { .compatible = "huawei,echolife-hg556a-a", .data = &board_HW556_A, },
|
||||
+ { .compatible = "huawei,echolife-hg556a-b", .data = &board_HW556_B, },
|
||||
+ { .compatible = "huawei,echolife-hg556a-c", .data = &board_HW556_C, },
|
||||
{ .compatible = "pirelli,a226g", .data = &board_DWVS0, },
|
||||
{ .compatible = "pirelli,a226m", .data = &board_DWVS0, },
|
||||
{ .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },
|
||||
{ .compatible = "pirelli,agpf-s0", .data = &board_AGPFS0, },
|
||||
+ { .compatible = "sfr,neufbox-4-sercomm-r0", .data = &board_nb4_ser_r0, },
|
||||
+ { .compatible = "sfr,neufbox-4-foxconn-r1", .data = &board_nb4_fxc_r1, },
|
||||
+ { .compatible = "t-com,speedport-w-303v", .data = &board_spw303v, },
|
||||
+ { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
144
target/linux/bcm63xx/patches-5.4/517-board_bcm6362.patch
Normal file
144
target/linux/bcm63xx/patches-5.4/517-board_bcm6362.patch
Normal file
@ -0,0 +1,144 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1786,6 +1786,117 @@ static struct board_info __initdata boar
|
||||
};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
|
||||
+#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
+static struct board_info __initdata board_dgnd3700v2 = {
|
||||
+ .name = "96362ADVN2xh",
|
||||
+ .expected_cpu_id = 0x6362,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [4] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0xff,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_fast2504n = {
|
||||
+ .name = "F@ST2504n",
|
||||
+ .expected_cpu_id = 0x6362,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_hg253s_v2 = {
|
||||
+ .name = "hg253s",
|
||||
+ .expected_cpu_id = 0x6362,
|
||||
+
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [4] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0xff,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .timing_sel = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+
|
||||
+ [5] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 24,
|
||||
+ .timing_sel = 1,
|
||||
+ .name = "WAN",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_nb6 = {
|
||||
+ .name = "NB6",
|
||||
+ .expected_cpu_id = 0x6362,
|
||||
+
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [4] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0xff,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
+
|
||||
/*
|
||||
* all boards
|
||||
*/
|
||||
@@ -1865,6 +1976,12 @@ static const struct board_info __initcon
|
||||
&board_nb4_fxc_r1,
|
||||
&board_spw303v,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
+#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
+ &board_dgnd3700v2,
|
||||
+ &board_fast2504n,
|
||||
+ &board_hg253s_v2,
|
||||
+ &board_nb6,
|
||||
+#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
};
|
||||
|
||||
static struct of_device_id const bcm963xx_boards_dt[] = {
|
||||
@@ -1955,6 +2072,10 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "telsey,cpva642", .data = &board_CPVA642, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
+ { .compatible = "huawei,hg253s-v2", .data = &board_hg253s_v2, },
|
||||
+ { .compatible = "netgear,dgnd3700-v2", .data = &board_dgnd3700v2, },
|
||||
+ { .compatible = "sagem,fast-2504n", .data = &board_fast2504n, },
|
||||
+ { .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
732
target/linux/bcm63xx/patches-5.4/518-board_bcm6368.patch
Normal file
732
target/linux/bcm63xx/patches-5.4/518-board_bcm6368.patch
Normal file
@ -0,0 +1,732 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -13,6 +13,8 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/pci_ids.h>
|
||||
+#include <linux/platform_data/b53.h>
|
||||
+#include <linux/spi/spi.h>
|
||||
#include <asm/addrspace.h>
|
||||
#include <bcm63xx_board.h>
|
||||
#include <bcm63xx_cpu.h>
|
||||
@@ -1898,6 +1900,648 @@ static struct board_info __initdata boar
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
|
||||
/*
|
||||
+ * known 6368 boards
|
||||
+ */
|
||||
+#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
+static struct board_info __initdata board_96368mvngr = {
|
||||
+ .name = "96368MVNgr",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_96368mvwg = {
|
||||
+ .name = "96368MVWG",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_usbd = 1,
|
||||
+ .usbd = {
|
||||
+ .use_fullspeed = 0,
|
||||
+ .port_no = 0,
|
||||
+ },
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [4] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0x12,
|
||||
+ .name = "port0",
|
||||
+ },
|
||||
+ [5] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0x11,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_AV4202N = {
|
||||
+ .name = "96368_Swiss_S1",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4322,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_DGND3700v1_3800B = {
|
||||
+ .name = "DGND3700v1_3800B",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [5] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0xff,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct sprom_fixup __initdata EVG2000_fixups[] = {
|
||||
+ { .offset = 219, .value = 0xec08 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_EVG2000 = {
|
||||
+ .name = "96369PVG",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [5] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0xff,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4322,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ .board_fixups = EVG2000_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(EVG2000_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_HG622 = {
|
||||
+ .name = "96368MVWG_hg622",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_caldata = 1,
|
||||
+ .caldata = {
|
||||
+ {
|
||||
+ .vendor = PCI_VENDOR_ID_RALINK,
|
||||
+ .caldata_offset = 0xfa0000,
|
||||
+ .slot = 1,
|
||||
+ .eeprom = "rt2x00.eeprom",
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_HG655b = {
|
||||
+ .name = "HW65x",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_caldata = 1,
|
||||
+ .caldata = {
|
||||
+ {
|
||||
+ .vendor = PCI_VENDOR_ID_RALINK,
|
||||
+ .caldata_offset = 0x7c0000,
|
||||
+ .slot = 1,
|
||||
+ .eeprom = "rt2x00.eeprom",
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_P870HW51A_V2 = {
|
||||
+ .name = "P870HW-51a_v2",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_R1000H = {
|
||||
+ .name = "R1000H",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [5] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0xff,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct sprom_fixup __initdata vh4032n_fixups[] = {
|
||||
+ { .offset = 2, .value = 0x04d2 },
|
||||
+ { .offset = 4, .value = 0x4350 },
|
||||
+ { .offset = 65, .value = 0x1300 },
|
||||
+ { .offset = 68, .value = 0x0402 },
|
||||
+ { .offset = 70, .value = 0x0090 },
|
||||
+ { .offset = 71, .value = 0x4c19 },
|
||||
+ { .offset = 72, .value = 0x2345 },
|
||||
+ { .offset = 87, .value = 0x0315 },
|
||||
+ { .offset = 88, .value = 0x0315 },
|
||||
+ { .offset = 96, .value = 0x2048 },
|
||||
+ { .offset = 97, .value = 0xfed7 },
|
||||
+ { .offset = 98, .value = 0x15a6 },
|
||||
+ { .offset = 99, .value = 0xfaee },
|
||||
+ { .offset = 100, .value = 0x3e3a },
|
||||
+ { .offset = 101, .value = 0x3a36 },
|
||||
+ { .offset = 102, .value = 0xff7f },
|
||||
+ { .offset = 103, .value = 0x11b9 },
|
||||
+ { .offset = 104, .value = 0xfc53 },
|
||||
+ { .offset = 105, .value = 0xffe6 },
|
||||
+ { .offset = 106, .value = 0xfdd2 },
|
||||
+ { .offset = 107, .value = 0xfe49 },
|
||||
+ { .offset = 108, .value = 0xff6a },
|
||||
+ { .offset = 109, .value = 0x136e },
|
||||
+ { .offset = 110, .value = 0xfbed },
|
||||
+ { .offset = 111, .value = 0x0000 },
|
||||
+ { .offset = 112, .value = 0x2048 },
|
||||
+ { .offset = 113, .value = 0xfee2 },
|
||||
+ { .offset = 114, .value = 0x15e5 },
|
||||
+ { .offset = 115, .value = 0xfaed },
|
||||
+ { .offset = 116, .value = 0x3e3a },
|
||||
+ { .offset = 117, .value = 0x3a36 },
|
||||
+ { .offset = 118, .value = 0xffc8 },
|
||||
+ { .offset = 119, .value = 0x12b8 },
|
||||
+ { .offset = 120, .value = 0xfca1 },
|
||||
+ { .offset = 121, .value = 0xff9b },
|
||||
+ { .offset = 122, .value = 0x122a },
|
||||
+ { .offset = 123, .value = 0xfcc8 },
|
||||
+ { .offset = 124, .value = 0xff95 },
|
||||
+ { .offset = 125, .value = 0x146b },
|
||||
+ { .offset = 126, .value = 0xfbba },
|
||||
+ { .offset = 127, .value = 0x0000 },
|
||||
+ { .offset = 161, .value = 0x0000 },
|
||||
+ { .offset = 162, .value = 0x0000 },
|
||||
+ { .offset = 169, .value = 0x0000 },
|
||||
+ { .offset = 170, .value = 0x0000 },
|
||||
+ { .offset = 171, .value = 0x0000 },
|
||||
+ { .offset = 172, .value = 0x0000 },
|
||||
+ { .offset = 173, .value = 0x0000 },
|
||||
+ { .offset = 174, .value = 0x0000 },
|
||||
+ { .offset = 175, .value = 0x0000 },
|
||||
+ { .offset = 176, .value = 0x0000 },
|
||||
+ { .offset = 219, .value = 0x1108 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_VH4032N = {
|
||||
+ .name = "VH4032N",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "LAN4",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "LAN3",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "LAN2",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "LAN1",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43222,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ .board_fixups = vh4032n_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(vh4032n_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct sprom_fixup __initdata vr3025u_fixups[] = {
|
||||
+ { .offset = 97, .value = 0xfeb3 },
|
||||
+ { .offset = 98, .value = 0x1618 },
|
||||
+ { .offset = 99, .value = 0xfab0 },
|
||||
+ { .offset = 113, .value = 0xfed1 },
|
||||
+ { .offset = 114, .value = 0x1609 },
|
||||
+ { .offset = 115, .value = 0xfad9 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_VR3025u = {
|
||||
+ .name = "96368M-1541N",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43222,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ .board_fixups = vr3025u_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(vr3025u_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct sprom_fixup __initdata vr3025un_fixups[] = {
|
||||
+ { .offset = 97, .value = 0xfeb3 },
|
||||
+ { .offset = 98, .value = 0x1618 },
|
||||
+ { .offset = 99, .value = 0xfab0 },
|
||||
+ { .offset = 113, .value = 0xfed1 },
|
||||
+ { .offset = 114, .value = 0x1609 },
|
||||
+ { .offset = 115, .value = 0xfad9 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_VR3025un = {
|
||||
+ .name = "96368M-1341N",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43222,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ .board_fixups = vr3025un_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(vr3025un_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct sprom_fixup __initdata vr3026e_fixups[] = {
|
||||
+ { .offset = 97, .value = 0xfeb3 },
|
||||
+ { .offset = 98, .value = 0x1618 },
|
||||
+ { .offset = 99, .value = 0xfab0 },
|
||||
+ { .offset = 113, .value = 0xfed1 },
|
||||
+ { .offset = 114, .value = 0x1609 },
|
||||
+ { .offset = 115, .value = 0xfad9 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_VR3026e = {
|
||||
+ .name = "96368MT-1341N1",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43222,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ .board_fixups = vr3026e_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(vr3026e_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct sprom_fixup __initdata wap5813n_fixups[] = {
|
||||
+ { .offset = 97, .value = 0xfeed },
|
||||
+ { .offset = 98, .value = 0x15d1 },
|
||||
+ { .offset = 99, .value = 0xfb0d },
|
||||
+ { .offset = 113, .value = 0xfef7 },
|
||||
+ { .offset = 114, .value = 0x15f7 },
|
||||
+ { .offset = 115, .value = 0xfb1a },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_WAP5813n = {
|
||||
+ .name = "96369R-1231N",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [4] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0xff,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43222,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ .board_fixups = wap5813n_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(wap5813n_fixups),
|
||||
+ },
|
||||
+};
|
||||
+#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
+
|
||||
+/*
|
||||
* all boards
|
||||
*/
|
||||
static const struct board_info __initconst *bcm963xx_boards[] = {
|
||||
@@ -1982,6 +2626,22 @@ static const struct board_info __initcon
|
||||
&board_hg253s_v2,
|
||||
&board_nb6,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
+#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
+ &board_96368mvngr,
|
||||
+ &board_96368mvwg,
|
||||
+ &board_AV4202N,
|
||||
+ &board_DGND3700v1_3800B,
|
||||
+ &board_EVG2000,
|
||||
+ &board_HG622,
|
||||
+ &board_HG655b,
|
||||
+ &board_P870HW51A_V2,
|
||||
+ &board_R1000H,
|
||||
+ &board_VH4032N,
|
||||
+ &board_VR3025u,
|
||||
+ &board_VR3025un,
|
||||
+ &board_VR3026e,
|
||||
+ &board_WAP5813n,
|
||||
+#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
};
|
||||
|
||||
static struct of_device_id const bcm963xx_boards_dt[] = {
|
||||
@@ -2078,6 +2738,20 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
+ { .compatible = "actiontec,r1000h", .data = &board_R1000H, },
|
||||
+ { .compatible = "adb,av4202n", .data = &board_AV4202N, },
|
||||
+ { .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
|
||||
+ { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
|
||||
+ { .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
|
||||
+ { .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
|
||||
+ { .compatible = "comtrend,vr-3026e", .data = &board_VR3026e, },
|
||||
+ { .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
|
||||
+ { .compatible = "huawei,echolife-hg622", .data = &board_HG622, },
|
||||
+ { .compatible = "huawei,echolife-hg655b", .data = &board_HG655b, },
|
||||
+ { .compatible = "netgear,dgnd3700-v1", .data = &board_DGND3700v1_3800B, },
|
||||
+ { .compatible = "netgear,evg2000", .data = &board_EVG2000, },
|
||||
+ { .compatible = "observa,vh4032n", .data = &board_VH4032N, },
|
||||
+ { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_63268
|
||||
#endif /* CONFIG_BCM63XX_CPU_63268 */
|
||||
--- a/arch/mips/bcm63xx/boards/board_common.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_common.c
|
||||
@@ -81,12 +81,25 @@ void __init board_early_setup(const stru
|
||||
bcm63xx_pci_enabled = 1;
|
||||
if (BCMCPU_IS_6348())
|
||||
val |= GPIO_MODE_6348_G2_PCI;
|
||||
+
|
||||
+ if (BCMCPU_IS_6368())
|
||||
+ val |= GPIO_MODE_6368_PCI_REQ1 |
|
||||
+ GPIO_MODE_6368_PCI_GNT1 |
|
||||
+ GPIO_MODE_6368_PCI_INTB |
|
||||
+ GPIO_MODE_6368_PCI_REQ0 |
|
||||
+ GPIO_MODE_6368_PCI_GNT0;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (board.has_pccard) {
|
||||
if (BCMCPU_IS_6348())
|
||||
val |= GPIO_MODE_6348_G1_MII_PCCARD;
|
||||
+
|
||||
+ if (BCMCPU_IS_6368())
|
||||
+ val |= GPIO_MODE_6368_PCMCIA_CD1 |
|
||||
+ GPIO_MODE_6368_PCMCIA_CD2 |
|
||||
+ GPIO_MODE_6368_PCMCIA_VS1 |
|
||||
+ GPIO_MODE_6368_PCMCIA_VS2;
|
||||
}
|
||||
|
||||
if (board.has_enet0 && !board.enet0.use_internal_phy) {
|
307
target/linux/bcm63xx/patches-5.4/519-board_bcm63268.patch
Normal file
307
target/linux/bcm63xx/patches-5.4/519-board_bcm63268.patch
Normal file
@ -0,0 +1,307 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -2542,6 +2542,273 @@ static struct board_info __initdata boar
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
|
||||
/*
|
||||
+ * known 63268/63269 boards
|
||||
+ */
|
||||
+#ifdef CONFIG_BCM63XX_CPU_63268
|
||||
+static struct board_info __initdata board_963268bu_p300 = {
|
||||
+ .name = "963268BU_P300",
|
||||
+ .expected_cpu_id = 0x63268,
|
||||
+
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_usbd = 1,
|
||||
+ .usbd = {
|
||||
+ .use_fullspeed = 0,
|
||||
+ .port_no = 0,
|
||||
+ },
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 17,
|
||||
+ .name = "FE1",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "GbE2",
|
||||
+ },
|
||||
+ [4] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .name = "GbE3",
|
||||
+ .mii_override = 1,
|
||||
+ .timing_sel = 1,
|
||||
+ },
|
||||
+ [5] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "GbE1",
|
||||
+ .mii_override = 1,
|
||||
+ .timing_sel = 1,
|
||||
+ },
|
||||
+ [6] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 24,
|
||||
+ .name = "GbE4",
|
||||
+ .mii_override = 1,
|
||||
+ .timing_sel = 1,
|
||||
+ },
|
||||
+ [7] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 25,
|
||||
+ .name = "GbE5",
|
||||
+ .mii_override = 1,
|
||||
+ .timing_sel = 1,
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_963269bhr = {
|
||||
+ .name = "963269BHR",
|
||||
+ .expected_cpu_id = 0x63268,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_BSKYB_63168 = {
|
||||
+ .name = "BSKYB_63168",
|
||||
+ .expected_cpu_id = 0x63268,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_H500s = {
|
||||
+ .name = "BXK00C-1.6",
|
||||
+ .expected_cpu_id = 0x63268,
|
||||
+
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 12,
|
||||
+ .name = "WAN",
|
||||
+ },
|
||||
+ [4] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .mii_override = 1,
|
||||
+ .timing_sel = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_VG8050 = {
|
||||
+ .name = "963169P-1861N5",
|
||||
+ .expected_cpu_id = 0x63268,
|
||||
+
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [6] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0xff,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .mii_override = 1,
|
||||
+ .timing_sel = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_VR3032u = {
|
||||
+ .name = "963168M-1841N1",
|
||||
+ .expected_cpu_id = 0x63268,
|
||||
+
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "LAN2",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "LAN3",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "LAN4",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "LAN1",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_vw6339gu = {
|
||||
+ .name = "VW6339GU",
|
||||
+ .expected_cpu_id = 0x63268,
|
||||
+
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "LAN2",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "LAN3",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "LAN4",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "LAN1",
|
||||
+ },
|
||||
+ [4] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 7,
|
||||
+ .name = "WAN",
|
||||
+ .mii_override = 1,
|
||||
+ .timing_sel = 1,
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+#endif /* CONFIG_BCM63XX_CPU_63268 */
|
||||
+
|
||||
+/*
|
||||
* all boards
|
||||
*/
|
||||
static const struct board_info __initconst *bcm963xx_boards[] = {
|
||||
@@ -2642,6 +2909,15 @@ static const struct board_info __initcon
|
||||
&board_VR3026e,
|
||||
&board_WAP5813n,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
+#ifdef CONFIG_BCM63XX_CPU_63268
|
||||
+ &board_963268bu_p300,
|
||||
+ &board_963269bhr,
|
||||
+ &board_BSKYB_63168,
|
||||
+ &board_H500s,
|
||||
+ &board_VG8050,
|
||||
+ &board_VR3032u,
|
||||
+ &board_vw6339gu,
|
||||
+#endif /* CONFIG_BCM63XX_CPU_63268 */
|
||||
};
|
||||
|
||||
static struct of_device_id const bcm963xx_boards_dt[] = {
|
||||
@@ -2754,6 +3030,14 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_63268
|
||||
+ { .compatible = "brcm,bcm963268bu-p300", .data = &board_963268bu_p300, },
|
||||
+ { .compatible = "brcm,bcm963269bhr", .data = &board_963269bhr, },
|
||||
+ { .compatible = "comtrend,vg-8050", .data = &board_VG8050, },
|
||||
+ { .compatible = "comtrend,vr-3032u", .data = &board_VR3032u, },
|
||||
+ { .compatible = "inteno,vg50", .data = &board_vw6339gu, },
|
||||
+ { .compatible = "sercomm,h500-s-lowi", .data = &board_H500s, },
|
||||
+ { .compatible = "sercomm,h500-s-vfes", .data = &board_H500s, },
|
||||
+ { .compatible = "sky,sr102", .data = &board_BSKYB_63168, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_63268 */
|
||||
#endif /* CONFIG_OF */
|
||||
{ },
|
@ -1,67 +0,0 @@
|
||||
From f0649f7b7c672cf452a1796a1422bf615e1973f8 Mon Sep 17 00:00:00 2001
|
||||
From: Jonas Gorski <jonas.gorski@gmail.com>
|
||||
Date: Tue, 29 May 2012 11:01:12 +0200
|
||||
Subject: [PATCH] MIPS: BCM63XX: add 963281TAN reference board
|
||||
|
||||
---
|
||||
arch/mips/bcm63xx/boards/board_bcm963xx.c | 71 +++++++++++++++++++++++++++++
|
||||
1 files changed, 71 insertions(+), 0 deletions(-)
|
||||
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -348,6 +348,39 @@ static struct board_info __initdata boar
|
||||
},
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_963281TAN = {
|
||||
+ .name = "963281TAN",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
|
||||
/*
|
||||
@@ -702,6 +735,7 @@ static const struct board_info __initcon
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
&board_96328avng,
|
||||
+ &board_963281TAN,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
||||
&board_96338gw,
|
||||
@@ -741,6 +775,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "sagem,fast-2704n", .data = &board_FAST2704N, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
+ { .compatible = "brcm,bcm963281tan", .data = &board_963281TAN, },
|
||||
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
@ -1,79 +0,0 @@
|
||||
From 66808f706b3dcd83a9f5157997ff478a880a2906 Mon Sep 17 00:00:00 2001
|
||||
From: Jonas Gorski <jonas.gorski@gmail.com>
|
||||
Date: Mon, 30 Apr 2012 09:10:51 +0200
|
||||
Subject: [PATCH 70/79] MIPS: BCM63XX: Add board definition for D-Link
|
||||
DSL-274xB rev F1
|
||||
|
||||
---
|
||||
arch/mips/bcm63xx/boards/board_bcm963xx.c | 104 +++++++++++++++++++++++++++++
|
||||
1 files changed, 104 insertions(+), 0 deletions(-)
|
||||
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -381,6 +381,50 @@ static struct board_info __initdata boar
|
||||
},
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_dsl_274xb_f1 = {
|
||||
+ .name = "AW4339U",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_caldata = 1,
|
||||
+ .caldata = {
|
||||
+ {
|
||||
+ .vendor = PCI_VENDOR_ID_ATHEROS,
|
||||
+ .caldata_offset = 0x7d1000,
|
||||
+ .slot = 0,
|
||||
+ .led_pin = -1,
|
||||
+ .led_active_high = 1,
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
|
||||
/*
|
||||
@@ -736,6 +780,7 @@ static const struct board_info __initcon
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
&board_96328avng,
|
||||
&board_963281TAN,
|
||||
+ &board_dsl_274xb_f1,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
||||
&board_96338gw,
|
||||
@@ -777,6 +822,7 @@ static struct of_device_id const bcm963x
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
{ .compatible = "brcm,bcm963281tan", .data = &board_963281TAN, },
|
||||
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
|
||||
+ { .compatible = "d-link,dsl-274xb-f1", .data = &board_dsl_274xb_f1, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
||||
{ .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },
|
@ -1,68 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -382,6 +382,49 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_A4001N1 = {
|
||||
+ .name = "963281T_TEF",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43225,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_dsl_274xb_f1 = {
|
||||
.name = "AW4339U",
|
||||
.expected_cpu_id = 0x6328,
|
||||
@@ -780,6 +823,7 @@ static const struct board_info __initcon
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
&board_96328avng,
|
||||
&board_963281TAN,
|
||||
+ &board_A4001N1,
|
||||
&board_dsl_274xb_f1,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
||||
@@ -820,6 +864,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "sagem,fast-2704n", .data = &board_FAST2704N, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
+ { .compatible = "adb,a4001n1", .data = &board_A4001N1, },
|
||||
{ .compatible = "brcm,bcm963281tan", .data = &board_963281TAN, },
|
||||
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
|
||||
{ .compatible = "d-link,dsl-274xb-f1", .data = &board_dsl_274xb_f1, },
|
@ -1,97 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -349,6 +349,78 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct sprom_fixup __initdata ar5387un_fixups[] = {
|
||||
+ { .offset = 2, .value = 0x05bb },
|
||||
+ { .offset = 65, .value = 0x1204 },
|
||||
+ { .offset = 78, .value = 0x0303 },
|
||||
+ { .offset = 79, .value = 0x0202 },
|
||||
+ { .offset = 80, .value = 0xff02 },
|
||||
+ { .offset = 87, .value = 0x0315 },
|
||||
+ { .offset = 88, .value = 0x0315 },
|
||||
+ { .offset = 96, .value = 0x2048 },
|
||||
+ { .offset = 97, .value = 0xff11 },
|
||||
+ { .offset = 98, .value = 0x1567 },
|
||||
+ { .offset = 99, .value = 0xfb24 },
|
||||
+ { .offset = 100, .value = 0x3e3c },
|
||||
+ { .offset = 101, .value = 0x4038 },
|
||||
+ { .offset = 102, .value = 0xfe7f },
|
||||
+ { .offset = 103, .value = 0x1279 },
|
||||
+ { .offset = 112, .value = 0x2048 },
|
||||
+ { .offset = 113, .value = 0xff03 },
|
||||
+ { .offset = 114, .value = 0x154c },
|
||||
+ { .offset = 115, .value = 0xfb27 },
|
||||
+ { .offset = 116, .value = 0x3e3c },
|
||||
+ { .offset = 117, .value = 0x4038 },
|
||||
+ { .offset = 118, .value = 0xfe87 },
|
||||
+ { .offset = 119, .value = 0x1233 },
|
||||
+ { .offset = 203, .value = 0x2226 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_AR5387un = {
|
||||
+ .name = "96328A-1441N1",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43225,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ .board_fixups = ar5387un_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(ar5387un_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_963281TAN = {
|
||||
.name = "963281TAN",
|
||||
.expected_cpu_id = 0x6328,
|
||||
@@ -822,6 +894,7 @@ static const struct board_info __initcon
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
&board_96328avng,
|
||||
+ &board_AR5387un,
|
||||
&board_963281TAN,
|
||||
&board_A4001N1,
|
||||
&board_dsl_274xb_f1,
|
||||
@@ -867,6 +940,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "adb,a4001n1", .data = &board_A4001N1, },
|
||||
{ .compatible = "brcm,bcm963281tan", .data = &board_963281TAN, },
|
||||
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
|
||||
+ { .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
|
||||
{ .compatible = "d-link,dsl-274xb-f1", .data = &board_dsl_274xb_f1, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
@ -1,79 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -349,6 +349,60 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct sprom_fixup __initdata ar5381u_fixups[] = {
|
||||
+ { .offset = 97, .value = 0xfee5 },
|
||||
+ { .offset = 98, .value = 0x157c },
|
||||
+ { .offset = 99, .value = 0xfae7 },
|
||||
+ { .offset = 113, .value = 0xfefa },
|
||||
+ { .offset = 114, .value = 0x15d6 },
|
||||
+ { .offset = 115, .value = 0xfaf8 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_AR5381u = {
|
||||
+ .name = "96328A-1241N",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43225,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ .board_fixups = ar5381u_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(ar5381u_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct sprom_fixup __initdata ar5387un_fixups[] = {
|
||||
{ .offset = 2, .value = 0x05bb },
|
||||
{ .offset = 65, .value = 0x1204 },
|
||||
@@ -894,6 +948,7 @@ static const struct board_info __initcon
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
&board_96328avng,
|
||||
+ &board_AR5381u,
|
||||
&board_AR5387un,
|
||||
&board_963281TAN,
|
||||
&board_A4001N1,
|
||||
@@ -940,6 +995,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "adb,a4001n1", .data = &board_A4001N1, },
|
||||
{ .compatible = "brcm,bcm963281tan", .data = &board_963281TAN, },
|
||||
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
|
||||
+ { .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, },
|
||||
{ .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
|
||||
{ .compatible = "d-link,dsl-274xb-f1", .data = &board_dsl_274xb_f1, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
@ -1,73 +0,0 @@
|
||||
From: Marcin Jurkowski <marcin1j@gmail.com>
|
||||
Date: Thu, 31 Oct 2013 22:33:10 +0000
|
||||
Subject: [PATCH] bcm63xx: Add kernel support for Sagemcom F@ST2704V2 ADSL
|
||||
router
|
||||
|
||||
This adds kernel support support for Sagemcom F@st 2704 wireless ADSL
|
||||
router.
|
||||
It's a BCM6328-based 802.11n wireless router with USB port and ADSL2+
|
||||
modem equipped with 64 MiB RAM and 8 MiB flash.
|
||||
|
||||
Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
|
||||
---
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -594,6 +594,42 @@ static struct board_info __initdata boar
|
||||
},
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_FAST2704V2 = {
|
||||
+ .name = "F@ST2704V2",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .has_usbd = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
|
||||
/*
|
||||
@@ -953,6 +989,7 @@ static const struct board_info __initcon
|
||||
&board_963281TAN,
|
||||
&board_A4001N1,
|
||||
&board_dsl_274xb_f1,
|
||||
+ &board_FAST2704V2,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
||||
&board_96338gw,
|
||||
@@ -998,6 +1035,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, },
|
||||
{ .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
|
||||
{ .compatible = "d-link,dsl-274xb-f1", .data = &board_dsl_274xb_f1, },
|
||||
+ { .compatible = "sagem,fast-2704-v2", .data = &board_FAST2704V2, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
||||
{ .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },
|
@ -1,68 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -508,6 +508,49 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_A4001N = {
|
||||
+ .name = "96328dg2x2",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43225,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_A4001N1 = {
|
||||
.name = "963281T_TEF",
|
||||
.expected_cpu_id = 0x6328,
|
||||
@@ -987,6 +1030,7 @@ static const struct board_info __initcon
|
||||
&board_AR5381u,
|
||||
&board_AR5387un,
|
||||
&board_963281TAN,
|
||||
+ &board_A4001N,
|
||||
&board_A4001N1,
|
||||
&board_dsl_274xb_f1,
|
||||
&board_FAST2704V2,
|
||||
@@ -1029,6 +1073,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "sagem,fast-2704n", .data = &board_FAST2704N, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
+ { .compatible = "adb,a4001n", .data = &board_A4001N, },
|
||||
{ .compatible = "adb,a4001n1", .data = &board_A4001N1, },
|
||||
{ .compatible = "brcm,bcm963281tan", .data = &board_963281TAN, },
|
||||
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
|
@ -1,69 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -673,6 +673,50 @@ static struct board_info __initdata boar
|
||||
},
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_R5010UNV2 = {
|
||||
+ .name = "96328ang",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43217,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
|
||||
/*
|
||||
@@ -1034,6 +1078,7 @@ static const struct board_info __initcon
|
||||
&board_A4001N1,
|
||||
&board_dsl_274xb_f1,
|
||||
&board_FAST2704V2,
|
||||
+ &board_R5010UNV2,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
||||
&board_96338gw,
|
||||
@@ -1080,6 +1125,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, },
|
||||
{ .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
|
||||
{ .compatible = "d-link,dsl-274xb-f1", .data = &board_dsl_274xb_f1, },
|
||||
+ { .compatible = "nucom,r5010un-v2", .data = &board_R5010UNV2, },
|
||||
{ .compatible = "sagem,fast-2704-v2", .data = &board_FAST2704V2, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
@ -1,91 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -349,6 +349,71 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct sprom_fixup __initdata ad1018_fixups[] = {
|
||||
+ { .offset = 6, .value = 0x1c00 },
|
||||
+ { .offset = 65, .value = 0x1256 },
|
||||
+ { .offset = 96, .value = 0x2046 },
|
||||
+ { .offset = 97, .value = 0xfe69 },
|
||||
+ { .offset = 98, .value = 0x1726 },
|
||||
+ { .offset = 99, .value = 0xfa5c },
|
||||
+ { .offset = 112, .value = 0x2046 },
|
||||
+ { .offset = 113, .value = 0xfea8 },
|
||||
+ { .offset = 114, .value = 0x1978 },
|
||||
+ { .offset = 115, .value = 0xfa26 },
|
||||
+ { .offset = 161, .value = 0x2222 },
|
||||
+ { .offset = 169, .value = 0x2222 },
|
||||
+ { .offset = 171, .value = 0x2222 },
|
||||
+ { .offset = 173, .value = 0x2222 },
|
||||
+ { .offset = 174, .value = 0x4444 },
|
||||
+ { .offset = 175, .value = 0x2222 },
|
||||
+ { .offset = 176, .value = 0x4444 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_AD1018 = {
|
||||
+ .name = "96328avngr",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "FIBRE",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "LAN3",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "LAN2",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "LAN1",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43217,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ .board_fixups = ad1018_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(ad1018_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct sprom_fixup __initdata ar5381u_fixups[] = {
|
||||
{ .offset = 97, .value = 0xfee5 },
|
||||
{ .offset = 98, .value = 0x157c },
|
||||
@@ -1071,6 +1136,7 @@ static const struct board_info __initcon
|
||||
#endif /* CONFIG_BCM63XX_CPU_6318 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
&board_96328avng,
|
||||
+ &board_AD1018,
|
||||
&board_AR5381u,
|
||||
&board_AR5387un,
|
||||
&board_963281TAN,
|
||||
@@ -1127,6 +1193,8 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "d-link,dsl-274xb-f1", .data = &board_dsl_274xb_f1, },
|
||||
{ .compatible = "nucom,r5010un-v2", .data = &board_R5010UNV2, },
|
||||
{ .compatible = "sagem,fast-2704-v2", .data = &board_FAST2704V2, },
|
||||
+ { .compatible = "sercomm,ad1018", .data = &board_AD1018, },
|
||||
+ { .compatible = "sercomm,ad1018-nor", .data = &board_AD1018, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6328 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
||||
{ .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },
|
@ -1,68 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -616,6 +616,49 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_PDG_A4001N_A_000_1A1_AX = {
|
||||
+ .name = "96328avng",
|
||||
+ .expected_cpu_id = 0x6328,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43225,
|
||||
+ .pci_bus = 1,
|
||||
+ .pci_dev = 0,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_A4001N1 = {
|
||||
.name = "963281T_TEF",
|
||||
.expected_cpu_id = 0x6328,
|
||||
@@ -1141,6 +1184,7 @@ static const struct board_info __initcon
|
||||
&board_AR5387un,
|
||||
&board_963281TAN,
|
||||
&board_A4001N,
|
||||
+ &board_PDG_A4001N_A_000_1A1_AX,
|
||||
&board_A4001N1,
|
||||
&board_dsl_274xb_f1,
|
||||
&board_FAST2704V2,
|
||||
@@ -1186,6 +1230,7 @@ static struct of_device_id const bcm963x
|
||||
#ifdef CONFIG_BCM63XX_CPU_6328
|
||||
{ .compatible = "adb,a4001n", .data = &board_A4001N, },
|
||||
{ .compatible = "adb,a4001n1", .data = &board_A4001N1, },
|
||||
+ { .compatible = "adb,pdg-a4001n-a-000-1a1-ax", .data = &board_PDG_A4001N_A_000_1A1_AX, },
|
||||
{ .compatible = "brcm,bcm963281tan", .data = &board_963281TAN, },
|
||||
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
|
||||
{ .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, },
|
@ -1,50 +1,6 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1202,6 +1202,27 @@ static struct board_info __initdata boar
|
||||
.force_duplex_full = 1,
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_V2500V_BB = {
|
||||
+ .name = "V2500V_BB",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
|
||||
/*
|
||||
@@ -1362,6 +1383,7 @@ static const struct board_info __initcon
|
||||
&board_96348_D4PW,
|
||||
&board_spw500v,
|
||||
&board_96348sv,
|
||||
+ &board_V2500V_BB,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6358
|
||||
&board_96358vw,
|
||||
@@ -1414,6 +1436,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "brcm,bcm96348gw-10", .data = &board_96348gw_10, },
|
||||
{ .compatible = "brcm,bcm96348gw-11", .data = &board_96348gw_11, },
|
||||
{ .compatible = "brcm,bcm96348gw-a", .data = &board_96348gw_a, },
|
||||
+ { .compatible = "bt,voyager-2500v-bb", .data = &board_V2500V_BB, },
|
||||
{ .compatible = "d-link,dsl-2640b-b", .data = &board_96348_D4PW, },
|
||||
{ .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
|
||||
{ .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
|
||||
@@ -1469,6 +1492,22 @@ void __init board_bcm963xx_init(void)
|
||||
@@ -3066,6 +3066,22 @@ void __init board_bcm963xx_init(void)
|
||||
val &= MPI_CSBASE_BASE_MASK;
|
||||
}
|
||||
boot_addr = (u8 *)KSEG1ADDR(val);
|
@ -1,38 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -871,6 +871,19 @@ static struct board_info __initdata boar
|
||||
.force_duplex_full = 1,
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_rta1320_16m = {
|
||||
+ .name = "RTA1320_16M",
|
||||
+ .expected_cpu_id = 0x6338,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6338 */
|
||||
|
||||
/*
|
||||
@@ -1207,6 +1220,7 @@ static const struct board_info __initcon
|
||||
&board_96338gw,
|
||||
&board_96338w,
|
||||
&board_96338w2_e7t,
|
||||
+ &board_rta1320_16m,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6338 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6345
|
||||
&board_96345gw2,
|
||||
@@ -1258,6 +1272,7 @@ static struct of_device_id const bcm963x
|
||||
#ifdef CONFIG_BCM63XX_CPU_6338
|
||||
{ .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },
|
||||
{ .compatible = "brcm,bcm96338w", .data = &board_96338w, },
|
||||
+ { .compatible = "dynalink,rta1320", .data = &board_rta1320_16m, },
|
||||
{ .compatible = "d-link,dsl-2640u", .data = &board_96338w2_e7t, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6338 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6345
|
@ -1,40 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1093,6 +1093,21 @@ static struct board_info __initdata boar
|
||||
|
||||
.has_ohci0 = 1,
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_96348_D4PW = {
|
||||
+ .name = "D-4P-W",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
|
||||
/*
|
||||
@@ -1248,6 +1263,7 @@ static const struct board_info __initcon
|
||||
&board_DV201AMR,
|
||||
&board_96348gw_a,
|
||||
&board_rta1025w_16,
|
||||
+ &board_96348_D4PW,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6358
|
||||
&board_96358vw,
|
||||
@@ -1300,6 +1316,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "brcm,bcm96348gw-10", .data = &board_96348gw_10, },
|
||||
{ .compatible = "brcm,bcm96348gw-11", .data = &board_96348gw_11, },
|
||||
{ .compatible = "brcm,bcm96348gw-a", .data = &board_96348gw_a, },
|
||||
+ { .compatible = "d-link,dsl-2640b-b", .data = &board_96348_D4PW, },
|
||||
{ .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
|
||||
{ .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
|
||||
{ .compatible = "netgear,dg834gt-pn", .data = &board_96348gw_10, },
|
@ -1,55 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1108,6 +1108,36 @@ static struct board_info __initdata boar
|
||||
.force_duplex_full = 1,
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct sprom_fixup __initdata spw500v_fixups[] = {
|
||||
+ { .offset = 46, .value = 0x3046 },
|
||||
+ { .offset = 47, .value = 0x15a7 },
|
||||
+ { .offset = 48, .value = 0xfa89 },
|
||||
+ { .offset = 49, .value = 0xfe79 },
|
||||
+ { .offset = 57, .value = 0x6a49 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_spw500v = {
|
||||
+ .name = "SPW500V",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ .board_fixups = spw500v_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(spw500v_fixups),
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
|
||||
/*
|
||||
@@ -1264,6 +1294,7 @@ static const struct board_info __initcon
|
||||
&board_96348gw_a,
|
||||
&board_rta1025w_16,
|
||||
&board_96348_D4PW,
|
||||
+ &board_spw500v,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6358
|
||||
&board_96358vw,
|
||||
@@ -1321,6 +1352,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
|
||||
{ .compatible = "netgear,dg834gt-pn", .data = &board_96348gw_10, },
|
||||
{ .compatible = "sagem,fast-2404", .data = &board_FAST2404, },
|
||||
+ { .compatible = "t-com,speedport-w-500v", .data = &board_spw500v, },
|
||||
{ .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
|
||||
{ .compatible = "usrobotics,usr9108", .data = &board_96348gw_a, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
@ -1,67 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1002,6 +1002,46 @@ static struct board_info __initdata boar
|
||||
.has_ohci0 = 1,
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_gw6200 = {
|
||||
+ .name = "GW6200",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_gw6000 = {
|
||||
+ .name = "GW6000",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_FAST2404 = {
|
||||
.name = "F@ST2404",
|
||||
.expected_cpu_id = 0x6348,
|
||||
@@ -1287,6 +1327,8 @@ static const struct board_info __initcon
|
||||
#ifdef CONFIG_BCM63XX_CPU_6348
|
||||
&board_96348r,
|
||||
&board_96348gw,
|
||||
+ &board_gw6000,
|
||||
+ &board_gw6200,
|
||||
&board_96348gw_10,
|
||||
&board_96348gw_11,
|
||||
&board_FAST2404,
|
||||
@@ -1353,6 +1395,8 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "netgear,dg834gt-pn", .data = &board_96348gw_10, },
|
||||
{ .compatible = "sagem,fast-2404", .data = &board_FAST2404, },
|
||||
{ .compatible = "t-com,speedport-w-500v", .data = &board_spw500v, },
|
||||
+ { .compatible = "tecom,gw6000", .data = &board_gw6000, },
|
||||
+ { .compatible = "tecom,gw6200", .data = &board_gw6200, },
|
||||
{ .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
|
||||
{ .compatible = "usrobotics,usr9108", .data = &board_96348gw_a, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
@ -1,49 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1178,6 +1178,30 @@ static struct board_info __initdata boar
|
||||
.num_board_fixups = ARRAY_SIZE(spw500v_fixups),
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_96348sv = {
|
||||
+ .name = "MAGIC",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pccard = 1,
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ /* it has BP_ENET_EXTERNAL_PHY */
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
|
||||
/*
|
||||
@@ -1337,6 +1361,7 @@ static const struct board_info __initcon
|
||||
&board_rta1025w_16,
|
||||
&board_96348_D4PW,
|
||||
&board_spw500v,
|
||||
+ &board_96348sv,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6358
|
||||
&board_96358vw,
|
||||
@@ -1397,6 +1422,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "t-com,speedport-w-500v", .data = &board_spw500v, },
|
||||
{ .compatible = "tecom,gw6000", .data = &board_gw6000, },
|
||||
{ .compatible = "tecom,gw6200", .data = &board_gw6200, },
|
||||
+ { .compatible = "telsey,magic", .data = &board_96348sv, },
|
||||
{ .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
|
||||
{ .compatible = "usrobotics,usr9108", .data = &board_96348gw_a, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
@ -1,41 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -979,6 +979,22 @@ static struct board_info __initdata boar
|
||||
.has_ehci0 = 1,
|
||||
};
|
||||
|
||||
+/* BT Voyager 2110 */
|
||||
+static struct board_info __initdata board_V2110 = {
|
||||
+ .name = "V2110",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_96348gw = {
|
||||
.name = "96348GW",
|
||||
.expected_cpu_id = 0x6348,
|
||||
@@ -1384,6 +1400,7 @@ static const struct board_info __initcon
|
||||
&board_spw500v,
|
||||
&board_96348sv,
|
||||
&board_V2500V_BB,
|
||||
+ &board_V2110,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6358
|
||||
&board_96358vw,
|
||||
@@ -1436,6 +1453,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "brcm,bcm96348gw-10", .data = &board_96348gw_10, },
|
||||
{ .compatible = "brcm,bcm96348gw-11", .data = &board_96348gw_11, },
|
||||
{ .compatible = "brcm,bcm96348gw-a", .data = &board_96348gw_a, },
|
||||
+ { .compatible = "bt,voyager-2110", .data = &board_V2110, },
|
||||
{ .compatible = "bt,voyager-2500v-bb", .data = &board_V2500V_BB, },
|
||||
{ .compatible = "d-link,dsl-2640b-b", .data = &board_96348_D4PW, },
|
||||
{ .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
|
@ -1,50 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -995,6 +995,30 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_ct536_ct5621 = {
|
||||
+ .name = "CT536_CT5621",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pccard = 1,
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_96348gw = {
|
||||
.name = "96348GW",
|
||||
.expected_cpu_id = 0x6348,
|
||||
@@ -1401,6 +1425,7 @@ static const struct board_info __initcon
|
||||
&board_96348sv,
|
||||
&board_V2500V_BB,
|
||||
&board_V2110,
|
||||
+ &board_ct536_ct5621,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6358
|
||||
&board_96358vw,
|
||||
@@ -1455,6 +1480,8 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "brcm,bcm96348gw-a", .data = &board_96348gw_a, },
|
||||
{ .compatible = "bt,voyager-2110", .data = &board_V2110, },
|
||||
{ .compatible = "bt,voyager-2500v-bb", .data = &board_V2500V_BB, },
|
||||
+ { .compatible = "comtrend,ct-536plus", .data = &board_ct536_ct5621, },
|
||||
+ { .compatible = "comtrend,ct-5621", .data = &board_ct536_ct5621, },
|
||||
{ .compatible = "d-link,dsl-2640b-b", .data = &board_96348_D4PW, },
|
||||
{ .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
|
||||
{ .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
|
@ -1,48 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1019,6 +1019,29 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_96348A_122 = {
|
||||
+ .name = "96348A-122",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_96348gw = {
|
||||
.name = "96348GW",
|
||||
.expected_cpu_id = 0x6348,
|
||||
@@ -1426,6 +1449,7 @@ static const struct board_info __initcon
|
||||
&board_V2500V_BB,
|
||||
&board_V2110,
|
||||
&board_ct536_ct5621,
|
||||
+ &board_96348A_122,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6358
|
||||
&board_96358vw,
|
||||
@@ -1481,6 +1505,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "bt,voyager-2110", .data = &board_V2110, },
|
||||
{ .compatible = "bt,voyager-2500v-bb", .data = &board_V2500V_BB, },
|
||||
{ .compatible = "comtrend,ct-536plus", .data = &board_ct536_ct5621, },
|
||||
+ { .compatible = "comtrend,ct-5365", .data = &board_96348A_122, },
|
||||
{ .compatible = "comtrend,ct-5621", .data = &board_ct536_ct5621, },
|
||||
{ .compatible = "d-link,dsl-2640b-b", .data = &board_96348_D4PW, },
|
||||
{ .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
|
@ -1,53 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -995,6 +995,34 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_CPVA502plus = {
|
||||
+ .name = "CPVA502+",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .ephy_reset_gpio = 4,
|
||||
+ .ephy_reset_gpio_flags = GPIO_ACTIVE_LOW,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_ct536_ct5621 = {
|
||||
.name = "CT536_CT5621",
|
||||
.expected_cpu_id = 0x6348,
|
||||
@@ -1450,6 +1478,7 @@ static const struct board_info __initcon
|
||||
&board_V2110,
|
||||
&board_ct536_ct5621,
|
||||
&board_96348A_122,
|
||||
+ &board_CPVA502plus,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6358
|
||||
&board_96358vw,
|
||||
@@ -1515,6 +1544,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "t-com,speedport-w-500v", .data = &board_spw500v, },
|
||||
{ .compatible = "tecom,gw6000", .data = &board_gw6000, },
|
||||
{ .compatible = "tecom,gw6200", .data = &board_gw6200, },
|
||||
+ { .compatible = "telsey,cpva502plus", .data = &board_CPVA502plus, },
|
||||
{ .compatible = "telsey,magic", .data = &board_96348sv, },
|
||||
{ .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
|
||||
{ .compatible = "usrobotics,usr9108", .data = &board_96348gw_a, },
|
@ -1,42 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1225,6 +1225,23 @@ static struct board_info __initdata boar
|
||||
.has_ohci0 = 1,
|
||||
};
|
||||
|
||||
+/* NetGear DG834G v4 */
|
||||
+static struct board_info __initdata board_96348W3 = {
|
||||
+ .name = "96348W3",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_96348_D4PW = {
|
||||
.name = "D-4P-W",
|
||||
.expected_cpu_id = 0x6348,
|
||||
@@ -1479,6 +1496,7 @@ static const struct board_info __initcon
|
||||
&board_ct536_ct5621,
|
||||
&board_96348A_122,
|
||||
&board_CPVA502plus,
|
||||
+ &board_96348W3,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6358
|
||||
&board_96358vw,
|
||||
@@ -1540,6 +1558,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
|
||||
{ .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
|
||||
{ .compatible = "netgear,dg834gt-pn", .data = &board_96348gw_10, },
|
||||
+ { .compatible = "netgear,dg834g-v4", .data = &board_96348W3, },
|
||||
{ .compatible = "sagem,fast-2404", .data = &board_FAST2404, },
|
||||
{ .compatible = "t-com,speedport-w-500v", .data = &board_spw500v, },
|
||||
{ .compatible = "tecom,gw6000", .data = &board_gw6000, },
|
@ -1,41 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1159,6 +1159,22 @@ static struct board_info __initdata boar
|
||||
.has_ehci0 = 1,
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_FAST2604 = {
|
||||
+ .name = "F@ST2604",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_rta1025w_16 = {
|
||||
.name = "RTA1025W_16",
|
||||
.expected_cpu_id = 0x6348,
|
||||
@@ -1485,6 +1501,7 @@ static const struct board_info __initcon
|
||||
&board_96348gw_10,
|
||||
&board_96348gw_11,
|
||||
&board_FAST2404,
|
||||
+ &board_FAST2604,
|
||||
&board_DV201AMR,
|
||||
&board_96348gw_a,
|
||||
&board_rta1025w_16,
|
||||
@@ -1560,6 +1577,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "netgear,dg834gt-pn", .data = &board_96348gw_10, },
|
||||
{ .compatible = "netgear,dg834g-v4", .data = &board_96348W3, },
|
||||
{ .compatible = "sagem,fast-2404", .data = &board_FAST2404, },
|
||||
+ { .compatible = "sagem,fast-2604", .data = &board_FAST2604, },
|
||||
{ .compatible = "t-com,speedport-w-500v", .data = &board_spw500v, },
|
||||
{ .compatible = "tecom,gw6000", .data = &board_gw6000, },
|
||||
{ .compatible = "tecom,gw6200", .data = &board_gw6200, },
|
@ -1,48 +0,0 @@
|
||||
From: "mexit@o2.pl" <mexit@o2.pl>
|
||||
Date: Sun, 24 Nov 2013 21:33:38 +0000
|
||||
Subject: [PATCH 4/5] bcm63xx: add support for Asmax AR 1004g router
|
||||
|
||||
Support for Asmax AR 1004g router
|
||||
|
||||
Signed-off-by: Adrian Feliks <mexit@o2.pl>
|
||||
---
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -979,6 +979,21 @@ static struct board_info __initdata boar
|
||||
.has_ehci0 = 1,
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_96348gw_10_AR1004G = {
|
||||
+ .name = "AR1004G",
|
||||
+ .expected_cpu_id = 0x6348,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
/* BT Voyager 2110 */
|
||||
static struct board_info __initdata board_V2110 = {
|
||||
.name = "V2110",
|
||||
@@ -1514,6 +1529,7 @@ static const struct board_info __initcon
|
||||
&board_96348A_122,
|
||||
&board_CPVA502plus,
|
||||
&board_96348W3,
|
||||
+ &board_96348gw_10_AR1004G,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6348 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6358
|
||||
&board_96358vw,
|
||||
@@ -1561,6 +1577,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "dynalink,rta770w", .data = &board_rta770w, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6345 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6348
|
||||
+ { .compatible = "asmax,ar-1004g", .data = &board_96348gw_10_AR1004G, },
|
||||
{ .compatible = "belkin,f5d7633", .data = &board_96348gw_10, },
|
||||
{ .compatible = "brcm,bcm96348r", .data = &board_96348r, },
|
||||
{ .compatible = "brcm,bcm96348gw-10", .data = &board_96348gw_10, },
|
@ -1,77 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1470,6 +1470,56 @@ static struct board_info __initdata boar
|
||||
.has_ohci0 = 1,
|
||||
.has_ehci0 = 1,
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_nb4_ser_r0 = {
|
||||
+ .name = "NB4-SER-r0",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pccard = 1,
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_nb4_fxc_r1 = {
|
||||
+ .name = "NB4-FXC-r1",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pccard = 1,
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
|
||||
/*
|
||||
@@ -1537,6 +1587,8 @@ static const struct board_info __initcon
|
||||
&board_96358vw2,
|
||||
&board_AGPFS0,
|
||||
&board_DWVS0,
|
||||
+ &board_nb4_ser_r0,
|
||||
+ &board_nb4_fxc_r1,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
};
|
||||
|
||||
@@ -1613,6 +1665,8 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "pirelli,a226m", .data = &board_DWVS0, },
|
||||
{ .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },
|
||||
{ .compatible = "pirelli,agpf-s0", .data = &board_AGPFS0, },
|
||||
+ { .compatible = "sfr,neufbox-4-sercomm-r0", .data = &board_nb4_ser_r0, },
|
||||
+ { .compatible = "sfr,neufbox-4-foxconn-r1", .data = &board_nb4_fxc_r1, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
@ -1,42 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1422,6 +1422,23 @@ static struct board_info __initdata boar
|
||||
.num_usbh_ports = 2,
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_CPVA642 = {
|
||||
+ .name = "CPVA642",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_AGPFS0 = {
|
||||
.name = "AGPF-S0",
|
||||
.expected_cpu_id = 0x6358,
|
||||
@@ -1586,6 +1603,7 @@ static const struct board_info __initcon
|
||||
&board_96358vw,
|
||||
&board_96358vw2,
|
||||
&board_AGPFS0,
|
||||
+ &board_CPVA642,
|
||||
&board_DWVS0,
|
||||
&board_nb4_ser_r0,
|
||||
&board_nb4_fxc_r1,
|
||||
@@ -1667,6 +1685,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "pirelli,agpf-s0", .data = &board_AGPFS0, },
|
||||
{ .compatible = "sfr,neufbox-4-sercomm-r0", .data = &board_nb4_ser_r0, },
|
||||
{ .compatible = "sfr,neufbox-4-foxconn-r1", .data = &board_nb4_fxc_r1, },
|
||||
+ { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
@ -1,41 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1488,6 +1488,22 @@ static struct board_info __initdata boar
|
||||
.has_ehci0 = 1,
|
||||
};
|
||||
|
||||
+/* D-Link DSL-274xB revison C2/C3 */
|
||||
+static struct board_info __initdata board_dsl_274xb_rev_c = {
|
||||
+ .name = "AW4139",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_nb4_ser_r0 = {
|
||||
.name = "NB4-SER-r0",
|
||||
.expected_cpu_id = 0x6358,
|
||||
@@ -1605,6 +1621,7 @@ static const struct board_info __initcon
|
||||
&board_AGPFS0,
|
||||
&board_CPVA642,
|
||||
&board_DWVS0,
|
||||
+ &board_dsl_274xb_rev_c,
|
||||
&board_nb4_ser_r0,
|
||||
&board_nb4_fxc_r1,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
@@ -1678,6 +1695,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "alcatel,rg100a", .data = &board_96358vw2, },
|
||||
{ .compatible = "brcm,bcm96358vw", .data = &board_96358vw, },
|
||||
{ .compatible = "brcm,bcm96358vw2", .data = &board_96358vw2, },
|
||||
+ { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
|
||||
{ .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
|
||||
{ .compatible = "pirelli,a226g", .data = &board_DWVS0, },
|
||||
{ .compatible = "pirelli,a226m", .data = &board_DWVS0, },
|
@ -1,50 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1553,6 +1553,31 @@ static struct board_info __initdata boar
|
||||
.force_duplex_full = 1,
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_HW553 = {
|
||||
+ .name = "HW553",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
|
||||
/*
|
||||
@@ -1624,6 +1649,7 @@ static const struct board_info __initcon
|
||||
&board_dsl_274xb_rev_c,
|
||||
&board_nb4_ser_r0,
|
||||
&board_nb4_fxc_r1,
|
||||
+ &board_HW553,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
};
|
||||
|
||||
@@ -1697,6 +1723,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "brcm,bcm96358vw2", .data = &board_96358vw2, },
|
||||
{ .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
|
||||
{ .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
|
||||
+ { .compatible = "huawei,echolife-hg553", .data = &board_HW553, },
|
||||
{ .compatible = "pirelli,a226g", .data = &board_DWVS0, },
|
||||
{ .compatible = "pirelli,a226m", .data = &board_DWVS0, },
|
||||
{ .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },
|
@ -1,39 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1578,6 +1578,20 @@ static struct board_info __initdata boar
|
||||
.pci_dev = 1,
|
||||
},
|
||||
};
|
||||
+
|
||||
+ /* T-Home Speedport W 303V Typ B */
|
||||
+static struct board_info __initdata board_spw303v = {
|
||||
+ .name = "96358-502V",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
|
||||
/*
|
||||
@@ -1650,6 +1664,7 @@ static const struct board_info __initcon
|
||||
&board_nb4_ser_r0,
|
||||
&board_nb4_fxc_r1,
|
||||
&board_HW553,
|
||||
+ &board_spw303v,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
};
|
||||
|
||||
@@ -1730,6 +1745,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "pirelli,agpf-s0", .data = &board_AGPFS0, },
|
||||
{ .compatible = "sfr,neufbox-4-sercomm-r0", .data = &board_nb4_ser_r0, },
|
||||
{ .compatible = "sfr,neufbox-4-foxconn-r1", .data = &board_nb4_fxc_r1, },
|
||||
+ { .compatible = "t-com,speedport-w-303v", .data = &board_spw303v, },
|
||||
{ .compatible = "telsey,cpva642", .data = &board_CPVA642, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6362
|
@ -1,49 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1554,6 +1554,30 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_ct6373_1 = {
|
||||
+ .name = "CT6373-1",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_HW553 = {
|
||||
.name = "HW553",
|
||||
.expected_cpu_id = 0x6358,
|
||||
@@ -1663,6 +1687,7 @@ static const struct board_info __initcon
|
||||
&board_dsl_274xb_rev_c,
|
||||
&board_nb4_ser_r0,
|
||||
&board_nb4_fxc_r1,
|
||||
+ &board_ct6373_1,
|
||||
&board_HW553,
|
||||
&board_spw303v,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
@@ -1736,6 +1761,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "alcatel,rg100a", .data = &board_96358vw2, },
|
||||
{ .compatible = "brcm,bcm96358vw", .data = &board_96358vw, },
|
||||
{ .compatible = "brcm,bcm96358vw2", .data = &board_96358vw2, },
|
||||
+ { .compatible = "comtrend,ct-6373", .data = &board_ct6373_1, },
|
||||
{ .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
|
||||
{ .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
|
||||
{ .compatible = "huawei,echolife-hg553", .data = &board_HW553, },
|
@ -1,50 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1616,6 +1616,31 @@ static struct board_info __initdata boar
|
||||
.use_internal_phy = 1,
|
||||
},
|
||||
};
|
||||
+
|
||||
+/* D-Link DVA-G3810BN/TL */
|
||||
+static struct board_info __initdata board_DVAG3810BN = {
|
||||
+ .name = "DVAG3810BN",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pccard = 1,
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
|
||||
/*
|
||||
@@ -1690,6 +1715,7 @@ static const struct board_info __initcon
|
||||
&board_ct6373_1,
|
||||
&board_HW553,
|
||||
&board_spw303v,
|
||||
+ &board_DVAG3810BN,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
};
|
||||
|
||||
@@ -1764,6 +1790,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "comtrend,ct-6373", .data = &board_ct6373_1, },
|
||||
{ .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
|
||||
{ .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
|
||||
+ { .compatible = "d-link,dva-g3810bn-tl", .data = &board_DVAG3810BN, },
|
||||
{ .compatible = "huawei,echolife-hg553", .data = &board_HW553, },
|
||||
{ .compatible = "pirelli,a226g", .data = &board_DWVS0, },
|
||||
{ .compatible = "pirelli,a226m", .data = &board_DWVS0, },
|
@ -1,125 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
+#include <linux/pci_ids.h>
|
||||
#include <asm/addrspace.h>
|
||||
#include <bcm63xx_board.h>
|
||||
#include <bcm63xx_cpu.h>
|
||||
@@ -1603,6 +1604,94 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_HW556_A = {
|
||||
+ .name = "HW556_A",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_caldata = 1,
|
||||
+ .caldata = {
|
||||
+ {
|
||||
+ .vendor = PCI_VENDOR_ID_ATHEROS,
|
||||
+ .caldata_offset = 0xf7e000,
|
||||
+ .slot = 1,
|
||||
+ .endian_check = 1,
|
||||
+ .led_pin = 2,
|
||||
+ .led_active_high = 1,
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_HW556_B = {
|
||||
+ .name = "HW556_B",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_caldata = 1,
|
||||
+ .caldata = {
|
||||
+ {
|
||||
+ .vendor = PCI_VENDOR_ID_ATHEROS,
|
||||
+ .caldata_offset = 0xefe000,
|
||||
+ .slot = 1,
|
||||
+ .endian_check = 1,
|
||||
+ .led_pin = 2,
|
||||
+ .led_active_high = 1,
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_HW556_C = {
|
||||
+ .name = "HW556_C",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_caldata = 1,
|
||||
+ .caldata = {
|
||||
+ {
|
||||
+ .vendor = PCI_VENDOR_ID_RALINK,
|
||||
+ .caldata_offset = 0xeffe00,
|
||||
+ .slot = 1,
|
||||
+ .eeprom = "rt2x00.eeprom",
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
/* T-Home Speedport W 303V Typ B */
|
||||
static struct board_info __initdata board_spw303v = {
|
||||
.name = "96358-502V",
|
||||
@@ -1714,6 +1803,9 @@ static const struct board_info __initcon
|
||||
&board_nb4_fxc_r1,
|
||||
&board_ct6373_1,
|
||||
&board_HW553,
|
||||
+ &board_HW556_A,
|
||||
+ &board_HW556_B,
|
||||
+ &board_HW556_C,
|
||||
&board_spw303v,
|
||||
&board_DVAG3810BN,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
@@ -1792,6 +1884,9 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
|
||||
{ .compatible = "d-link,dva-g3810bn-tl", .data = &board_DVAG3810BN, },
|
||||
{ .compatible = "huawei,echolife-hg553", .data = &board_HW553, },
|
||||
+ { .compatible = "huawei,echolife-hg556a-a", .data = &board_HW556_A, },
|
||||
+ { .compatible = "huawei,echolife-hg556a-b", .data = &board_HW556_B, },
|
||||
+ { .compatible = "huawei,echolife-hg556a-c", .data = &board_HW556_C, },
|
||||
{ .compatible = "pirelli,a226g", .data = &board_DWVS0, },
|
||||
{ .compatible = "pirelli,a226m", .data = &board_DWVS0, },
|
||||
{ .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },
|
@ -1,55 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1579,6 +1579,36 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_HW520 = {
|
||||
+ .name = "HW6358GW_B",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enet0 = 1,
|
||||
+ .enet0 = {
|
||||
+ .has_phy = 1,
|
||||
+ .use_internal_phy = 1,
|
||||
+ },
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_HW553 = {
|
||||
.name = "HW553",
|
||||
.expected_cpu_id = 0x6358,
|
||||
@@ -1802,6 +1832,7 @@ static const struct board_info __initcon
|
||||
&board_nb4_ser_r0,
|
||||
&board_nb4_fxc_r1,
|
||||
&board_ct6373_1,
|
||||
+ &board_HW520,
|
||||
&board_HW553,
|
||||
&board_HW556_A,
|
||||
&board_HW556_B,
|
||||
@@ -1883,6 +1914,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
|
||||
{ .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
|
||||
{ .compatible = "d-link,dva-g3810bn-tl", .data = &board_DVAG3810BN, },
|
||||
+ { .compatible = "huawei,echolife-hg520v", .data = &board_HW520, },
|
||||
{ .compatible = "huawei,echolife-hg553", .data = &board_HW553, },
|
||||
{ .compatible = "huawei,echolife-hg556a-a", .data = &board_HW556_A, },
|
||||
{ .compatible = "huawei,echolife-hg556a-b", .data = &board_HW556_B, },
|
@ -1,50 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1579,6 +1579,31 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_homehub2a = {
|
||||
+ .name = "HOMEHUB2A",
|
||||
+ .expected_cpu_id = 0x6358,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enet1 = 1,
|
||||
+ .enet1 = {
|
||||
+ .has_phy = 1,
|
||||
+ .phy_id = 0,
|
||||
+ .force_speed_100 = 1,
|
||||
+ .force_duplex_full = 1,
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4322,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_HW520 = {
|
||||
.name = "HW6358GW_B",
|
||||
.expected_cpu_id = 0x6358,
|
||||
@@ -1832,6 +1857,7 @@ static const struct board_info __initcon
|
||||
&board_nb4_ser_r0,
|
||||
&board_nb4_fxc_r1,
|
||||
&board_ct6373_1,
|
||||
+ &board_homehub2a,
|
||||
&board_HW520,
|
||||
&board_HW553,
|
||||
&board_HW556_A,
|
||||
@@ -1927,6 +1953,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "sfr,neufbox-4-foxconn-r1", .data = &board_nb4_fxc_r1, },
|
||||
{ .compatible = "t-com,speedport-w-303v", .data = &board_spw303v, },
|
||||
{ .compatible = "telsey,cpva642", .data = &board_CPVA642, },
|
||||
+ { .compatible = "bt,home-hub-2-a", .data = &board_homehub2a, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
@ -1,52 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1787,6 +1787,31 @@ static struct board_info __initdata boar
|
||||
};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
|
||||
+#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
+static struct board_info __initdata board_nb6 = {
|
||||
+ .name = "NB6",
|
||||
+ .expected_cpu_id = 0x6362,
|
||||
+
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [4] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0xff,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
+
|
||||
/*
|
||||
* all boards
|
||||
*/
|
||||
@@ -1866,6 +1891,9 @@ static const struct board_info __initcon
|
||||
&board_spw303v,
|
||||
&board_DVAG3810BN,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
+#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
+ &board_nb6,
|
||||
+#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
};
|
||||
|
||||
static struct of_device_id const bcm963xx_boards_dt[] = {
|
||||
@@ -1956,6 +1984,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "bt,home-hub-2-a", .data = &board_homehub2a, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
+ { .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
@ -1,62 +0,0 @@
|
||||
From: Max Staudt <openwrt.max@enpas.org>
|
||||
Date: Wed, 15 Jan 2014 18:51:13 +0000
|
||||
Subject: [PATCH] bcm63xx: F@ST2504n board support (Linux-3.10.26)
|
||||
|
||||
Signed-off-by: Max Staudt <openwrt.max@enpas.org>
|
||||
---
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1810,6 +1810,37 @@ static struct board_info __initdata boar
|
||||
},
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_fast2504n = {
|
||||
+ .name = "F@ST2504n",
|
||||
+ .expected_cpu_id = 0x6362,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "Port 1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "Port 2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "Port 3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "Port 4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
|
||||
/*
|
||||
@@ -1893,6 +1924,7 @@ static const struct board_info __initcon
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
&board_nb6,
|
||||
+ &board_fast2504n,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
};
|
||||
|
||||
@@ -1984,6 +2016,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "bt,home-hub-2-a", .data = &board_homehub2a, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
+ { .compatible = "sagem,fast-2504n", .data = &board_fast2504n, },
|
||||
{ .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6368
|
@ -1,49 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1811,6 +1811,30 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_dgnd3700v2 = {
|
||||
+ .name = "96362ADVN2xh",
|
||||
+ .expected_cpu_id = 0x6362,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [4] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0xff,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_fast2504n = {
|
||||
.name = "F@ST2504n",
|
||||
.expected_cpu_id = 0x6362,
|
||||
@@ -1924,6 +1948,7 @@ static const struct board_info __initcon
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
&board_nb6,
|
||||
+ &board_dgnd3700v2,
|
||||
&board_fast2504n,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
};
|
||||
@@ -2016,6 +2041,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "bt,home-hub-2-a", .data = &board_homehub2a, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
+ { .compatible = "netgear,dgnd3700-v2", .data = &board_dgnd3700v2, },
|
||||
{ .compatible = "sagem,fast-2504n", .data = &board_fast2504n, },
|
||||
{ .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
@ -1,56 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1865,6 +1865,37 @@ static struct board_info __initdata boar
|
||||
},
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_hg253s_v2 = {
|
||||
+ .name = "hg253s",
|
||||
+ .expected_cpu_id = 0x6362,
|
||||
+
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [4] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0xff,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .timing_sel = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+
|
||||
+ [5] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 24,
|
||||
+ .timing_sel = 1,
|
||||
+ .name = "WAN",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
|
||||
/*
|
||||
@@ -1950,6 +1981,7 @@ static const struct board_info __initcon
|
||||
&board_nb6,
|
||||
&board_dgnd3700v2,
|
||||
&board_fast2504n,
|
||||
+ &board_hg253s_v2,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
};
|
||||
|
||||
@@ -2041,6 +2073,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "bt,home-hub-2-a", .data = &board_homehub2a, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6362
|
||||
+ { .compatible = "huawei,hg253s-v2", .data = &board_hg253s_v2, },
|
||||
{ .compatible = "netgear,dgnd3700-v2", .data = &board_dgnd3700v2, },
|
||||
{ .compatible = "sagem,fast-2504n", .data = &board_fast2504n, },
|
||||
{ .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },
|
@ -1,111 +0,0 @@
|
||||
From eeacc2529942051504bc957726aa178671344421 Mon Sep 17 00:00:00 2001
|
||||
From: Maxime Bizon <mbizon@freebox.fr>
|
||||
Date: Wed, 20 Jan 2010 16:21:30 +0100
|
||||
Subject: [PATCH 32/63] bcm63xx: add support for 96368MVWG board.
|
||||
|
||||
---
|
||||
arch/mips/bcm63xx/boards/board_bcm963xx.c | 95 ++++++++++++++++++++
|
||||
.../mips/include/asm/mach-bcm63xx/board_bcm963xx.h | 2 +
|
||||
2 files changed, 97 insertions(+), 0 deletions(-)
|
||||
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1899,6 +1899,52 @@ static struct board_info __initdata boar
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
|
||||
/*
|
||||
+ * known 6368 boards
|
||||
+ */
|
||||
+#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
+static struct board_info __initdata board_96368mvwg = {
|
||||
+ .name = "96368MVWG",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_usbd = 1,
|
||||
+ .usbd = {
|
||||
+ .use_fullspeed = 0,
|
||||
+ .port_no = 0,
|
||||
+ },
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [4] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0x12,
|
||||
+ .name = "port0",
|
||||
+ },
|
||||
+ [5] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0x11,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
+
|
||||
+/*
|
||||
* all boards
|
||||
*/
|
||||
static const struct board_info __initconst *bcm963xx_boards[] = {
|
||||
@@ -1983,6 +2029,9 @@ static const struct board_info __initcon
|
||||
&board_fast2504n,
|
||||
&board_hg253s_v2,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
+#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
+ &board_96368mvwg,
|
||||
+#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
};
|
||||
|
||||
static struct of_device_id const bcm963xx_boards_dt[] = {
|
||||
@@ -2079,6 +2128,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
+ { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_63268
|
||||
#endif /* CONFIG_BCM63XX_CPU_63268 */
|
||||
--- a/arch/mips/bcm63xx/boards/board_common.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_common.c
|
||||
@@ -81,12 +81,25 @@ void __init board_early_setup(const stru
|
||||
bcm63xx_pci_enabled = 1;
|
||||
if (BCMCPU_IS_6348())
|
||||
val |= GPIO_MODE_6348_G2_PCI;
|
||||
+
|
||||
+ if (BCMCPU_IS_6368())
|
||||
+ val |= GPIO_MODE_6368_PCI_REQ1 |
|
||||
+ GPIO_MODE_6368_PCI_GNT1 |
|
||||
+ GPIO_MODE_6368_PCI_INTB |
|
||||
+ GPIO_MODE_6368_PCI_REQ0 |
|
||||
+ GPIO_MODE_6368_PCI_GNT0;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (board.has_pccard) {
|
||||
if (BCMCPU_IS_6348())
|
||||
val |= GPIO_MODE_6348_G1_MII_PCCARD;
|
||||
+
|
||||
+ if (BCMCPU_IS_6368())
|
||||
+ val |= GPIO_MODE_6368_PCMCIA_CD1 |
|
||||
+ GPIO_MODE_6368_PCMCIA_CD2 |
|
||||
+ GPIO_MODE_6368_PCMCIA_VS1 |
|
||||
+ GPIO_MODE_6368_PCMCIA_VS2;
|
||||
}
|
||||
|
||||
if (board.has_enet0 && !board.enet0.use_internal_phy) {
|
@ -1,69 +0,0 @@
|
||||
From f457fc2eb9bb915b5a4d251c7c68d4694cf07b01 Mon Sep 17 00:00:00 2001
|
||||
From: Maxime Bizon <mbizon@freebox.fr>
|
||||
Date: Fri, 4 Nov 2011 12:33:48 +0100
|
||||
Subject: [PATCH 33/63] bcm63xx: add support for 96368MVNgr board.
|
||||
|
||||
---
|
||||
arch/mips/bcm63xx/boards/board_bcm963xx.c | 67 +++++++++++++++++++++++++++++
|
||||
1 files changed, 67 insertions(+), 0 deletions(-)
|
||||
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1942,6 +1942,41 @@ static struct board_info __initdata boar
|
||||
},
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct board_info __initdata board_96368mvngr = {
|
||||
+ .name = "96368MVNgr",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
|
||||
/*
|
||||
@@ -2031,6 +2066,7 @@ static const struct board_info __initcon
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
&board_96368mvwg,
|
||||
+ &board_96368mvngr,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
};
|
||||
|
||||
@@ -2128,6 +2164,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
+ { .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
|
||||
{ .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_63268
|
@ -1,75 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -13,6 +13,8 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/pci_ids.h>
|
||||
+#include <linux/platform_data/b53.h>
|
||||
+#include <linux/spi/spi.h>
|
||||
#include <asm/addrspace.h>
|
||||
#include <bcm63xx_board.h>
|
||||
#include <bcm63xx_cpu.h>
|
||||
@@ -1977,6 +1979,47 @@ static struct board_info __initdata boar
|
||||
},
|
||||
},
|
||||
};
|
||||
+
|
||||
+static struct sprom_fixup __initdata wap5813n_fixups[] = {
|
||||
+ { .offset = 97, .value = 0xfeed },
|
||||
+ { .offset = 98, .value = 0x15d1 },
|
||||
+ { .offset = 99, .value = 0xfb0d },
|
||||
+ { .offset = 113, .value = 0xfef7 },
|
||||
+ { .offset = 114, .value = 0x15f7 },
|
||||
+ { .offset = 115, .value = 0xfb1a },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_WAP5813n = {
|
||||
+ .name = "96369R-1231N",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [4] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0xff,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43222,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ .board_fixups = wap5813n_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(wap5813n_fixups),
|
||||
+ },
|
||||
+};
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
|
||||
/*
|
||||
@@ -2067,6 +2110,7 @@ static const struct board_info __initcon
|
||||
#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
&board_96368mvwg,
|
||||
&board_96368mvngr,
|
||||
+ &board_WAP5813n,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
};
|
||||
|
||||
@@ -2166,6 +2210,7 @@ static struct of_device_id const bcm963x
|
||||
#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
{ .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
|
||||
{ .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
|
||||
+ { .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_63268
|
||||
#endif /* CONFIG_BCM63XX_CPU_63268 */
|
@ -1,78 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1980,6 +1980,59 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct sprom_fixup __initdata vr3025u_fixups[] = {
|
||||
+ { .offset = 97, .value = 0xfeb3 },
|
||||
+ { .offset = 98, .value = 0x1618 },
|
||||
+ { .offset = 99, .value = 0xfab0 },
|
||||
+ { .offset = 113, .value = 0xfed1 },
|
||||
+ { .offset = 114, .value = 0x1609 },
|
||||
+ { .offset = 115, .value = 0xfad9 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_VR3025u = {
|
||||
+ .name = "96368M-1541N",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43222,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ .board_fixups = vr3025u_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(vr3025u_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct sprom_fixup __initdata wap5813n_fixups[] = {
|
||||
{ .offset = 97, .value = 0xfeed },
|
||||
{ .offset = 98, .value = 0x15d1 },
|
||||
@@ -2110,6 +2163,7 @@ static const struct board_info __initcon
|
||||
#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
&board_96368mvwg,
|
||||
&board_96368mvngr,
|
||||
+ &board_VR3025u,
|
||||
&board_WAP5813n,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
};
|
||||
@@ -2210,6 +2264,7 @@ static struct of_device_id const bcm963x
|
||||
#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
{ .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
|
||||
{ .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
|
||||
+ { .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
|
||||
{ .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_63268
|
@ -1,78 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -2033,6 +2033,59 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct sprom_fixup __initdata vr3025un_fixups[] = {
|
||||
+ { .offset = 97, .value = 0xfeb3 },
|
||||
+ { .offset = 98, .value = 0x1618 },
|
||||
+ { .offset = 99, .value = 0xfab0 },
|
||||
+ { .offset = 113, .value = 0xfed1 },
|
||||
+ { .offset = 114, .value = 0x1609 },
|
||||
+ { .offset = 115, .value = 0xfad9 },
|
||||
+};
|
||||
+
|
||||
+static struct board_info __initdata board_VR3025un = {
|
||||
+ .name = "96368M-1341N",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM43222,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ .board_fixups = vr3025un_fixups,
|
||||
+ .num_board_fixups = ARRAY_SIZE(vr3025un_fixups),
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct sprom_fixup __initdata wap5813n_fixups[] = {
|
||||
{ .offset = 97, .value = 0xfeed },
|
||||
{ .offset = 98, .value = 0x15d1 },
|
||||
@@ -2164,6 +2217,7 @@ static const struct board_info __initcon
|
||||
&board_96368mvwg,
|
||||
&board_96368mvngr,
|
||||
&board_VR3025u,
|
||||
+ &board_VR3025un,
|
||||
&board_WAP5813n,
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
};
|
||||
@@ -2265,6 +2319,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
|
||||
{ .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
|
||||
{ .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
|
||||
+ { .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
|
||||
{ .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_63268
|
@ -1,67 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1989,6 +1989,48 @@ static struct sprom_fixup __initdata vr3
|
||||
{ .offset = 115, .value = 0xfad9 },
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_P870HW51A_V2 = {
|
||||
+ .name = "P870HW-51a_v2",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .use_fallback_sprom = 1,
|
||||
+ .fallback_sprom = {
|
||||
+ .type = SPROM_BCM4318,
|
||||
+ .pci_bus = 0,
|
||||
+ .pci_dev = 1,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct board_info __initdata board_VR3025u = {
|
||||
.name = "96368M-1541N",
|
||||
.expected_cpu_id = 0x6368,
|
||||
@@ -2216,6 +2258,7 @@ static const struct board_info __initcon
|
||||
#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
&board_96368mvwg,
|
||||
&board_96368mvngr,
|
||||
+ &board_P870HW51A_V2,
|
||||
&board_VR3025u,
|
||||
&board_VR3025un,
|
||||
&board_WAP5813n,
|
||||
@@ -2321,6 +2364,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
|
||||
{ .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
|
||||
{ .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
|
||||
+ { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_63268
|
||||
#endif /* CONFIG_BCM63XX_CPU_63268 */
|
@ -1,49 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -1980,6 +1980,30 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_DGND3700v1_3800B = {
|
||||
+ .name = "DGND3700v1_3800B",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [5] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 0xff,
|
||||
+ .bypass_link = 1,
|
||||
+ .force_speed = 1000,
|
||||
+ .force_duplex_full = 1,
|
||||
+ .name = "RGMII",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct sprom_fixup __initdata vr3025u_fixups[] = {
|
||||
{ .offset = 97, .value = 0xfeb3 },
|
||||
{ .offset = 98, .value = 0x1618 },
|
||||
@@ -2258,6 +2282,7 @@ static const struct board_info __initcon
|
||||
#ifdef CONFIG_BCM63XX_CPU_6368
|
||||
&board_96368mvwg,
|
||||
&board_96368mvngr,
|
||||
+ &board_DGND3700v1_3800B,
|
||||
&board_P870HW51A_V2,
|
||||
&board_VR3025u,
|
||||
&board_VR3025un,
|
||||
@@ -2364,6 +2389,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
|
||||
{ .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
|
||||
{ .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
|
||||
+ { .compatible = "netgear,dgnd3700-v1", .data = &board_DGND3700v1_3800B, },
|
||||
{ .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
||||
#ifdef CONFIG_BCM63XX_CPU_63268
|
@ -1,71 +0,0 @@
|
||||
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
||||
@@ -2004,6 +2004,52 @@ static struct board_info __initdata boar
|
||||
},
|
||||
};
|
||||
|
||||
+static struct board_info __initdata board_HG655b = {
|
||||
+ .name = "HW65x",
|
||||
+ .expected_cpu_id = 0x6368,
|
||||
+
|
||||
+ .has_pci = 1,
|
||||
+ .has_ohci0 = 1,
|
||||
+ .has_ehci0 = 1,
|
||||
+ .num_usbh_ports = 2,
|
||||
+
|
||||
+ .has_caldata = 1,
|
||||
+ .caldata = {
|
||||
+ {
|
||||
+ .vendor = PCI_VENDOR_ID_RALINK,
|
||||
+ .caldata_offset = 0x7c0000,
|
||||
+ .slot = 1,
|
||||
+ .eeprom = "rt2x00.eeprom",
|
||||
+ },
|
||||
+ },
|
||||
+
|
||||
+ .has_enetsw = 1,
|
||||
+ .enetsw = {
|
||||
+ .used_ports = {
|
||||
+ [0] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 1,
|
||||
+ .name = "port1",
|
||||
+ },
|
||||
+ [1] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 2,
|
||||
+ .name = "port2",
|
||||
+ },
|
||||
+ [2] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 3,
|
||||
+ .name = "port3",
|
||||
+ },
|
||||
+ [3] = {
|
||||
+ .used = 1,
|
||||
+ .phy_id = 4,
|
||||
+ .name = "port4",
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
static struct sprom_fixup __initdata vr3025u_fixups[] = {
|
||||
{ .offset = 97, .value = 0xfeb3 },
|
||||
{ .offset = 98, .value = 0x1618 },
|
||||
@@ -2283,6 +2329,7 @@ static const struct board_info __initcon
|
||||
&board_96368mvwg,
|
||||
&board_96368mvngr,
|
||||
&board_DGND3700v1_3800B,
|
||||
+ &board_HG655b,
|
||||
&board_P870HW51A_V2,
|
||||
&board_VR3025u,
|
||||
&board_VR3025un,
|
||||
@@ -2389,6 +2436,7 @@ static struct of_device_id const bcm963x
|
||||
{ .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
|
||||
{ .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
|
||||
{ .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
|
||||
+ { .compatible = "huawei,echolife-hg655b", .data = &board_HG655b, },
|
||||
{ .compatible = "netgear,dgnd3700-v1", .data = &board_DGND3700v1_3800B, },
|
||||
{ .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
|
||||
#endif /* CONFIG_BCM63XX_CPU_6368 */
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user