Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Configuration for MediaTek MT7629 SoC |
| 4 | * |
| 5 | * Copyright (C) 2018 MediaTek Inc. |
| 6 | * Author: Ryder Lee <ryder.lee@mediatek.com> |
| 7 | */ |
| 8 | |
| 9 | #ifndef __MT7629_H |
| 10 | #define __MT7629_H |
| 11 | |
| 12 | #include <linux/sizes.h> |
| 13 | |
| 14 | /* Miscellaneous configurable options */ |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 15 | |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 16 | #define CONFIG_SYS_BOOTM_LEN SZ_64M |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 17 | |
Weijie Gao | d7fe0ad | 2018-12-20 16:12:57 +0800 | [diff] [blame] | 18 | #define CONFIG_SYS_NONCACHED_MEMORY SZ_1M |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 19 | |
| 20 | /* Environment */ |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 21 | |
| 22 | /* Defines for SPL */ |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 23 | |
| 24 | #define CONFIG_SPI_ADDR 0x30000000 |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 25 | #define CONFIG_SYS_UBOOT_BASE (CONFIG_SPI_ADDR + CONFIG_SPL_PAD_TO) |
| 26 | |
| 27 | /* SPL -> Uboot */ |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 28 | |
| 29 | /* UBoot -> Kernel */ |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 30 | |
| 31 | /* DRAM */ |
| 32 | #define CONFIG_SYS_SDRAM_BASE 0x40000000 |
| 33 | |
Weijie Gao | d7fe0ad | 2018-12-20 16:12:57 +0800 | [diff] [blame] | 34 | /* Ethernet */ |
| 35 | #define CONFIG_IPADDR 192.168.1.1 |
| 36 | #define CONFIG_SERVERIP 192.168.1.2 |
| 37 | |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 38 | #endif |