Merge Mainline
This commit is contained in:
commit
553860644a
|
@ -6,9 +6,9 @@ ifdef CONFIG_TESTING_KERNEL
|
|||
KERNEL_PATCHVER:=$(KERNEL_TESTING_PATCHVER)
|
||||
endif
|
||||
|
||||
LINUX_VERSION-5.4 = .73
|
||||
LINUX_VERSION-5.4 = .74
|
||||
|
||||
LINUX_KERNEL_HASH-5.4.73 = 5a424b403b726bbe7dfa1d1524e431676c4a64f22a8db524534ed678bfe576b2
|
||||
LINUX_KERNEL_HASH-5.4.74 = ec04f4ade1146a3b458a1ac3dc2059188cbb62cd51d2e66fcd8397fcec153ab7
|
||||
|
||||
remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1))))
|
||||
sanitize_uri=$(call qstrip,$(subst @,_,$(subst :,_,$(subst .,_,$(subst -,_,$(subst /,_,$(1)))))))
|
||||
|
|
|
@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
|
|||
include $(INCLUDE_DIR)/feeds.mk
|
||||
|
||||
PKG_NAME:=base-files
|
||||
PKG_RELEASE:=233
|
||||
PKG_RELEASE:=235
|
||||
PKG_FLAGS:=nonshared
|
||||
|
||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||
|
|
|
@ -7,6 +7,28 @@ CFG=/etc/board.json
|
|||
[ -s $CFG ] || /bin/board_detect || exit 1
|
||||
[ -s /etc/config/network -a -s /etc/config/system ] && exit 0
|
||||
|
||||
generate_bridge() {
|
||||
local name=$1
|
||||
uci -q batch <<-EOF
|
||||
set network.$name=device
|
||||
set network.$name.name=$name
|
||||
set network.$name.type=bridge
|
||||
EOF
|
||||
}
|
||||
|
||||
bridge_vlan_id=0
|
||||
generate_bridge_vlan() {
|
||||
local device=$1
|
||||
local ports="$2"
|
||||
bridge_vlan_id=$((bridge_vlan_id + 1))
|
||||
uci -q batch <<-EOF
|
||||
add network bridge-vlan
|
||||
set network.@bridge-vlan[-1].device='$device'
|
||||
set network.@bridge-vlan[-1].vlan='$bridge_vlan_id'
|
||||
set network.@bridge-vlan[-1].ports='$ports'
|
||||
EOF
|
||||
}
|
||||
|
||||
generate_static_network() {
|
||||
uci -q batch <<-EOF
|
||||
delete network.loopback
|
||||
|
@ -63,6 +85,7 @@ generate_static_network() {
|
|||
addr_offset=2
|
||||
generate_network() {
|
||||
local ifname macaddr protocol type ipaddr netmask
|
||||
local bridge=$2
|
||||
|
||||
json_select network
|
||||
json_select "$1"
|
||||
|
@ -77,6 +100,12 @@ generate_network() {
|
|||
*\ * | lan:*) type="bridge" ;;
|
||||
esac
|
||||
|
||||
[ -n "$bridge" ] && {
|
||||
generate_bridge_vlan $bridge "$ifname"
|
||||
ifname=$bridge.$bridge_vlan_id
|
||||
type=""
|
||||
}
|
||||
|
||||
uci -q batch <<-EOF
|
||||
delete network.$1
|
||||
set network.$1='interface'
|
||||
|
@ -236,7 +265,6 @@ generate_switch() {
|
|||
json_select ..
|
||||
}
|
||||
|
||||
|
||||
generate_static_system() {
|
||||
uci -q batch <<-EOF
|
||||
delete system.@system[0]
|
||||
|
@ -439,8 +467,11 @@ if [ ! -s /etc/config/network ]; then
|
|||
touch /etc/config/network
|
||||
generate_static_network
|
||||
|
||||
json_get_vars bridge
|
||||
[ -n "$bridge" ] && generate_bridge $bridge
|
||||
|
||||
json_get_keys keys network
|
||||
for key in $keys; do generate_network $key; done
|
||||
for key in $keys; do generate_network $key $bridge; done
|
||||
|
||||
json_get_keys keys switch
|
||||
for key in $keys; do generate_switch $key; done
|
||||
|
|
|
@ -62,20 +62,24 @@ depends() {
|
|||
return 0
|
||||
}
|
||||
|
||||
EXTRA_HELP=""
|
||||
EXTRA_COMMANDS="boot shutdown depends"
|
||||
extra_command() {
|
||||
local cmd="$1"
|
||||
local help="$2"
|
||||
|
||||
local extra="$(printf "%-16s%s" "${cmd}" "${help}")"
|
||||
EXTRA_HELP="${EXTRA_HELP}\t${extra}\n"
|
||||
EXTRA_COMMANDS="${EXTRA_COMMANDS} ${cmd}"
|
||||
}
|
||||
|
||||
help() {
|
||||
cat <<EOF
|
||||
Syntax: $initscript [command]
|
||||
|
||||
Available commands:
|
||||
start Start the service
|
||||
stop Stop the service
|
||||
restart Restart the service
|
||||
reload Reload configuration files (or restart if service does not implement reload)
|
||||
enable Enable service autostart
|
||||
disable Disable service autostart
|
||||
enabled Check if service is started on boot
|
||||
$EXTRA_HELP
|
||||
EOF
|
||||
echo -e "$EXTRA_HELP"
|
||||
}
|
||||
|
||||
# for procd
|
||||
|
@ -103,14 +107,20 @@ service_running() {
|
|||
|
||||
${INIT_TRACE:+set -x}
|
||||
|
||||
extra_command "start" "Start the service"
|
||||
extra_command "stop" "Stop the service"
|
||||
extra_command "restart" "Restart the service"
|
||||
extra_command "reload" "Reload configuration files (or restart if service does not implement reload)"
|
||||
extra_command "enable" "Enable service autostart"
|
||||
extra_command "disable" "Disable service autostart"
|
||||
extra_command "enabled" "Check if service is started on boot"
|
||||
|
||||
. "$initscript"
|
||||
|
||||
[ -n "$USE_PROCD" ] && {
|
||||
EXTRA_COMMANDS="${EXTRA_COMMANDS} running status trace"
|
||||
EXTRA_HELP="\
|
||||
running Check if service is running
|
||||
status Service status
|
||||
${EXTRA_HELP}"
|
||||
extra_command "running" "Check if service is running"
|
||||
extra_command "status" "Service status"
|
||||
extra_command "trace" "Start with syscall trace"
|
||||
|
||||
. $IPKG_INSTROOT/lib/functions/procd.sh
|
||||
basescript=$(readlink "$initscript")
|
||||
|
@ -165,6 +175,6 @@ ${EXTRA_HELP}"
|
|||
}
|
||||
}
|
||||
|
||||
ALL_COMMANDS="start stop reload restart boot shutdown enable disable enabled depends ${EXTRA_COMMANDS}"
|
||||
ALL_COMMANDS="${EXTRA_COMMANDS}"
|
||||
list_contains ALL_COMMANDS "$action" || action=help
|
||||
$action "$@"
|
||||
|
|
|
@ -90,6 +90,10 @@ ucidef_set_interfaces_lan_wan() {
|
|||
ucidef_set_interface_wan "$wan_if"
|
||||
}
|
||||
|
||||
ucidef_set_bridge_device() {
|
||||
json_add_string bridge "${1:switch0}"
|
||||
}
|
||||
|
||||
_ucidef_add_switch_port() {
|
||||
# inherited: $num $device $need_tag $want_untag $role $index $prev_role
|
||||
# inherited: $n_cpu $n_ports $n_vlan $cpu0 $cpu1 $cpu2 $cpu3 $cpu4 $cpu5
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_VERSION:=2020.07
|
||||
PKG_HASH:=c1f5bf9ee6bb6e648edbf19ce2ca9452f614b08a9f886f1a566aa42e8cf05f6a
|
||||
PKG_VERSION:=2020.10
|
||||
PKG_HASH:=0d481bbdc05c0ee74908ec2f56a6daa53166cc6a78a0e4fac2ac5d025770a622
|
||||
|
||||
include $(INCLUDE_DIR)/u-boot.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
|
|
@ -19,6 +19,7 @@ index 1ce6ebdfeb..816126267b 100644
|
|||
CONFIG_CMD_BOOTMENU=y
|
||||
CONFIG_CMD_MMC=y
|
||||
+CONFIG_CMD_NAND=y
|
||||
CONFIG_CMD_PCI=y
|
||||
CONFIG_CMD_SF_TEST=y
|
||||
CONFIG_CMD_PING=y
|
||||
CONFIG_CMD_SMC=y
|
||||
|
|
|
@ -1,237 +0,0 @@
|
|||
From e05fdd93645dab2217bb5bfabcc04845415cf7ed Mon Sep 17 00:00:00 2001
|
||||
From: David Woodhouse <dwmw2@infradead.org>
|
||||
Date: Fri, 19 Jun 2020 12:40:20 +0100
|
||||
Subject: [PATCH] pinctrl: mediatek: add PUPD/R0/R1 support for MT7623
|
||||
|
||||
The pins for the MMC controller weren't being set up correctly because the
|
||||
pinctrl driver only sets the GPIO pullup/pulldown config and doesn't
|
||||
handle the special cases with PUPD/R0/R1 control.
|
||||
|
||||
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
|
||||
Tested-by: Frank Wunderlich <frank-w@public-files.de>
|
||||
---
|
||||
drivers/pinctrl/mediatek/pinctrl-mt7623.c | 129 ++++++++++++++++++
|
||||
drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 19 ++-
|
||||
drivers/pinctrl/mediatek/pinctrl-mtk-common.h | 3 +
|
||||
3 files changed, 146 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt7623.c b/drivers/pinctrl/mediatek/pinctrl-mt7623.c
|
||||
index d58d840e08..0f5dcb2c63 100644
|
||||
--- a/drivers/pinctrl/mediatek/pinctrl-mt7623.c
|
||||
+++ b/drivers/pinctrl/mediatek/pinctrl-mt7623.c
|
||||
@@ -262,6 +262,132 @@ static const struct mtk_pin_field_calc mt7623_pin_drv_range[] = {
|
||||
PIN_FIELD16(278, 278, 0xf70, 0x10, 8, 4),
|
||||
};
|
||||
|
||||
+static const struct mtk_pin_field_calc mt7623_pin_pupd_range[] = {
|
||||
+ /* MSDC0 */
|
||||
+ PIN_FIELD16(111, 111, 0xd00, 0x10, 12, 1),
|
||||
+ PIN_FIELD16(112, 112, 0xd00, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(113, 113, 0xd00, 0x10, 4, 1),
|
||||
+ PIN_FIELD16(114, 114, 0xd00, 0x10, 0, 1),
|
||||
+ PIN_FIELD16(115, 115, 0xd10, 0x10, 0, 1),
|
||||
+ PIN_FIELD16(116, 116, 0xcd0, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(117, 117, 0xcc0, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(118, 118, 0xcf0, 0x10, 12, 1),
|
||||
+ PIN_FIELD16(119, 119, 0xcf0, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(120, 120, 0xcf0, 0x10, 4, 1),
|
||||
+ PIN_FIELD16(121, 121, 0xcf0, 0x10, 0, 1),
|
||||
+ /* MSDC1 */
|
||||
+ PIN_FIELD16(105, 105, 0xd40, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(106, 106, 0xd30, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(107, 107, 0xd60, 0x10, 0, 1),
|
||||
+ PIN_FIELD16(108, 108, 0xd60, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(109, 109, 0xd60, 0x10, 4, 1),
|
||||
+ PIN_FIELD16(110, 110, 0xc60, 0x10, 12, 1),
|
||||
+ /* MSDC1 */
|
||||
+ PIN_FIELD16(85, 85, 0xda0, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(86, 86, 0xd90, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(87, 87, 0xdc0, 0x10, 0, 1),
|
||||
+ PIN_FIELD16(88, 88, 0xdc0, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(89, 89, 0xdc0, 0x10, 4, 1),
|
||||
+ PIN_FIELD16(90, 90, 0xdc0, 0x10, 12, 1),
|
||||
+ /* MSDC0E */
|
||||
+ PIN_FIELD16(249, 249, 0x140, 0x10, 0, 1),
|
||||
+ PIN_FIELD16(250, 250, 0x130, 0x10, 12, 1),
|
||||
+ PIN_FIELD16(251, 251, 0x130, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(252, 252, 0x130, 0x10, 4, 1),
|
||||
+ PIN_FIELD16(253, 253, 0x130, 0x10, 0, 1),
|
||||
+ PIN_FIELD16(254, 254, 0xf40, 0x10, 12, 1),
|
||||
+ PIN_FIELD16(255, 255, 0xf40, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(256, 256, 0xf40, 0x10, 4, 1),
|
||||
+ PIN_FIELD16(257, 257, 0xf40, 0x10, 0, 1),
|
||||
+ PIN_FIELD16(258, 258, 0xcb0, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(259, 259, 0xc90, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(261, 261, 0x140, 0x10, 8, 1),
|
||||
+};
|
||||
+
|
||||
+static const struct mtk_pin_field_calc mt7623_pin_r1_range[] = {
|
||||
+ /* MSDC0 */
|
||||
+ PIN_FIELD16(111, 111, 0xd00, 0x10, 13, 1),
|
||||
+ PIN_FIELD16(112, 112, 0xd00, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(113, 113, 0xd00, 0x10, 5, 1),
|
||||
+ PIN_FIELD16(114, 114, 0xd00, 0x10, 1, 1),
|
||||
+ PIN_FIELD16(115, 115, 0xd10, 0x10, 1, 1),
|
||||
+ PIN_FIELD16(116, 116, 0xcd0, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(117, 117, 0xcc0, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(118, 118, 0xcf0, 0x10, 13, 1),
|
||||
+ PIN_FIELD16(119, 119, 0xcf0, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(120, 120, 0xcf0, 0x10, 5, 1),
|
||||
+ PIN_FIELD16(121, 121, 0xcf0, 0x10, 1, 1),
|
||||
+ /* MSDC1 */
|
||||
+ PIN_FIELD16(105, 105, 0xd40, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(106, 106, 0xd30, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(107, 107, 0xd60, 0x10, 1, 1),
|
||||
+ PIN_FIELD16(108, 108, 0xd60, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(109, 109, 0xd60, 0x10, 5, 1),
|
||||
+ PIN_FIELD16(110, 110, 0xc60, 0x10, 13, 1),
|
||||
+ /* MSDC2 */
|
||||
+ PIN_FIELD16(85, 85, 0xda0, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(86, 86, 0xd90, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(87, 87, 0xdc0, 0x10, 1, 1),
|
||||
+ PIN_FIELD16(88, 88, 0xdc0, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(89, 89, 0xdc0, 0x10, 5, 1),
|
||||
+ PIN_FIELD16(90, 90, 0xdc0, 0x10, 13, 1),
|
||||
+ /* MSDC0E */
|
||||
+ PIN_FIELD16(249, 249, 0x140, 0x10, 1, 1),
|
||||
+ PIN_FIELD16(250, 250, 0x130, 0x10, 13, 1),
|
||||
+ PIN_FIELD16(251, 251, 0x130, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(252, 252, 0x130, 0x10, 5, 1),
|
||||
+ PIN_FIELD16(253, 253, 0x130, 0x10, 1, 1),
|
||||
+ PIN_FIELD16(254, 254, 0xf40, 0x10, 13, 1),
|
||||
+ PIN_FIELD16(255, 255, 0xf40, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(256, 256, 0xf40, 0x10, 5, 1),
|
||||
+ PIN_FIELD16(257, 257, 0xf40, 0x10, 1, 1),
|
||||
+ PIN_FIELD16(258, 258, 0xcb0, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(259, 259, 0xc90, 0x10, 9, 1),
|
||||
+ PIN_FIELD16(261, 261, 0x140, 0x10, 9, 1),
|
||||
+};
|
||||
+
|
||||
+static const struct mtk_pin_field_calc mt7623_pin_r0_range[] = {
|
||||
+ /* MSDC0 */
|
||||
+ PIN_FIELD16(111, 111, 0xd00, 0x10, 14, 1),
|
||||
+ PIN_FIELD16(112, 112, 0xd00, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(113, 113, 0xd00, 0x10, 6, 1),
|
||||
+ PIN_FIELD16(114, 114, 0xd00, 0x10, 2, 1),
|
||||
+ PIN_FIELD16(115, 115, 0xd10, 0x10, 2, 1),
|
||||
+ PIN_FIELD16(116, 116, 0xcd0, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(117, 117, 0xcc0, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(118, 118, 0xcf0, 0x10, 14, 1),
|
||||
+ PIN_FIELD16(119, 119, 0xcf0, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(120, 120, 0xcf0, 0x10, 6, 1),
|
||||
+ PIN_FIELD16(121, 121, 0xcf0, 0x10, 2, 1),
|
||||
+ /* MSDC1 */
|
||||
+ PIN_FIELD16(105, 105, 0xd40, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(106, 106, 0xd30, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(107, 107, 0xd60, 0x10, 2, 1),
|
||||
+ PIN_FIELD16(108, 108, 0xd60, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(109, 109, 0xd60, 0x10, 6, 1),
|
||||
+ PIN_FIELD16(110, 110, 0xc60, 0x10, 14, 1),
|
||||
+ /* MSDC2 */
|
||||
+ PIN_FIELD16(85, 85, 0xda0, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(86, 86, 0xd90, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(87, 87, 0xdc0, 0x10, 2, 1),
|
||||
+ PIN_FIELD16(88, 88, 0xdc0, 0x10, 8, 1),
|
||||
+ PIN_FIELD16(89, 89, 0xdc0, 0x10, 6, 1),
|
||||
+ PIN_FIELD16(90, 90, 0xdc0, 0x10, 14, 1),
|
||||
+ /* MSDC0E */
|
||||
+ PIN_FIELD16(249, 249, 0x140, 0x10, 2, 1),
|
||||
+ PIN_FIELD16(250, 250, 0x130, 0x10, 14, 1),
|
||||
+ PIN_FIELD16(251, 251, 0x130, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(252, 252, 0x130, 0x10, 6, 1),
|
||||
+ PIN_FIELD16(253, 253, 0x130, 0x10, 2, 1),
|
||||
+ PIN_FIELD16(254, 254, 0xf40, 0x10, 14, 1),
|
||||
+ PIN_FIELD16(255, 255, 0xf40, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(256, 256, 0xf40, 0x10, 6, 1),
|
||||
+ PIN_FIELD16(257, 257, 0xf40, 0x10, 5, 1),
|
||||
+ PIN_FIELD16(258, 258, 0xcb0, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(259, 259, 0xc90, 0x10, 10, 1),
|
||||
+ PIN_FIELD16(261, 261, 0x140, 0x10, 10, 1),
|
||||
+};
|
||||
+
|
||||
static const struct mtk_pin_reg_calc mt7623_reg_cals[] = {
|
||||
[PINCTRL_PIN_REG_MODE] = MTK_RANGE(mt7623_pin_mode_range),
|
||||
[PINCTRL_PIN_REG_DIR] = MTK_RANGE(mt7623_pin_dir_range),
|
||||
@@ -272,6 +398,9 @@ static const struct mtk_pin_reg_calc mt7623_reg_cals[] = {
|
||||
[PINCTRL_PIN_REG_PULLSEL] = MTK_RANGE(mt7623_pin_pullsel_range),
|
||||
[PINCTRL_PIN_REG_PULLEN] = MTK_RANGE(mt7623_pin_pullen_range),
|
||||
[PINCTRL_PIN_REG_DRV] = MTK_RANGE(mt7623_pin_drv_range),
|
||||
+ [PINCTRL_PIN_REG_PUPD] = MTK_RANGE(mt7623_pin_pupd_range),
|
||||
+ [PINCTRL_PIN_REG_R0] = MTK_RANGE(mt7623_pin_r0_range),
|
||||
+ [PINCTRL_PIN_REG_R1] = MTK_RANGE(mt7623_pin_r1_range),
|
||||
};
|
||||
|
||||
static const struct mtk_pin_desc mt7623_pins[] = {
|
||||
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
|
||||
index e8187a3780..6553dde45c 100644
|
||||
--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
|
||||
+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
|
||||
@@ -296,7 +296,7 @@ static const struct pinconf_param mtk_conf_params[] = {
|
||||
};
|
||||
|
||||
|
||||
-int mtk_pinconf_bias_set_v0(struct udevice *dev, u32 pin, u32 arg)
|
||||
+int mtk_pinconf_bias_set_v0(struct udevice *dev, u32 pin, u32 arg, u32 val)
|
||||
{
|
||||
int err, disable, pullup;
|
||||
|
||||
@@ -323,12 +323,14 @@ int mtk_pinconf_bias_set_v0(struct udevice *dev, u32 pin, u32 arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
-int mtk_pinconf_bias_set_v1(struct udevice *dev, u32 pin, u32 arg)
|
||||
+int mtk_pinconf_bias_set_v1(struct udevice *dev, u32 pin, u32 arg, u32 val)
|
||||
{
|
||||
- int err, disable, pullup;
|
||||
+ int err, disable, pullup, r0, r1;
|
||||
|
||||
disable = (arg == PIN_CONFIG_BIAS_DISABLE);
|
||||
pullup = (arg == PIN_CONFIG_BIAS_PULL_UP);
|
||||
+ r0 = !!(val & 1);
|
||||
+ r1 = !!(val & 2);
|
||||
|
||||
if (disable) {
|
||||
err = mtk_hw_set_value(dev, pin, PINCTRL_PIN_REG_PULLEN, 0);
|
||||
@@ -344,6 +346,13 @@ int mtk_pinconf_bias_set_v1(struct udevice *dev, u32 pin, u32 arg)
|
||||
return err;
|
||||
}
|
||||
|
||||
+ /* Also set PUPD/R0/R1 if the pin has them */
|
||||
+ err = mtk_hw_set_value(dev, pin, PINCTRL_PIN_REG_PUPD, !pullup);
|
||||
+ if (err != -EINVAL) {
|
||||
+ mtk_hw_set_value(dev, pin, PINCTRL_PIN_REG_R0, r0);
|
||||
+ mtk_hw_set_value(dev, pin, PINCTRL_PIN_REG_R1, r1);
|
||||
+ }
|
||||
+
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -419,9 +428,9 @@ static int mtk_pinconf_set(struct udevice *dev, unsigned int pin,
|
||||
case PIN_CONFIG_BIAS_PULL_UP:
|
||||
case PIN_CONFIG_BIAS_PULL_DOWN:
|
||||
if (rev == MTK_PINCTRL_V0)
|
||||
- err = mtk_pinconf_bias_set_v0(dev, pin, param);
|
||||
+ err = mtk_pinconf_bias_set_v0(dev, pin, param, arg);
|
||||
else
|
||||
- err = mtk_pinconf_bias_set_v1(dev, pin, param);
|
||||
+ err = mtk_pinconf_bias_set_v1(dev, pin, param, arg);
|
||||
if (err)
|
||||
goto err;
|
||||
break;
|
||||
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h
|
||||
index e815761450..5e51a9a90c 100644
|
||||
--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h
|
||||
+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h
|
||||
@@ -51,6 +51,9 @@ enum {
|
||||
PINCTRL_PIN_REG_PULLEN,
|
||||
PINCTRL_PIN_REG_PULLSEL,
|
||||
PINCTRL_PIN_REG_DRV,
|
||||
+ PINCTRL_PIN_REG_PUPD,
|
||||
+ PINCTRL_PIN_REG_R0,
|
||||
+ PINCTRL_PIN_REG_R1,
|
||||
PINCTRL_PIN_REG_MAX,
|
||||
};
|
||||
|
||||
--
|
||||
2.26.2
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
From 6731bef6966ea2b26cdcfe0109ff5a950003fd03 Mon Sep 17 00:00:00 2001
|
||||
From: David Woodhouse <dwmw2@infradead.org>
|
||||
Date: Fri, 19 Jun 2020 23:07:17 +0100
|
||||
Subject: [PATCH] env/fat.c: allow loading from a FAT partition on the MMC boot
|
||||
device
|
||||
|
||||
I don't want to have to specify the device; only the partition.
|
||||
|
||||
This allows me to use the same image on internal eMMC or SD card for
|
||||
Banana Pi R2, and it finds its own environment either way.
|
||||
|
||||
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
|
||||
[trini: Add #if/#else/#endif logic around CONFIG_SYS_MMC_ENV_DEV usage,
|
||||
whitespace changes]
|
||||
Signed-off-by: Tom Rini <trini@konsulko.com>
|
||||
---
|
||||
env/Kconfig | 4 ++++
|
||||
env/fat.c | 32 ++++++++++++++++++++++++++++++--
|
||||
2 files changed, 34 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/env/Kconfig b/env/Kconfig
|
||||
index 38e7fadbb9..5784136674 100644
|
||||
--- a/env/Kconfig
|
||||
+++ b/env/Kconfig
|
||||
@@ -434,6 +434,10 @@ config ENV_FAT_DEVICE_AND_PART
|
||||
If none, first valid partition in device D. If no
|
||||
partition table then means device D.
|
||||
|
||||
+ If ENV_FAT_INTERFACE is set to "mmc" then device 'D' can be omitted,
|
||||
+ leaving the string starting with a colon, and the boot device will
|
||||
+ be used.
|
||||
+
|
||||
config ENV_FAT_FILE
|
||||
string "Name of the FAT file to use for the environment"
|
||||
depends on ENV_IS_IN_FAT
|
||||
diff --git a/env/fat.c b/env/fat.c
|
||||
index 35a1955e63..63aced9317 100644
|
||||
--- a/env/fat.c
|
||||
+++ b/env/fat.c
|
||||
@@ -29,6 +29,34 @@
|
||||
# define LOADENV
|
||||
#endif
|
||||
|
||||
+__weak int mmc_get_env_dev(void)
|
||||
+{
|
||||
+#ifdef CONFIG_SYS_MMC_ENV_DEV
|
||||
+ return CONFIG_SYS_MMC_ENV_DEV;
|
||||
+#else
|
||||
+ return 0;
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
+static char *env_fat_device_and_part(void)
|
||||
+{
|
||||
+#ifdef CONFIG_MMC
|
||||
+ static char *part_str;
|
||||
+
|
||||
+ if (!part_str) {
|
||||
+ part_str = CONFIG_ENV_FAT_DEVICE_AND_PART;
|
||||
+ if (!strcmp(CONFIG_ENV_FAT_INTERFACE, "mmc") && part_str[0] == ':') {
|
||||
+ part_str = "0" CONFIG_ENV_FAT_DEVICE_AND_PART;
|
||||
+ part_str[0] += mmc_get_env_dev();
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ return part_str;
|
||||
+#else
|
||||
+ return CONFIG_ENV_FAT_DEVICE_AND_PART;
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
static int env_fat_save(void)
|
||||
{
|
||||
env_t __aligned(ARCH_DMA_MINALIGN) env_new;
|
||||
@@ -43,7 +71,7 @@ static int env_fat_save(void)
|
||||
return err;
|
||||
|
||||
part = blk_get_device_part_str(CONFIG_ENV_FAT_INTERFACE,
|
||||
- CONFIG_ENV_FAT_DEVICE_AND_PART,
|
||||
+ env_fat_device_and_part(),
|
||||
&dev_desc, &info, 1);
|
||||
if (part < 0)
|
||||
return 1;
|
||||
@@ -89,7 +117,7 @@ static int env_fat_load(void)
|
||||
#endif
|
||||
|
||||
part = blk_get_device_part_str(CONFIG_ENV_FAT_INTERFACE,
|
||||
- CONFIG_ENV_FAT_DEVICE_AND_PART,
|
||||
+ env_fat_device_and_part(),
|
||||
&dev_desc, &info, 1);
|
||||
if (part < 0)
|
||||
goto err_env_relocate;
|
||||
--
|
||||
2.26.2
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
From e3cc511eef5d99491e0c51324be499b688dde8de Mon Sep 17 00:00:00 2001
|
||||
From: David Woodhouse <dwmw2@infradead.org>
|
||||
Date: Sun, 12 Jul 2020 23:33:01 +0100
|
||||
Subject: [PATCH 1/3] board: mediatek: fix mmc_get_boot_dev() for platforms
|
||||
without external SD
|
||||
|
||||
On the UniElec U7623 board there is no external SD slot and the preloader
|
||||
doesn't fill in the magic field at 0x81dffff0 to indicate that it was
|
||||
booted from eMMC.
|
||||
|
||||
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
|
||||
---
|
||||
board/mediatek/mt7623/mt7623_rfb.c | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
|
||||
diff --git a/board/mediatek/mt7623/mt7623_rfb.c b/board/mediatek/mt7623/mt7623_rfb.c
|
||||
index 4ec2764976..984e75ccaf 100644
|
||||
--- a/board/mediatek/mt7623/mt7623_rfb.c
|
||||
+++ b/board/mediatek/mt7623/mt7623_rfb.c
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
+#include <mmc.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
@@ -15,10 +16,15 @@ int board_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
+#ifdef CONFIG_MMC
|
||||
int mmc_get_boot_dev(void)
|
||||
{
|
||||
int g_mmc_devid = -1;
|
||||
char *uflag = (char *)0x81DFFFF0;
|
||||
+
|
||||
+ if (!find_mmc_device(1))
|
||||
+ return 0;
|
||||
+
|
||||
if (strncmp(uflag,"eMMC",4)==0) {
|
||||
g_mmc_devid = 0;
|
||||
printf("Boot From Emmc(id:%d)\n\n", g_mmc_devid);
|
||||
@@ -33,3 +39,4 @@ int mmc_get_env_dev(void)
|
||||
{
|
||||
return mmc_get_boot_dev();
|
||||
}
|
||||
+#endif
|
||||
--
|
||||
2.26.2
|
||||
|
|
@ -1,326 +0,0 @@
|
|||
From 3fad1ca28d4c87346d18b89438bf2084fb2c3896 Mon Sep 17 00:00:00 2001
|
||||
From: David Woodhouse <dwmw2@infradead.org>
|
||||
Date: Sun, 12 Jul 2020 23:33:03 +0100
|
||||
Subject: [PATCH 3/3] board: mediatek: Add support for UniElec U7623 board
|
||||
|
||||
This is an MT7623A-based board, very similar to the Banana Pi R2.
|
||||
|
||||
http://www.unielecinc.com/q/news/cn/p/product/detail.html?qd_guid=OjXwKCaRlN
|
||||
|
||||
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
|
||||
---
|
||||
arch/arm/dts/Makefile | 1 +
|
||||
.../arm/dts/mt7623a-unielec-u7623-02-emmc.dts | 211 ++++++++++++++++++
|
||||
board/mediatek/mt7623/MAINTAINERS | 7 +
|
||||
configs/mt7623a_unielec_u7623_02_defconfig | 54 +++++
|
||||
4 files changed, 273 insertions(+)
|
||||
create mode 100644 arch/arm/dts/mt7623a-unielec-u7623-02-emmc.dts
|
||||
create mode 100644 configs/mt7623a_unielec_u7623_02_defconfig
|
||||
|
||||
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
|
||||
index a3a1e3fbe4..caa7756c5d 100644
|
||||
--- a/arch/arm/dts/Makefile
|
||||
+++ b/arch/arm/dts/Makefile
|
||||
@@ -949,6 +949,7 @@ dtb-$(CONFIG_SOC_K3_J721E) += k3-j721e-common-proc-board.dtb \
|
||||
|
||||
dtb-$(CONFIG_ARCH_MEDIATEK) += \
|
||||
mt7622-rfb.dtb \
|
||||
+ mt7623a-unielec-u7623-02-emmc.dtb \
|
||||
mt7623n-bananapi-bpi-r2.dtb \
|
||||
mt7629-rfb.dtb \
|
||||
mt8512-bm1-emmc.dtb \
|
||||
diff --git a/arch/arm/dts/mt7623a-unielec-u7623-02-emmc.dts b/arch/arm/dts/mt7623a-unielec-u7623-02-emmc.dts
|
||||
new file mode 100644
|
||||
index 0000000000..fdeec75b05
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/dts/mt7623a-unielec-u7623-02-emmc.dts
|
||||
@@ -0,0 +1,211 @@
|
||||
+/*
|
||||
+ * Copyright (C) 2018 MediaTek Inc.
|
||||
+ * Author: Ryder Lee <ryder.lee@mediatek.com>
|
||||
+ *
|
||||
+ * SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
||||
+ */
|
||||
+
|
||||
+/dts-v1/;
|
||||
+#include "mt7623.dtsi"
|
||||
+#include "mt7623-u-boot.dtsi"
|
||||
+
|
||||
+/ {
|
||||
+ model = "UniElec U7623-02 eMMC";
|
||||
+ compatible = "unielec,u7623-02-emmc", "mediatek,mt7623";
|
||||
+
|
||||
+ memory@80000000 {
|
||||
+ device_type = "memory";
|
||||
+ reg = <0 0x80000000 0 0x20000000>;
|
||||
+ };
|
||||
+
|
||||
+ chosen {
|
||||
+ stdout-path = &uart2;
|
||||
+ tick-timer = &timer0;
|
||||
+ };
|
||||
+
|
||||
+ reg_1p8v: regulator-1p8v {
|
||||
+ compatible = "regulator-fixed";
|
||||
+ regulator-name = "fixed-1.8V";
|
||||
+ regulator-min-microvolt = <1800000>;
|
||||
+ regulator-max-microvolt = <1800000>;
|
||||
+ regulator-boot-on;
|
||||
+ regulator-always-on;
|
||||
+ };
|
||||
+
|
||||
+ reg_3p3v: regulator-3p3v {
|
||||
+ compatible = "regulator-fixed";
|
||||
+ regulator-name = "fixed-3.3V";
|
||||
+ regulator-min-microvolt = <3300000>;
|
||||
+ regulator-max-microvolt = <3300000>;
|
||||
+ regulator-boot-on;
|
||||
+ regulator-always-on;
|
||||
+ };
|
||||
+
|
||||
+ reg_5v: regulator-5v {
|
||||
+ compatible = "regulator-fixed";
|
||||
+ regulator-name = "fixed-5V";
|
||||
+ regulator-min-microvolt = <5000000>;
|
||||
+ regulator-max-microvolt = <5000000>;
|
||||
+ regulator-boot-on;
|
||||
+ regulator-always-on;
|
||||
+ };
|
||||
+
|
||||
+ leds {
|
||||
+ compatible = "gpio-leds";
|
||||
+
|
||||
+ led3 {
|
||||
+ label = "u7623-01:green:led3";
|
||||
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+
|
||||
+ led4 {
|
||||
+ label = "u7623-01:green:led4";
|
||||
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+ð {
|
||||
+ status = "okay";
|
||||
+ mediatek,gmac-id = <0>;
|
||||
+ phy-mode = "rgmii";
|
||||
+ mediatek,switch = "mt7530";
|
||||
+ mediatek,mcm;
|
||||
+
|
||||
+ fixed-link {
|
||||
+ speed = <1000>;
|
||||
+ full-duplex;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&mmc0 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&mmc0_pins_default>;
|
||||
+ status = "okay";
|
||||
+ bus-width = <8>;
|
||||
+ max-frequency = <50000000>;
|
||||
+ cap-mmc-highspeed;
|
||||
+ vmmc-supply = <®_3p3v>;
|
||||
+ vqmmc-supply = <®_1p8v>;
|
||||
+ non-removable;
|
||||
+};
|
||||
+
|
||||
+&pinctrl {
|
||||
+ ephy_default: ephy_default {
|
||||
+ mux {
|
||||
+ function = "eth";
|
||||
+ groups = "mdc_mdio", "ephy";
|
||||
+ };
|
||||
+
|
||||
+ conf {
|
||||
+ pins = "G2_TXEN", "G2_TXD0", "G2_TXD1", "G2_TXD2",
|
||||
+ "G2_TXD3", "G2_TXC", "G2_RXC", "G2_RXD0",
|
||||
+ "G2_RXD1", "G2_RXD2", "G2_RXD3", "G2_RXDV",
|
||||
+ "MDC", "MDIO";
|
||||
+ drive-strength = <12>;
|
||||
+ mediatek,tdsel = <5>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ mmc0_pins_default: mmc0default {
|
||||
+ mux {
|
||||
+ function = "msdc";
|
||||
+ groups = "msdc0";
|
||||
+ };
|
||||
+
|
||||
+ conf-cmd-data {
|
||||
+ pins = "MSDC0_CMD", "MSDC0_DAT0", "MSDC0_DAT1",
|
||||
+ "MSDC0_DAT2", "MSDC0_DAT3", "MSDC0_DAT4",
|
||||
+ "MSDC0_DAT5", "MSDC0_DAT6", "MSDC0_DAT7";
|
||||
+ input-enable;
|
||||
+ bias-pull-up;
|
||||
+ };
|
||||
+
|
||||
+ conf-clk {
|
||||
+ pins = "MSDC0_CLK";
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+
|
||||
+ conf-rst {
|
||||
+ pins = "MSDC0_RSTB";
|
||||
+ bias-pull-up;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ pcie_default: pcie-default {
|
||||
+ mux {
|
||||
+ function = "pcie";
|
||||
+ groups = "pcie0_0_perst", "pcie1_0_perst";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ uart0_pins_a: uart0-default {
|
||||
+ mux {
|
||||
+ function = "uart";
|
||||
+ groups = "uart0_0_txd_rxd";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ uart1_pins_a: uart1-default {
|
||||
+ mux {
|
||||
+ function = "uart";
|
||||
+ groups = "uart1_0_txd_rxd";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ uart2_pins_a: uart2-default {
|
||||
+ mux {
|
||||
+ function = "uart";
|
||||
+ groups = "uart2_0_txd_rxd";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ uart2_pins_b: uart2-alt {
|
||||
+ mux {
|
||||
+ function = "uart";
|
||||
+ groups = "uart2_1_txd_rxd";
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&pcie {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&pcie_default>;
|
||||
+ status = "okay";
|
||||
+
|
||||
+ pcie@0,0 {
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+
|
||||
+ pcie@1,0 {
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&pcie0_phy {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&pcie1_phy {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&uart0 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart0_pins_a>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&uart1 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart1_pins_a>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&uart2 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart2_pins_b>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
diff --git a/board/mediatek/mt7623/MAINTAINERS b/board/mediatek/mt7623/MAINTAINERS
|
||||
index eeb0375d70..1a8d796bd3 100644
|
||||
--- a/board/mediatek/mt7623/MAINTAINERS
|
||||
+++ b/board/mediatek/mt7623/MAINTAINERS
|
||||
@@ -5,3 +5,10 @@ S: Maintained
|
||||
F: board/mediatek/mt7623
|
||||
F: include/configs/mt7623.h
|
||||
F: configs/mt7623n_bpir2_defconfig
|
||||
+
|
||||
+UNIELEC U7623
|
||||
+M: Ryder Lee <ryder.lee@mediatek.com>
|
||||
+M: David Woodhouse <dwmw2@infradead.org>
|
||||
+S: Maintained
|
||||
+F: arch/arm/dts/mt7623a-unielec-u7623-02-emmc.dts
|
||||
+F: configs/mt7623a_unielec_u7623_02_defconfig
|
||||
diff --git a/configs/mt7623a_unielec_u7623_02_defconfig b/configs/mt7623a_unielec_u7623_02_defconfig
|
||||
new file mode 100644
|
||||
index 0000000000..72b5f31092
|
||||
--- /dev/null
|
||||
+++ b/configs/mt7623a_unielec_u7623_02_defconfig
|
||||
@@ -0,0 +1,54 @@
|
||||
+CONFIG_ARM=y
|
||||
+CONFIG_SYS_THUMB_BUILD=y
|
||||
+CONFIG_ARCH_MEDIATEK=y
|
||||
+CONFIG_SYS_TEXT_BASE=0x81e00000
|
||||
+CONFIG_SYS_MALLOC_F_LEN=0x4000
|
||||
+CONFIG_ENV_SIZE=0x1000
|
||||
+CONFIG_ENV_OFFSET=0x100000
|
||||
+CONFIG_TARGET_MT7623=y
|
||||
+CONFIG_NR_DRAM_BANKS=1
|
||||
+CONFIG_DISTRO_DEFAULTS=y
|
||||
+CONFIG_FIT=y
|
||||
+CONFIG_FIT_VERBOSE=y
|
||||
+CONFIG_BOOTDELAY=3
|
||||
+CONFIG_SYS_CONSOLE_IS_IN_ENV=y
|
||||
+CONFIG_DEFAULT_FDT_FILE="mt7623a-unielec-u7623-02-emmc.dtb"
|
||||
+# CONFIG_DISPLAY_BOARDINFO is not set
|
||||
+CONFIG_SYS_PROMPT="U-Boot> "
|
||||
+CONFIG_CMD_BOOTMENU=y
|
||||
+# CONFIG_CMD_ELF is not set
|
||||
+# CONFIG_CMD_XIMG is not set
|
||||
+CONFIG_CMD_GPIO=y
|
||||
+CONFIG_CMD_GPT=y
|
||||
+CONFIG_CMD_MMC=y
|
||||
+CONFIG_CMD_READ=y
|
||||
+# CONFIG_CMD_SETEXPR is not set
|
||||
+# CONFIG_CMD_NFS is not set
|
||||
+CONFIG_DEFAULT_DEVICE_TREE="mt7623a-unielec-u7623-02-emmc"
|
||||
+CONFIG_ENV_IS_IN_MMC=y
|
||||
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||
+CONFIG_NET_RANDOM_ETHADDR=y
|
||||
+CONFIG_REGMAP=y
|
||||
+CONFIG_SYSCON=y
|
||||
+CONFIG_CLK=y
|
||||
+CONFIG_DM_MMC=y
|
||||
+# CONFIG_MMC_QUIRKS is not set
|
||||
+CONFIG_SUPPORT_EMMC_BOOT=y
|
||||
+CONFIG_MMC_HS400_SUPPORT=y
|
||||
+CONFIG_MMC_MTK=y
|
||||
+CONFIG_PHY_FIXED=y
|
||||
+CONFIG_DM_ETH=y
|
||||
+CONFIG_MEDIATEK_ETH=y
|
||||
+CONFIG_PINCTRL=y
|
||||
+CONFIG_PINCONF=y
|
||||
+CONFIG_PINCTRL_MT7623=y
|
||||
+CONFIG_POWER_DOMAIN=y
|
||||
+CONFIG_MTK_POWER_DOMAIN=y
|
||||
+CONFIG_DM_SERIAL=y
|
||||
+CONFIG_MTK_SERIAL=y
|
||||
+CONFIG_SYSRESET=y
|
||||
+CONFIG_SYSRESET_WATCHDOG=y
|
||||
+CONFIG_TIMER=y
|
||||
+CONFIG_MTK_TIMER=y
|
||||
+CONFIG_WDT_MTK=y
|
||||
+CONFIG_LZMA=y
|
||||
--
|
||||
2.26.2
|
||||
|
|
@ -1,11 +1,9 @@
|
|||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1667,8 +1667,10 @@ u-boot-elf.lds: arch/u-boot-elf.lds prepare FORCE
|
||||
--- a/Makefile 2020-10-13 13:39:06.471438591 +0800
|
||||
+++ b/Makefile 2020-10-13 13:39:39.190798462 +0800
|
||||
@@ -1725,6 +1725,10 @@
|
||||
|
||||
ifeq ($(CONFIG_SPL),y)
|
||||
spl/u-boot-spl-mtk.bin: spl/u-boot-spl
|
||||
|
||||
-u-boot-mtk.bin: u-boot.dtb u-boot.img spl/u-boot-spl-mtk.bin FORCE
|
||||
- $(call if_changed,binman)
|
||||
+OBJCOPYFLAGS_u-boot-mtk.bin = -I binary -O binary \
|
||||
+ --pad-to=$(CONFIG_SPL_PAD_TO) --gap-fill=0xff
|
||||
+u-boot-mtk.bin: u-boot.img spl/u-boot-spl-mtk.bin FORCE
|
||||
|
|
|
@ -21,11 +21,12 @@ PKG_LICENSE:=GPL-3.0+
|
|||
PKG_CPE_ID:=cpe:/a:gnu:gdb
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/nls.mk
|
||||
|
||||
define Package/gdb/Default
|
||||
SECTION:=devel
|
||||
CATEGORY:=Development
|
||||
DEPENDS:=+!USE_MUSL:libthread-db +zlib
|
||||
DEPENDS:=+!USE_MUSL:libthread-db $(ICONV_DEPENDS) $(INTL_DEPENDS)
|
||||
URL:=https://www.gnu.org/software/gdb/
|
||||
endef
|
||||
|
||||
|
@ -44,7 +45,7 @@ endef
|
|||
define Package/gdbserver
|
||||
$(call Package/gdb/Default)
|
||||
TITLE:=Remote server for GNU Debugger
|
||||
DEPENDS=@!arc
|
||||
DEPENDS+=@!arc
|
||||
endef
|
||||
|
||||
define Package/gdbserver/description
|
||||
|
@ -68,6 +69,7 @@ CONFIGURE_VARS+= \
|
|||
ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
|
||||
|
||||
TARGET_LDFLAGS+= \
|
||||
$(INTL_LDFLAGS) $(if $(INTL_FULL),-lintl) \
|
||||
-static-libstdc++ \
|
||||
-Wl,--gc-sections
|
||||
|
||||
|
|
|
@ -218,6 +218,7 @@ define KernelPackage/ath9k/config
|
|||
config ATH9K_SUPPORT_PCOEM
|
||||
bool "Support chips used in PC OEM cards"
|
||||
depends on PACKAGE_kmod-ath9k
|
||||
default y if (x86_64 || i386)
|
||||
|
||||
config ATH9K_TX99
|
||||
bool "Enable TX99 support (WARNING: testing only, breaks normal operation!)"
|
||||
|
|
|
@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||
|
||||
PKG_NAME:=dsl_cpe_control_danube
|
||||
PKG_VERSION:=3.24.4.4
|
||||
PKG_RELEASE:=8
|
||||
PKG_RELEASE:=9
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION)
|
||||
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
|
||||
|
|
|
@ -4,9 +4,8 @@
|
|||
START=97
|
||||
USE_PROCD=1
|
||||
|
||||
EXTRA_COMMANDS="dslstat lucistat"
|
||||
EXTRA_HELP=" dslstat Get DSL status information
|
||||
lucistat Get status information in lua friendly format"
|
||||
extra_command "dslstat" "Get DSL status information"
|
||||
extra_command "lucistat" "Get status information in lua friendly format"
|
||||
|
||||
. /lib/functions/lantiq_dsl.sh
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||
|
||||
PKG_NAME:=ltq-vdsl-app
|
||||
PKG_VERSION:=4.17.18.6
|
||||
PKG_RELEASE:=4
|
||||
PKG_RELEASE:=5
|
||||
PKG_BASE_NAME:=dsl_cpe_control
|
||||
PKG_SOURCE:=$(PKG_BASE_NAME)_vrx-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
|
||||
|
|
|
@ -4,9 +4,8 @@
|
|||
START=97
|
||||
USE_PROCD=1
|
||||
|
||||
EXTRA_COMMANDS="dslstat lucistat"
|
||||
EXTRA_HELP=" dslstat Get DSL status information
|
||||
lucistat Get status information in lua friendly format"
|
||||
extra_command "dslstat" "Get DSL status information"
|
||||
extra_command "lucistat" "Get status information in lua friendly format"
|
||||
|
||||
. /lib/functions/lantiq_dsl.sh
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=dropbear
|
||||
PKG_VERSION:=2020.80
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
PKG_SOURCE_URL:= \
|
||||
|
|
|
@ -9,8 +9,8 @@ USE_PROCD=1
|
|||
PROG=/usr/sbin/dropbear
|
||||
NAME=dropbear
|
||||
PIDCOUNT=0
|
||||
EXTRA_COMMANDS="killclients"
|
||||
EXTRA_HELP=" killclients Kill ${NAME} processes except servers and yourself"
|
||||
|
||||
extra_command "killclients" "Kill ${NAME} processes except servers and yourself"
|
||||
|
||||
_dropbearkey()
|
||||
{
|
||||
|
|
|
@ -9,14 +9,14 @@ include $(TOPDIR)/rules.mk
|
|||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=opkg
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
PKG_FLAGS:=essential
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://git.openwrt.org/project/opkg-lede.git
|
||||
PKG_SOURCE_DATE:=2020-10-30
|
||||
PKG_SOURCE_VERSION:=8769c75199b4668878176bde0e5faebf3bc61663
|
||||
PKG_MIRROR_HASH:=601af77e6855e30fd9b82184bf3cdbc9395fe46ad971a65c8ad5e1329e94c545
|
||||
PKG_SOURCE_DATE:=2020-11-03
|
||||
PKG_SOURCE_VERSION:=da9746aaa28fdc63a6e062bf00b25eba52bc8e5f
|
||||
PKG_MIRROR_HASH:=9c42a8f7dbce4d50b01c3cd10e1974611ffdd9547c27f8f5725b6237433f54e2
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
|
|
@ -12,9 +12,9 @@ PKG_RELEASE:=1
|
|||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/procd.git
|
||||
PKG_SOURCE_DATE:=2020-10-25
|
||||
PKG_SOURCE_VERSION:=33b799b94c38fd2d3961b465a8114e384573a6d6
|
||||
PKG_MIRROR_HASH:=d890570c35567a03976e591879383c6d8e974cf14e64a1507c6e498ae12007c4
|
||||
PKG_SOURCE_DATE:=2020-10-27
|
||||
PKG_SOURCE_VERSION:=75f2374f1656b6f2eee3fa0e3b871f5ddcbee1c4
|
||||
PKG_MIRROR_HASH:=6bae7e57c6b349bdf6fbd62d4056127d186cbb80cd73959d6695007088ecf16c
|
||||
CMAKE_INSTALL:=1
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=zram-swap
|
||||
PKG_RELEASE:=7
|
||||
PKG_RELEASE:=8
|
||||
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
|
|
|
@ -2,9 +2,8 @@
|
|||
|
||||
START=15
|
||||
|
||||
EXTRA_COMMANDS="compact status"
|
||||
EXTRA_HELP=" compact trigger compaction for all Z-RAM swap dev's
|
||||
status print out status information & statistics about Z-RAM swap devices"
|
||||
extra_command "compact" "Trigger compaction for all Z-RAM swap dev's"
|
||||
extra_command "status" "Print out information & statistics about Z-RAM swap devices"
|
||||
|
||||
ram_getsize()
|
||||
{
|
||||
|
|
|
@ -125,6 +125,23 @@ _patch_glibc() {
|
|||
fi
|
||||
}
|
||||
|
||||
should_be_patched() {
|
||||
local bin="$1"
|
||||
|
||||
[ -x "$bin" ] || return 1
|
||||
|
||||
case "$bin" in
|
||||
*.so|*.so.[0-9]*)
|
||||
return 1
|
||||
;;
|
||||
*)
|
||||
file "$bin" | grep -sqE "ELF.*(executable|interpreter)" && return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
for LDD in ${PATH//://ldd }/ldd; do
|
||||
"$LDD" --version >/dev/null 2>/dev/null && break
|
||||
LDD=""
|
||||
|
@ -150,7 +167,7 @@ for BIN in "$@"; do
|
|||
|
||||
LDSO=""
|
||||
|
||||
[ -n "$LDD" ] && [ -x "$BIN" ] && file "$BIN" | grep -sqE "ELF.*(executable|interpreter)" && {
|
||||
[ -n "$LDD" ] && should_be_patched "$BIN" && {
|
||||
for token in $("$LDD" "$BIN" 2>/dev/null); do
|
||||
case "$token" in */*.so*)
|
||||
dest="$DIR/lib/${token##*/}"
|
||||
|
|
|
@ -20,18 +20,18 @@ try_git() {
|
|||
case "$GET_REV" in
|
||||
r*)
|
||||
GET_REV="$(echo $GET_REV | tr -d 'r')"
|
||||
BASE_REV="$(git rev-list ${REBOOT}..HEAD | wc -l | awk '{print $1}')"
|
||||
BASE_REV="$(git rev-list ${REBOOT}..HEAD 2>/dev/null | wc -l | awk '{print $1}')"
|
||||
REV="$(git rev-parse HEAD~$((BASE_REV - GET_REV)))"
|
||||
;;
|
||||
*)
|
||||
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
||||
ORIGIN="$(git rev-parse --verify --symbolic-full-name ${BRANCH}@{u} 2>/dev/null)"
|
||||
[ -n "$ORIGIN" ] || ORIGIN="$(git rev-parse --verify --symbolic-full-name master@{u} 2>/dev/null)"
|
||||
REV="$(git rev-list ${REBOOT}..$GET_REV | wc -l | awk '{print $1}')"
|
||||
REV="$(git rev-list ${REBOOT}..$GET_REV 2>/dev/null | wc -l | awk '{print $1}')"
|
||||
|
||||
if [ -n "$ORIGIN" ]; then
|
||||
UPSTREAM_BASE="$(git merge-base $GET_REV $ORIGIN)"
|
||||
UPSTREAM_REV="$(git rev-list ${REBOOT}..$UPSTREAM_BASE | wc -l | awk '{print $1}')"
|
||||
UPSTREAM_REV="$(git rev-list ${REBOOT}..$UPSTREAM_BASE 2>/dev/null | wc -l | awk '{print $1}')"
|
||||
else
|
||||
UPSTREAM_REV=0
|
||||
fi
|
||||
|
|
|
@ -80,6 +80,7 @@
|
|||
partition@40000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x040000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
partition@40000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x040000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
|
|
|
@ -1,39 +1,12 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#include "ar9342_ubnt_wa.dtsi"
|
||||
#include "ar9342_ubnt_wa_1port.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "ubnt,lap-120", "ubnt,wa", "qca,ar9342";
|
||||
model = "Ubiquiti LiteAP ac (LAP-120)";
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mask = <4>;
|
||||
phy4: ethernet-phy@4 {
|
||||
reg = <4>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
/* default for ar934x, except for 1000M and 10M */
|
||||
pll-data = <0x02000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii-id";
|
||||
phy-handle = <&phy4>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
rxd-delay = <3>;
|
||||
rxdv-delay = <3>;
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "disabled";
|
||||
};
|
||||
|
|
|
@ -1,41 +1,8 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#include "ar9342_ubnt_wa.dtsi"
|
||||
#include "ar9342_ubnt_wa_1port.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "ubnt,litebeam-ac-gen2", "ubnt,wa", "qca,ar9342";
|
||||
model = "Ubiquiti LiteBeam AC Gen2";
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mask = <4>;
|
||||
phy4: ethernet-phy@4 {
|
||||
reg = <4>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
/* default for ar934x, except for 1000M and 10M */
|
||||
pll-data = <0x02000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii-id";
|
||||
phy-handle = <&phy4>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
rxd-delay = <3>;
|
||||
rxdv-delay = <3>;
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#include "ar9342_ubnt_wa.dtsi"
|
||||
#include "ar9342_ubnt_wa_1port.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "ubnt,nanobeam-ac", "ubnt,wa", "qca,ar9342";
|
||||
|
@ -36,31 +36,3 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mask = <4>;
|
||||
phy4: ethernet-phy@4 {
|
||||
phy-mode = "rgmii";
|
||||
reg = <4>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
/* default for ar934x, except for 1000M and 10M */
|
||||
pll-data = <0x06000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy4>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
rxd-delay = <3>;
|
||||
rxdv-delay = <3>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,41 +1,8 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#include "ar9342_ubnt_wa.dtsi"
|
||||
#include "ar9342_ubnt_wa_1port.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "ubnt,nanostation-ac-loco", "ubnt,wa", "qca,ar9342";
|
||||
model = "Ubiquiti Nanostation AC loco (WA)";
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mask = <4>;
|
||||
phy4: ethernet-phy@4 {
|
||||
reg = <4>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
/* default for ar934x, except for 1000M and 10M */
|
||||
pll-data = <0x02000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii-id";
|
||||
phy-handle = <&phy4>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
rxd-delay = <3>;
|
||||
rxdv-delay = <3>;
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#include "ar9342_ubnt_wa.dtsi"
|
||||
#include "ar9342_ubnt_wa_2port.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "ubnt,nanostation-ac","ubnt,wa", "qca,ar9342";
|
||||
|
@ -36,44 +36,3 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mask = <4>;
|
||||
phy0: ethernet-phy@0 {
|
||||
phy-mode = "rgmii";
|
||||
reg = <0>;
|
||||
|
||||
qca,ar8327-initvals = <
|
||||
0x04 0x07600000 /* PORT0 PAD MODE CTRL */
|
||||
0x58 0xffb7ffb7 /* LED_CTRL2 */
|
||||
0x5c 0x03ffff00 /* LED_CTRL3 */
|
||||
0x7c 0x0000007e /* PORT0_STATUS */
|
||||
>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
/* default for ar934x, except for 1000M and 10M */
|
||||
pll-data = <0x06000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy0>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
rxd-delay = <2>;
|
||||
rxdv-delay = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#include "ar9342_ubnt_wa.dtsi"
|
||||
#include "ar9342_ubnt_wa_1port.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "ubnt,powerbeam-5ac-gen2", "ubnt,wa", "qca,ar9342";
|
||||
|
@ -36,30 +36,3 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mask = <4>;
|
||||
phy4: ethernet-phy@4 {
|
||||
reg = <4>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
/* default for ar934x, except for 1000M and 10M */
|
||||
pll-data = <0x02000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii-id";
|
||||
phy-handle = <&phy4>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
rxd-delay = <3>;
|
||||
rxdv-delay = <3>;
|
||||
};
|
||||
};
|
||||
|
|
31
target/linux/ath79/dts/ar9342_ubnt_wa_1port.dtsi
Normal file
31
target/linux/ath79/dts/ar9342_ubnt_wa_1port.dtsi
Normal file
|
@ -0,0 +1,31 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#include "ar9342_ubnt_wa.dtsi"
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mask = <4>;
|
||||
|
||||
phy4: ethernet-phy@4 {
|
||||
reg = <4>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
/* default for ar934x, except for 1000M and 10M */
|
||||
pll-data = <0x02000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii-id";
|
||||
phy-handle = <&phy4>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
rxd-delay = <3>;
|
||||
rxdv-delay = <3>;
|
||||
};
|
||||
};
|
39
target/linux/ath79/dts/ar9342_ubnt_wa_2port.dtsi
Normal file
39
target/linux/ath79/dts/ar9342_ubnt_wa_2port.dtsi
Normal file
|
@ -0,0 +1,39 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#include "ar9342_ubnt_wa.dtsi"
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mask = <4>;
|
||||
|
||||
phy0: ethernet-phy@0 {
|
||||
phy-mode = "rgmii";
|
||||
reg = <0>;
|
||||
|
||||
qca,ar8327-initvals = <
|
||||
0x04 0x07600000 /* PORT0 PAD MODE CTRL */
|
||||
0x58 0xffb7ffb7 /* LED_CTRL2 */
|
||||
0x5c 0x03ffff00 /* LED_CTRL3 */
|
||||
0x7c 0x0000007e /* PORT0_STATUS */
|
||||
>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
/* default for ar934x, except for 1000M and 10M */
|
||||
pll-data = <0x06000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy0>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
rxd-delay = <2>;
|
||||
rxdv-delay = <2>;
|
||||
};
|
||||
};
|
|
@ -1375,8 +1375,6 @@ define Device/ocedo_koala
|
|||
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
||||
SUPPORTED_DEVICES += koala
|
||||
IMAGE_SIZE := 7424k
|
||||
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
|
||||
append-metadata | check-size
|
||||
endef
|
||||
TARGET_DEVICES += ocedo_koala
|
||||
|
||||
|
@ -1385,8 +1383,6 @@ define Device/ocedo_raccoon
|
|||
DEVICE_VENDOR := Ocedo
|
||||
DEVICE_MODEL := Raccoon
|
||||
IMAGE_SIZE := 7424k
|
||||
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
|
||||
append-metadata | check-size
|
||||
endef
|
||||
TARGET_DEVICES += ocedo_raccoon
|
||||
|
||||
|
@ -1396,8 +1392,6 @@ define Device/ocedo_ursus
|
|||
DEVICE_MODEL := Ursus
|
||||
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
||||
IMAGE_SIZE := 7424k
|
||||
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
|
||||
append-metadata | check-size
|
||||
endef
|
||||
TARGET_DEVICES += ocedo_ursus
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ use the same logic.
|
|||
|
||||
--- a/drivers/tty/serial/amba-pl011.c
|
||||
+++ b/drivers/tty/serial/amba-pl011.c
|
||||
@@ -2575,7 +2575,12 @@ static int pl011_setup_port(struct devic
|
||||
@@ -2578,7 +2578,12 @@ static int pl011_setup_port(struct devic
|
||||
if (IS_ERR(base))
|
||||
return PTR_ERR(base);
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
|
||||
--- a/drivers/tty/serial/amba-pl011.c
|
||||
+++ b/drivers/tty/serial/amba-pl011.c
|
||||
@@ -1650,6 +1650,23 @@ static void pl011_put_poll_char(struct u
|
||||
@@ -1653,6 +1653,23 @@ static void pl011_put_poll_char(struct u
|
||||
|
||||
#endif /* CONFIG_CONSOLE_POLL */
|
||||
|
||||
|
@ -50,7 +50,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
static int pl011_hwinit(struct uart_port *port)
|
||||
{
|
||||
struct uart_amba_port *uap =
|
||||
@@ -1666,7 +1683,7 @@ static int pl011_hwinit(struct uart_port
|
||||
@@ -1669,7 +1686,7 @@ static int pl011_hwinit(struct uart_port
|
||||
if (retval)
|
||||
return retval;
|
||||
|
||||
|
@ -59,7 +59,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
|
||||
/* Clear pending error and receive interrupts */
|
||||
pl011_write(UART011_OEIS | UART011_BEIS | UART011_PEIS |
|
||||
@@ -2321,7 +2338,7 @@ static int pl011_console_setup(struct co
|
||||
@@ -2324,7 +2341,7 @@ static int pl011_console_setup(struct co
|
||||
plat->init();
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
|
||||
if (uap->vendor->fixed_options) {
|
||||
baud = uap->fixed_baud;
|
||||
@@ -2506,6 +2523,7 @@ static struct uart_driver amba_reg = {
|
||||
@@ -2509,6 +2526,7 @@ static struct uart_driver amba_reg = {
|
||||
.cons = AMBA_CONSOLE,
|
||||
};
|
||||
|
||||
|
@ -76,7 +76,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
static int pl011_probe_dt_alias(int index, struct device *dev)
|
||||
{
|
||||
struct device_node *np;
|
||||
@@ -2537,6 +2555,7 @@ static int pl011_probe_dt_alias(int inde
|
||||
@@ -2540,6 +2558,7 @@ static int pl011_probe_dt_alias(int inde
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
|
||||
--- a/drivers/tty/serial/amba-pl011.c
|
||||
+++ b/drivers/tty/serial/amba-pl011.c
|
||||
@@ -1383,6 +1383,7 @@ static bool pl011_tx_char(struct uart_am
|
||||
@@ -1386,6 +1386,7 @@ static bool pl011_tx_char(struct uart_am
|
||||
return false; /* unable to transmit character */
|
||||
|
||||
pl011_write(c, uap, REG_DR);
|
||||
|
|
|
@ -36,7 +36,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
- reg
|
||||
--- a/drivers/tty/serial/amba-pl011.c
|
||||
+++ b/drivers/tty/serial/amba-pl011.c
|
||||
@@ -2662,6 +2662,11 @@ static int pl011_probe(struct amba_devic
|
||||
@@ -2665,6 +2665,11 @@ static int pl011_probe(struct amba_devic
|
||||
if (IS_ERR(uap->clk))
|
||||
return PTR_ERR(uap->clk);
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
#ifdef CONFIG_DMA_ENGINE
|
||||
/* DMA stuff */
|
||||
bool using_tx_dma;
|
||||
@@ -813,6 +814,7 @@ __acquires(&uap->port.lock)
|
||||
@@ -816,6 +817,7 @@ __acquires(&uap->port.lock)
|
||||
if (!uap->using_tx_dma)
|
||||
return;
|
||||
|
||||
|
@ -50,7 +50,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
dmaengine_terminate_async(uap->dmatx.chan);
|
||||
|
||||
if (uap->dmatx.queued) {
|
||||
@@ -939,6 +941,7 @@ static void pl011_dma_rx_chars(struct ua
|
||||
@@ -942,6 +944,7 @@ static void pl011_dma_rx_chars(struct ua
|
||||
fifotaken = pl011_fifo_to_tty(uap);
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
spin_unlock(&uap->port.lock);
|
||||
dev_vdbg(uap->port.dev,
|
||||
"Took %d chars from DMA buffer and %d chars from the FIFO\n",
|
||||
@@ -1347,6 +1350,7 @@ __acquires(&uap->port.lock)
|
||||
@@ -1350,6 +1353,7 @@ __acquires(&uap->port.lock)
|
||||
{
|
||||
pl011_fifo_to_tty(uap);
|
||||
|
||||
|
@ -66,7 +66,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
spin_unlock(&uap->port.lock);
|
||||
tty_flip_buffer_push(&uap->port.state->port);
|
||||
/*
|
||||
@@ -1482,6 +1486,7 @@ static irqreturn_t pl011_int(int irq, vo
|
||||
@@ -1485,6 +1489,7 @@ static irqreturn_t pl011_int(int irq, vo
|
||||
int handled = 0;
|
||||
|
||||
spin_lock_irqsave(&uap->port.lock, flags);
|
||||
|
@ -74,7 +74,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
status = pl011_read(uap, REG_RIS) & uap->im;
|
||||
if (status) {
|
||||
do {
|
||||
@@ -1501,7 +1506,7 @@ static irqreturn_t pl011_int(int irq, vo
|
||||
@@ -1504,7 +1509,7 @@ static irqreturn_t pl011_int(int irq, vo
|
||||
UART011_CTSMIS|UART011_RIMIS))
|
||||
pl011_modem_status(uap);
|
||||
if (status & UART011_TXIS)
|
||||
|
|
|
@ -17,7 +17,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
|
||||
--- a/drivers/tty/serial/amba-pl011.c
|
||||
+++ b/drivers/tty/serial/amba-pl011.c
|
||||
@@ -1323,6 +1323,32 @@ static void pl011_start_tx(struct uart_p
|
||||
@@ -1326,6 +1326,32 @@ static void pl011_start_tx(struct uart_p
|
||||
pl011_start_tx_pio(uap);
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
static void pl011_stop_rx(struct uart_port *port)
|
||||
{
|
||||
struct uart_amba_port *uap =
|
||||
@@ -2164,6 +2190,8 @@ static const struct uart_ops amba_pl011_
|
||||
@@ -2167,6 +2193,8 @@ static const struct uart_ops amba_pl011_
|
||||
.stop_tx = pl011_stop_tx,
|
||||
.start_tx = pl011_start_tx,
|
||||
.stop_rx = pl011_stop_rx,
|
||||
|
|
|
@ -29,7 +29,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|||
|
||||
--- a/drivers/tty/serial/amba-pl011.c
|
||||
+++ b/drivers/tty/serial/amba-pl011.c
|
||||
@@ -1444,6 +1444,10 @@ static bool pl011_tx_chars(struct uart_a
|
||||
@@ -1447,6 +1447,10 @@ static bool pl011_tx_chars(struct uart_a
|
||||
if (likely(from_irq) && count-- == 0)
|
||||
break;
|
||||
|
||||
|
|
|
@ -2380,6 +2380,7 @@ CONFIG_IO_STRICT_DEVMEM=y
|
|||
# CONFIG_IP6_NF_RAW is not set
|
||||
# CONFIG_IP6_NF_SECURITY is not set
|
||||
# CONFIG_IP6_NF_TARGET_HL is not set
|
||||
# CONFIG_IP6_NF_TARGET_MASQUERADE is not set
|
||||
# CONFIG_IP6_NF_TARGET_REJECT is not set
|
||||
# CONFIG_IP6_NF_TARGET_SYNPROXY is not set
|
||||
# CONFIG_IPACK_BUS is not set
|
||||
|
@ -3688,7 +3689,6 @@ CONFIG_NF_CONNTRACK_PROCFS=y
|
|||
# CONFIG_NF_NAT_AMANDA is not set
|
||||
# CONFIG_NF_NAT_FTP is not set
|
||||
# CONFIG_NF_NAT_H323 is not set
|
||||
# CONFIG_NF_NAT_IPV6 is not set
|
||||
# CONFIG_NF_NAT_IRC is not set
|
||||
# CONFIG_NF_NAT_MASQUERADE is not set
|
||||
# CONFIG_NF_NAT_NEEDED is not set
|
||||
|
|
|
@ -69,7 +69,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|||
struct dst_entry *__sk_dst_check(struct sock *sk, u32 cookie)
|
||||
{
|
||||
struct dst_entry *dst = __sk_dst_get(sk);
|
||||
@@ -1743,9 +1756,11 @@ static void __sk_free(struct sock *sk)
|
||||
@@ -1742,9 +1755,11 @@ static void __sk_free(struct sock *sk)
|
||||
if (likely(sk->sk_net_refcnt))
|
||||
sock_inuse_add(sock_net(sk), -1);
|
||||
|
||||
|
|
|
@ -330,7 +330,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|||
|
||||
--- a/net/core/sock.c
|
||||
+++ b/net/core/sock.c
|
||||
@@ -3630,6 +3630,8 @@ static __net_initdata struct pernet_oper
|
||||
@@ -3629,6 +3629,8 @@ static __net_initdata struct pernet_oper
|
||||
|
||||
static int __init proto_init(void)
|
||||
{
|
||||
|
|
|
@ -1,106 +0,0 @@
|
|||
From ea17a0f153af2cd890e4ce517130dcccaa428c13 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Pali=20Roh=C3=A1r?= <pali@kernel.org>
|
||||
Date: Wed, 2 Sep 2020 16:43:43 +0200
|
||||
Subject: [PATCH] phy: marvell: comphy: Convert internal SMCC firmware return
|
||||
codes to errno
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Driver ->power_on and ->power_off callbacks leaks internal SMCC firmware
|
||||
return codes to phy caller. This patch converts SMCC error codes to
|
||||
standard linux errno codes. Include file linux/arm-smccc.h already provides
|
||||
defines for SMCC error codes, so use them instead of custom driver defines.
|
||||
Note that return value is signed 32bit, but stored in unsigned long type
|
||||
with zero padding.
|
||||
|
||||
Tested-by: Tomasz Maciej Nowak <tmn505@gmail.com>
|
||||
Link: https://lore.kernel.org/r/20200902144344.16684-2-pali@kernel.org
|
||||
Signed-off-by: Pali Rohár <pali@kernel.org>
|
||||
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
|
||||
Reviewed-by: Rob Herring <robh@kernel.org>
|
||||
---
|
||||
drivers/phy/marvell/phy-mvebu-a3700-comphy.c | 14 +++++++++++---
|
||||
drivers/phy/marvell/phy-mvebu-cp110-comphy.c | 14 +++++++++++---
|
||||
2 files changed, 22 insertions(+), 6 deletions(-)
|
||||
|
||||
--- a/drivers/phy/marvell/phy-mvebu-a3700-comphy.c
|
||||
+++ b/drivers/phy/marvell/phy-mvebu-a3700-comphy.c
|
||||
@@ -26,7 +26,6 @@
|
||||
#define COMPHY_SIP_POWER_ON 0x82000001
|
||||
#define COMPHY_SIP_POWER_OFF 0x82000002
|
||||
#define COMPHY_SIP_PLL_LOCK 0x82000003
|
||||
-#define COMPHY_FW_NOT_SUPPORTED (-1)
|
||||
|
||||
#define COMPHY_FW_MODE_SATA 0x1
|
||||
#define COMPHY_FW_MODE_SGMII 0x2
|
||||
@@ -112,10 +111,19 @@ static int mvebu_a3700_comphy_smc(unsign
|
||||
unsigned long mode)
|
||||
{
|
||||
struct arm_smccc_res res;
|
||||
+ s32 ret;
|
||||
|
||||
arm_smccc_smc(function, lane, mode, 0, 0, 0, 0, 0, &res);
|
||||
+ ret = res.a0;
|
||||
|
||||
- return res.a0;
|
||||
+ switch (ret) {
|
||||
+ case SMCCC_RET_SUCCESS:
|
||||
+ return 0;
|
||||
+ case SMCCC_RET_NOT_SUPPORTED:
|
||||
+ return -EOPNOTSUPP;
|
||||
+ default:
|
||||
+ return -EINVAL;
|
||||
+ }
|
||||
}
|
||||
|
||||
static int mvebu_a3700_comphy_get_fw_mode(int lane, int port,
|
||||
@@ -220,7 +228,7 @@ static int mvebu_a3700_comphy_power_on(s
|
||||
}
|
||||
|
||||
ret = mvebu_a3700_comphy_smc(COMPHY_SIP_POWER_ON, lane->id, fw_param);
|
||||
- if (ret == COMPHY_FW_NOT_SUPPORTED)
|
||||
+ if (ret == -EOPNOTSUPP)
|
||||
dev_err(lane->dev,
|
||||
"unsupported SMC call, try updating your firmware\n");
|
||||
|
||||
--- a/drivers/phy/marvell/phy-mvebu-cp110-comphy.c
|
||||
+++ b/drivers/phy/marvell/phy-mvebu-cp110-comphy.c
|
||||
@@ -123,7 +123,6 @@
|
||||
|
||||
#define COMPHY_SIP_POWER_ON 0x82000001
|
||||
#define COMPHY_SIP_POWER_OFF 0x82000002
|
||||
-#define COMPHY_FW_NOT_SUPPORTED (-1)
|
||||
|
||||
/*
|
||||
* A lane is described by the following bitfields:
|
||||
@@ -273,10 +272,19 @@ static int mvebu_comphy_smc(unsigned lon
|
||||
unsigned long lane, unsigned long mode)
|
||||
{
|
||||
struct arm_smccc_res res;
|
||||
+ s32 ret;
|
||||
|
||||
arm_smccc_smc(function, phys, lane, mode, 0, 0, 0, 0, &res);
|
||||
+ ret = res.a0;
|
||||
|
||||
- return res.a0;
|
||||
+ switch (ret) {
|
||||
+ case SMCCC_RET_SUCCESS:
|
||||
+ return 0;
|
||||
+ case SMCCC_RET_NOT_SUPPORTED:
|
||||
+ return -EOPNOTSUPP;
|
||||
+ default:
|
||||
+ return -EINVAL;
|
||||
+ }
|
||||
}
|
||||
|
||||
static int mvebu_comphy_get_mode(bool fw_mode, int lane, int port,
|
||||
@@ -819,7 +827,7 @@ static int mvebu_comphy_power_on(struct
|
||||
if (!ret)
|
||||
return ret;
|
||||
|
||||
- if (ret == COMPHY_FW_NOT_SUPPORTED)
|
||||
+ if (ret == -EOPNOTSUPP)
|
||||
dev_err(priv->dev,
|
||||
"unsupported SMC call, try updating your firmware\n");
|
||||
|
|
@ -47,7 +47,7 @@ Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
|
|||
obj-$(CONFIG_MTD_NAND_TEGRA) += tegra_nand.o
|
||||
--- /dev/null
|
||||
+++ b/drivers/mtd/nand/raw/mt7621_nand.c
|
||||
@@ -0,0 +1,1348 @@
|
||||
@@ -0,0 +1,1350 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0
|
||||
+/*
|
||||
+ * MediaTek MT7621 NAND Flash Controller driver
|
||||
|
@ -1155,9 +1155,11 @@ Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
|
|||
+ uint32_t i, j;
|
||||
+ u8 *oobptr;
|
||||
+
|
||||
+ for (i = 0; i < mtd->writesize; i++)
|
||||
+ if (buf[i] != 0xff)
|
||||
+ return 0;
|
||||
+ if (buf) {
|
||||
+ for (i = 0; i < mtd->writesize; i++)
|
||||
+ if (buf[i] != 0xff)
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ for (i = 0; i < nand->ecc.steps; i++) {
|
||||
+ oobptr = oob_fdm_ptr(nand, i);
|
||||
|
|
|
@ -190,7 +190,6 @@ CONFIG_I2C_ALGOBIT=y
|
|||
CONFIG_I2C_BOARDINFO=y
|
||||
CONFIG_I2C_CHARDEV=y
|
||||
CONFIG_I2C_COMPAT=y
|
||||
CONFIG_I2C_GPIO=y
|
||||
CONFIG_I2C_HELPER_AUTO=y
|
||||
CONFIG_I2C_RK3X=y
|
||||
CONFIG_INDIRECT_PIO=y
|
||||
|
@ -240,7 +239,6 @@ CONFIG_MAGIC_SYSRQ_SERIAL=y
|
|||
CONFIG_MAILBOX=y
|
||||
# CONFIG_MAILBOX_TEST is not set
|
||||
CONFIG_MANDATORY_FILE_LOCKING=y
|
||||
CONFIG_MDIO_BITBANG=y
|
||||
CONFIG_MDIO_BUS=y
|
||||
CONFIG_MDIO_BUS_MUX=y
|
||||
CONFIG_MDIO_BUS_MUX_GPIO=y
|
||||
|
|
|
@ -6,57 +6,11 @@
|
|||
|
||||
rtl838x_setup_switch()
|
||||
{
|
||||
local switchid net portid master device lan_role lan_list
|
||||
local lan lan_list
|
||||
|
||||
json_select_object switch
|
||||
# Find slave ports
|
||||
for net in $(ls -d /sys/class/net/*); do
|
||||
switchid=$(cat $net/phys_switch_id 2>/dev/null)
|
||||
[ -z "$switchid" ] && continue
|
||||
device=$(basename $net)
|
||||
portid=$(cat $net/phys_port_name)
|
||||
lan_role="$lan_role ${portid##p}"
|
||||
lan_list="$lan_list $device"
|
||||
json_select_object "switch$((switchid))"
|
||||
json_add_boolean enable 1
|
||||
json_add_boolean reset 0
|
||||
json_add_boolean dsa 1
|
||||
json_select_array ports
|
||||
json_add_object
|
||||
json_add_int num "${portid##p}"
|
||||
json_add_string role "lan"
|
||||
json_add_string device "$device"
|
||||
json_close_object
|
||||
json_select ..
|
||||
json_select ..
|
||||
for lan in /sys/class/net/lan*; do
|
||||
lan_list="$lan_list $(basename $lan)"
|
||||
done
|
||||
# Add switch master device
|
||||
for net in $(ls -d /sys/class/net/*/dsa); do
|
||||
master=$(dirname $net)
|
||||
device=$(basename $master)
|
||||
portid=$(cat $master/phys_port_name)
|
||||
lan_role="$lan_role ${portid##p}"
|
||||
json_select_object "switch$((switchid))"
|
||||
json_select_array ports
|
||||
json_add_object
|
||||
json_add_int num "${portid##p}"
|
||||
json_add_string device "$device"
|
||||
json_add_boolean need_tag 0
|
||||
json_add_boolean want_untag 0
|
||||
json_add_boolean master 1
|
||||
json_close_object
|
||||
json_select ..
|
||||
json_select_array roles
|
||||
json_add_object
|
||||
json_add_string role "lan"
|
||||
lan_role=$(echo $lan_role | xargs -n1 | sort -n | xargs)
|
||||
json_add_string ports "$lan_role"
|
||||
json_close_object
|
||||
json_select ..
|
||||
json_select ..
|
||||
done
|
||||
json_select ..
|
||||
lan_list=$(echo $lan_list | xargs -n1 | sort -V | xargs)
|
||||
ucidef_set_interface_lan "$lan_list"
|
||||
}
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ platform_do_bootloader_upgrade() {
|
|||
-d "/tmp/boot/boot/grub" \
|
||||
-r "hd0,${parttable}1" \
|
||||
"/dev/$diskdev" \
|
||||
&& touch /tmp/boot/grub/upgraded
|
||||
&& touch /tmp/boot/boot/grub/upgraded
|
||||
|
||||
umount /tmp/boot
|
||||
fi
|
||||
|
|
|
@ -82,7 +82,12 @@ KERNEL_FILES := $(patsubst $(TOPDIR)/%,%,$(wildcard $(addprefix $(LINUX_DIR)/,$(
|
|||
all: compile
|
||||
|
||||
$(BIN_DIR)/$(SDK_NAME).tar.xz: clean
|
||||
mkdir -p $(SDK_BUILD_DIR)/dl $(SDK_BUILD_DIR)/package
|
||||
mkdir -p \
|
||||
$(SDK_BUILD_DIR)/dl \
|
||||
$(SDK_BUILD_DIR)/package \
|
||||
$(SDK_BUILD_DIR)/$(STAGING_SUBDIR_TARGET)/include \
|
||||
$(SDK_BUILD_DIR)/$(STAGING_SUBDIR_TARGET)/usr/include
|
||||
|
||||
$(CP) -L $(INCLUDE_DIR) $(SCRIPT_DIR) $(SDK_BUILD_DIR)/
|
||||
$(TAR) -cf - -C $(TOPDIR) \
|
||||
`cd $(TOPDIR); find $(KDIR_BASE)/ -name \*.ko` \
|
||||
|
|
Loading…
Reference in New Issue
Block a user