developer | 2fddd72 | 2022-05-20 11:22:21 +0800 | [diff] [blame] | 1 | // 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 { |
| 17 | u-boot,dm-pre-reloc; |
| 18 | }; |
| 19 | |
| 20 | &reboot { |
| 21 | u-boot,dm-pre-reloc; |
| 22 | }; |
| 23 | |
| 24 | &clkctrl { |
| 25 | u-boot,dm-pre-reloc; |
| 26 | }; |
| 27 | |
| 28 | &rstctrl { |
| 29 | u-boot,dm-pre-reloc; |
| 30 | }; |
| 31 | |
| 32 | &pinctrl { |
| 33 | u-boot,dm-pre-reloc; |
| 34 | }; |
| 35 | |
| 36 | &uart0 { |
| 37 | u-boot,dm-pre-reloc; |
| 38 | }; |
| 39 | |
| 40 | &uart1 { |
| 41 | u-boot,dm-pre-reloc; |
| 42 | }; |
| 43 | |
| 44 | &uart2 { |
| 45 | u-boot,dm-pre-reloc; |
| 46 | }; |
| 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 | }; |