forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: (174 commits) kernel: bump 5.18 to 5.18.14 (coolsnowwolf#9823) kernel: bump 5.15 to 5.15.57 (coolsnowwolf#9824) kernel: bump 5.15 to 5.15.56 (coolsnowwolf#9816) kernel: bump 5.18 to 5.18.13 (coolsnowwolf#9818) Revert "uboot-rockchip:doornet2 detaches from evb rk (coolsnowwolf#9812)" uboot-rockchip:doornet2 detaches from evb rk (coolsnowwolf#9812) generic: fix swconfig_leds.c in 5.18 kernel: bump 5.10 to 5.10.131 (coolsnowwolf#9807) kernel: backport upstream mtk_eth_soc patches (coolsnowwolf#9809) kernel: switch back 5.15 to fw_devlink=permissive kernel: netconsole: add network console logging support sdk: add spidev-test to the bundle of userspace sources kernel: backport mtk wlan flow offloading fix mbedtls: build with PIC modules: fix 5.18 vxlan support Revert "wolfssl: bump to 5.4.0 (coolsnowwolf#9795)" wolfssl: bump to 5.4.0 (coolsnowwolf#9795) luci-app-qbittorrent-simple: add luci for qbittorrent simple UI rockchip: add crypto-hw-rockchip drivers for RK3328/RK3399 rockchip: switch to kernel 5.18 ...
- Loading branch information
Showing
1,063 changed files
with
117,780 additions
and
8,357 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-5.10 = .117 | ||
LINUX_KERNEL_HASH-5.10.117 = 703ef7112cdf889950dd864ba482d04bd87d83d3df3a98ab8d4ba8a7ab1ddcc7 | ||
LINUX_VERSION-5.10 = .131 | ||
LINUX_KERNEL_HASH-5.10.131 = 8bc441442c16c330a7148fe3cca9edcd98bc0fc9f68304633c7eb641770d21ce |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-5.15 = .45 | ||
LINUX_KERNEL_HASH-5.15.45 = b2390d7d977c66036ef0ceb294e408f2bdaab6dfeeb8ff4f4e0a84b71f8d8754 | ||
LINUX_VERSION-5.15 = .57 | ||
LINUX_KERNEL_HASH-5.15.57 = 62e3095a1fc876315150c93aad1546cc198e3ba5863b3d7ff7da21fbee20f0fd |
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,2 @@ | ||
LINUX_VERSION-5.18 = .14 | ||
LINUX_KERNEL_HASH-5.18.14 = e17d46451133d3a3099b09e200839e875100b48403171923ab71b6a9b39856af |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-5.4 = .195 | ||
LINUX_KERNEL_HASH-5.4.195 = f22f5b9df60f8d59988f9d48bb2f39cb5d7ec435ca4296abe352e8063140031d | ||
LINUX_VERSION-5.4 = .203 | ||
LINUX_KERNEL_HASH-5.4.203 = fc933f5b13066cfa54aacb5e86747a167bad1d8d23972e4a03ab5ee36c29798a |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# See /LICENSE for more information. | ||
# | ||
include $(TOPDIR)/rules.mk | ||
include $(INCLUDE_DIR)/kernel.mk | ||
|
||
PKG_VERSION:=2021.07 | ||
PKG_VERSION:=2022.07 | ||
PKG_RELEASE:=$(AUTORELEASE) | ||
|
||
PKG_HASH:=312b7eeae44581d1362c3a3f02c28d806647756c82ba8c72241c7cdbe68ba77e | ||
PKG_HASH:=92b08eb49c24da14c1adbf70a71ae8f37cc53eeb4230e859ad8b6733d13dcf5e | ||
|
||
PKG_MAINTAINER:=Tobias Maedel <[email protected]> | ||
|
||
|
@@ -32,7 +32,6 @@ define U-Boot/nanopi-r2c-rk3328 | |
DEPENDS:=+PACKAGE_u-boot-nanopi-r2c-rk3328:arm-trusted-firmware-rk3328 | ||
PKG_BUILD_DEPENDS:=arm-trusted-firmware-rockchip-vendor | ||
ATF:=rk322xh_bl31_v1.46.elf | ||
OF_PLATDATA:=$(1) | ||
USE_RKBIN:=1 | ||
endef | ||
|
||
|
@@ -45,7 +44,6 @@ define U-Boot/nanopi-r2s-rk3328 | |
DEPENDS:=+PACKAGE_u-boot-nanopi-r2s-rk3328:arm-trusted-firmware-rk3328 | ||
PKG_BUILD_DEPENDS:=arm-trusted-firmware-rockchip-vendor | ||
ATF:=rk322xh_bl31_v1.46.elf | ||
OF_PLATDATA:=$(1) | ||
USE_RKBIN:=1 | ||
endef | ||
|
||
|
@@ -57,7 +55,6 @@ define U-Boot/orangepi-r1-plus-rk3328 | |
DEPENDS:=+PACKAGE_u-boot-orangepi-r1-plus-rk3328:arm-trusted-firmware-rk3328 | ||
PKG_BUILD_DEPENDS:=arm-trusted-firmware-rockchip-vendor | ||
ATF:=rk322xh_bl31_v1.46.elf | ||
OF_PLATDATA:=$(1) | ||
USE_RKBIN:=1 | ||
endef | ||
|
||
|
@@ -69,7 +66,6 @@ define U-Boot/orangepi-r1-plus-lts-rk3328 | |
DEPENDS:=+PACKAGE_u-boot-orangepi-r1-plus-lts-rk3328:arm-trusted-firmware-rk3328 | ||
PKG_BUILD_DEPENDS:=arm-trusted-firmware-rockchip-vendor | ||
ATF:=rk322xh_bl31_v1.46.elf | ||
OF_PLATDATA:=$(1) | ||
USE_RKBIN:=1 | ||
endef | ||
|
||
|
@@ -81,7 +77,6 @@ define U-Boot/doornet1-rk3328 | |
DEPENDS:=+PACKAGE_u-boot-doornet1-rk3328:arm-trusted-firmware-rk3328 | ||
PKG_BUILD_DEPENDS:=arm-trusted-firmware-rockchip-vendor | ||
ATF:=rk322xh_bl31_v1.46.elf | ||
OF_PLATDATA:=$(1) | ||
USE_RKBIN:=1 | ||
endef | ||
|
||
|
@@ -119,6 +114,17 @@ define U-Boot/nanopi-r4s-rk3399 | |
USE_RKBIN:=1 | ||
endef | ||
|
||
define U-Boot/nanopi-r4se-rk3399 | ||
BUILD_SUBTARGET:=armv8 | ||
NAME:=NanoPi R4SE | ||
BUILD_DEVICES:= \ | ||
friendlyarm_nanopi-r4se | ||
DEPENDS:=+PACKAGE_u-boot-nanopi-r4se-rk3399:arm-trusted-firmware-rk3399 | ||
PKG_BUILD_DEPENDS:=arm-trusted-firmware-rockchip-vendor | ||
ATF:=rk3399_bl31_v1.35.elf | ||
USE_RKBIN:=1 | ||
endef | ||
|
||
define U-Boot/rock-pi-4-rk3399 | ||
BUILD_SUBTARGET:=armv8 | ||
NAME:=Rock Pi 4 | ||
|
@@ -143,6 +149,7 @@ UBOOT_TARGETS := \ | |
doornet2-rk3399 \ | ||
guangmiao-g4c-rk3399 \ | ||
nanopi-r4s-rk3399 \ | ||
nanopi-r4se-rk3399 \ | ||
rock-pi-4-rk3399 \ | ||
rockpro64-rk3399 \ | ||
doornet1-rk3328 \ | ||
|
@@ -159,15 +166,7 @@ UBOOT_MAKE_FLAGS += \ | |
define Build/Configure | ||
$(call Build/Configure/U-Boot) | ||
|
||
ifneq ($(OF_PLATDATA),) | ||
mkdir -p $(PKG_BUILD_DIR)/tpl/dts | ||
mkdir -p $(PKG_BUILD_DIR)/include/generated | ||
|
||
$(CP) $(PKG_BUILD_DIR)/of-platdata/$(OF_PLATDATA)/dt-plat.c $(PKG_BUILD_DIR)/tpl/dts/dt-plat.c | ||
$(CP) $(PKG_BUILD_DIR)/of-platdata/$(OF_PLATDATA)/dt-structs-gen.h $(PKG_BUILD_DIR)/include/generated/dt-structs-gen.h | ||
$(CP) $(PKG_BUILD_DIR)/of-platdata/$(OF_PLATDATA)/dt-decl.h $(PKG_BUILD_DIR)/include/generated/dt-decl.h | ||
endif | ||
|
||
$(SED) 's/CONFIG_TOOLS_LIBCRYPTO=y/# CONFIG_TOOLS_LIBCRYPTO is not set/' $(PKG_BUILD_DIR)/.config | ||
$(SED) 's#CONFIG_MKIMAGE_DTC_PATH=.*#CONFIG_MKIMAGE_DTC_PATH="$(PKG_BUILD_DIR)/scripts/dtc/dtc"#g' $(PKG_BUILD_DIR)/.config | ||
echo 'CONFIG_IDENT_STRING=" OpenWrt"' >> $(PKG_BUILD_DIR)/.config | ||
endef | ||
|
43 changes: 43 additions & 0 deletions
43
package/boot/uboot-rockchip/patches/001-rockchip-rk3568-add-boot-device-detection.patch
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,43 @@ | ||
From 9b92a43a4f5acf4cba14fd9d473b3120688532dc Mon Sep 17 00:00:00 2001 | ||
From: Peter Geis <[email protected]> | ||
Date: Sun, 19 Dec 2021 08:10:24 -0500 | ||
Subject: [PATCH 01/11] rockchip: rk3568: add boot device detection | ||
|
||
Enable spl to detect which device it was booted from. | ||
|
||
Signed-off-by: Peter Geis <[email protected]> | ||
--- | ||
arch/arm/mach-rockchip/rk3568/rk3568.c | 8 ++++++++ | ||
1 file changed, 8 insertions(+) | ||
|
||
--- a/arch/arm/mach-rockchip/rk3568/rk3568.c | ||
+++ b/arch/arm/mach-rockchip/rk3568/rk3568.c | ||
@@ -7,6 +7,7 @@ | ||
#include <dm.h> | ||
#include <asm/armv8/mmu.h> | ||
#include <asm/io.h> | ||
+#include <asm/arch-rockchip/bootrom.h> | ||
#include <asm/arch-rockchip/grf_rk3568.h> | ||
#include <asm/arch-rockchip/hardware.h> | ||
#include <dt-bindings/clock/rk3568-cru.h> | ||
@@ -23,6 +24,7 @@ | ||
#define SGRF_SOC_CON4 0x10 | ||
#define EMMC_HPROT_SECURE_CTRL 0x03 | ||
#define SDMMC0_HPROT_SECURE_CTRL 0x01 | ||
+ | ||
/* PMU_GRF_GPIO0D_IOMUX_L */ | ||
enum { | ||
GPIO0D1_SHIFT = 4, | ||
@@ -43,6 +45,12 @@ enum { | ||
UART2_IO_SEL_M0 = 0, | ||
}; | ||
|
||
+const char * const boot_devices[BROM_LAST_BOOTSOURCE + 1] = { | ||
+ [BROM_BOOTSOURCE_EMMC] = "/sdhci@fe310000", | ||
+ [BROM_BOOTSOURCE_SPINOR] = "/spi@fe300000/flash@0", | ||
+ [BROM_BOOTSOURCE_SD] = "/mmc@fe2b0000", | ||
+}; | ||
+ | ||
static struct mm_region rk3568_mem_map[] = { | ||
{ | ||
.virt = 0x0UL, |
24 changes: 0 additions & 24 deletions
24
package/boot/uboot-rockchip/patches/001-scripts-remove-dependency-on-swig.patch
This file was deleted.
Oops, something went wrong.
52 changes: 52 additions & 0 deletions
52
package/boot/uboot-rockchip/patches/002-rockchip-rk3568-enable-automatic-power-savings.patch
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,52 @@ | ||
From 09d877cf076cbb67c79054e12bbb7c63a91faa71 Mon Sep 17 00:00:00 2001 | ||
From: Peter Geis <[email protected]> | ||
Date: Sun, 19 Dec 2021 08:11:56 -0500 | ||
Subject: [PATCH 02/11] rockchip: rk3568: enable automatic power savings | ||
|
||
Enable automatic clock gating, solves the 7c temperature difference on | ||
SoQuartz. | ||
|
||
Signed-off-by: Peter Geis <[email protected]> | ||
--- | ||
arch/arm/mach-rockchip/rk3568/rk3568.c | 23 +++++++++++++++++++++++ | ||
1 file changed, 23 insertions(+) | ||
|
||
--- a/arch/arm/mach-rockchip/rk3568/rk3568.c | ||
+++ b/arch/arm/mach-rockchip/rk3568/rk3568.c | ||
@@ -25,6 +25,15 @@ | ||
#define EMMC_HPROT_SECURE_CTRL 0x03 | ||
#define SDMMC0_HPROT_SECURE_CTRL 0x01 | ||
|
||
+#define PMU_BASE_ADDR 0xfdd90000 | ||
+#define PMU_NOC_AUTO_CON0 (0x70) | ||
+#define PMU_NOC_AUTO_CON1 (0x74) | ||
+#define EDP_PHY_GRF_BASE 0xfdcb0000 | ||
+#define EDP_PHY_GRF_CON0 (EDP_PHY_GRF_BASE + 0x00) | ||
+#define EDP_PHY_GRF_CON10 (EDP_PHY_GRF_BASE + 0x28) | ||
+#define CPU_GRF_BASE 0xfdc30000 | ||
+#define GRF_CORE_PVTPLL_CON0 (0x10) | ||
+ | ||
/* PMU_GRF_GPIO0D_IOMUX_L */ | ||
enum { | ||
GPIO0D1_SHIFT = 4, | ||
@@ -99,6 +108,20 @@ void board_debug_uart_init(void) | ||
int arch_cpu_init(void) | ||
{ | ||
#ifdef CONFIG_SPL_BUILD | ||
+ /* | ||
+ * When perform idle operation, corresponding clock can | ||
+ * be opened or gated automatically. | ||
+ */ | ||
+ writel(0xffffffff, PMU_BASE_ADDR + PMU_NOC_AUTO_CON0); | ||
+ writel(0x000f000f, PMU_BASE_ADDR + PMU_NOC_AUTO_CON1); | ||
+ | ||
+ /* Disable eDP phy by default */ | ||
+ writel(0x00070007, EDP_PHY_GRF_CON10); | ||
+ writel(0x0ff10ff1, EDP_PHY_GRF_CON0); | ||
+ | ||
+ /* Set core pvtpll ring length */ | ||
+ writel(0x00ff002b, CPU_GRF_BASE + GRF_CORE_PVTPLL_CON0); | ||
+ | ||
/* Set the emmc sdmmc0 to secure */ | ||
rk_clrreg(SGRF_BASE + SGRF_SOC_CON4, (EMMC_HPROT_SECURE_CTRL << 11 | ||
| SDMMC0_HPROT_SECURE_CTRL << 4)); |
28 changes: 0 additions & 28 deletions
28
package/boot/uboot-rockchip/patches/002-spl-remove-dtoc-of-pdata-generation.patch
This file was deleted.
Oops, something went wrong.
47 changes: 47 additions & 0 deletions
47
package/boot/uboot-rockchip/patches/003-Makefile-rockchip-HACK-build-rk3568-images.patch
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,47 @@ | ||
From ddbcec939789d1f7264134b3628ffb649ec88168 Mon Sep 17 00:00:00 2001 | ||
From: Peter Geis <[email protected]> | ||
Date: Sun, 19 Dec 2021 08:20:33 -0500 | ||
Subject: [PATCH 03/11] Makefile: rockchip: HACK: build rk3568 images | ||
|
||
This is a hack to build rk3568 images. | ||
It seems makefile can't cope with the format mkimage expects for | ||
multiple file entries, so hack around the situation. | ||
|
||
Signed-off-by: Peter Geis <[email protected]> | ||
--- | ||
Makefile | 10 ++++++++++ | ||
1 file changed, 10 insertions(+) | ||
|
||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -1047,6 +1047,9 @@ quiet_cmd_mkimage = MKIMAGE $@ | ||
cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \ | ||
>$(MKIMAGEOUTPUT) $(if $(KBUILD_VERBOSE:0=), && cat $(MKIMAGEOUTPUT)) | ||
|
||
+cmd_mkimage_combined = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $(COMBINED_FILE):$< $@ \ | ||
+ >$(MKIMAGEOUTPUT) $(if $(KBUILD_VERBOSE:0=), && cat $(MKIMAGEOUTPUT)) | ||
+ | ||
quiet_cmd_mkfitimage = MKIMAGE $@ | ||
cmd_mkfitimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) \ | ||
-f $(U_BOOT_ITS) -p $(CONFIG_FIT_EXTERNAL_OFFSET) $@ \ | ||
@@ -1491,6 +1494,7 @@ u-boot-with-spl.bin: $(SPL_IMAGE) $(SPL_ | ||
ifeq ($(CONFIG_ARCH_ROCKCHIP),y) | ||
|
||
# TPL + SPL | ||
+ifneq ($(CONFIG_SYS_SOC),$(filter $(CONFIG_SYS_SOC),"rk3568" "rk3566")) | ||
ifeq ($(CONFIG_SPL)$(CONFIG_TPL),yy) | ||
MKIMAGEFLAGS_u-boot-tpl-rockchip.bin = -n $(CONFIG_SYS_SOC) -T rksd | ||
tpl/u-boot-tpl-rockchip.bin: tpl/u-boot-tpl.bin FORCE | ||
@@ -1502,6 +1506,12 @@ MKIMAGEFLAGS_idbloader.img = -n $(CONFIG | ||
idbloader.img: spl/u-boot-spl.bin FORCE | ||
$(call if_changed,mkimage) | ||
endif | ||
+else | ||
+MKIMAGEFLAGS_idbloader.img = -n $(CONFIG_SYS_SOC) -T rksd | ||
+COMBINED_FILE = ram_init.bin | ||
+idbloader.img: spl/u-boot-spl.bin FORCE | ||
+ $(call if_changed,mkimage_combined) | ||
+endif | ||
|
||
ifeq ($(CONFIG_ARM64),y) | ||
OBJCOPYFLAGS_u-boot-rockchip.bin = -I binary -O binary \ |
Oops, something went wrong.