~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: fbac2ade25ace8f33375285cc6e76844c8c1025f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) 2022 MediaTek Inc. All rights reserved.
 *
 * Author: Weijie Gao <weijie.gao@mediatek.com>
 */

#include <linux/stringify.h>

/ {
	binman: binman {
		multiple-images;
	};
};

&sysc {
	bootph-all;
};

&reboot {
	bootph-all;
};

&clkctrl {
	bootph-all;
};

&rstctrl {
	bootph-all;
};

&pinctrl {
	bootph-all;
};

&uart0 {
	bootph-all;
};

&uart1 {
	bootph-all;
};

&uart2 {
	bootph-all;
};

&binman {
	u-boot-spl-ddr {
		align = <4>;
		align-size = <4>;
		filename = "u-boot-spl-ddr.bin";
		pad-byte = <0xff>;

		u-boot-spl {
			align-end = <4>;
			filename = "u-boot-spl.bin";
		};

		stage_bin {
			filename = "mt7621_stage_sram.bin";
			type = "blob-ext";
		};
	};

	spl-img {
		filename = "u-boot-spl-ddr.img";

		mkimage {
#ifdef CONFIG_MT7621_BOOT_FROM_NAND
			args = "-T", "mtk_image", "-n", "mt7621=1",
			       "-a", __stringify(CONFIG_SPL_TEXT_BASE),
			       "-e", __stringify(CONFIG_SPL_TEXT_BASE);
#else
			args = "-A", "mips", "-T", "standalone", "-O", "u-boot",
			       "-C", "none", "-n", "MT7621 U-Boot SPL",
			       "-a", __stringify(CONFIG_SPL_TEXT_BASE),
			       "-e", __stringify(CONFIG_SPL_TEXT_BASE);
#endif

			blob {
				filename = "u-boot-spl-ddr.bin";
			};
		};
	};

	mt7621-uboot {
		filename = "u-boot-mt7621.bin";
		pad-byte = <0xff>;

#ifndef CONFIG_MT7621_BOOT_FROM_NAND
		u-boot-tpl {
			align-end = <4>;
			filename = "u-boot-tpl.bin";
		};
#endif

		spl {
#ifdef CONFIG_MT7621_BOOT_FROM_NAND
			align-end = <0x1000>;
#endif
			filename = "u-boot-spl-ddr.img";
			type = "blob";
		};

		u-boot {
			filename = "u-boot-lzma.img";
			type = "blob";
		};
	};
};