Skip to content

Commit 117fac1

Browse files
committed
try 2024.01 defconfig
1 parent f381713 commit 117fac1

File tree

3 files changed

+69
-148
lines changed

3 files changed

+69
-148
lines changed
Lines changed: 66 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,69 @@
11
diff --git a/configs/turing-rk1-rk3588_defconfig b/configs/turing-rk1-rk3588_defconfig
2-
index 05ef5bf..038b147 100644
2+
index 05ef5bf5..8ff10b76 100644
33
--- a/configs/turing-rk1-rk3588_defconfig
44
+++ b/configs/turing-rk1-rk3588_defconfig
5-
@@ -5,7 +5,7 @@ CONFIG_COUNTER_FREQUENCY=24000000
6-
CONFIG_ARCH_ROCKCHIP=y
7-
CONFIG_SF_DEFAULT_SPEED=24000000
8-
CONFIG_SF_DEFAULT_MODE=0x2000
9-
-CONFIG_DEFAULT_DEVICE_TREE="rockchip/rk3588-turing-rk1"
10-
+CONFIG_DEFAULT_DEVICE_TREE="rk3588-turing-rk1"
11-
CONFIG_ROCKCHIP_RK3588=y
12-
CONFIG_ROCKCHIP_SPI_IMAGE=y
13-
CONFIG_SPL_SERIAL=y
5+
@@ -23,6 +23,7 @@ CONFIG_FIT_VERBOSE=y
6+
CONFIG_SPL_FIT_SIGNATURE=y
7+
CONFIG_SPL_LOAD_FIT=y
8+
CONFIG_LEGACY_IMAGE_FORMAT=y
9+
+CONFIG_OF_BOARD_SETUP=y
10+
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-turing-rk1.dtb"
11+
# CONFIG_DISPLAY_CPUINFO is not set
12+
CONFIG_DISPLAY_BOARDINFO_LATE=y
13+
diff --git a/board/turing/turing-rk1-rk3588/Makefile b/board/turing/turing-rk1-rk3588/Makefile
14+
new file mode 100644
15+
index 0000000000..a979d8023a
16+
--- /dev/null
17+
+++ b/board/turing/turing-rk1-rk3588/Makefile
18+
@@ -0,0 +1,6 @@
19+
+# SPDX-License-Identifier: GPL-2.0+
20+
+#
21+
+# Copyright (c) 2023 Rockchip Electronics Co,. Ltd.
22+
+#
23+
+
24+
+obj-y += turing-rk1-rk3588.o
25+
diff --git a/board/turing/turing-rk1-rk3588/turing-rk1-rk3588.c b/board/turing/turing-rk1-rk3588/turing-rk1-rk3588.c
26+
new file mode 100644
27+
index 0000000000..e2338a2a35
28+
--- /dev/null
29+
+++ b/board/turing/turing-rk1-rk3588/turing-rk1-rk3588.c
30+
@@ -0,0 +1,39 @@
31+
+// SPDX-License-Identifier: GPL-2.0+
32+
+/*
33+
+ * Copyright (c) 2023 Rockchip Electronics Co,. Ltd.
34+
+ */
35+
+
36+
+#include <fdtdec.h>
37+
+#include <fdt_support.h>
38+
+
39+
+#ifdef CONFIG_OF_BOARD_SETUP
40+
+int turing_rk1_add_reserved_memory_fdt_nodes(void *new_blob)
41+
+{
42+
+ struct fdt_memory gap1 = {
43+
+ .start = 0x3fc000000,
44+
+ .end = 0x3fc4fffff,
45+
+ };
46+
+ struct fdt_memory gap2 = {
47+
+ .start = 0x3fff00000,
48+
+ .end = 0x3ffffffff,
49+
+ };
50+
+ unsigned long flags = FDTDEC_RESERVED_MEMORY_NO_MAP;
51+
+ unsigned int ret;
52+
+
53+
+ /*
54+
+ * Inject the reserved-memory nodes into the DTS
55+
+ */
56+
+ ret = fdtdec_add_reserved_memory(new_blob, "gap1", &gap1, NULL, 0,
57+
+ NULL, flags);
58+
+ if (ret)
59+
+ return ret;
60+
+
61+
+ return fdtdec_add_reserved_memory(new_blob, "gap2", &gap2, NULL, 0,
62+
+ NULL, flags);
63+
+}
64+
+
65+
+int ft_board_setup(void *blob, struct bd_info *bd)
66+
+{
67+
+ return turing_rk1_add_reserved_memory_fdt_nodes(blob);
68+
+}
69+
+#endif

artifacts/turingrk1/u-boot/pkg.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ steps:
3131
echo "Applying $patch"
3232
patch -p1 < $patch || (echo "Failed to apply patch $patch" && exit 1)
3333
done
34-
cp /pkg/*_defconfig configs
34+
#cp /pkg/*_defconfig configs
3535
3636
cp -f /pkg/rkbin/*.bin .
3737
- |
@@ -42,7 +42,8 @@ steps:
4242
install:
4343
- |
4444
mkdir -p /rootfs/artifacts/arm64/u-boot/turingrk1
45-
cp -v -t /rootfs/artifacts/arm64/u-boot/turingrk1 u-boot-rockchip.bin u-boot-rockchip-spi.bin
45+
cp -v -t /rootfs/artifacts/arm64/u-boot/turingrk1 u-boot-rockchip.bin
46+
#u-boot-rockchip-spi.bin
4647
finalize:
4748
- from: /rootfs
4849
to: /rootfs

artifacts/turingrk1/u-boot/turing-rk1-rk3588_defconfig

Lines changed: 0 additions & 136 deletions
This file was deleted.

0 commit comments

Comments
 (0)