blob: fbac2ade25ace8f33375285cc6e76844c8c1025f [file] [log] [blame]
developer2fddd722022-05-20 11:22:21 +08001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2022 MediaTek Inc. All rights reserved.
4 *
5 * Author: Weijie Gao <weijie.gao@mediatek.com>
6 */
7
8#include <linux/stringify.h>
9
10/ {
11 binman: binman {
12 multiple-images;
13 };
14};
15
16&sysc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070017 bootph-all;
developer2fddd722022-05-20 11:22:21 +080018};
19
20&reboot {
Simon Glassd3a98cb2023-02-13 08:56:33 -070021 bootph-all;
developer2fddd722022-05-20 11:22:21 +080022};
23
24&clkctrl {
Simon Glassd3a98cb2023-02-13 08:56:33 -070025 bootph-all;
developer2fddd722022-05-20 11:22:21 +080026};
27
28&rstctrl {
Simon Glassd3a98cb2023-02-13 08:56:33 -070029 bootph-all;
developer2fddd722022-05-20 11:22:21 +080030};
31
32&pinctrl {
Simon Glassd3a98cb2023-02-13 08:56:33 -070033 bootph-all;
developer2fddd722022-05-20 11:22:21 +080034};
35
36&uart0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070037 bootph-all;
developer2fddd722022-05-20 11:22:21 +080038};
39
40&uart1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070041 bootph-all;
developer2fddd722022-05-20 11:22:21 +080042};
43
44&uart2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070045 bootph-all;
developer2fddd722022-05-20 11:22:21 +080046};
47
48&binman {
49 u-boot-spl-ddr {
50 align = <4>;
51 align-size = <4>;
52 filename = "u-boot-spl-ddr.bin";
53 pad-byte = <0xff>;
54
55 u-boot-spl {
56 align-end = <4>;
57 filename = "u-boot-spl.bin";
58 };
59
60 stage_bin {
61 filename = "mt7621_stage_sram.bin";
62 type = "blob-ext";
63 };
64 };
65
66 spl-img {
67 filename = "u-boot-spl-ddr.img";
68
69 mkimage {
70#ifdef CONFIG_MT7621_BOOT_FROM_NAND
71 args = "-T", "mtk_image", "-n", "mt7621=1",
72 "-a", __stringify(CONFIG_SPL_TEXT_BASE),
73 "-e", __stringify(CONFIG_SPL_TEXT_BASE);
74#else
75 args = "-A", "mips", "-T", "standalone", "-O", "u-boot",
76 "-C", "none", "-n", "MT7621 U-Boot SPL",
77 "-a", __stringify(CONFIG_SPL_TEXT_BASE),
78 "-e", __stringify(CONFIG_SPL_TEXT_BASE);
79#endif
80
81 blob {
82 filename = "u-boot-spl-ddr.bin";
83 };
84 };
85 };
86
87 mt7621-uboot {
88 filename = "u-boot-mt7621.bin";
89 pad-byte = <0xff>;
90
91#ifndef CONFIG_MT7621_BOOT_FROM_NAND
92 u-boot-tpl {
93 align-end = <4>;
94 filename = "u-boot-tpl.bin";
95 };
96#endif
97
98 spl {
99#ifdef CONFIG_MT7621_BOOT_FROM_NAND
100 align-end = <0x1000>;
101#endif
102 filename = "u-boot-spl-ddr.img";
103 type = "blob";
104 };
105
106 u-boot {
107 filename = "u-boot-lzma.img";
108 type = "blob";
109 };
110 };
111};