developer | f4a079c | 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 */ |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 15 | |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 16 | #define CONFIG_SYS_BOOTM_LEN SZ_64M |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 17 | |
developer | b8de3ee | 2018-12-20 16:12:57 +0800 | [diff] [blame] | 18 | #define CONFIG_SYS_NONCACHED_MEMORY SZ_1M |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 19 | |
| 20 | /* Environment */ |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 21 | |
| 22 | /* Defines for SPL */ |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 23 | |
| 24 | #define CONFIG_SPI_ADDR 0x30000000 |
developer | f4a079c | 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 */ |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 28 | |
| 29 | /* UBoot -> Kernel */ |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 30 | |
| 31 | /* DRAM */ |
| 32 | #define CONFIG_SYS_SDRAM_BASE 0x40000000 |
| 33 | |
developer | b8de3ee | 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 | |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 38 | #endif |