mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 18:35:42 +01:00 
			
		
		
		
	This patch adds support for MediaTek MT7621 SoC. All files are dedicated for u-boot. The default build target is u-boot-mt7621.bin. The specification of this chip: https://www.mediatek.com/products/homenetworking/mt7621 Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
		
			
				
	
	
		
			112 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			112 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| // 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 {
 | |
| 	u-boot,dm-pre-reloc;
 | |
| };
 | |
| 
 | |
| &reboot {
 | |
| 	u-boot,dm-pre-reloc;
 | |
| };
 | |
| 
 | |
| &clkctrl {
 | |
| 	u-boot,dm-pre-reloc;
 | |
| };
 | |
| 
 | |
| &rstctrl {
 | |
| 	u-boot,dm-pre-reloc;
 | |
| };
 | |
| 
 | |
| &pinctrl {
 | |
| 	u-boot,dm-pre-reloc;
 | |
| };
 | |
| 
 | |
| &uart0 {
 | |
| 	u-boot,dm-pre-reloc;
 | |
| };
 | |
| 
 | |
| &uart1 {
 | |
| 	u-boot,dm-pre-reloc;
 | |
| };
 | |
| 
 | |
| &uart2 {
 | |
| 	u-boot,dm-pre-reloc;
 | |
| };
 | |
| 
 | |
| &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";
 | |
| 		};
 | |
| 	};
 | |
| };
 |