-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,320 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/sh | ||
|
||
[ -e /etc/config/ubootenv ] && exit 0 | ||
|
||
touch /etc/config/ubootenv | ||
|
||
. /lib/uboot-envtools.sh | ||
. /lib/functions.sh | ||
|
||
board=$(board_name) | ||
|
||
ubootenv_mtdinfo () { | ||
UBOOTENV_PART=$(cat /proc/mtd | grep APPSBLENV) | ||
mtd_dev=$(echo $UBOOTENV_PART | awk '{print $1}' | sed 's/:$//') | ||
mtd_size=$(echo $UBOOTENV_PART | awk '{print "0x"$2}') | ||
mtd_erase=$(echo $UBOOTENV_PART | awk '{print "0x"$3}') | ||
nor_flash=$(find /sys/bus/spi/devices/*/mtd -name ${mtd_dev}) | ||
|
||
if [ -n "$nor_flash" ]; then | ||
ubootenv_size=$mtd_size | ||
else | ||
# size is fixed to 0x40000 in u-boot | ||
ubootenv_size=0x40000 | ||
fi | ||
|
||
sectors=$(( $ubootenv_size / $mtd_erase )) | ||
echo /dev/$mtd_dev 0x0 $ubootenv_size $mtd_erase $sectors | ||
} | ||
|
||
case "$board" in | ||
*) | ||
ubootenv_add_uci_config $(ubootenv_mtdinfo) | ||
;; | ||
esac | ||
|
||
config_load ubootenv | ||
config_foreach ubootenv_add_app_config ubootenv | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,39 @@ endef | |
|
||
$(eval $(call KernelPackage,mdio-gpio)) | ||
|
||
define KernelPackage/aq_phy | ||
SUBMENU:=$(NETWORK_DEVICES_MENU) | ||
TITLE:=Aquantia PHY Driver | ||
DEPENDS:=@TARGET_ipq806x | ||
KCONFIG:=CONFIG_AQ_PHY | ||
FILES:= \ | ||
$(LINUX_DIR)/drivers/net/phy/[email protected] \ | ||
$(LINUX_DIR)/drivers/net/phy/qca_85xx/[email protected] | ||
AUTOLOAD:=$(call AutoLoad,10,aq_phy) | ||
endef | ||
|
||
define KernelPackage/aq_phy/description | ||
Aquantia PHY Driver | ||
endef | ||
|
||
$(eval $(call KernelPackage,aq_phy)) | ||
|
||
define KernelPackage/qca_85xx_sw | ||
SUBMENU:=$(NETWORK_DEVICES_MENU) | ||
TITLE:=QCA 85xx Switch Driver | ||
DEPENDS:=@TARGET_ipq806x | ||
KCONFIG:=CONFIG_QCA_85XX_SWITCH | ||
FILES:= \ | ||
$(LINUX_DIR)/drivers/net/phy/[email protected] \ | ||
$(LINUX_DIR)/drivers/net/phy/qca_85xx/[email protected] | ||
AUTOLOAD:=$(call AutoLoad,40,qca_85xx_sw) | ||
endef | ||
|
||
define KernelPackage/qca_85xx_sw/description | ||
QCA 85xx Switch Driver | ||
endef | ||
|
||
$(eval $(call KernelPackage,qca_85xx_sw)) | ||
|
||
define KernelPackage/et131x | ||
SUBMENU:=$(NETWORK_DEVICES_MENU) | ||
|
@@ -202,7 +235,7 @@ define KernelPackage/swconfig | |
DEPENDS:=+kmod-libphy | ||
KCONFIG:=CONFIG_SWCONFIG | ||
FILES:=$(LINUX_DIR)/drivers/net/phy/swconfig.ko | ||
AUTOLOAD:=$(call AutoLoad,41,swconfig) | ||
AUTOLOAD:=$(call AutoLoad,29,swconfig) | ||
endef | ||
|
||
define KernelPackage/swconfig/description | ||
|
@@ -211,6 +244,21 @@ endef | |
|
||
$(eval $(call KernelPackage,swconfig)) | ||
|
||
define KernelPackage/switch-ar40xx | ||
SUBMENU:=$(NETWORK_DEVICES_MENU) | ||
TITLE:=Qualcomm Atheros AR40XX switch support | ||
DEPENDS:=@TARGET_ipq40xx +kmod-swconfig | ||
KCONFIG:=CONFIG_AR40XX_PHY | ||
FILES:=$(LINUX_DIR)/drivers/net/phy/ar40xx.ko | ||
AUTOLOAD:=$(call AutoLoad,30,ar40xx) | ||
endef | ||
|
||
define KernelPackage/switch-ar40xx/description | ||
Qualcomm atheros AR40XX switch support | ||
endef | ||
|
||
$(eval $(call KernelPackage,switch-ar40xx)) | ||
|
||
define KernelPackage/switch-mvsw61xx | ||
SUBMENU:=$(NETWORK_DEVICES_MENU) | ||
TITLE:=Marvell 88E61xx switch support | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
ARCH:=aarch64 | ||
BOARD:=ipq60xx | ||
BOARDNAME:=Qualcomm Atheros IPQ60xx | ||
FEATURES:=squashfs fpu ramdisk nand | ||
MAINTAINER:=John Crispin <[email protected]> | ||
CPU_TYPE:=cortex-a53 | ||
SUBTARGETS:=generic | ||
|
||
KERNEL_PATCHVER:=4.4 | ||
|
||
KERNELNAME:=Image dtbs | ||
|
||
include $(INCLUDE_DIR)/target.mk | ||
DEFAULT_PACKAGES += \ | ||
kmod-leds-gpio kmod-gpio-button-hotplug swconfig \ | ||
kmod-qca-nss-dp kmod-qca-nss-drv kmod-qca-ssdk \ | ||
kmod-ath11k-ahb qca-ssdk-shell wpad-openssl \ | ||
ath11k-firmware-ipq6018 nss-firmware-ipq6018 \ | ||
kmod-qca-nss-drv-pppoe uboot-envtools | ||
|
||
$(eval $(call BuildTarget)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright (C) 2015 OpenWrt.org | ||
# | ||
|
||
. /lib/functions/uci-defaults.sh | ||
|
||
board_config_update | ||
|
||
board=$(board_name) | ||
boardname="${board##*,}" | ||
|
||
case "$board" in | ||
*) | ||
;; | ||
esac | ||
|
||
board_config_flush | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright (c) 2015 The Linux Foundation. All rights reserved. | ||
# Copyright (c) 2011-2015 OpenWrt.org | ||
# | ||
|
||
. /lib/functions/uci-defaults.sh | ||
. /lib/functions/system.sh | ||
|
||
ipq60xx_setup_interfaces() | ||
{ | ||
local board="$1" | ||
|
||
case "$board" in | ||
*) | ||
echo "Unsupported hardware. Network interfaces not initialized" | ||
;; | ||
esac | ||
} | ||
|
||
board_config_update | ||
board=$(board_name) | ||
ipq60xx_setup_interfaces $board | ||
board_config_flush | ||
|
||
exit 0 |
Oops, something went wrong.